-
-
Save tj/843434 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
header nav { | |
-webkit-box-shadow: 1px 1px 3px #555; | |
-moz-box-shadow: 1px 1px 3px #555; | |
box-shadow: 1px 1px 3px #555; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=shadow($color: hsla(0, 0%, 0%, 0.4)) | |
:-webkit-box-shadow 0px 0px 5px $color | |
:-moz-box-shadow 0px 0px 5px $color | |
:box-shadow 0px 0px 5px $color | |
html.ie8 &, html.ie7 &, html.ie6 & | |
:border solid 1px #ccc // fine, just border it with gray | |
// and then usable on any random element: | |
#portrait img | |
+shadow | |
header | |
nav | |
+shadow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
box-shadow() | |
-webkit-box-shadow arguments | |
-moz-box-shadow arguments | |
box-shadow arguments | |
header | |
nav | |
box-shadow 1px 1px 3px #555 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
feature request: the & selector http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#referencing_parent_selectors_
or a similar way to do the dynamic parenting. couldn't find a way to do it in stylus yet.