Enhance CSS link styles and refactor variable names in site.hs for clarity

This commit is contained in:
2026-04-09 00:23:01 +08:00
parent f592483e69
commit e4689268f2
2 changed files with 45 additions and 33 deletions

View File

@@ -4,6 +4,8 @@
--color-tag2: darkolivegreen;
--color-bg: white;
--color-notice: #fb4f4f;
--color-link: #0645ad;
--color-link-visited: #551a8b;
}
html {
@@ -25,9 +27,18 @@ body {
}
body a {
color: var(--color-link);
text-decoration: none;
}
body a:visited {
color: var(--color-link-visited);
}
body a[href^="#"]:visited {
color: var(--color-link);
}
body a:hover {
text-decoration: underline;
}
@@ -321,18 +332,18 @@ code {
margin-bottom: 0.5em;
padding-left: 1em;
line-height: 1.2;
list-style-type: decimal;
margin-left: 0
}
div#contents-big ul ul {
list-style-type: none;
margin-left: 0
}
div#contents-big li+li {
margin-top: 0.5em
}
div#contents-big .toc-section-number {
margin-right: 0.2em;
}
div#contents-big {
font-size: 80%;
padding-top: 0;