diff options
| author | ojacobson <ojacobson@noreply.codeberg.org> | 2025-05-16 02:15:05 +0000 |
|---|---|---|
| committer | ojacobson <ojacobson@noreply.codeberg.org> | 2025-05-16 02:15:05 +0000 |
| commit | 630cbc2b70309ae5d2ece01861b9fe3983ab5278 (patch) | |
| tree | fe93a375a8e4ffb17d2133dd0adfab55fb456abb /ui/styles | |
| parent | 6eb8487d89ab14f8f11a40b78d7db72e3266840d (diff) | |
| parent | a4ad808eb804e32edf3b848c229542b759db0102 (diff) | |
Merge pull request 'prop/text-input-no-quill-plus' (#2) from prop/text-input-no-quill-plus into prop/text-input-no-quill
Reviewed-on: https://codeberg.org/ojacobson/pilcrow/pulls/2
Reviewed-by: Kit <wlonk@noreply.codeberg.org>
Diffstat (limited to 'ui/styles')
| -rw-r--r-- | ui/styles/forms.css | 8 | ||||
| -rw-r--r-- | ui/styles/textarea.css | 8 |
2 files changed, 11 insertions, 5 deletions
diff --git a/ui/styles/forms.css b/ui/styles/forms.css index eb98743..98fd43e 100644 --- a/ui/styles/forms.css +++ b/ui/styles/forms.css @@ -22,3 +22,11 @@ form.form > button { border: 1px solid var(--colour-input-border); margin: 0.25rem; } + +.disabled { + color: var(--light-text); +} + +.hidden { + display: none; +} diff --git a/ui/styles/textarea.css b/ui/styles/textarea.css index 4dc804a..d315bcf 100644 --- a/ui/styles/textarea.css +++ b/ui/styles/textarea.css @@ -6,11 +6,9 @@ align-items: stretch; } -/* The second selector is more generally useful, but it doesn't seem to work, - * so I added in the first selector. */ -.textarea:empty:before, -[contenteditable='true']:empty:before { - content: attr(placeholder); +[data-placeholder]:empty:before { + content: attr(data-placeholder); + color: var(--light-text); pointer-events: none; display: block; /* For Firefox */ } |
