this repo has no description

fix: better list counters

Changed files
+17 -1
sass
templates
+16 -1
sass/_main.scss
···
}
.zola-anchor {
-
font-size: 1.5rem;
+
font-size: .75em;
visibility: hidden;
margin-left: 0.5rem;
vertical-align: 1%;
text-decoration: none;
border-bottom-color: transparent;
cursor: pointer;
+
color: var(--accent);
@media (hover: none){
visibility: visible;
···
background: var(--border-color);
height: 1px;
}
+
+
ol {
+
counter-reset: li;
+
list-style: none;
+
+
li {
+
counter-increment: li;
+
+
// Todo change it to ::marker when Safari will support it
+
&::before {
+
content: counters(li, ".") ". ";
+
}
+
}
+
}
+1
templates/anchor-link.html
···
+
<a class="zola-anchor" href="#{{ id }}" aria-label="Anchor link for: {{ id }}">#</a>