Last active
August 29, 2015 14:02
-
-
Save Inviz/06eb9f637a65eb400151 to your computer and use it in GitHub Desktop.
Floats.gss
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
/* | |
div picture { | |
float: left; | |
clear: left; | |
} | |
*/ | |
div picture { | |
&:next { | |
@if ::this[width] + ::scope[right] < ::parent[width] | |
left: ::scope[right] | |
@else | |
top: max((& !~ *)[bottom]) | |
} | |
} | |
/* | |
column-count: 3; | |
*/ | |
div picture:nth-child(3n) { | |
&:next { | |
top: ::scope[bottom] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment