Skip to content

Commit

Permalink
Update list.overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Nov 27, 2024
1 parent bb2dce3 commit 24ac44c
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions assets/less/site/elements/list.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,34 @@
***********************************************/

@orderedCountName: ordered;
@orderedCountContent: counters(ordered, ".");
@orderedCountDistance: 1.25rem;
@orderedCountContent: counters(ordered) ". ");
@orderedCountColor: @textColor;
@orderedCountDistance: 1.5rem;
@orderedCountOpacity: 0.8;
@orderedCountTextAlign: left;
@orderedCountVerticalAlign: middle;

ol.details-list {
li {
li.item {
padding-left: 0 !important;
line-height: 20px !important;

&:not(:last-child) {
margin-bottom: 0.25rem !important;
}
}
li.item:before {
position: absolute;
top: auto;
left: auto;
user-select: none;
pointer-events: none;
margin-left: -(@orderedCountDistance) !important;
counter-increment: @orderedCountName !important;
content: @orderedCountContent !important;
text-align: @orderedCountTextAlign important;
color: @orderedCountColor !important;
vertical-align: @orderedCountVerticalAlign !important;
opacity: @orderedCountOpacity !important;
}
}
ol.details-list li.item:before {
margin-left: -(@orderedCountDistance) !important;
counter-increment: @orderedCountName !important;
content: @orderedCountContent !important;
}

0 comments on commit 24ac44c

Please sign in to comment.