2017-09-07 00:34:11 +02:00
|
|
|
|
|
|
|
@mixin placeholder {
|
|
|
|
&::-webkit-input-placeholder {@content}
|
|
|
|
&:-moz-placeholder {@content}
|
|
|
|
&:-ms-input-placeholder {@content}
|
|
|
|
}
|
2017-04-09 17:06:23 +02:00
|
|
|
|
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-08-18 07:37:35 +02: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-04-20 16:45:39 +02:00
|
|
|
input[type="text"].input-copyable {
|
2017-08-20 19:07:26 +02:00
|
|
|
background: var(--input-bg);
|
|
|
|
color: var(--input-color);
|
2017-04-20 16:45:39 +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-10-12 04:52:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input[readonly] {
|
|
|
|
border-bottom: 1px dashed var(--input-border-color) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[readonly]:focus {
|
|
|
|
background: var(--input-bg) !important;
|
|
|
|
border-bottom: 1px dashed var(--input-border-color !important);
|
2017-04-20 16:45:39 +02:00
|
|
|
}
|
|
|
|
|
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
|
|
|
|
|
|
|
input[type="checkbox"],
|
|
|
|
input[type="radio"] {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
height: $spacing-vertical;
|
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-08-19 03:46:45 +02:00
|
|
|
outline: var(--input-border-size) solid var(--color-primary);
|
2017-04-10 20:12:07 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 {
|
2017-09-07 00:34:11 +02:00
|
|
|
color: lighten($text-color, 60%);
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
2017-08-19 02:06:53 +02:00
|
|
|
transition: all var(--transition-duration) var(--transition-type);
|
2017-04-10 14:32:40 +02:00
|
|
|
cursor: pointer;
|
|
|
|
padding-left: 1px;
|
|
|
|
padding-right: 1px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
-webkit-appearance: none;
|
2017-08-20 07:58:03 +02:00
|
|
|
background: var(--input-bg);
|
|
|
|
color: var(--input-color);
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input[type="text"],
|
|
|
|
input[type="password"],
|
|
|
|
input[type="email"],
|
|
|
|
input[type="number"],
|
|
|
|
input[type="search"],
|
|
|
|
input[type="date"] {
|
2017-08-19 03:46:45 +02:00
|
|
|
border-bottom: var(--input-border-size) solid var(--input-border-color);
|
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-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-04-12 16:55:19 +02:00
|
|
|
&.form-field__input--inline {
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
2017-10-15 00:03:05 +02: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
|
|
|
}
|
|
|
|
|
2017-10-15 00:03:05 +02:00
|
|
|
textarea,
|
|
|
|
input[type="text"],
|
|
|
|
input[type="password"],
|
|
|
|
input[type="email"],
|
|
|
|
input[type="number"],
|
|
|
|
input[type="search"],
|
|
|
|
input[type="date"]{
|
|
|
|
|
|
|
|
& ::-webkit-input-placeholder { /* WebKit browsers */
|
|
|
|
color: var(--input-color);
|
|
|
|
opacity: 0.54 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
caret-color: var(--color-primary);
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border-color: var(--color-primary) !important;
|
|
|
|
background: var(--input-active-bg);
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
border-color: var(--input-hover-border-color);
|
|
|
|
}
|
|
|
|
|
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-06-15 21:30:56 +02:00
|
|
|
.form-field--SimpleMDE {
|
|
|
|
display: block;
|
|
|
|
}
|
2017-04-10 14:32:40 +02:00
|
|
|
|
2017-10-15 00:03:05 +02:00
|
|
|
|
2017-10-12 15:45:51 +02:00
|
|
|
.form-field__label, .form-row__label {
|
2017-10-15 00:03:05 +02:00
|
|
|
color: var(--form-label-color);
|
2017-04-10 14:32:40 +02:00
|
|
|
&[for] { cursor: pointer; }
|
|
|
|
> input[type="checkbox"], input[type="radio"] {
|
|
|
|
margin-right: 6px;
|
|
|
|
}
|
2017-10-15 00:03:05 +02:00
|
|
|
|
|
|
|
&.focus {
|
|
|
|
color: var(--color-primary) !important;
|
|
|
|
}
|
|
|
|
|
2017-10-15 00:37:40 +02:00
|
|
|
&.checked {
|
|
|
|
color: var(--text-color) !important;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
.form-field__error, .form-field__helper {
|
|
|
|
margin-top: $spacing-vertical * 1/3;
|
|
|
|
font-size: 0.8em;
|
2017-08-19 02:06:53 +02: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-08-18 07:37:35 +02: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
|
|
|
}
|