diff --git a/docs/source/_assets/less/markdown.less b/docs/source/_assets/less/markdown.less index 0bca0d5e7..212a809d6 100644 --- a/docs/source/_assets/less/markdown.less +++ b/docs/source/_assets/less/markdown.less @@ -6,7 +6,7 @@ .border-b; .subnav-link { - .mr-4; + .mr-6; .leading-none; .text-dark-soft; .text-sm; @@ -17,7 +17,7 @@ .text-primary; } - code.inline { + p code { .border; .rounded; .text-sm; @@ -44,11 +44,19 @@ h2 { .mt-16; .mb-8; + .text-primary; .leading-none; - .text-dark-softer; .text-thin; .text-xl; - .text-primary; + } + + h3 { + .mt-16; + .mb-8; + .text-dark; + .leading-none; + .text-medium; + .text-lg; } p { diff --git a/docs/source/borders.md b/docs/source/borders.md index 1507b7f4a..b7667f9f5 100644 --- a/docs/source/borders.md +++ b/docs/source/borders.md @@ -15,11 +15,9 @@ title: "Borders"

Sizes

-Construct border size utilities using the .border{-side?}{-width?} syntax. For example, .border would add a 1px border to all sides of the element, where .border-b-4 would add a 4px border to the bottom of the element. +Construct border size utilities using the `.border{-side?}{-width?}` syntax. For example, `.border` would add a `1px` border to all sides of the element, where `.border-b-4` would add a `4px` border to the bottom of the element. By default, borders are `solid`, and use the `@default-border-color`. -By default, borders are solid, and use the @default-border-color. - -
+
Class
border
@@ -34,6 +32,7 @@ By default, borders are solid, and use the
Width (optional)
+
0 0px
  1px
2 2px
4 4px
@@ -41,9 +40,46 @@ By default, borders are solid, and use the
+### Border size examples + +```html + +
+ + +
+ + +
+``` + +```less +// Using the border size utilities in Less +div { + .border; + .border-t; + .border-t-2; +} +``` + +### Customizing border sizes + +You can easily customize the border size utilities using the `@border-width-scale` variable. Please note that the entire scale must be redefined. It's not possible to add a new value to the existing scale. + +```less +// The default border width scale +@border-width-scale: + '0' 0, + default 1px, + '2' 2px, + '4' 4px, + '8' 8px, +; +``` +

Colors

-By default, borders use the @default-border-color. To override a border color, add one of the border color utilities. +By default, borders use the `@default-border-color`. To override a border color, add one of the border color utilities. ```html
@@ -88,7 +124,7 @@ The default border colors can also be modified using the following variables.

Styles

-By default borders styles are set to solid. This be modified using the border style utilities. +By default borders styles are set to `solid`. This be modified using the border style utilities. ```html
@@ -104,7 +140,7 @@ div {

Radius

-To apply a border-radius to an element, using the rounded utilities. +To apply a `border-radius` to an element, using the rounded utilities. ```less div { diff --git a/docs/source/constrain.md b/docs/source/constrain.md index 6d6baee11..56111d864 100644 --- a/docs/source/constrain.md +++ b/docs/source/constrain.md @@ -5,7 +5,7 @@ title: "Constrain" # Constrain -The constrain utilities are simply max-width helpers designed to constrain content to a desired width. +The constrain utilities are simply `max-width` helpers designed to constrain content to a desired width. ```html diff --git a/docs/source/display.md b/docs/source/display.md index 8f843f36a..6787b54e1 100644 --- a/docs/source/display.md +++ b/docs/source/display.md @@ -7,7 +7,7 @@ title: "Display" > If you're looking for flexbox utilities, see the [flexbox](/flexbox) page. -The display utilities simply display property helpers. +The display utilities simply `display` property helpers. ```html diff --git a/docs/source/position.md b/docs/source/position.md index d09b65fe8..22c9ed93d 100644 --- a/docs/source/position.md +++ b/docs/source/position.md @@ -5,7 +5,7 @@ title: "Position" # Position -The position utilities are primarily position property helpers. +The position utilities are primarily `position` property helpers. ```html @@ -27,7 +27,7 @@ div { ## Pinning absolute content -Tailwind also provides pin utilties, useful for "pinning" absolutely positioned elements using the top, right, bottom and left properties. +Tailwind also provides pin utilties, useful for "pinning" absolutely positioned elements using the `top`, `right`, `bottom` and `left` properties. ```html diff --git a/docs/source/spacing.md b/docs/source/spacing.md index 300fcc9e0..bc97f48f1 100644 --- a/docs/source/spacing.md +++ b/docs/source/spacing.md @@ -5,7 +5,7 @@ title: "Spacing" # Spacing -The syntax below is combined to create a system for padding and margins. For example, .pt-2 would add padding to the top of the element to the value of 0.5rem and .mx-0 would make the horizontal margin zero. +The syntax below is combined to create a system for padding and margins. For example, `.pt-2` would add padding to the top of the element to the value of `0.5rem` and `.mx-0` would make the horizontal margin zero.