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:
@@ -166,58 +166,16 @@
|
||||
// @include heading-h6;
|
||||
}
|
||||
|
||||
|
||||
// ==========================================================================
|
||||
// Lists
|
||||
// ==========================================================================
|
||||
ul,
|
||||
ol {
|
||||
position: relative;
|
||||
margin: size-clamp('md') 0;
|
||||
|
||||
>li {
|
||||
padding-left: rem(30px);
|
||||
}
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
& + p,
|
||||
& + ul,
|
||||
& + ol,
|
||||
& + blockquote {
|
||||
margin-top: size-clamp('sm');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user