stylishly-at-rules

0.8.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i stylishly-at-rules

Weekly Downloads

2

Version

0.8.0

License

MIT

Last publish

Collaborators

  • nmarks