0.8.0 • Published 8 years ago

stylishly-at-rules v0.8.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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)',
    },
  },
}));
0.8.0

8 years ago

0.7.1

8 years ago

0.7.0

8 years ago

0.6.0

8 years ago