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;
|
// @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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user