Merge pull request #92 from runofthemillgeek/fix/list-alignment-input-dark-mode

List alignment fixes and input dark mode support
This commit is contained in:
Francesco Tomaselli 2025-03-06 22:48:15 +01:00 committed by GitHub
commit 534459efa4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 8 deletions

View file

@ -59,19 +59,31 @@ p {
line-height: var(--p-line-height);
}
ul {
margin-top: var(--ul-margin-top);
margin-bottom: var(--ul-margin-bottom);
}
li {
margin-left: var(--li-indent);
&:has(> input[type="checkbox"]) {
list-style-type: none;
}
& > input[type="checkbox"] {
width: var(--li-checkbox-size);
height: var(--li-checkbox-size);
margin: 0 0.2em 0.15em -1.25em;
vertical-align: middle;
}
}
a {
text-decoration: underline;
}
input {
.dark & {
color-scheme: dark;
}
}
/* Code blocks */
.copy-code-button {

View file

@ -64,7 +64,7 @@ p {
margin-bottom: 0;
}
ul {
ul, ol {
padding: 0;
}

View file

@ -33,10 +33,13 @@
--p-line-height: 1.5em;
--caption-font-size: .8em;
/* List indentation */
--li-indent: 1.5rem;
/* Lists */
--li-indent: 2rem;
--ul-margin-top: 1rem;
--ul-margin-bottom: 1rem;
--li-checkbox-size: 0.8em;
/* TOC */
--toc-margin-top: 2rem;
--toc-margin-bottom: 3rem;