From 1c45fd8547308927ee1dd6cae4b1b3153e754fc4 Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Sun, 12 Jan 2025 23:37:05 +0100 Subject: [PATCH] Capitalize CSS section headings Makes them easier to distinguish from regular comments. --- app/styles/input.css | 47 ++++++++++++++++---------------------------- 1 file changed, 17 insertions(+), 30 deletions(-) diff --git a/app/styles/input.css b/app/styles/input.css index 4305eab4..4eb30dd1 100644 --- a/app/styles/input.css +++ b/app/styles/input.css @@ -5,9 +5,8 @@ * This file is licensed under the 2-Clause BSD license (see LICENSE.txt). */ -/* - * Common for all inputs - */ +/* ------- SHARED BETWEEN INPUT ELEMENTS -------- */ + :root { --input-xpadding: 1em; } @@ -41,9 +40,7 @@ input:focus-visible::file-selector-button { outline-offset: 1px; } -/* - * Text input - */ +/* ------- TEXT INPUT -------- */ input:not([type]), input[type=date], @@ -64,9 +61,7 @@ textarea { padding: calc(0.5em - 1px) var(--input-xpadding); } -/* - * Button activations - */ +/* ------- BUTTON ACTIVATIONS -------- */ /* A color overlay that depends on the activation level. The level can then be set for different states on an element, for example hover and click on a @@ -129,9 +124,8 @@ input:disabled::file-selector-button, --button-activation-level: 0; } -/* - * Buttons - */ +/* ------- BUTTONS -------- */ + input[type=button], input[type=color], input[type=image], @@ -155,9 +149,8 @@ input[type=image]:disabled { cursor: default; } -/* - * Select dropdowns - */ +/* ------- SELECT BUTTONS ------- */ + select { --select-arrow: url('data:image/svg+xml;utf8, \