Skip to content

Commit

Permalink
Define table of contents styles with Tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Nov 15, 2024
1 parent 92c4d11 commit 712cf95
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 42 deletions.
2 changes: 1 addition & 1 deletion _media/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/hydefront/dist/hyde.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/hydefront/dist/hyde.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 0 additions & 38 deletions packages/hydefront/sass/docs/table-of-contents.scss

This file was deleted.

1 change: 0 additions & 1 deletion packages/hydefront/sass/hyde-docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/

@use 'docs/search';
@use 'docs/table-of-contents';
@use 'docs/heading-permalinks';

html {
Expand Down
24 changes: 24 additions & 0 deletions resources/assets/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,27 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

.table-of-contents {
@apply pb-3;
}

.table-of-contents > li {
@apply my-[0.35rem];
}

.table-of-contents ul {
@apply pl-2;
}

.table-of-contents a {
@apply block -ml-8 pl-8 opacity-80 hover:opacity-100 hover:bg-gray-200/20 transition-all duration-300 relative;
}

.table-of-contents a::before {
@apply content-['#'] text-[75%] opacity-50 mr-1 transition-opacity duration-300;
}

.table-of-contents a:hover::before {
@apply opacity-100;
}

0 comments on commit 712cf95

Please sign in to comment.