. */
.flash > button {
border: none;
color: inherit;
@@ -361,7 +365,8 @@ header {
}
-/* TODO: Hover over invalid should work like in measurements (thin vs thick border) */
+/* TODO: hover over `:invalid` should work like in measurements
+ * (thin vs thick border). */
.labeled-form {
align-items: center;
display: grid;
@@ -378,7 +383,7 @@ header {
.labeled-form label.required {
font-weight: bold;
}
-/* Don't style `label.error + input` if case already covered by input:invalid */
+/* Don't style `label.error + input` if case already covered by `input:invalid`. */
.labeled-form label.error {
color: var(--color-red);
}
@@ -398,14 +403,14 @@ header {
.labeled-form .auxiliary {
grid-column: 3;
/* If more buttons are needed, `grid-row` can be replaced with
- * `reading-flow: grid-columns` to ensure proper tabindex order */
+ * `reading-flow: grid-columns` to ensure proper [tabindex] order. */
grid-row: 1;
height: 100%;
padding-block: 0;
}
-/* TODO: remove .items class (?) and make 'form table' work properly */
+/* TODO: remove `.items` class (?) and make `form table` work properly. */
table.items {
border-spacing: 0;
border: solid 1px var(--color-border-gray);
@@ -431,7 +436,7 @@ table.items th,
table.items td {
padding-inline: 1em 0;
}
-/* For to fill completely, we use an ::after pseudoelement. */
+/* For to fill completely, we use an `::after` pseudoelement. */
table.items td.link {
padding: 0;
position: relative;
@@ -491,8 +496,8 @@ table.items tr.form td {
vertical-align: top;
}
-/* TODO: replace :hover:focus-visible combos with proper LOVE stye order */
-/* TODO: Update table styling: simplify selectors, deduplicate, remove non-font rem. */
+/* TODO: replace `:hover:focus-visible` combos with proper LOVE style order. */
+/* TODO: update table styling: simplify selectors, deduplicate, remove non-font rem. */
table.items td.link a:hover,
table.items td.link a:focus-visible,
table.items td.link a:hover:focus-visible {
@@ -542,8 +547,8 @@ table.items select,
table.items textarea {
padding-block: 0.375em;
}
-/* TODO: find a way (layers?) to style inputs differently while making sure
- * hover works properly without using :not(:hover) selectors here. */
+/* TODO: find a way (layers?) to style s differently while making sure
+ * hover works properly without using `:not(:hover)` selectors here. */
table.items .button:not(:hover),
table.items button:not(:hover),
table.items input:not(:hover),
@@ -647,7 +652,7 @@ details[open] summary::before {
summary::marker {
padding-left: 0.25em;
}
-/* NOTE: use details[open]::details-content once widely available */
+/* NOTE: use `details[open]::details-content` once widely available. */
details[open] ul {
background: white;
border: solid 1px var(--color-border-gray);
@@ -672,3 +677,10 @@ li input[type=checkbox] {
li::marker {
content: '';
}
+/*
+ * TODO:
+ * * disable containing disabled checkbox: `label:has(input[disabled])`,
+ * * disabled label styling,
+ * * focused label styling (currently only checkbox has focus),
+ * * disabled checkbox blue square focus removal.
+ * */