Skip to content

Instantly share code, notes, and snippets.

@Inviz
Last active August 29, 2015 14:02
Show Gist options
  • Save Inviz/d3d72ccaa9cdb7587783 to your computer and use it in GitHub Desktop.
Save Inviz/d3d72ccaa9cdb7587783 to your computer and use it in GitHub Desktop.
@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