Skip to content

Commit

Permalink
Style ordered lists
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Aug 27, 2024
1 parent 627ca99 commit db29a9e
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions resources/css/_docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@
}
}

ul:not(:first-of-type), .content-list ul {
ul:not(:first-of-type),
.content-list ul,
ol {
counter-reset: ordered-list;
list-style-type: none;
margin: 0 0 2.5em 0; padding: 0;

Expand All @@ -126,17 +129,31 @@
code {
font-size: .875em;
}

&::before {
content: "";
position: absolute;
top: .40em; left: 0;
width: 9px; height: 10px;
background: url(/img/icons/ul_marker.min.svg) no-repeat center;
background-size: contain;
}
}
}

ul:not(:first-of-type) li::before,
.content-list ul li::before {
content: "";
position: absolute;
top: .40em;
left: 0;
width: 9px;
height: 10px;
background: url(/img/icons/ul_marker.min.svg) no-repeat center;
background-size: contain;
}

ol li::before {
font-variant-numeric: tabular-nums;
position: absolute;
top: 0;
left: 0;
counter-increment: ordered-list;
content: counter(ordered-list) ". ";
background-image: none;
color: #FF2D20;
}
}

.docs_main h1 + ul {
Expand Down

0 comments on commit db29a9e

Please sign in to comment.