From b52d72b11345347c6edb523e5b6e1641a084af9d Mon Sep 17 00:00:00 2001 From: "louismaxime.piton" Date: Wed, 13 Nov 2024 16:34:18 +0100 Subject: [PATCH] Adapting documentation with `px` and right values. --- site/content/docs/0.0/content/reboot.md | 20 +++++++++----------- site/content/docs/0.0/utilities/text.md | 4 +--- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/site/content/docs/0.0/content/reboot.md b/site/content/docs/0.0/content/reboot.md index 671e49b2d9..2afdbeccb7 100644 --- a/site/content/docs/0.0/content/reboot.md +++ b/site/content/docs/0.0/content/reboot.md @@ -17,9 +17,9 @@ Reboot builds upon Normalize, providing many HTML elements with somewhat opinion Here are our guidelines and reasons for choosing what to override in Reboot: -- Update some browser default values to use `rem`s instead of `em`s for scalable component spacing. +- Update some browser default values to use `px`s instead of `em`s for scalable component spacing. - Avoid `margin-top`. Vertical margins can collapse, yielding unexpected results. More importantly though, a single direction of `margin` is a simpler mental model. -- For easier scaling across device sizes, block elements should use `rem`s for `margin`s. +- For easier scaling across device sizes, block elements should use `px`s for `margin`s. - Keep declarations of `font`-related properties to a minimum, using `inherit` whenever possible. ## CSS variables @@ -91,8 +91,7 @@ $font-family-sans-serif: ## Headings -// TODO LM -All heading elements—`

`—`

` have their `margin-top` removed, `margin-bottom: .5rem` set, and `line-height` tightened. While headings inherit their `color` by default, you can also override it via optional CSS variable, `--bs-heading-color`. +All heading elements—`

`—`

` have their `margin-top` removed, `margin-bottom: 16px` set, and `line-height` tightened. While headings inherit their `color` by default, you can also override it via optional CSS variable, `--bs-heading-color`. {{< bs-table "table" >}} | Heading | Example | @@ -107,7 +106,7 @@ All heading elements—`

`—`

` have their `margin-top` removed, `margin- ## Paragraphs -All `

` elements have their `margin-top` removed and `margin-bottom: 1rem` set for easy spacing. +All `

` elements have their `margin-top` removed and `margin-bottom: 16px` set for easy spacing. {{< example >}}

This is an example paragraph.

@@ -150,7 +149,7 @@ The `
` element has been simplified. Similar to browser defaults, `
`s are