mirror of
https://github.com/nicolas-cusan/destyle.css.git
synced 2025-08-30 08:20:18 +02:00
update docs
This commit is contained in:
@@ -7,8 +7,8 @@ Opinionated [reset stylesheet](https://cssreset.com/what-is-a-css-reset/) that p
|
|||||||
## What it does
|
## What it does
|
||||||
|
|
||||||
- Ensures consistency across browsers (thanks normalize.css)
|
- Ensures consistency across browsers (thanks normalize.css)
|
||||||
- Removes spacing (margin & padding)
|
- Removes spacing (margin & padding) and resets font-size and line-height
|
||||||
- Resets font-size and line-height
|
- Sets some sensible defaults (see [rules](#rules))
|
||||||
- Prevents the necessity of reseting (most) user agent styles
|
- Prevents the necessity of reseting (most) user agent styles
|
||||||
- Prevents style inspector bloat by only targeting what is necessary
|
- Prevents style inspector bloat by only targeting what is necessary
|
||||||
- Contributes to the separation of presentation and semantics
|
- Contributes to the separation of presentation and semantics
|
||||||
@@ -158,6 +158,7 @@ How to create the styles is up to the author, it can be by creating classes, com
|
|||||||
## Rules
|
## Rules
|
||||||
|
|
||||||
- The box model is set to `border-box` for `*`, `::before` and `::after`.
|
- The box model is set to `border-box` for `*`, `::before` and `::after`.
|
||||||
|
- The `border-style` is set to `solid` for `*`, `::before` and `::after`, the `border-width` is set to 0 (to hide the borders).
|
||||||
- `code`, `pre`, `kbd`, `samp` maintain a monospaced font-family.
|
- `code`, `pre`, `kbd`, `samp` maintain a monospaced font-family.
|
||||||
- `hr` is set to be a solid 1px line using `border-top` that inherits its color from its parent's `color` property.
|
- `hr` is set to be a solid 1px line using `border-top` that inherits its color from its parent's `color` property.
|
||||||
- Inline elements that carry style (`b`, `i`, `strong`, etc.) are not reset.
|
- Inline elements that carry style (`b`, `i`, `strong`, etc.) are not reset.
|
||||||
|
Reference in New Issue
Block a user