1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00

Reset custom list markers

This commit is contained in:
Lucas Bigot
2024-03-28 11:00:07 -04:00
parent ebbb20d0e3
commit 92ba51bef1

View File

@@ -67,6 +67,42 @@
// ==========================================================================
ul,
ol {
list-style: none;
padding-left: 0;
> li {
position: relative;
padding-left: 1.5em;
}
}
ul {
> li {
&::before {
content: "";
position: absolute;
left: 0;
top: calc(50% - 3px);
width: 6px;
height: 6px;
background-color: currentColor;
border-radius: 50%;
}
}
}
ol {
counter-reset: counter;
> li {
counter-increment: counter;
&::before {
content: counter(counter);
position: absolute;
left: 0;
}
}
}
// ==========================================================================