Skip to content

Instantly share code, notes, and snippets.

@mikeyamadeo
Last active August 5, 2016 18:45
Show Gist options
  • Save mikeyamadeo/6c774e1548774f3478b3f782c28a8352 to your computer and use it in GitHub Desktop.
Save mikeyamadeo/6c774e1548774f3478b3f782c28a8352 to your computer and use it in GitHub Desktop.
/* App/style/css/settings */
:root {
—-clr-watermelon: #4FC1E9;
—-spacing-default: 12px;
}
@custom-media —-viewport-narrow (width >= 31.25em);
/**
* Example using settings in 'Generic' layer
*
* App/styles/css/generic
*/
@import 'settings';
dd, ol, ul {
margin-left: var(--spacing-default);
}
/**
* Arbitrary escape-hatch styling example
*
* App/components/SomeComponent/style.css
*/
@import ‘settings’;
.container > *:nth-child(3n + 1) {
padding: var( —-clr-watermelon)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment