fela-plugin-fullscreen-prefixer

12.2.1 • Public • Published

fela-plugin-fullscreen-prefixer

npm version npm downloads Bundlephobia

Adds prefixes to :fullscreen pseudo class.

Installation

yarn add fela-plugin-fullscreen-prefixer

You may alternatively use npm i --save fela-plugin-fullscreen-prefixer.

Usage

Make sure to read the documentation on how to use plugins.

import { createRenderer } from 'fela'
import fullscreenPrefixer from 'fela-plugin-fullscreen-prefixer'

const renderer = createRenderer({
  plugins: [fullscreenPrefixer()],
})

Example

Input

{
  color: 'red',
  ':fullscreen': {
    color: 'green'
  }
}

Output

{
  color: 'red',
  ':-webkit-full-screen': {
    color: 'green',
  },
  ':-moz-full-screen': {
    color: 'green',
  },
  ':-ms-fullscreen': {
    color: 'green',
  },
  ':full-screen': {
    color: 'green',
  },
  ':fullscreen': {
    color: 'green',
  },
}

License

Fela is licensed under the MIT License.
Documentation is licensed under Creative Common License.
Created with by @robinweser and all the great contributors.

Package Sidebar

Install

npm i fela-plugin-fullscreen-prefixer

Weekly Downloads

1,037

Version

12.2.1

License

MIT

Unpacked Size

8.95 kB

Total Files

6

Last publish

Collaborators

  • rofrischmann