mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-26 23:54:23 +01:00
Change floating label placeholder's color (#39494)
Co-authored-by: Louis-Maxime Piton <louismaxime.piton@orange.com> Co-authored-by: Julien Déramond <juderamond@gmail.com>
This commit is contained in:
parent
4219af2c0e
commit
e340674d06
@ -17,6 +17,7 @@
|
|||||||
height: 100%; // allow textareas
|
height: 100%; // allow textareas
|
||||||
padding: $form-floating-padding-y $form-floating-padding-x;
|
padding: $form-floating-padding-y $form-floating-padding-x;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
color: rgba(var(--#{$prefix}body-color-rgb), #{$form-floating-label-opacity});
|
||||||
text-align: start;
|
text-align: start;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@ -56,7 +57,6 @@
|
|||||||
> .form-control-plaintext,
|
> .form-control-plaintext,
|
||||||
> .form-select {
|
> .form-select {
|
||||||
~ label {
|
~ label {
|
||||||
color: rgba(var(--#{$prefix}body-color-rgb), #{$form-floating-label-opacity});
|
|
||||||
transform: $form-floating-label-transform;
|
transform: $form-floating-label-transform;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
@ -73,7 +73,6 @@
|
|||||||
// Duplicated because `:-webkit-autofill` invalidates other selectors when grouped
|
// Duplicated because `:-webkit-autofill` invalidates other selectors when grouped
|
||||||
> .form-control:-webkit-autofill {
|
> .form-control:-webkit-autofill {
|
||||||
~ label {
|
~ label {
|
||||||
color: rgba(var(--#{$prefix}body-color-rgb), #{$form-floating-label-opacity});
|
|
||||||
transform: $form-floating-label-transform;
|
transform: $form-floating-label-transform;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user