2017-04-09 17:06:23 +02:00
|
|
|
@import "../global";
|
|
|
|
|
2017-04-10 20:12:07 +02:00
|
|
|
$width-input-border: 2px;
|
2017-04-20 16:45:39 +02:00
|
|
|
$width-input-text: 330px;
|
2017-04-10 20:12:07 +02:00
|
|
|
|
2017-06-01 01:29:10 +02:00
|
|
|
.form-input-width {
|
|
|
|
width: $width-input-text
|
|
|
|
}
|
|
|
|
|
2017-04-10 14:32:40 +02:00
|
|
|
.form-row-submit
|
|
|
|
{
|
|
|
|
margin-top: $spacing-vertical;
|
2017-04-09 17:06:23 +02:00
|
|
|
}
|
2017-04-20 16:45:39 +02:00
|
|
|
.form-row-submit--with-footer
|
|
|
|
{
|
|
|
|
margin-bottom: $spacing-vertical;
|
|
|
|
}
|
2017-04-09 17:06:23 +02:00
|
|
|
|
2017-04-10 14:32:40 +02:00
|
|
|
.form-row__label-row {
|
2017-04-12 16:55:19 +02:00
|
|
|
margin-top: $spacing-vertical * 5/6;
|
|
|
|
margin-bottom: $spacing-vertical * 1/6;
|
2017-04-09 17:06:23 +02:00
|
|
|
line-height: 1;
|
2017-04-12 16:55:19 +02:00
|
|
|
font-size: 0.9 * $font-size;
|
2017-04-09 17:06:23 +02:00
|
|
|
}
|
2017-04-10 14:32:40 +02:00
|
|
|
.form-row__label-row--prefix {
|
|
|
|
float: left;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
2017-04-20 16:45:39 +02:00
|
|
|
input[type="text"].input-copyable {
|
|
|
|
border: 1px solid $color-form-border;
|
|
|
|
line-height: 1;
|
|
|
|
padding-top: $spacing-vertical * 1/3;
|
|
|
|
padding-bottom: $spacing-vertical * 1/3;
|
|
|
|
width: $width-input-text;
|
|
|
|
padding-left: 5px;
|
|
|
|
padding-right: 5px;
|
|
|
|
width: 100%;
|
|
|
|
&:focus { border-color: black; }
|
|
|
|
}
|
|
|
|
|
2017-04-10 14:32:40 +02:00
|
|
|
.form-field {
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
input[type="checkbox"],
|
|
|
|
input[type="radio"] {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2017-04-10 20:12:07 +02:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-04-10 14:32:40 +02:00
|
|
|
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"] {
|
2017-04-10 20:12:07 +02:00
|
|
|
border-bottom: $width-input-border solid $color-form-border;
|
2017-04-20 16:45:39 +02:00
|
|
|
line-height: 1;
|
2017-04-10 20:12:07 +02:00
|
|
|
padding-top: $spacing-vertical * 1/3;
|
|
|
|
padding-bottom: $spacing-vertical * 1/3;
|
2017-04-10 14:32:40 +02:00
|
|
|
&.form-field__input--error {
|
|
|
|
border-color: $color-error;
|
|
|
|
}
|
2017-04-12 16:55:19 +02:00
|
|
|
&.form-field__input--inline {
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
border-bottom-width: 1px;
|
|
|
|
margin-left: 8px;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
2017-05-22 00:34:12 +02:00
|
|
|
padding: 2px;
|
2017-04-10 20:12:07 +02:00
|
|
|
border: $width-input-border solid $color-form-border;
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
|
|
|
}
|
2017-06-15 21:30:56 +02:00
|
|
|
.form-field--SimpleMDE {
|
|
|
|
display: block;
|
|
|
|
}
|
2017-04-10 14:32:40 +02:00
|
|
|
|
|
|
|
.form-field__label {
|
|
|
|
&[for] { cursor: pointer; }
|
|
|
|
> input[type="checkbox"], input[type="radio"] {
|
|
|
|
margin-right: 6px;
|
|
|
|
}
|
|
|
|
}
|
2017-04-09 17:06:23 +02:00
|
|
|
|
|
|
|
.form-field__label--error {
|
|
|
|
color: $color-error;
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-field__input-text {
|
2017-04-20 16:45:39 +02:00
|
|
|
width: $width-input-text;
|
2017-04-09 17:06:23 +02:00
|
|
|
}
|
|
|
|
|
2017-04-12 16:55:19 +02:00
|
|
|
.form-field__prefix {
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
.form-field__postfix {
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
|
|
|
|
2017-04-10 14:32:40 +02:00
|
|
|
.form-field__input-number {
|
2017-04-10 20:12:07 +02:00
|
|
|
width: 70px;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2017-05-22 00:34:12 +02:00
|
|
|
.form-field--textarea {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2017-04-10 20:12:07 +02:00
|
|
|
.form-field__input-textarea {
|
2017-05-22 00:34:12 +02:00
|
|
|
width: 100%;
|
2017-04-09 17:06:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
2017-06-15 21:30:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.form-field__input.form-field__input-SimpleMDE .CodeMirror-scroll {
|
|
|
|
height: auto;
|
2017-04-09 17:06:23 +02:00
|
|
|
}
|