CSS tweaks

This commit is contained in:
りき萌 2025-09-15 23:22:06 +02:00
parent 51e3c0cda3
commit e4e21fe7e0
2 changed files with 125 additions and 8 deletions

View file

@ -376,6 +376,39 @@ a.secret {
text-decoration: none;
}
/* Links to headings should be invisible by default, only appearing on hover. */
h1,
h2,
h3,
h4,
h5,
h6 {
& > a,
& > a:visited {
color: var(--text-color);
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
@media (hover: none) {
h1,
h2,
h3,
h4,
h5,
h6 {
& > a,
& > a:visited {
text-decoration: underline;
}
}
}
/* Make blockquotes a bit prettier */
blockquote {
@ -718,8 +751,6 @@ h1.page-title {
text-decoration: underline;
text-decoration-color: transparent;
transition: var(--transition-duration) text-decoration-color;
&:hover {
text-decoration-color: var(--text-color);
}