Update index.css

This commit is contained in:
Tom
2025-02-25 19:21:17 +01:00
committed by GitHub
parent 7e4964b4ef
commit 0c74373a5a

View File

@@ -402,6 +402,57 @@ button:active {
transform: translate(2px, 2px);
}
label {
display: block;
width: calc(round(down, 100%, 1ch));
height: auto;
line-height: var(--line-height);
font-weight: var(--font-weight-medium);
margin: 0;
}
label input {
width: 100%;
}
.tree, .tree ul {
position: relative;
padding-left: 0;
list-style-type: none;
line-height: var(--line-height);
}
.tree ul {
margin: 0;
}
.tree ul li {
position: relative;
padding-left: 1.5ch;
margin-left: calc(1.5ch - var(--border-thickness));
border-left: var(--border-thickness) solid var(--text-color);
}
.tree ul li:before {
position: absolute;
display: block;
top: calc(var(--line-height) / 2);
left: 0;
content: "";
width: 1ch;
border-bottom: var(--border-thickness) solid var(--text-color);
}
.tree ul li:last-child {
border-left: none;
padding-left: calc(1.5ch + var(--border-thickness));
}
.tree ul li:last-child:after {
position: absolute;
display: block;
top: 0;
left: 0;
content: "";
height: calc(var(--line-height) / 2);
border-left: var(--border-thickness) solid var(--text-color);
}
/* Code Blocks */
pre {
white-space: pre;