Skip to content

Commit 712cf95

Browse files
committed
Define table of contents styles with Tailwind
1 parent 92c4d11 commit 712cf95

File tree

6 files changed

+27
-42
lines changed

6 files changed

+27
-42
lines changed

_media/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/hydefront/dist/hyde.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/hydefront/dist/hyde.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/hydefront/sass/docs/table-of-contents.scss

Lines changed: 0 additions & 38 deletions
This file was deleted.

packages/hydefront/sass/hyde-docs.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44

55
@use 'docs/search';
6-
@use 'docs/table-of-contents';
76
@use 'docs/heading-permalinks';
87

98
html {

resources/assets/app.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,27 @@
1616
@tailwind base;
1717
@tailwind components;
1818
@tailwind utilities;
19+
20+
.table-of-contents {
21+
@apply pb-3;
22+
}
23+
24+
.table-of-contents > li {
25+
@apply my-[0.35rem];
26+
}
27+
28+
.table-of-contents ul {
29+
@apply pl-2;
30+
}
31+
32+
.table-of-contents a {
33+
@apply block -ml-8 pl-8 opacity-80 hover:opacity-100 hover:bg-gray-200/20 transition-all duration-300 relative;
34+
}
35+
36+
.table-of-contents a::before {
37+
@apply content-['#'] text-[75%] opacity-50 mr-1 transition-opacity duration-300;
38+
}
39+
40+
.table-of-contents a:hover::before {
41+
@apply opacity-100;
42+
}

0 commit comments

Comments
 (0)