2016-03-23 05:26:27 +00:00
|
|
|
@import '../constants/dimensions';
|
|
|
|
@import '../constants/colors';
|
|
|
|
|
|
|
|
.form-control {
|
|
|
|
outline: none;
|
|
|
|
border: 0;
|
2016-12-21 23:37:48 +00:00
|
|
|
margin-bottom: @padding-sm;
|
2016-11-29 20:55:31 +00:00
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
2016-03-23 05:26:27 +00:00
|
|
|
|
2017-03-09 07:38:48 +00:00
|
|
|
.input,
|
2016-12-21 23:37:48 +00:00
|
|
|
input,
|
2016-04-10 02:58:48 +00:00
|
|
|
textarea,
|
2017-01-24 22:25:21 +00:00
|
|
|
select,
|
2016-12-21 23:37:48 +00:00
|
|
|
button {
|
2016-03-23 05:26:27 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2016-11-29 20:55:31 +00:00
|
|
|
display: block;
|
|
|
|
margin-top: @padding-xs;
|
2017-03-09 06:23:23 +00:00
|
|
|
box-sizing: border-box;
|
2016-11-29 20:55:31 +00:00
|
|
|
}
|
|
|
|
|
2016-12-21 23:37:48 +00:00
|
|
|
button,
|
|
|
|
input[type="radio"],
|
|
|
|
input[type="checkbox"] {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="radio"],
|
|
|
|
input[type="checkbox"] {
|
|
|
|
height: 1rem;
|
|
|
|
float: left;
|
|
|
|
margin-top: @padding-xxs;
|
|
|
|
margin-right: @padding-xs;
|
|
|
|
}
|
|
|
|
|
2016-11-29 20:55:31 +00:00
|
|
|
& > button {
|
|
|
|
width: auto;
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
|
|
|
|
2016-10-21 17:20:36 +00:00
|
|
|
input:invalid {
|
2017-01-23 22:41:31 +00:00
|
|
|
border: 1px solid var(--color-warning) !important;
|
2016-06-16 06:16:24 +00:00
|
|
|
}
|
|
|
|
|
2016-11-29 20:55:31 +00:00
|
|
|
label {
|
|
|
|
font-weight: 600;
|
|
|
|
display: block;
|
2017-03-28 22:45:23 +00:00
|
|
|
padding-top: @padding-xs;
|
2017-03-09 06:23:23 +00:00
|
|
|
|
|
|
|
* {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2016-11-29 20:55:31 +00:00
|
|
|
}
|
|
|
|
|
2016-12-21 23:37:48 +00:00
|
|
|
&.form-control--thin {
|
|
|
|
label {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
margin-bottom: @padding-xxs;
|
|
|
|
}
|
|
|
|
|
2016-11-22 19:42:10 +00:00
|
|
|
&.form-control--padded,
|
2016-04-09 01:14:25 +00:00
|
|
|
&.form-control--outlined,
|
|
|
|
&.form-control--underlined {
|
2016-04-10 02:58:48 +00:00
|
|
|
textarea,
|
2017-03-09 07:38:48 +00:00
|
|
|
.input,
|
2017-01-24 22:25:21 +00:00
|
|
|
input,
|
|
|
|
select {
|
2017-03-09 06:23:23 +00:00
|
|
|
border: 1px solid var(--hl-md);
|
2017-01-27 01:00:27 +00:00
|
|
|
padding: @padding-sm;
|
2016-08-29 17:58:59 +00:00
|
|
|
border-radius: @radius-md;
|
2017-01-24 02:52:48 +00:00
|
|
|
background-color: @hl-xxs;
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
2016-04-09 01:14:25 +00:00
|
|
|
|
2017-06-09 21:42:19 +00:00
|
|
|
&:not(.form-control--tall) {
|
|
|
|
.input,
|
|
|
|
input,
|
|
|
|
select {
|
|
|
|
height: @line-height-xs;
|
|
|
|
}
|
2017-01-27 01:00:27 +00:00
|
|
|
}
|
|
|
|
|
2017-03-09 07:38:48 +00:00
|
|
|
.input[data-focused="on"],
|
2016-11-29 20:55:31 +00:00
|
|
|
textarea:focus,
|
2017-01-24 22:25:21 +00:00
|
|
|
select:focus,
|
2016-04-09 01:14:25 +00:00
|
|
|
input:focus {
|
2016-11-29 20:55:31 +00:00
|
|
|
background-color: transparent;
|
2017-03-09 06:23:23 +00:00
|
|
|
border-color: var(--hl-lg);
|
2016-04-09 01:14:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-09 07:38:48 +00:00
|
|
|
&.form-control--underlined .input[data-focused="on"],
|
2017-01-23 22:41:31 +00:00
|
|
|
&.form-control--underlined input:focus,
|
|
|
|
&.form-control--underlined textarea:focus {
|
2017-03-09 06:23:23 +00:00
|
|
|
border-color: var(--hl);
|
2017-01-23 22:41:31 +00:00
|
|
|
}
|
|
|
|
|
2016-11-22 19:42:10 +00:00
|
|
|
&.form-control--padded {
|
2017-03-09 07:38:48 +00:00
|
|
|
.input,
|
2016-11-22 19:42:10 +00:00
|
|
|
textarea,
|
2017-01-24 22:25:21 +00:00
|
|
|
select,
|
2016-11-22 19:42:10 +00:00
|
|
|
input {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-09 01:14:25 +00:00
|
|
|
&.form-control--underlined {
|
2016-04-10 02:58:48 +00:00
|
|
|
textarea,
|
2017-01-24 22:25:21 +00:00
|
|
|
select,
|
2017-03-09 07:38:48 +00:00
|
|
|
.input,
|
2016-04-09 01:14:25 +00:00
|
|
|
input {
|
2016-04-15 02:13:49 +00:00
|
|
|
border-radius: 0;
|
2016-04-09 01:14:25 +00:00
|
|
|
border-top: 0;
|
|
|
|
border-right: 0;
|
|
|
|
border-left: 0;
|
2017-03-23 22:10:42 +00:00
|
|
|
background: none;
|
|
|
|
padding-left: @padding-xxs;
|
|
|
|
padding-right: @padding-xxs;
|
2016-04-09 01:14:25 +00:00
|
|
|
}
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-12 06:10:46 +00:00
|
|
|
.form-control--wide {
|
2016-04-10 02:58:48 +00:00
|
|
|
margin-left: 0 !important;
|
|
|
|
margin-right: 0 !important;
|
|
|
|
}
|
|
|
|
|
2017-03-28 22:45:23 +00:00
|
|
|
.form-control--no-label::before {
|
|
|
|
content: 'nothing';
|
|
|
|
opacity: 0;
|
|
|
|
padding-top: @padding-xs;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2016-12-21 23:37:48 +00:00
|
|
|
.form-row {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
align-content: center;
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
& > * {
|
|
|
|
width: 100%;
|
2017-07-20 01:55:40 +00:00
|
|
|
margin-left: @padding-xxs;
|
|
|
|
margin-right: @padding-xxs;
|
2016-12-21 23:37:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
& > p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > *:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > *:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-01 22:58:09 +00:00
|
|
|
.icon {
|
|
|
|
text-align: center;
|
|
|
|
color: var(--hl);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--color-font);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-23 05:26:27 +00:00
|
|
|
.btn {
|
|
|
|
text-align: center;
|
2017-03-29 02:21:49 +00:00
|
|
|
background: var(--color-bg);
|
2016-03-23 05:26:27 +00:00
|
|
|
|
2017-06-01 22:58:09 +00:00
|
|
|
&:not(.btn--plain) {
|
|
|
|
padding: 0 (@padding-md * 1.5);
|
|
|
|
height: @line-height-md;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
}
|
|
|
|
|
2016-03-23 05:26:27 +00:00
|
|
|
&.btn--compact {
|
2016-08-29 17:58:59 +00:00
|
|
|
padding: 0 @padding-md;
|
|
|
|
height: @line-height-sm;
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
2016-07-19 19:13:51 +00:00
|
|
|
|
|
|
|
&.btn--super-compact {
|
2016-08-29 17:58:59 +00:00
|
|
|
padding: 0 @padding-md;
|
|
|
|
height: @line-height-xs;
|
2016-07-19 19:13:51 +00:00
|
|
|
}
|
|
|
|
|
2016-09-09 18:28:57 +00:00
|
|
|
&.btn--super-duper-compact {
|
|
|
|
padding: 0 @padding-sm;
|
|
|
|
height: @line-height-xxs;
|
|
|
|
}
|
|
|
|
|
2016-07-19 19:13:51 +00:00
|
|
|
&.btn--outlined {
|
2016-08-29 17:58:59 +00:00
|
|
|
border: 1px solid @hl-lg;
|
|
|
|
border-radius: @radius-md;
|
2016-07-19 19:13:51 +00:00
|
|
|
}
|
2016-11-26 00:49:38 +00:00
|
|
|
|
|
|
|
&.btn--clicky {
|
|
|
|
.btn--super-compact;
|
|
|
|
.btn--outlined;
|
|
|
|
}
|
2017-03-29 02:21:49 +00:00
|
|
|
|
|
|
|
&.btn--clicky-small {
|
|
|
|
.btn--super-duper-compact;
|
|
|
|
.btn--outlined;
|
|
|
|
}
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
|
|
|
|
2016-11-24 01:24:59 +00:00
|
|
|
*:disabled {
|
2016-11-24 06:35:39 +00:00
|
|
|
opacity: 0.5;
|
2016-08-15 17:04:36 +00:00
|
|
|
}
|
|
|
|
|
2016-11-22 22:26:52 +00:00
|
|
|
.btn:focus:not(:disabled),
|
|
|
|
.btn.focus:not(:disabled),
|
|
|
|
.btn:hover:not(:disabled) {
|
2017-03-09 06:23:23 +00:00
|
|
|
background-color: @hl-xs;
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
|
|
|
|
2016-11-22 22:26:52 +00:00
|
|
|
.btn:active:not(:disabled) {
|
2017-03-09 06:23:23 +00:00
|
|
|
background-color: @hl-md;
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
|
|
|
|
2016-11-22 22:26:52 +00:00
|
|
|
.btn.btn--no-background {
|
|
|
|
opacity: 0.5;
|
2017-03-09 06:23:23 +00:00
|
|
|
background-color: transparent;
|
2016-11-22 22:26:52 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
2017-03-09 06:23:23 +00:00
|
|
|
background-color: transparent;
|
2016-11-22 22:26:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-09 07:38:48 +00:00
|
|
|
textarea, input, .input, button, select {
|
2017-03-12 00:31:23 +00:00
|
|
|
transition: all 130ms ease-out;
|
2016-03-23 05:26:27 +00:00
|
|
|
box-sizing: border-box;
|
2016-03-23 18:34:39 +00:00
|
|
|
text-align: left;
|
2016-03-23 05:26:27 +00:00
|
|
|
font-size: inherit;
|
|
|
|
text-decoration: inherit;
|
|
|
|
background: none;
|
|
|
|
border: 0;
|
|
|
|
outline: 0;
|
|
|
|
margin: 0;
|
2016-07-08 06:02:40 +00:00
|
|
|
padding: 0;
|
2016-05-01 19:56:30 +00:00
|
|
|
color: inherit;
|
2016-03-23 05:26:27 +00:00
|
|
|
|
|
|
|
&::-webkit-input-placeholder {
|
2017-01-23 22:41:31 +00:00
|
|
|
color: @hl-lg;
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-23 22:41:31 +00:00
|
|
|
input[type=number]::-webkit-inner-spin-button {
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
|
|
|
|
2017-08-19 14:14:12 +00:00
|
|
|
input.input--error, .input.input--error {
|
2017-01-23 22:41:31 +00:00
|
|
|
border-color: var(--color-danger) !important;
|
2016-08-15 17:04:36 +00:00
|
|
|
}
|
|
|
|
|
2016-03-23 05:26:27 +00:00
|
|
|
button {
|
|
|
|
width: auto;
|
2016-04-04 07:15:30 +00:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2016-11-29 20:55:31 +00:00
|
|
|
white-space: nowrap;
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
2016-04-30 05:01:57 +00:00
|
|
|
|
2017-04-06 02:30:28 +00:00
|
|
|
option {
|
|
|
|
background-color: var(--color-bg);
|
|
|
|
color: var(--color-font);
|
|
|
|
}
|
|
|
|
|
2016-04-30 05:01:57 +00:00
|
|
|
textarea.no-resize {
|
|
|
|
resize: none;
|
|
|
|
}
|
2016-11-29 20:55:31 +00:00
|
|
|
|
|
|
|
input[type="color"] {
|
|
|
|
height: @line-height-xs !important;
|
|
|
|
padding: @padding-xxs !important;
|
|
|
|
}
|