2017-12-21 18:32:51 +01:00
|
|
|
.form-row-submit {
|
2017-04-10 14:32:40 +02:00
|
|
|
margin-top: $spacing-vertical;
|
2017-04-09 17:06:23 +02:00
|
|
|
}
|
2017-12-21 18:32:51 +01:00
|
|
|
.form-row-submit--with-footer {
|
2017-04-20 16:45:39 +02:00
|
|
|
margin-bottom: $spacing-vertical;
|
|
|
|
}
|
2017-04-09 17:06:23 +02:00
|
|
|
|
2018-01-21 20:29:48 +01:00
|
|
|
.form-row-phone {
|
|
|
|
display: flex;
|
|
|
|
|
2018-01-22 07:17:06 +01:00
|
|
|
.form-field__input-text {
|
|
|
|
margin-left: 5px;
|
|
|
|
width: calc(0.85 * var(--input-width));
|
2018-01-21 20:29:48 +01: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;
|
2017-10-15 06:52:32 +02:00
|
|
|
margin-bottom: 0px;
|
2017-04-09 17:06:23 +02:00
|
|
|
line-height: 1;
|
2017-12-21 18:32:51 +01:00
|
|
|
font-size: calc(0.9 * var(--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-10-15 21:50:13 +02:00
|
|
|
.form-row--focus {
|
2017-12-21 18:32:51 +01:00
|
|
|
.form-field__label,
|
|
|
|
.form-field__prefix {
|
2017-10-15 21:50:13 +02:00
|
|
|
color: var(--color-primary) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-04-10 14:32:40 +02:00
|
|
|
.form-field {
|
|
|
|
display: inline-block;
|
2017-10-15 02:16:05 +02:00
|
|
|
margin: 8px 0;
|
2017-04-10 14:32:40 +02:00
|
|
|
|
2017-04-10 20:12:07 +02:00
|
|
|
select {
|
2017-08-19 02:06:53 +02:00
|
|
|
transition: outline var(--transition-duration) var(--transition-type);
|
2017-04-10 20:12:07 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
padding-left: 5px;
|
|
|
|
padding-right: 5px;
|
2018-01-21 20:29:48 +01:00
|
|
|
height: var(--select-height);
|
2017-08-20 07:58:03 +02:00
|
|
|
background: var(--select-bg);
|
|
|
|
color: var(--select-color);
|
2017-04-10 20:12:07 +02:00
|
|
|
&:focus {
|
2017-12-21 18:32:51 +01:00
|
|
|
outline: var(--input-border-size) solid var(--color-primary);
|
2017-04-10 20:12:07 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-21 18:32:51 +01:00
|
|
|
input[type='radio'],
|
|
|
|
input[type='checkbox'] {
|
|
|
|
&:checked + .form-field__label {
|
2017-10-15 21:50:13 +02:00
|
|
|
color: var(--text-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-21 18:32:51 +01:00
|
|
|
input[type='text'].input-copyable {
|
2017-10-15 06:52:32 +02:00
|
|
|
background: var(--input-bg);
|
2017-12-21 18:32:51 +01:00
|
|
|
color: var(--input-disabled-color);
|
2017-10-15 06:52:32 +02:00
|
|
|
line-height: 1;
|
|
|
|
padding-top: $spacing-vertical * 1/3;
|
|
|
|
padding-bottom: $spacing-vertical * 1/3;
|
|
|
|
padding-left: 5px;
|
|
|
|
padding-right: 5px;
|
|
|
|
width: 100%;
|
2017-12-21 18:32:51 +01:00
|
|
|
font-family: 'Consolas', 'Lucida Console', 'Adobe Source Code Pro', monospace;
|
2017-12-01 04:51:55 +01:00
|
|
|
|
|
|
|
&.input-copyable--with-copy-btn {
|
|
|
|
width: 85%;
|
|
|
|
}
|
2017-10-15 06:52:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input[readonly] {
|
2017-12-21 18:32:51 +01:00
|
|
|
color: var(--input-disabled-color) !important;
|
|
|
|
border-bottom: 1px dashed var(--input-disabled-border-color) !important;
|
2017-10-15 06:52:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input[readonly]:focus {
|
2017-12-21 18:32:51 +01:00
|
|
|
background: var(--input-bg) !important;
|
|
|
|
border-bottom: 1px dashed var(--input-disabled-border-color) !important;
|
2017-10-15 06:52:32 +02:00
|
|
|
}
|
|
|
|
|
2017-04-10 14:32:40 +02:00
|
|
|
textarea,
|
2017-12-21 18:32:51 +01:00
|
|
|
input[type='text'],
|
|
|
|
input[type='password'],
|
|
|
|
input[type='email'],
|
|
|
|
input[type='number'],
|
|
|
|
input[type='search'],
|
|
|
|
input[type='date'] {
|
2017-10-15 05:52:23 +02:00
|
|
|
background: var(--input-bg);
|
|
|
|
border-bottom: var(--input-border-size) solid var(--input-border-color);
|
2017-12-21 18:32:51 +01:00
|
|
|
caret-color: var(--color-primary);
|
2017-10-15 05:52:23 +02:00
|
|
|
color: var(--input-color);
|
2017-04-10 14:32:40 +02:00
|
|
|
cursor: pointer;
|
2017-10-15 05:52:23 +02:00
|
|
|
line-height: 1;
|
2017-12-21 18:32:51 +01:00
|
|
|
padding: 0 1px 8px 1px;
|
2017-04-10 14:32:40 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
-webkit-appearance: none;
|
2017-12-21 18:32:51 +01:00
|
|
|
transition: all var(--transition-duration) var(--transition-type);
|
2017-04-10 14:32:40 +02:00
|
|
|
|
2017-10-15 06:52:32 +02:00
|
|
|
&::-webkit-input-placeholder {
|
2017-10-15 05:52:23 +02:00
|
|
|
color: var(--input-placeholder-color);
|
|
|
|
opacity: var(--input-placeholder-opacity) !important;
|
2017-12-21 18:32:51 +01:00
|
|
|
}
|
2017-10-15 05:52:23 +02:00
|
|
|
|
|
|
|
&:focus {
|
2017-10-15 06:52:32 +02:00
|
|
|
border-color: var(--color-primary);
|
2017-10-15 05:52:23 +02:00
|
|
|
background: var(--input-active-bg);
|
|
|
|
}
|
|
|
|
|
2017-12-21 18:32:51 +01:00
|
|
|
&:hover:not(:focus) {
|
2017-10-15 05:52:23 +02:00
|
|
|
border-color: var(--input-hover-border-color);
|
|
|
|
}
|
2017-08-20 07:58:03 +02:00
|
|
|
|
2017-04-10 14:32:40 +02:00
|
|
|
&.form-field__input--error {
|
2017-08-18 07:37:35 +02:00
|
|
|
border-color: var(--color-error);
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
2017-10-15 05:52:23 +02:00
|
|
|
|
2017-04-12 16:55:19 +02:00
|
|
|
&.form-field__input--inline {
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
2017-12-21 18:32:51 +01:00
|
|
|
border-bottom-width: var(--input-border-size);
|
2017-04-12 16:55:19 +02:00
|
|
|
margin-left: 8px;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
textarea {
|
2017-05-22 00:34:12 +02:00
|
|
|
padding: 2px;
|
2017-08-19 03:46:45 +02:00
|
|
|
border: var(--input-border-size) solid var(--input-border-color);
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
|
|
|
}
|
2017-10-16 01:13:32 +02:00
|
|
|
.form-field--address {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2017-06-15 21:30:56 +02:00
|
|
|
.form-field--SimpleMDE {
|
|
|
|
display: block;
|
|
|
|
}
|
2017-04-10 14:32:40 +02:00
|
|
|
|
2017-12-21 18:32:51 +01:00
|
|
|
.form-field__label,
|
|
|
|
.form-row__label {
|
2017-10-15 00:03:05 +02:00
|
|
|
color: var(--form-label-color);
|
2017-10-15 21:50:13 +02:00
|
|
|
&[for] {
|
|
|
|
cursor: pointer;
|
2017-10-15 00:37:40 +02:00
|
|
|
}
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
2017-04-09 17:06:23 +02:00
|
|
|
|
2017-09-07 15:38:44 +02:00
|
|
|
.form-row__label-row .form-field__label--error {
|
|
|
|
/*the row restriction is to prevent coloring checkboxes and radio labels*/
|
2017-08-18 07:37:35 +02:00
|
|
|
color: var(--color-error);
|
2017-04-09 17:06:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.form-field__input-text {
|
2017-08-18 07:37:35 +02:00
|
|
|
width: var(--input-width);
|
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
|
|
|
}
|
|
|
|
|
2017-12-21 18:32:51 +01:00
|
|
|
.form-field__error,
|
|
|
|
.form-field__helper {
|
2017-04-09 17:06:23 +02:00
|
|
|
margin-top: $spacing-vertical * 1/3;
|
|
|
|
font-size: 0.8em;
|
2017-12-21 18:32:51 +01:00
|
|
|
transition: opacity var(--transition-duration) var(--transition-type);
|
2017-04-09 17:06:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.form-field__error {
|
2017-08-18 07:37:35 +02:00
|
|
|
color: var(--color-error);
|
2017-04-09 17:06:23 +02:00
|
|
|
}
|
|
|
|
.form-field__helper {
|
2017-12-21 18:32:51 +01:00
|
|
|
color: var(--color-help);
|
2017-06-15 21:30:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.form-field__input.form-field__input-SimpleMDE .CodeMirror-scroll {
|
|
|
|
height: auto;
|
2017-08-18 07:37:35 +02:00
|
|
|
}
|