cssOMS/list.scss
Dennis Eichhorn 610e5dc1d1 bump
2024-03-10 02:24:57 +00:00

64 lines
1.2 KiB
SCSS
Executable File

ul {
&.boxed {
background: var(--box-bg);
padding: 5px;
border: 1px solid var(--bborder);
li {
margin: 5px 0 5px 0;
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 0;
}
}
}
&.h-list li {
display: inline-block;
margin: 5px 10px 5px 10px;
}
&.foldable {
list-style-type: none;
margin: 0;
padding: 0;
ul {
margin-left: 1rem;
}
input[type="checkbox"], .nested {
display: none;
}
.caret {
cursor: pointer;
user-select: none;
&::before {
content: "\25B6";
color: black;
display: inline-block;
margin-right: 6px;
}
}
input[type="checkbox"]:checked {
&~.nested {
display: block;
}
&~.caret::before {
transform: rotate(90deg);
}
}
ul {
list-style-type: none;
}
}
}