summaryrefslogtreecommitdiff
path: root/ui/styles/textarea.css
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-05-15 20:46:49 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-05-15 20:46:49 -0400
commita4ad808eb804e32edf3b848c229542b759db0102 (patch)
treefe93a375a8e4ffb17d2133dd0adfab55fb456abb /ui/styles/textarea.css
parent61b3e3cba8a11a53947ce0e7c8a6980fb20ef914 (diff)
Move placeholder-related CSS into `textarea.css`.
Diffstat (limited to 'ui/styles/textarea.css')
-rw-r--r--ui/styles/textarea.css8
1 files changed, 3 insertions, 5 deletions
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 */
}