summaryrefslogtreecommitdiff
path: root/assets/static/css
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--assets/static/css/style.css27
1 files changed, 27 insertions, 0 deletions
diff --git a/assets/static/css/style.css b/assets/static/css/style.css
index beb9cc3..c210a9b 100644
--- a/assets/static/css/style.css
+++ b/assets/static/css/style.css
@@ -653,6 +653,33 @@ article {
color: var(--green);
}
+ /* --- Heading permalinks --- */
+ & :is(h2, h3, h4, h5, h6)[id] {
+ & > a[aria-label="Permalink"] {
+ color: var(--dim-foreground);
+ font-size: 0.75em;
+ opacity: 0;
+ text-decoration: none;
+ vertical-align: center;
+
+ &:hover,
+ &:focus-visible {
+ color: var(--blue);
+ }
+ }
+
+ &:hover > a[aria-label="Permalink"],
+ &:focus-within > a[aria-label="Permalink"] {
+ opacity: 1;
+ }
+
+ @media (hover: none) {
+ & > a[aria-label="Permalink"] {
+ opacity: 1;
+ }
+ }
+ }
+
& blockquote {
font-style: italic;
border-left: 2px solid var(--blue);