Progress Indicator in TOC

This commit is contained in:
Nuno Coração
2023-01-14 23:05:10 +00:00
parent d569a0146e
commit 62dbfc51c5
8 changed files with 95 additions and 17 deletions

View File

@@ -684,6 +684,11 @@ select {
max-width: 65ch;
}
.prose :where(p):not(:where([class~="not-prose"] *)) {
margin-top: 1.25em;
margin-bottom: 1.25em;
}
.prose :where([class~="lead"]):not(:where([class~="not-prose"] *)) {
color: var(--tw-prose-lead);
font-size: 1.25em;
@@ -1051,11 +1056,6 @@ select {
line-height: 1.75;
}
.prose :where(p):not(:where([class~="not-prose"] *)) {
margin-top: 1.25em;
margin-bottom: 1.25em;
}
.prose :where(video):not(:where([class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
@@ -1175,6 +1175,17 @@ select {
display: none;
}
.prose :where(a.active):not(:where([class~="not-prose"] *)) {
text-decoration-color: rgba(var(--color-primary-600), 1);
text-decoration-line: underline;
text-decoration-thickness: 3px;
text-underline-offset: 4px;
}
.prose-invert :where(a.active):not(:where([class~="not-prose"] *)) {
text-decoration-color: rgba(var(--color-primary-400), 1);
}
.sr-only {
position: absolute;
width: 1px;
@@ -1433,10 +1444,6 @@ select {
margin-right: -0.5rem;
}
.mr-1 {
margin-right: 0.25rem;
}
.ml-auto {
margin-left: auto;
}
@@ -3426,6 +3433,10 @@ body:has(#menu-controller:checked) {
background-color: rgba(var(--color-neutral-700), 1);
}
.dark .dark\:prose-invert :where(a.active):not(:where([class~="not-prose"] *)) {
text-decoration-color: rgba(var(--color-primary-400), 1);
}
.dark .dark\:text-neutral-500 {
--tw-text-opacity: 1;
color: rgba(var(--color-neutral-500), var(--tw-text-opacity));