127 lines
No EOL
2.4 KiB
SCSS
127 lines
No EOL
2.4 KiB
SCSS
@import "../global";
|
|
|
|
$width-input-border: 2px;
|
|
|
|
.form-row-submit
|
|
{
|
|
margin-top: $spacing-vertical;
|
|
}
|
|
|
|
.form-row__label-row {
|
|
margin-top: $spacing-vertical * 2/3;
|
|
margin-bottom: $spacing-vertical * 1/3;
|
|
line-height: 1;
|
|
font-size: 0.9em;
|
|
}
|
|
.form-row__label-row--prefix {
|
|
float: left;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.form-field {
|
|
display: inline-block;
|
|
|
|
input[type="checkbox"],
|
|
input[type="radio"] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
select {
|
|
transition: outline $transition-standard;
|
|
cursor: pointer;
|
|
box-sizing: border-box;
|
|
padding-left: 5px;
|
|
padding-right: 5px;
|
|
height: $spacing-vertical;
|
|
&:focus {
|
|
outline: $width-input-border solid $color-primary;
|
|
}
|
|
}
|
|
|
|
textarea,
|
|
input[type="text"],
|
|
input[type="password"],
|
|
input[type="email"],
|
|
input[type="number"],
|
|
input[type="search"],
|
|
input[type="date"] {
|
|
@include placeholder {
|
|
color: lighten($color-text-dark, 60%);
|
|
}
|
|
transition: all $transition-standard;
|
|
cursor: pointer;
|
|
padding-left: 1px;
|
|
padding-right: 1px;
|
|
box-sizing: border-box;
|
|
-webkit-appearance: none;
|
|
&[readonly] {
|
|
background-color: #bbb;
|
|
}
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="password"],
|
|
input[type="email"],
|
|
input[type="number"],
|
|
input[type="search"],
|
|
input[type="date"] {
|
|
border-bottom: $width-input-border solid $color-form-border;
|
|
line-height: 1px;
|
|
padding-top: $spacing-vertical * 1/3;
|
|
padding-bottom: $spacing-vertical * 1/3;
|
|
&.form-field__input--error {
|
|
border-color: $color-error;
|
|
}
|
|
}
|
|
|
|
textarea:focus,
|
|
input[type="text"]:focus,
|
|
input[type="password"]:focus,
|
|
input[type="email"]:focus,
|
|
input[type="number"]:focus,
|
|
input[type="search"]:focus,
|
|
input[type="date"]:focus {
|
|
border-color: $color-primary;
|
|
}
|
|
|
|
textarea {
|
|
border: $width-input-border solid $color-form-border;
|
|
}
|
|
}
|
|
|
|
.form-field__label {
|
|
&[for] { cursor: pointer; }
|
|
> input[type="checkbox"], input[type="radio"] {
|
|
margin-right: 6px;
|
|
}
|
|
}
|
|
|
|
.form-field__label--error {
|
|
color: $color-error;
|
|
}
|
|
|
|
.form-field__input-text {
|
|
width: 330px;
|
|
}
|
|
|
|
.form-field__input-number {
|
|
width: 70px;
|
|
text-align: right;
|
|
}
|
|
|
|
.form-field__input-textarea {
|
|
width: 330px;
|
|
}
|
|
|
|
.form-field__error, .form-field__helper {
|
|
margin-top: $spacing-vertical * 1/3;
|
|
font-size: 0.8em;
|
|
transition: opacity $transition-standard;
|
|
}
|
|
|
|
.form-field__error {
|
|
color: $color-error;
|
|
}
|
|
.form-field__helper {
|
|
color: $color-help;
|
|
} |