diff --git a/.markdownlint.json b/.markdownlint.json index b5cd7e3d1d..6b09841cb0 100644 --- a/.markdownlint.json +++ b/.markdownlint.json @@ -1,6 +1,7 @@ { "default": true, "MD004": { "style": "dash" }, + "MD011": false, "MD013": false, "MD024": false, "MD025": false, @@ -14,4 +15,4 @@ "MD046": false, "line-length": false, "no-inline-html": false -} \ No newline at end of file +} diff --git a/site/data/sidebar.yml b/site/data/sidebar.yml index fcaffa4941..d8e732f5a4 100644 --- a/site/data/sidebar.yml +++ b/site/data/sidebar.yml @@ -117,27 +117,52 @@ icon_color: red pages: - title: API - - title: Aspect ratio - title: Background - title: Border - title: Border radius - title: Colors - - title: Display - - title: Flex - - title: Float - - title: Interactions - - title: Link - - title: Object fit - - title: Opacity - - title: Overflow - - title: Position - - title: Shadows - - title: Sizing - - title: Spacing - - title: Text - - title: Vertical align - - title: Visibility - - title: Z-index + - group: Layout + pages: + - title: Aspect ratio + - title: Display + - title: Float + - title: Object fit + - title: Overflow + - title: Position + - title: Visibility + - title: Z-index + - group: Flex & Grid + pages: + - title: Align content + - title: Align items + - title: Align self + - title: Flex + - title: Justify content + - title: Justify items + - title: Place items + - group: Sizing + pages: + - title: Width + - title: Height + - group: Spacing + pages: + - title: Margin + - title: Padding + - group: Type + pages: + - title: Font style + - title: Text alignment + - title: Text decoration + - title: Text wrapping + - title: Vertical align + - group: Interactions + pages: + - title: Pointer events + - title: User select + - group: Effects + pages: + - title: Opacity + - title: Shadows - title: Extend icon: tools diff --git a/site/src/components/DocsSidebar.astro b/site/src/components/DocsSidebar.astro index fb207fb2e9..ca28fb16f5 100644 --- a/site/src/components/DocsSidebar.astro +++ b/site/src/components/DocsSidebar.astro @@ -29,8 +29,50 @@ const sidebar = getData('sidebar') {group.title}
.align-content{breakpoint.abbr}-start
.align-content{breakpoint.abbr}-end
.align-content{breakpoint.abbr}-center
.align-content{breakpoint.abbr}-between
.align-content{breakpoint.abbr}-around
.align-content{breakpoint.abbr}-stretch
.align-items{breakpoint.abbr}-start
.align-items{breakpoint.abbr}-end
.align-items{breakpoint.abbr}-center
.align-items{breakpoint.abbr}-baseline
.align-items{breakpoint.abbr}-stretch
.align-self{breakpoint.abbr}-start
.align-self{breakpoint.abbr}-end
.align-self{breakpoint.abbr}-center
.align-self{breakpoint.abbr}-baseline
.align-self{breakpoint.abbr}-stretch
.flex{breakpoint.abbr}-row
.flex{breakpoint.abbr}-row-reverse
.flex{breakpoint.abbr}-column
.flex{breakpoint.abbr}-column-reverse
.justify-content{breakpoint.abbr}-start
.justify-content{breakpoint.abbr}-end
.justify-content{breakpoint.abbr}-center
.justify-content{breakpoint.abbr}-between
.justify-content{breakpoint.abbr}-around
.justify-content{breakpoint.abbr}-evenly
.align-items{breakpoint.abbr}-start
.align-items{breakpoint.abbr}-end
.align-items{breakpoint.abbr}-center
.align-items{breakpoint.abbr}-baseline
.align-items{breakpoint.abbr}-stretch
.align-self{breakpoint.abbr}-start
.align-self{breakpoint.abbr}-end
.align-self{breakpoint.abbr}-center
.align-self{breakpoint.abbr}-baseline
.align-self{breakpoint.abbr}-stretch
.flex{getData('breakpoints')[i].abbr}-row
.flex{getData('breakpoints')[i].abbr}-row-reverse
.flex{getData('breakpoints')[i].abbr}-column
.flex{getData('breakpoints')[i].abbr}-column-reverse
.flex{breakpoint.abbr}-{'{'}grow|shrink{'}'}-0
.flex{breakpoint.abbr}-{'{'}grow|shrink{'}'}-1
.flex{breakpoint.abbr}-grow-0
.flex{breakpoint.abbr}-grow-1
.flex{breakpoint.abbr}-shrink-0
.flex{breakpoint.abbr}-shrink-1
.order{breakpoint.abbr}-{value}
.order{breakpoint.abbr}-{value}
.align-content{breakpoint.abbr}-start
.align-content{breakpoint.abbr}-end
.align-content{breakpoint.abbr}-center
.align-content{breakpoint.abbr}-between
.align-content{breakpoint.abbr}-around
.align-content{breakpoint.abbr}-stretch
.justify-items{breakpoint.abbr}-start
.justify-items{breakpoint.abbr}-end
.justify-items{breakpoint.abbr}-center
.justify-items{breakpoint.abbr}-stretch
.place-items{breakpoint.abbr}-start
.place-items{breakpoint.abbr}-end
.place-items{breakpoint.abbr}-center
.place-items{breakpoint.abbr}-stretch
.fs-2 text
+.fs-3 text
+.fs-4 text
+.fs-5 text
+.fs-6 text
`} /> + +Customize your available `font-size`s by modifying the `$font-sizes` Sass map. + +## Font weight and italics + +Quickly change the `font-weight` or `font-style` of text with these utilities. `font-style` utilities are abbreviated as `.fst-*` and `font-weight` utilities are abbreviated as `.fw-*`. + +Bolder weight text (relative to the parent element).
+Semibold weight text.
+Medium weight text.
+Normal weight text.
+Light weight text.
+Lighter weight text (relative to the parent element).
+Italic text.
+Text with normal font style
`} /> + +## Line height + +Change the line height with `.lh-*` utilities. + +This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.
+This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.
+This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.
`} /> + +## Font family + +Change a selection to our monospace font stack with `.font-monospace`. + +.justify-content{breakpoint.abbr}-start
.justify-content{breakpoint.abbr}-end
.justify-content{breakpoint.abbr}-center
.justify-content{breakpoint.abbr}-between
.justify-content{breakpoint.abbr}-around
.justify-content{breakpoint.abbr}-evenly
.justify-items{breakpoint.abbr}-start
.justify-items{breakpoint.abbr}-end
.justify-items{breakpoint.abbr}-center
.justify-items{breakpoint.abbr}-stretch
.m{breakpoint.abbr}-0
through .m{breakpoint.abbr}-5
and .m{breakpoint.abbr}-auto
.p{breakpoint.abbr}-0
through .p{breakpoint.abbr}-5
.place-items{breakpoint.abbr}-start
.place-items{breakpoint.abbr}-end
.place-items{breakpoint.abbr}-center
.place-items{breakpoint.abbr}-stretch
This link can be clicked (this is default behavior).
+This link can not be clicked because the pointer-events
property is inherited from its parent. However, this link has a pe-auto
class and can be clicked.
Center aligned text on all viewport sizes.
+End aligned text on all viewport sizes.
+ +End aligned text on viewports sized SM (small) or wider.
+End aligned text on viewports sized MD (medium) or wider.
+End aligned text on viewports sized LG (large) or wider.
+End aligned text on viewports sized XL (extra large) or wider.
+End aligned text on viewports sized XXL (extra extra large) or wider.
`} /> + +.text{breakpoint.abbr}-start
.text{breakpoint.abbr}-center
.text{breakpoint.abbr}-end
This text has a line going through it.
+This link has its text decoration removed`} /> + +## Text transform + +Transform text in components with our text capitalization classes: `text-lowercase`, `text-uppercase` or `text-capitalize`. + +Uppercased text.
+CapiTaliZed text.
`} /> + +Note how `.text-capitalize` only changes the first letter of each word, leaving the case of any other letters unaffected. + +## Reset color + +Reset a text or link's color with `.text-reset`, so that it inherits the color from its parent. + +This paragraph has default select behavior.
+This paragraph will not be selectable when clicked by the user.
`} /> + +## Use cases + +- **`.user-select-all`** - Useful for code snippets, IDs, or other content users might want to copy entirely +- **`.user-select-auto`** - Default browser behavior, allows normal text selection +- **`.user-select-none`** - Prevents text selection, useful for UI elements, buttons, or decorative text + +