stylishly-at-rules
v0.8.0
Published
**Note:** This package requires `stylishly-nested` to work properly.
Downloads
5
Readme
stylishly-at-rules
Note: This package requires stylishly-nested
to work properly.
Media Queries
const styleSheet = createStyleSheet('Ocean', () => ({
'@media (min-width: 800px)': {
titanic: {
float: 'left',
},
},
}));
Nested Syntax
const styleSheet = createStyleSheet('Ocean', () => ({
titanic: {
'@media (min-width: 800px)': {
float: 'left',
},
},
}));
Keyframes
const styleSheet = createStyleSheet('Ocean', () => ({
titanic: {
animation: 'sink 9600s',
},
'@keyframes sink': {
'0%': {
transform: 'translateY(0)',
},
'100%': {
transform: 'translateY(-30000)',
},
},
}));