Skip to content

Instantly share code, notes, and snippets.

@ruby0x1
Created January 28, 2015 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruby0x1/a55f940b9492d9809ad0 to your computer and use it in GitHub Desktop.
Save ruby0x1/a55f940b9492d9809ad0 to your computer and use it in GitHub Desktop.
stay example
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