Last active
August 29, 2015 14:02
-
-
Save Inviz/d3d72ccaa9cdb7587783 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
@h|50-[#something]-10-(.value:first)-20-(.probably-many)-| gap(10) outer-gap(15) | |
#something, .value:first, .probably-many { | |
// default gap | |
[gap] == 10 | |
// gap for specific element | |
&:matches(.value:first) { | |
[gap] == 20 | |
} | |
&:first { | |
left == 50 | |
} | |
&:last { | |
right == 15 | |
} | |
&:next { | |
left == ::previous[right] + ::previous[gap] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment