Add some sane default CSS for textareas

This commit is contained in:
Samuel Mannehed 2025-01-13 00:03:30 +01:00
parent f0ec3d62b5
commit deb76f97cd
1 changed files with 11 additions and 0 deletions

View File

@ -77,6 +77,17 @@ textarea:focus-visible {
outline-offset: -1px; outline-offset: -1px;
} }
textarea {
margin: unset; /* Remove Firefox's built in margin */
/* Prevent layout from shifting when scrollbars show */
scrollbar-gutter: stable;
/* Make textareas show at minimum one line. This does not work when
using box-sizing border-box, in which case, vertical padding and
border width needs to be taken into account. */
min-height: 1em;
vertical-align: baseline; /* Firefox gives "text-bottom" by default */
}
/* ------- BUTTON ACTIVATIONS -------- */ /* ------- BUTTON ACTIVATIONS -------- */
/* A color overlay that depends on the activation level. The level can then be /* A color overlay that depends on the activation level. The level can then be