summaryrefslogtreecommitdiff
path: root/assets/css/main.css
diff options
context:
space:
mode:
authorFrancesco Tomaselli <tomaselli.fr@gmail.com>2025-03-06 22:48:15 +0100
committerGitHub <noreply@github.com>2025-03-06 22:48:15 +0100
commit4f1303490e5108b50ad4a182e8ee55056e5599d5 (patch)
tree3aba1f54f5c6205a3a1782acd30d09be503972bd /assets/css/main.css
parent17d4cf4916091e6d5a61cc2576f2513e41f57404 (diff)
parent8115160fa0d3292179a89c1e4e2c6cf9262945d1 (diff)
Merge pull request #92 from runofthemillgeek/fix/list-alignment-input-dark-mode
List alignment fixes and input dark mode support
Diffstat (limited to 'assets/css/main.css')
-rw-r--r--assets/css/main.css22
1 files changed, 17 insertions, 5 deletions
diff --git a/assets/css/main.css b/assets/css/main.css
index 54c98cb..65ea0b4 100644
--- a/assets/css/main.css
+++ b/assets/css/main.css
@@ -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 {