]> git.plutz.net Git - shellwiki/commitdiff
css rules for showing section links
authorPaul Hänsch <paul@plutz.net>
Tue, 11 Nov 2025 04:49:43 +0000 (05:49 +0100)
committerPaul Hänsch <paul@plutz.net>
Tue, 11 Nov 2025 04:49:43 +0000 (05:49 +0100)
themes/default.css

index 4d70089037c841a7caa8ebb5d1da69134a148322..7212f2922bee877ccc45915bbfa2cd8c175df5e4 100644 (file)
@@ -50,6 +50,23 @@ footer .menu {
   display: inline-block;
 }
 
+article h1 > a.anchor, article h2 > a.anchor,
+article h3 > a.anchor, article h4 > a.anchor,
+article h5 > a.anchor, article h6 > a.anchor {
+  margin-left: .375em;
+  color: #DDF;
+}
+article h1:hover > a.anchor, article h2:hover > a.anchor,
+article h3:hover > a.anchor, article h4:hover > a.anchor,
+article h5:hover > a.anchor, article h6:hover > a.anchor {
+  color: #4AF;
+}
+article h1 > a.anchor:after, article h2 > a.anchor:after,
+article h3 > a.anchor:after, article h4 > a.anchor:after,
+article h5 > a.anchor:after, article h6 > a.anchor:after {
+  content: "#";
+}
+
 header .menu,
 footer .menu { list-style: none; }