aboutsummaryrefslogtreecommitdiff
path: root/scss/forms
diff options
context:
space:
mode:
Diffstat (limited to 'scss/forms')
-rw-r--r--scss/forms/_floating-labels.scss11
1 files changed, 11 insertions, 0 deletions
diff --git a/scss/forms/_floating-labels.scss b/scss/forms/_floating-labels.scss
index 6e5c9a75f..93c1c2205 100644
--- a/scss/forms/_floating-labels.scss
+++ b/scss/forms/_floating-labels.scss
@@ -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 {