2.0.6 • Published 6 years ago
preset-style v2.0.6
preset-style
Preset web application styles.
Installation
Using npm:
npm install preset-style --saveUsing yarn:
yarn add preset-styleFeatures
Reset browser styles:
- Reset Elements
paddingandmargin - Remove inputs element
outlineandborder - Remove tag
alink element default color and decoration style - Replace autofill input shadow styles
- Remove tag
imgborder
Common style snippets:
- Clear floor
.clear-fix - Overflow ellipsis
.overflow-ellipsis - iOS X safe container
.safe-area Mobile phone balance scroll container
.scroller
Some compatibility snippets:
- 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'