2.0.6 • Published 4 years ago

preset-style v2.0.6

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
4 years ago

preset-style

npm version npm version npm bundle size gitHub-last-commit license

Preset web application styles.

Installation

Using npm:

npm install preset-style --save

Using yarn:

yarn add preset-style

Features

Reset browser styles:

  1. Reset Elements padding and margin
  2. Remove inputs element outline and border
  3. Remove tag a link element default color and decoration style
  4. Replace autofill input shadow styles
  5. Remove tag img border

Common style snippets:

  1. Clear floor .clear-fix
  2. Overflow ellipsis .overflow-ellipsis
  3. iOS X safe container .safe-area
  4. Mobile phone balance scroll container .scroller

Some compatibility snippets:

  1. Adapter style for MAC OS dark theme

Example Usage

Using in css, less and sass:

@import('preset-style/dist/index.css');

Using in js:

import 'preset-style/dist/index.css'
2.0.6

4 years ago

2.0.5

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.4

4 years ago

2.0.0-alpha.0

4 years ago

2.0.0

4 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago