diff --git a/_docs/ui-components/code.md b/_docs/ui-components/code.md index 2355f3c..3d42f16 100644 --- a/_docs/ui-components/code.md +++ b/_docs/ui-components/code.md @@ -4,10 +4,6 @@ parent: UI Components order_n: 6 --- -{: .no_toc } - - - 1. TOC {:toc} diff --git a/_docs/ui-components/typography.md b/_docs/ui-components/typography.md index 99eb291..f489ffc 100644 --- a/_docs/ui-components/typography.md +++ b/_docs/ui-components/typography.md @@ -1,6 +1,7 @@ --- title: Typography parent: UI Components +has_children: true order_n: 1 --- diff --git a/_docs/utilities/typography.md b/_docs/utilities/typography.md index 3201c77..e7976bd 100644 --- a/_docs/utilities/typography.md +++ b/_docs/utilities/typography.md @@ -110,6 +110,8 @@ Use the `lh-` classes to explicitly apply line height to text. | `.lh-tight` | 1.1 | Default for headings | | `.lh-default` | 1.4 | Default for body (paragraphs) | +## code example +
No Line height No Line height diff --git a/_docs/utilities/typography/font.md b/_docs/utilities/typography/font.md new file mode 100644 index 0000000..23d74a3 --- /dev/null +++ b/_docs/utilities/typography/font.md @@ -0,0 +1,73 @@ +--- +title: Fonts +parent: Typography +grand_parent: UI Components +order_n: 1 +--- + + +1. TOC +{:toc} + +--- + +## Font stack + +By default, Just the Docs uses a native system font stack for sans-serif fonts: + +```scss +-apple-system, BlinkMacSystemFont, "helvetica neue", helvetica, roboto, noto, "segoe ui", arial, sans-serif +``` + +ABCDEFGHIJKLMNOPQRSTUVWXYZ +abcdefghijklmnopqrstuvwxyz +{: .fs-5 .ls-10 .code-example } + +For monospace type, like code snippets or the `
` element, Just the Docs uses a native system font stack for monospace fonts:
+
+```scss
+"SFMono-Regular", Menlo, Consolas, Monospace
+```
+
+ABCDEFGHIJKLMNOPQRSTUVWXYZ
+abcdefghijklmnopqrstuvwxyz
+{: .fs-5 .ls-10 .text-mono .code-example }
+
+---
+
+## Responsive type scale
+
+Just the Docs uses a responsive type scale that shifts depending on the viewport size.
+
+| Selector              | Small screen size `font-size`    | Large screen size `font-size` |
+|:----------------------|:---------------------------------|:------------------------------|
+| `h1`, `.text-alpha`   | 32px                             | 36px                          |
+| `h2`, `.text-beta`    | 18px                             | 24px                          |
+| `h3`, `.text-gamma`   | 16px                             | 18px                          |
+| `h4`, `.text-delta`   | 14px                             | 16px                          |
+| `h5`, `.text-epsilon` | 16px                             | 18px                          |
+| `h6`, `.text-zeta`    | 18px                             | 24px                          |
+| `body`                | 14px                             | 16px                          |
+
+---
+
+## Headings
+
+Headings are rendered like this:
+
+
+

Heading 1

+

Heading 2

+

Heading 3

+

Heading 4

+
Heading 5
+
Heading 6
+
+```markdown +# Heading 1 +## Heading 2 +### Heading 3 +#### Heading 4 +##### Heading 5 +###### Heading 6 +``` \ No newline at end of file diff --git a/_docs/utilities/typography/text.md b/_docs/utilities/typography/text.md new file mode 100644 index 0000000..96575ec --- /dev/null +++ b/_docs/utilities/typography/text.md @@ -0,0 +1,71 @@ +--- +title: Text +parent: Typography +grand_parent: UI Components +order_n: 2 +--- + + +1. TOC +{:toc} + +--- + + +## Headings + +Headings are rendered like this: + +
+

Heading 1

+

Heading 2

+

Heading 3

+

Heading 4

+
Heading 5
+
Heading 6
+
+```markdown +# Heading 1 +## Heading 2 +### Heading 3 +#### Heading 4 +##### Heading 5 +###### Heading 6 +``` + +--- + +## Body text + +Default body text is rendered like this: + +
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +
+```markdown +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +``` + +--- + +## Inline elements + +
+Text can be **bold**, _italic_, or ~~strikethrough~~. + +[Link to another page](another-page). +
+ +```markdown +Text can be **bold**, _italic_, or ~~strikethrough~~. + +[Link to another page](another-page). +``` + +--- + +## Typographic Utilities + +There are a number of specific typographic CSS classes that allow you to override default styling for font size, font weight, line height, and capitalization. + + diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 8066bb6..b023c37 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -3,20 +3,36 @@

Sections

diff --git a/_sass/custom.scss b/_sass/custom.scss index b0f7ea7..af6a7aa 100644 --- a/_sass/custom.scss +++ b/_sass/custom.scss @@ -99,9 +99,6 @@ li { border-bottom: 2px solid $brand-color; } } - .hidden { - display: none; - } } } @@ -269,6 +266,13 @@ li { .hidden { display: none; } +.rot45 { + transform: rotate(45deg); + -webkit-transform: rotate(45deg); + -moz-transform: rotate(45deg); + -ms-transform: rotate(45deg); + -o-transform: rotate(45deg); +} .site-footer { margin-top: 30px; } @@ -309,6 +313,11 @@ li { .sidebar_left { grid-area: bottom; padding: 20px; + .toggle_sub { + display: inline-block; + cursor: pointer; + color: $brand-color; + } nav { top: 180px; position: sticky; diff --git a/_sass/minima/_base.scss b/_sass/minima/_base.scss index 7f3cc0a..af21953 100644 --- a/_sass/minima/_base.scss +++ b/_sass/minima/_base.scss @@ -232,7 +232,6 @@ table { margin-bottom: $spacing-unit; width: 100%; text-align: $table-text-align; - color: lighten($text-color, 18%); border-collapse: collapse; border: 1px solid $grey-color-light; tr { diff --git a/assets/js/common.js b/assets/js/common.js index 64d84d9..23af6bb 100644 --- a/assets/js/common.js +++ b/assets/js/common.js @@ -15,6 +15,7 @@ function toggle_menu() { nav.classList.remove('hidden'); } } + $(".tag_filter").click(function () { const filter = '.' + $(this).attr('data-tag'); if (filter == '.all') { @@ -26,4 +27,9 @@ $(".tag_filter").click(function () { }; $(".tag_filter").removeClass("active"); $(this).addClass('active'); +}); + +$(".toggle_sub").click(function () { + $(this).toggleClass('rot45'); + $(this).next('ul').toggleClass('hidden'); }); \ No newline at end of file