sanitize.css
Advanced tools
Comparing version 6.0.0 to 7.0.0
# Changes to sanitize.css | ||
### 7.0.0 (August 22, 2018) | ||
- Use the default user interface font in all browsers (opinionated). | ||
- Use the default monospace user interface font in all browsers (opinionated). | ||
- Use a 4-space tab width in all browsers (opinionated). | ||
- Fix correction of cursor style of increment and decrement buttons | ||
in Safari, not Chrome. | ||
- Correct the text style of placeholders in Chrome, Edge, and Safari. | ||
- Remove unnecessary form control margin normalizations in Firefox. | ||
- Remove opinionated fieldset padding in all browsers. | ||
- Remove `::-moz-focus-inner` and `:-moz-focusring` normalizations | ||
fixed in Firefox 53 | ||
https://bugzilla.mozilla.org/show_bug.cgi?id=140562 | ||
### 6.0.0 (June 24, 2018) | ||
@@ -4,0 +18,0 @@ |
{ | ||
"name": "sanitize.css", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"description": "A best-practices CSS foundation", | ||
@@ -24,3 +24,3 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
"devDependencies": { | ||
"stylelint": "^9.3.0", | ||
"stylelint": "^9.5.0", | ||
"stylelint-config-standard": "^18.2.0" | ||
@@ -27,0 +27,0 @@ }, |
@@ -6,4 +6,6 @@ # sanitize.css [<img src="https://csstools.github.io/sanitize.css/logo.svg" alt="sanitize" width="90" height="90" align="right">][sanitize.css] | ||
## Usage | ||
## How to get it | ||
**NPM** | ||
```sh | ||
@@ -17,2 +19,35 @@ npm install --save sanitize.css | ||
**CDN** | ||
see https://cdnjs.com/libraries/10up-sanitize.css | ||
### Usage in npm and webpack | ||
Import [sanitize.css] in CSS: | ||
```css | ||
@import '~sanitize.css'; | ||
``` | ||
Alternatively, import [sanitize.css] in JS: | ||
```js | ||
import 'sanitize.css'; | ||
``` | ||
In `webpack.config.js`, be sure to use the appropriate loaders: | ||
```js | ||
module.exports = { | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.css$/, | ||
use: [ 'style-loader', 'css-loader' ] | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
## What does it do? | ||
@@ -19,0 +54,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28257
455
245