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

Reset default browser styles for ul and ol

This commit is contained in:
Lucas Bigot
2024-03-27 21:04:45 -04:00
parent a6016cfe57
commit 67dd991e97

View File

@@ -166,58 +166,16 @@
// @include heading-h6; // @include heading-h6;
} }
// ========================================================================== // ==========================================================================
// Lists // Lists
// ========================================================================== // ==========================================================================
ul, ul,
ol { ol {
position: relative; & + p,
margin: size-clamp('md') 0; & + ul,
& + ol,
>li { & + blockquote {
padding-left: rem(30px); margin-top: size-clamp('sm');
}
}
ul {
& > li {
position: relative;
& + li {
margin-top: 0;
}
&::before {
content: "";
position: absolute;
left: 0;
top: 9px;
width: 8px;
height: 8px;
background-color: currentColor;
border-radius: 100%;
}
}
}
ol {
counter-reset: counter;
& > li {
counter-increment: counter;
position: relative;
& + li {
margin-top: 0;
}
&::before {
position: absolute;
left: 0;
content: counter(counter);
}
} }
} }