mirror of
https://github.com/kuohuanhuan/x-markdown-css.git
synced 2024-11-25 06:18:19 +00:00
refactor: rename directory partial
to partials
This commit is contained in:
46
src/scss/partials/list.scss
Normal file
46
src/scss/partials/list.scss
Normal file
@ -0,0 +1,46 @@
|
||||
li {
|
||||
margin-top: .5rem;
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
ol {
|
||||
margin-top: 1.25rem;
|
||||
margin-bottom: 1.25rem;
|
||||
list-style-type: none;
|
||||
> li {
|
||||
position: relative;
|
||||
padding-left: 1.75rem;
|
||||
&::before {
|
||||
content: counter(list-item, decimal) '.';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
color: var(--xm-c-ol-counter);
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
}
|
||||
ul {
|
||||
margin-top: 1.25rem;
|
||||
margin-bottom: 1.25rem;
|
||||
list-style-type: none;
|
||||
> li {
|
||||
position: relative;
|
||||
padding-left: 1.75rem;
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: .675rem;
|
||||
left: .25rem;
|
||||
width: .375rem;
|
||||
height: .375rem;
|
||||
border-radius: 50%;
|
||||
background-color: var(--xm-c-ul-counter);
|
||||
}
|
||||
}
|
||||
}
|
||||
ul ul,
|
||||
ul ol,
|
||||
ol ul,
|
||||
ol ol {
|
||||
margin-top: .75rem;
|
||||
margin-bottom: .75rem;
|
||||
}
|
Reference in New Issue
Block a user