Skip to content

Instantly share code, notes, and snippets.

@seanadkinson
Last active December 14, 2015 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanadkinson/5113422 to your computer and use it in GitHub Desktop.
Save seanadkinson/5113422 to your computer and use it in GitHub Desktop.
"blue-doc-hover.css" is the generated CSS with naming the icon with a dash. "blue-doc_hover.css" is with an underscore". Both obviously contain "blue-doc.png". What's weird is that the dash case doesn't produce a "blue-doc-hover" class, which seems to me that it is recognizing something special about the naming.
$icons-spacing: 10px;
@import "icons/*.png";
@include all-icons-sprites;
/* line 50, icons/*.png */
.icons-sprite, .icons-blue-doc {
background: url('../img/icons-sc15de23035.png') no-repeat;
}
/* line 60, ../../../../../../../.rvm/gems/ruby-1.9.3-p194/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/sprites/_base.scss */
.icons-blue-doc {
background-position: 0 -42px;
}
/* line 60, ../../../../../../../.rvm/gems/ruby-1.9.3-p194/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/sprites/_base.scss */
.icons-blue-doc {
background-position: 0 -42px;
}
/* line 43, ../../../../../../../.rvm/gems/ruby-1.9.3-p194/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/sprites/_base.scss */
.icons-blue-doc:hover, .icons-blue-doc.blue-doc_hover, .icons-blue-doc.blue-doc-hover {
background-position: 0 0;
}
@seanadkinson
Copy link
Author

The class ".icons-blue-doc.blue-doc_hover" fails our Recess validation built into our CI. https://github.com/twitter/recess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment