diff --git a/docs/source/_assets/less/markdown.less b/docs/source/_assets/less/markdown.less index b40f67492..79fdc7970 100644 --- a/docs/source/_assets/less/markdown.less +++ b/docs/source/_assets/less/markdown.less @@ -1,4 +1,18 @@ .markdown { + .subnav { + .flex; + .mt-5; + .pb-2; + .border-b; + + .subnav-link { + .mr-4; + .leading-none; + .text-dark-soft; + .text-sm; + } + } + a { .text-primary; } @@ -8,6 +22,7 @@ .rounded; .text-sm; .px-1; + .text-no-wrap; color: #DD4A68; } @@ -40,5 +55,4 @@ .mt-6; .mb-3; } - } diff --git a/docs/source/borders.md b/docs/source/borders.md index 545fbdb54..57dee136f 100644 --- a/docs/source/borders.md +++ b/docs/source/borders.md @@ -4,3 +4,146 @@ title: "Borders" --- # Borders + +
+ +.border-side-width syntax. For example, .border would add a 1px border to the element, where .border-b-3 would add a 4px bottom border to the element. Note that that the default border style is solid, and will get the @border-default-color applied.
+
+border Allt Topr Rightb Bottoml Left 1px2 2px3 4px4 8px@border-default-color. However, these can be modified using the border color utilities.
+
+```html
+
+
+
+
+
+
+
+
+
+```
+
+```less
+div {
+ .border-dark;
+ .border-dark-soft;
+ .border-dark-softer;
+
+ .border-light;
+ .border-light-soft;
+ .border-light-softer;
+
+ .border-invisible;
+}
+```
+
+The default border colors can also be modified using the following variables.
+
+```less
+// Variable: Default:
+@border-dark: hsl(0, 0%, 82%);
+@border-dark-soft: hsl(0, 0%, 90%);
+@border-dark-softer: hsl(0, 0%, 96%);
+
+@border-light: hsl(0, 0%, 100%);
+@border-light-soft: hsl(0, 0%, 60%);
+@border-light-softer: hsl(0, 0%, 35%);
+
+@border-default-color: @border-dark-soft;
+```
+
+solid. This be modified using the border style utilities.
+
+```html
+
+
+```
+
+```less
+div {
+ .border-dashed;
+ .border-dotted;
+}
+```
+
+border-radius to an element, using the rounded utilities.
+
+```less
+div {
+ .rounded-sm;
+ .rounded-t-sm;
+ .rounded-r-sm;
+ .rounded-b-sm;
+ .rounded-l-sm;
+ .rounded;
+ .rounded-t;
+ .rounded-r;
+ .rounded-b;
+ .rounded-l;
+ .rounded-lg;
+ .rounded-t-lg;
+ .rounded-r-lg;
+ .rounded-b-lg;
+ .rounded-l-lg;
+ .pill;
+}
+```
+
+