Skip to content

Commit

Permalink
update hash (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arhell authored Jan 29, 2025
1 parent 6acdc4d commit 99ae9e8
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions src/styles/headings.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,34 @@
/* Style the Markdown heading links. */
.sl-markdown-content :is(h1, h2, h3, h4, h5, h6) > a {
color: var(--sl-color-white);
text-decoration: none;
position: relative;

&:hover {
text-decoration: underline;
&:before,
&:after {
opacity: 1;
}
}

&:before {
content: "#";
opacity: 0;
position: absolute;
left: -2rem;
padding-right: 2rem;
}

@media screen and (max-width: 1475px) {
&:before {
display: none;
}

&:after {
content: "#";
opacity: 0;
position: absolute;
padding-left: 2rem;
right: -2rem;
}
}
}

0 comments on commit 99ae9e8

Please sign in to comment.