Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I set debug to false, firebug @media is not deleted #90

Open
storuky opened this issue Aug 5, 2015 · 0 comments
Open

When I set debug to false, firebug @media is not deleted #90

storuky opened this issue Aug 5, 2015 · 0 comments

Comments

@storuky
Copy link

storuky commented Aug 5, 2015

When I set debug to false, firebug comments is not deleted. I write in initializers/stylus.rb:

require 'stylus'
Stylus.debug = false

in environments/development.rb

config.assets.debug = false

But I see in my css files @media query... These settings do not affect anything or I do something wrong? I just want to write @Keyframes animation.

@keyframes flipInX
  0%
    transform: perspective(400px) rotateX(90deg)
    opacity: 0

  40%
    transform: perspective(400px) rotateX(-10deg)

  70%
    transform: perspective(400px) rotateX(10deg)

  100%
    transform: perspective(400px) rotateX(0deg)
    opacity: 1

But this extra comment and media query generate invalide code:

@media -stylus-debug-info{filename{font-family:file\:\/\/\/Users\/pavelkononenko\/devel\/wheat\/app\/assets\/stylesheets\/components\/dropdown\.styl}line{font-family:\0000321}}
@keyframes flipInX {

/* line 22 : /Users/pavelkononenko/devel/wheat/app/assets/stylesheets/components/dropdown.styl */

@media -stylus-debug-info{filename{font-family:file\:\/\/\/Users\/pavelkononenko\/devel\/wheat\/app\/assets\/stylesheets\/components\/dropdown\.styl}line{font-family:\0000322}}
  0% {
    transform: perspective(400px) rotateX(90deg);
    opacity: 0;
  }

/* line 26 : /Users/pavelkononenko/devel/wheat/app/assets/stylesheets/components/dropdown.styl */

@media -stylus-debug-info{filename{font-family:file\:\/\/\/Users\/pavelkononenko\/devel\/wheat\/app\/assets\/stylesheets\/components\/dropdown\.styl}line{font-family:\0000326}}
  40% {
    transform: perspective(400px) rotateX(-10deg);
  }

/* line 29 : /Users/pavelkononenko/devel/wheat/app/assets/stylesheets/components/dropdown.styl */

@media -stylus-debug-info{filename{font-family:file\:\/\/\/Users\/pavelkononenko\/devel\/wheat\/app\/assets\/stylesheets\/components\/dropdown\.styl}line{font-family:\0000329}}
  70% {
    transform: perspective(400px) rotateX(10deg);
  }

/* line 32 : /Users/pavelkononenko/devel/wheat/app/assets/stylesheets/components/dropdown.styl */

@media -stylus-debug-info{filename{font-family:file\:\/\/\/Users\/pavelkononenko\/devel\/wheat\/app\/assets\/stylesheets\/components\/dropdown\.styl}line{font-family:\0000332}}
  100% {
    transform: perspective(400px) rotateX(0deg);
    opacity: 1;
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant