Skip to content

Commit

Permalink
Merge branch 'tomfran:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
kompoth authored Mar 7, 2025
2 parents 8bed896 + 534459e commit e813732
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
22 changes: 17 additions & 5 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion assets/css/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ p {
margin-bottom: 0;
}

ul {
ul, ol {
padding: 0;
}

Expand Down
7 changes: 5 additions & 2 deletions assets/css/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e813732

Please sign in to comment.