2018-03-21 14:09:23 -04:00
|
|
|
// Form Group
|
|
|
|
.form-group {
|
2017-01-23 21:07:22 -05:00
|
|
|
position: relative;
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
&:not(:only-child):not(:last-child) {
|
|
|
|
margin-bottom: 1.25rem;
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
& > label {
|
|
|
|
font-size: @font-size-extra-small;
|
|
|
|
font-weight: @font-weight-bold;
|
|
|
|
text-transform: uppercase;
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
.form-group--centered {
|
|
|
|
.form-group__field {
|
|
|
|
text-align: center;
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
// Field
|
|
|
|
.form-group__field {
|
|
|
|
border: 0;
|
|
|
|
border-bottom: 1px solid @input-border-color;
|
|
|
|
color: @input-color;
|
|
|
|
width: 100%;
|
|
|
|
font-size: @font-size-small;
|
|
|
|
background-color: @input-bg;
|
|
|
|
padding: 0 1px;
|
|
|
|
height: @input-height;
|
|
|
|
outline: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
.placeholder(@text-muted-color);
|
2017-01-23 21:07:22 -05:00
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
&:focus {
|
|
|
|
& ~ .form-group__helper {
|
|
|
|
width: 100%;
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
.form-group__field--static {
|
|
|
|
border: 0;
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
// Helper (blue bar)
|
|
|
|
.form-group__helper {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
height: 2px;
|
|
|
|
width: 0;
|
|
|
|
background-color: @blue;
|
|
|
|
z-index: 1;
|
|
|
|
.transition(width);
|
|
|
|
.transition-duration(300ms);
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
// Form group with icons and addons
|
|
|
|
.form-group--icon {
|
|
|
|
.form-group__field {
|
|
|
|
padding-left: 2.4rem;
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
.form-group__icon {
|
|
|
|
font-size: 1.15rem;
|
|
|
|
color: @headings-color;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0.6rem;
|
|
|
|
left: 0.2rem;
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
.form-group__addon {
|
2017-01-23 21:07:22 -05:00
|
|
|
position: absolute;
|
2018-03-21 14:09:23 -04:00
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
height: @input-height;
|
|
|
|
border: 1px solid @input-border-color;
|
|
|
|
width: 2.5rem;
|
|
|
|
text-align: center;
|
|
|
|
line-height: 2.5rem;
|
|
|
|
background-color: @white;
|
|
|
|
font-size: 1.25rem;
|
2017-01-23 21:07:22 -05:00
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
&.active {
|
|
|
|
color: @green;
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-03-21 14:09:23 -04:00
|
|
|
// Select
|
|
|
|
select {
|
|
|
|
background-color: transparent;
|
|
|
|
.appearance(none);
|
|
|
|
border-radius: 0;
|
|
|
|
background: url(../../img/icons/select-caret.svg) no-repeat bottom 5px right 1px;
|
2017-01-23 21:07:22 -05:00
|
|
|
}
|