Skip to content

Commit

Permalink
Merge pull request #38487 from nextcloud/backport/37522/stable26
Browse files Browse the repository at this point in the history
[stable26] Ungroup `placeholder` css rules
  • Loading branch information
susnux committed Jun 7, 2023
2 parents 4e8ffe9 + 672d44c commit cb5a9fa
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion core/css/inputs.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/css/inputs.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 17 additions & 4 deletions core/css/inputs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion core/css/server.css

Large diffs are not rendered by default.

Loading

0 comments on commit cb5a9fa

Please sign in to comment.