aboutsummaryrefslogtreecommitdiffstats
path: root/core/css/inputs.scss
diff options
context:
space:
mode:
Diffstat (limited to 'core/css/inputs.scss')
-rw-r--r--core/css/inputs.scss21
1 files changed, 17 insertions, 4 deletions
diff --git a/core/css/inputs.scss b/core/css/inputs.scss
index b4fd07a73d7..78569cf474d 100644
--- a/core/css/inputs.scss
+++ b/core/css/inputs.scss
@@ -826,9 +826,22 @@ label.infield {
overflow: hidden;
}
-::placeholder,
-::-ms-input-placeholder,
-::-webkit-input-placeholder {
+// when rules are grouped using the comma operator and one selector is invalid / unknown then the whole group is invalidated.
+// https://www.w3.org/TR/selectors-3/#grouping
+// In this case `::-ms-input-placeholder` is unknown to Firefox and Chrome
+@mixin placeholder-style {
color: var(--color-text-maxcontrast);
- font-size: var(--default-font-size);
+ font-size: var(--default-font-size);
+}
+
+::placeholder {
+ @include placeholder-style;
+}
+
+::-ms-input-placeholder {
+ @include placeholder-style;
+}
+
+::-webkit-input-placeholder {
+ @include placeholder-style;
}