docs: fix spacing between same-level sections and h4 and link colors (#8443)

This commit is contained in:
Richard Gazdik
2025-06-26 20:38:15 +02:00
committed by GitHub
parent ef4aa469bf
commit 539357a673
+16 -6
View File
@@ -136,7 +136,8 @@ body {
h1,
h2,
h3 {
h3,
h4 {
transition: background-color 0.15s ease-in-out;
color: var(--color-text-base);
font-weight: 800;
@@ -156,17 +157,25 @@ h3 {
font-size: 20px;
}
h4 {
font-size: 16px;
}
a {
text-underline-position: under;
}
hr {
border: none;
border-top: 1px solid var(--color-border-secondary);
border-top: 1px solid var(--color-border-primary);
margin: 2rem 0;
max-width: 30rem;
}
.lv-example-container + hr {
max-width: none;
}
a:visited {
color: var(--color-link-visited);
text-decoration-color: var(--color-link-visited);
@@ -183,15 +192,15 @@ a:visited:hover {
}
}
section:has(h2):not(:first-child) {
section:has(> h2):not(:first-child) {
margin-top: 4rem;
}
section:has(h3):not(:first-child) {
section:has(> h3):not(:first-child) {
margin-top: 3rem;
}
section:has(h4):not(:first-child) {
section:has(> h4):not(:first-child) {
margin-top: 2rem;
}
@@ -333,10 +342,11 @@ span.pre:first-child {
.content .reference {
transition: color 0.15s ease-in-out;
font-weight: 600;
}
.content a {
color: var(--color-accent);
font-weight: 500;
transition: color 0.15s ease-in-out;
}