ul {
&.has-list-bullet-color {
li {
&::before {
top: 2px;
content: "\2022";
text-align: center;
font-weight: 900;
background-color: transparent;
color: var(--ek-bullet-color);
}
}
}
}
ol {
&.has-list-bullet-color {
counter-reset: li var(--li-start, 0);
li {
counter-increment: li;
&::before {
content: counter(li) ".";
top: 2px;
text-align: center;
background-color: transparent;
color: var(--ek-bullet-color);
}
}
&:not(.is-style-connected) {
li {
&::before {
width: auto !important;
min-width: 25px;
}
}
}
&.is-style-default {
li {
counter-increment: li;
counter-reset: li counter(li);
&::before {
top: 1em;
margin-top: -0.95em;
// height: auto;
}
}
}
}
}
ul,
ol {
&.has-list-bullet-color,
&.is-style-arrow,
&.is-style-checked,
&.is-style-connected,
&.is-style-dashed,
&.is-style-starred,
&.is-style-crossed {
li {
list-style-type: none !important;
padding-left: 8px;
position: relative;
&::before {
background-size: cover;
display: inline-block;
height: 25px;
left: -25px;
position: absolute;
top: 1em;
margin-top: -18px;
transform: scale(0.9);
width: 25px;
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
}
}
}
&.is-style-arrow,
&.is-style-checked,
&.is-style-connected,
&.is-style-starred,
&.is-style-crossed {
li {
&::before {
content: "";
background-color: var(--ek-bullet-color, currentColor);
}
}
}
&.is-style-arrow {
li::before {
transform: scale(0.65);
margin-top: -16px;
/* stylelint-disable */
mask-image: url('data:image/svg+xml;utf8,');
-webkit-mask-image: url('data:image/svg+xml;utf8,');
/* stylelint-enable */
}
}
&.is-style-checked {
li::before {
/* stylelint-disable */
mask-image: url('data:image/svg+xml;utf8,');
-webkit-mask-image: url('data:image/svg+xml;utf8,');
/* stylelint-enable */
}
}
&.is-style-crossed {
li::before {
/* stylelint-disable */
mask-image: url('data:image/svg+xml;utf8,');
-webkit-mask-image: url('data:image/svg+xml;utf8,');
/* stylelint-enable */
}
}
&.is-style-starred {
li::before {
/* stylelint-disable */
mask-image: url('data:image/svg+xml;utf8,');
-webkit-mask-image: url('data:image/svg+xml;utf8,');
/* stylelint-enable */
}
}
&.is-style-dashed {
li::before {
content: "–";
text-align: right;
}
}
&.is-style-connected {
&,
ol,
ul {
overflow: hidden;
}
li::before {
border-radius: 9999px;
background: var(--ek-bullet-color, currentColor);
height: 12px;
width: 12px;
top: 0.5em;
left: -18px;
margin-top: 0;
}
li::after {
content: "";
position: absolute;
height: 125%;
border-left: 2px solid var(--ek-bullet-color, currentColor);
left: -13px;
top: 0;
}
&.has-list-bullet-color {
li {
&::before {
background-color: var(--ek-bullet-color);
}
&::after {
border-color: var(--ek-bullet-color);
}
}
}
}
&.is-style-none {
&,
li {
list-style-type: none !important;
padding-left: 0 !important;
}
li {
margin-left: 0 !important;
&::before {
content: "";
}
}
}
}