mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-02 16:04:07 +03:00
Add support for Bootstrap Icons on floating label forms
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user