Created
August 6, 2013 15:26
-
-
Save jakelear/6165494 to your computer and use it in GitHub Desktop.
Example of nasty deep nesting from original Polygon styles.
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
#nav_social { | |
float: right; | |
margin-right: 50px; | |
& > ul { | |
position: relative; | |
border: none; | |
& > li { | |
display: inline-block; | |
padding: 0 10px; | |
font-size: 16px; | |
&.fb { | |
.fb-like span, .fb-like iframe { | |
min-height: 20px; | |
min-width: 74px; | |
} | |
& > a { | |
&:before { | |
background: url(/images/polygon/sprites/icons.png) no-repeat -7px -108px; | |
content: ""; | |
display: inline-block; | |
width: 22px; | |
height: 36px; | |
position: relative; | |
top: 10px; | |
@media | |
only screen and (-webkit-min-device-pixel-ratio: 2), | |
only screen and ( min--moz-device-pixel-ratio: 2), | |
only screen and ( -o-min-device-pixel-ratio: 2/1) { | |
background-image: url(/images/polygon/sprites/icons@2x.png); | |
background-size: 108px 1043px; | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment