diff options
Diffstat (limited to 'scss/forms/_floating-labels.scss')
| -rw-r--r-- | scss/forms/_floating-labels.scss | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scss/forms/_floating-labels.scss b/scss/forms/_floating-labels.scss index 8b2e2b8eb..915437331 100644 --- a/scss/forms/_floating-labels.scss +++ b/scss/forms/_floating-labels.scss @@ -59,3 +59,23 @@ } // stylelint-enable no-duplicate-selectors } + +.form-floating-icon { + position: absolute; + top: 0; + bottom: 0; + left: 0; + display: flex; + align-items: center; + justify-content: center; + width: 2.5rem + $form-floating-padding-x; + + ~ label { + left: 2.5rem; + } + + ~ .form-control, + ~ .form-select { + padding-left: 2.5rem + $form-floating-padding-x; + } +} |
