mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-31 00:59:51 +02:00
Add an artificial background to floating labels (#37125)
This commit is contained in:
committed by
GitHub
parent
5975ca65c5
commit
bf6240dad9
@@ -1,6 +1,17 @@
|
||||
.form-floating {
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: $input-border-width;
|
||||
left: $input-border-width;
|
||||
width: subtract(100%, add($input-height-inner-quarter, $input-height-inner-half));
|
||||
height: $form-floating-label-height;
|
||||
content: "";
|
||||
background-color: $input-bg;
|
||||
@include border-radius($input-border-radius);
|
||||
}
|
||||
|
||||
> .form-control,
|
||||
> .form-control-plaintext,
|
||||
> .form-select {
|
||||
|
Reference in New Issue
Block a user