diff --git a/.changeset/docs-class-reference-table.md b/.changeset/docs-class-reference-table.md new file mode 100644 index 000000000..198431a74 --- /dev/null +++ b/.changeset/docs-class-reference-table.md @@ -0,0 +1,5 @@ +--- +"@tabler/docs": patch +--- + +Updated the class reference table in the docs to use the bordered `.docs-table` box. diff --git a/docs/components/DocsClassnames.astro b/docs/components/DocsClassnames.astro index 42e2fa6be..8363950d4 100644 --- a/docs/components/DocsClassnames.astro +++ b/docs/components/DocsClassnames.astro @@ -46,26 +46,28 @@ const groups = Object.entries(classnames).sort(([a], [b]) => (groupOrder.indexOf

Every class this component ships, grouped by what it changes. A name in braces stands for a family — {'{color}'} is any base color, {'{breakpoint}'} any responsive step.

- - - { - groups.map(([group, entries]) => - entries.map((entry) => ( - - - - - - )), - ) - } - -
- {entry.class} - - - - {entry.desc} - {entry.default && } -
+
+ + + { + groups.map(([group, entries]) => + entries.map((entry) => ( + + + + + + )), + ) + } + +
+ {entry.class} + + + + {entry.desc} + {entry.default && } +
+
diff --git a/docs/scss/docs.scss b/docs/scss/docs.scss index 5f7bad1ef..da207d4c4 100644 --- a/docs/scss/docs.scss +++ b/docs/scss/docs.scss @@ -366,7 +366,9 @@ header > .navbar { border-inline-end: 0; } - thead tr:first-child > * { + // First row of the table, whether it sits in a thead or, as in the + // class reference, straight in the tbody. + > table > :first-child > tr:first-child > * { border-top: 0; }