Created
January 28, 2015 19:13
-
-
Save ruby0x1/a55f940b9492d9809ad0 to your computer and use it in GitHub Desktop.
stay example
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
base width will expand, | |
because of the last rule, | |
and not clamp to 100 from the second | |
:base { | |
left: >= 100; | |
width: >= 100; | |
right: screen.right; | |
} | |
to keep the width the same, | |
and pin the right edge only, | |
add a stay on the width value. | |
that will hold it from being constrained by the subsequent lines | |
:base { | |
left: >= 100; | |
width: >= 100; | |
stay: width; | |
right: screen.right; | |
} | |
examples taken from http://gridstylesheets.org/guides/ccss/#stays |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment