2017-01-25 08:13:28 -05:00
|
|
|
/**
|
|
|
|
|
* @copyright Copyright (c) 2016, John Molakvoæ <skjnldsv@protonmail.com>
|
|
|
|
|
* @copyright Copyright (c) 2016, Morris Jobke <hey@morrisjobke.de>
|
|
|
|
|
* @copyright Copyright (c) 2016, Joas Schilling <coding@schilljs.com>
|
|
|
|
|
* @copyright Copyright (c) 2016, Julius Haertl <jus@bitgrid.net>
|
|
|
|
|
* @copyright Copyright (c) 2016, jowi <sjw@gmx.ch>
|
|
|
|
|
* @copyright Copyright (c) 2015, Joas Schilling <nickvergessen@owncloud.com>
|
|
|
|
|
* @copyright Copyright (c) 2015, Hendrik Leppelsack <hendrik@leppelsack.de>
|
2017-03-06 12:07:07 -05:00
|
|
|
* @copyright Copyright (c) 2014-2017, Jan-Christoph Borchardt <hey@jancborchardt.net>
|
2017-01-25 08:13:28 -05:00
|
|
|
*
|
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
|
*
|
|
|
|
|
*/
|
2022-05-04 03:27:46 -04:00
|
|
|
@use 'variables';
|
|
|
|
|
@import 'functions';
|
2017-01-25 08:13:28 -05:00
|
|
|
|
|
|
|
|
/* Specifically override browser styles */
|
2017-11-23 10:37:43 -05:00
|
|
|
input, textarea, select, button, div[contenteditable=true], div[contenteditable=false] {
|
2018-10-19 10:19:37 -04:00
|
|
|
font-family: var(--font-face);
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
.select2-container-multi .select2-choices .select2-search-field input, .select2-search input, .ui-widget {
|
2018-06-14 03:25:19 -04:00
|
|
|
font-family: var(--font-face) !important;
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2022-08-12 05:42:51 -04:00
|
|
|
.select2-container.select2-drop-above .select2-choice {
|
2024-02-20 10:55:00 -05:00
|
|
|
background-image: unset !important;
|
2022-08-12 05:42:51 -04:00
|
|
|
}
|
2016-12-22 05:17:14 -05:00
|
|
|
|
2022-08-15 05:43:35 -04:00
|
|
|
$default-height: 36px;
|
2024-02-20 10:55:32 -05:00
|
|
|
$opacity-disabled: .7;
|
2019-03-02 04:32:36 -05:00
|
|
|
|
2017-01-20 23:34:32 -05:00
|
|
|
/* Simple selector to allow easy overriding */
|
|
|
|
|
select,
|
2022-12-09 20:34:45 -05:00
|
|
|
button:not(
|
|
|
|
|
.button-vue,
|
|
|
|
|
/* "vs__" class prefix is used in the vue-select lib */
|
|
|
|
|
[class^="vs__"]
|
|
|
|
|
),
|
2017-01-20 23:34:32 -05:00
|
|
|
input,
|
2017-10-17 17:09:18 -04:00
|
|
|
textarea,
|
2017-11-23 10:37:43 -05:00
|
|
|
div[contenteditable=true],
|
|
|
|
|
div[contenteditable=false] {
|
2016-12-22 05:17:14 -05:00
|
|
|
width: 130px;
|
2019-03-02 04:32:36 -05:00
|
|
|
min-height: $default-height;
|
2017-01-20 23:34:32 -05:00
|
|
|
box-sizing: border-box;
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
|
2018-06-05 10:06:01 -04:00
|
|
|
/**
|
2024-02-20 10:55:00 -05:00
|
|
|
* color-main-text normal state
|
|
|
|
|
* color-main-text active state
|
|
|
|
|
* color-text-maxcontrast disabled state
|
2018-06-05 10:06:01 -04:00
|
|
|
*/
|
|
|
|
|
|
2024-02-20 10:55:32 -05:00
|
|
|
button:not(.button-vue),
|
|
|
|
|
input:not([type='range']),
|
|
|
|
|
textarea {
|
|
|
|
|
&:disabled {
|
|
|
|
|
cursor: default;
|
|
|
|
|
color: var(--color-text-maxcontrast);
|
|
|
|
|
border-color: var(--color-border-dark);
|
|
|
|
|
opacity: $opacity-disabled;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-15 05:43:35 -04:00
|
|
|
input:not([type="range"]) {
|
2024-02-20 10:55:00 -05:00
|
|
|
outline: none;
|
2022-08-15 05:43:35 -04:00
|
|
|
}
|
|
|
|
|
|
2017-01-20 23:34:32 -05:00
|
|
|
/* Default global values */
|
2019-01-07 11:38:18 -05:00
|
|
|
div.select2-drop .select2-search input, // TODO: REMOVE WHEN DROPPING SELECT2
|
2022-08-11 04:15:40 -04:00
|
|
|
input[type='submit'],
|
|
|
|
|
input[type='button'],
|
|
|
|
|
input[type='reset'],
|
2022-12-09 20:34:45 -05:00
|
|
|
button:not(
|
|
|
|
|
.button-vue,
|
|
|
|
|
[class^="vs__"]
|
|
|
|
|
),
|
|
|
|
|
.button,
|
2017-09-27 08:16:25 -04:00
|
|
|
.pager li a {
|
2022-07-18 07:26:19 -04:00
|
|
|
padding: 7px 14px;
|
2016-12-22 05:17:14 -05:00
|
|
|
font-size: 13px;
|
2018-06-03 05:24:06 -04:00
|
|
|
background-color: var(--color-main-background);
|
2019-10-10 09:54:10 -04:00
|
|
|
color: var(--color-main-text);
|
2018-06-03 15:06:27 -04:00
|
|
|
border: 1px solid var(--color-border-dark);
|
2022-08-12 05:42:51 -04:00
|
|
|
font-size: var(--default-font-size);
|
2016-12-22 05:17:14 -05:00
|
|
|
outline: none;
|
2018-06-03 05:24:06 -04:00
|
|
|
border-radius: var(--border-radius);
|
2017-09-28 13:15:04 -04:00
|
|
|
cursor: text;
|
2023-08-17 13:09:51 -04:00
|
|
|
&:not(.app-navigation-entry-button) {
|
|
|
|
|
margin: 3px 3px 3px 0;
|
|
|
|
|
}
|
2023-08-17 12:33:25 -04:00
|
|
|
&:not(
|
|
|
|
|
:disabled,
|
|
|
|
|
.primary
|
|
|
|
|
) {
|
|
|
|
|
&:not(.app-navigation-entry-button) {
|
|
|
|
|
&:hover,
|
|
|
|
|
&:focus,
|
|
|
|
|
&.active {
|
|
|
|
|
/* active class used for multiselect */
|
|
|
|
|
border-color: var(--color-primary-element);
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
&:active {
|
|
|
|
|
outline: none;
|
|
|
|
|
background-color: var(--color-main-background);
|
2024-02-20 10:55:00 -05:00
|
|
|
color: var(--color-main-text);
|
2023-08-17 12:33:25 -04:00
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
}
|
2022-03-15 20:07:55 -04:00
|
|
|
&:focus-visible {
|
2023-08-18 21:01:12 -04:00
|
|
|
box-shadow: 0 0 0 4px var(--color-main-background) !important;
|
|
|
|
|
outline: 2px solid var(--color-main-text) !important;
|
2022-03-15 20:07:55 -04:00
|
|
|
}
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-01-21 13:25:48 -05:00
|
|
|
&:disabled {
|
2018-06-03 15:06:27 -04:00
|
|
|
background-color: var(--color-background-dark);
|
2022-07-18 11:58:05 -04:00
|
|
|
color: var(--color-main-text);
|
2017-01-20 23:34:32 -05:00
|
|
|
cursor: default;
|
2017-01-22 10:37:23 -05:00
|
|
|
opacity: 0.5;
|
2017-01-20 23:34:32 -05:00
|
|
|
}
|
2018-09-28 03:38:21 -04:00
|
|
|
&:required {
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2022-07-18 11:58:05 -04:00
|
|
|
&:user-invalid {
|
|
|
|
|
box-shadow: 0 0 0 2px var(--color-error) !important;
|
2018-09-28 03:38:21 -04:00
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
/* Primary action button, use sparingly */
|
|
|
|
|
&.primary {
|
2018-06-03 05:24:06 -04:00
|
|
|
background-color: var(--color-primary-element);
|
2018-11-20 11:01:51 -05:00
|
|
|
border-color: var(--color-primary-element);
|
2023-05-12 09:41:40 -04:00
|
|
|
color: var(--color-primary-element-text);
|
2017-01-20 23:34:32 -05:00
|
|
|
cursor: pointer;
|
2018-11-20 11:01:51 -05:00
|
|
|
|
|
|
|
|
/* Apply border to primary button if on log in page (and not in a dark container) or if in header */
|
2018-11-21 08:30:05 -05:00
|
|
|
#body-login :not(.body-login-container) &,
|
2018-11-20 11:01:51 -05:00
|
|
|
#header & {
|
2023-05-12 09:41:40 -04:00
|
|
|
border-color: var(--color-primary-element-text);
|
2018-11-20 11:01:51 -05:00
|
|
|
}
|
|
|
|
|
|
2017-01-21 13:25:48 -05:00
|
|
|
&:not(:disabled) {
|
|
|
|
|
&:hover,
|
2018-06-05 10:06:01 -04:00
|
|
|
&:focus,
|
2018-11-20 11:01:51 -05:00
|
|
|
&:active {
|
2022-07-18 12:14:02 -04:00
|
|
|
background-color: var(--color-primary-element-hover);
|
|
|
|
|
border-color: var(--color-primary-element-hover);
|
|
|
|
|
}
|
|
|
|
|
&:focus,
|
|
|
|
|
&:focus-visible {
|
|
|
|
|
box-shadow: 0 0 0 2px var(--color-main-text);
|
2017-01-20 23:34:32 -05:00
|
|
|
}
|
2017-01-21 13:25:48 -05:00
|
|
|
&:active {
|
2023-05-04 06:26:42 -04:00
|
|
|
color: var(--color-primary-element-text-dark);
|
2017-01-20 23:34:32 -05:00
|
|
|
}
|
|
|
|
|
}
|
2017-01-21 13:25:48 -05:00
|
|
|
&:disabled {
|
2018-06-05 10:06:01 -04:00
|
|
|
// opacity is already defined to .5 if disabled
|
|
|
|
|
background-color: var(--color-primary-element);
|
2023-05-04 06:26:42 -04:00
|
|
|
color: var(--color-primary-element-text-dark);
|
2018-12-11 04:25:48 -05:00
|
|
|
cursor: default;
|
2017-01-20 23:34:32 -05:00
|
|
|
}
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-11-23 10:37:43 -05:00
|
|
|
div[contenteditable=false] {
|
|
|
|
|
margin: 3px 3px 3px 0;
|
|
|
|
|
padding: 7px 6px;
|
|
|
|
|
font-size: 13px;
|
2018-06-03 05:24:06 -04:00
|
|
|
background-color: var(--color-main-background);
|
2024-02-20 10:55:00 -05:00
|
|
|
color: var(--color-text-maxcontrast);
|
2018-06-03 15:06:27 -04:00
|
|
|
border: 1px solid var(--color-background-darker);
|
2017-11-23 10:37:43 -05:00
|
|
|
outline: none;
|
2018-06-03 05:24:06 -04:00
|
|
|
border-radius: var(--border-radius);
|
2017-11-23 10:37:43 -05:00
|
|
|
|
2018-06-03 15:06:27 -04:00
|
|
|
background-color: var(--color-background-dark);
|
2024-02-20 10:55:00 -05:00
|
|
|
color: var(--color-text-maxcontrast);
|
2017-11-23 10:37:43 -05:00
|
|
|
cursor: default;
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-20 23:34:32 -05:00
|
|
|
/* Specific override */
|
2016-12-22 05:17:14 -05:00
|
|
|
input {
|
2017-01-20 23:34:32 -05:00
|
|
|
&:not([type='radio']):not([type='checkbox']):not([type='range']):not([type='submit']):not([type='button']):not([type='reset']):not([type='color']):not([type='file']):not([type='image']) {
|
2016-12-22 05:17:14 -05:00
|
|
|
-webkit-appearance: textfield;
|
|
|
|
|
-moz-appearance: textfield;
|
2024-02-20 10:55:00 -05:00
|
|
|
appearance: textfield;
|
2019-03-02 04:32:36 -05:00
|
|
|
// force height for inline elements like inputs (not textarea, contenteditable...)
|
|
|
|
|
height: $default-height;
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
&[type='radio'],
|
|
|
|
|
&[type='checkbox'],
|
|
|
|
|
&[type='file'],
|
|
|
|
|
&[type='image'] {
|
|
|
|
|
height: auto;
|
|
|
|
|
width: auto;
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
/* Color input doesn't respect the initial height
|
|
|
|
|
so we need to set a custom one */
|
|
|
|
|
&[type='color'] {
|
|
|
|
|
margin: 3px;
|
|
|
|
|
padding: 0 2px;
|
|
|
|
|
min-height: 30px;
|
|
|
|
|
width: 40px;
|
|
|
|
|
cursor: pointer;
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
&[type='hidden'] {
|
|
|
|
|
height: 0;
|
|
|
|
|
width: 0;
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
&[type='time'] {
|
|
|
|
|
width: initial;
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 'Click' inputs */
|
|
|
|
|
select,
|
2022-12-09 20:34:45 -05:00
|
|
|
button:not(
|
|
|
|
|
.button-vue,
|
|
|
|
|
[class^="vs__"]
|
|
|
|
|
),
|
|
|
|
|
.button,
|
2021-11-25 10:16:02 -05:00
|
|
|
input[type='button'],
|
2017-01-20 23:34:32 -05:00
|
|
|
input[type='submit'],
|
|
|
|
|
input[type='reset'] {
|
2022-08-11 04:15:40 -04:00
|
|
|
padding: 8px 14px;
|
|
|
|
|
font-size: var(--default-font-size);
|
2017-01-20 23:34:32 -05:00
|
|
|
width: auto;
|
2019-03-02 04:32:36 -05:00
|
|
|
min-height: $default-height;
|
2017-01-20 23:34:32 -05:00
|
|
|
cursor: pointer;
|
|
|
|
|
box-sizing: border-box;
|
2018-06-03 15:06:27 -04:00
|
|
|
background-color: var(--color-background-dark);
|
2020-02-27 04:58:16 -05:00
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
cursor: default;
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-08-11 04:15:40 -04:00
|
|
|
|
2022-12-09 20:34:45 -05:00
|
|
|
input:not(
|
|
|
|
|
[type='range'],
|
|
|
|
|
.input-field__input,
|
|
|
|
|
[type='submit'],
|
|
|
|
|
[type='button'],
|
|
|
|
|
[type='reset'],
|
|
|
|
|
.multiselect__input,
|
|
|
|
|
.select2-input,
|
|
|
|
|
.action-input__input,
|
|
|
|
|
[class^="vs__"]
|
|
|
|
|
),
|
2022-08-11 04:15:40 -04:00
|
|
|
select,
|
|
|
|
|
div[contenteditable=true],
|
|
|
|
|
textarea {
|
|
|
|
|
margin: 3px 3px 3px 0;
|
|
|
|
|
padding: 0 12px;
|
|
|
|
|
font-size: var(--default-font-size);
|
|
|
|
|
background-color: var(--color-main-background);
|
|
|
|
|
color: var(--color-main-text);
|
2022-12-07 19:28:15 -05:00
|
|
|
border: 2px solid var(--color-border-maxcontrast);
|
2022-08-11 04:15:40 -04:00
|
|
|
height: 36px;
|
|
|
|
|
outline: none;
|
|
|
|
|
border-radius: var(--border-radius-large);
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
&:not(:disabled):hover, &:not(:disabled):focus, &:not(:disabled):active {
|
2023-11-07 10:18:00 -05:00
|
|
|
border-color: 2px solid var(--color-main-text);
|
|
|
|
|
box-shadow: 0 0 0 2px var(--color-main-background);
|
2022-08-11 04:15:40 -04:00
|
|
|
}
|
|
|
|
|
&:not(:disabled):focus {
|
|
|
|
|
cursor: text;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-12 05:42:51 -04:00
|
|
|
.multiselect__input, .select2-input {
|
|
|
|
|
background-color: var(--color-main-background);
|
|
|
|
|
color: var(--color-main-text);
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-11 04:15:40 -04:00
|
|
|
textarea, div[contenteditable=true] {
|
|
|
|
|
padding: 12px;
|
|
|
|
|
height: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Override the ugly select arrow */
|
|
|
|
|
select {
|
|
|
|
|
background: var(--icon-triangle-s-dark) no-repeat right 8px center;
|
|
|
|
|
appearance: none;
|
|
|
|
|
background-color: var(--color-main-background);
|
|
|
|
|
padding-right: 28px !important;
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-27 04:58:16 -05:00
|
|
|
select,
|
2022-12-09 20:34:45 -05:00
|
|
|
button:not(
|
|
|
|
|
.button-vue,
|
|
|
|
|
[class^="vs__"]
|
|
|
|
|
),
|
|
|
|
|
.button {
|
2020-02-27 04:58:16 -05:00
|
|
|
* {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
* {
|
|
|
|
|
cursor: default;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Buttons */
|
2022-12-09 20:34:45 -05:00
|
|
|
button:not(
|
|
|
|
|
.button-vue,
|
|
|
|
|
[class^="vs__"]
|
|
|
|
|
),
|
|
|
|
|
.button,
|
2021-11-25 10:16:02 -05:00
|
|
|
input[type='button'],
|
2017-01-20 23:34:32 -05:00
|
|
|
input[type='submit'],
|
|
|
|
|
input[type='reset'] {
|
|
|
|
|
font-weight: bold;
|
2018-10-19 10:19:37 -04:00
|
|
|
border-radius: var(--border-radius-pill);
|
|
|
|
|
|
|
|
|
|
/* Get rid of the inside dotted line in Firefox */
|
2017-01-20 23:34:32 -05:00
|
|
|
&::-moz-focus-inner {
|
|
|
|
|
border: 0;
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2020-01-10 10:50:20 -05:00
|
|
|
|
|
|
|
|
&.error {
|
|
|
|
|
background-color: var(--color-error) !important;
|
|
|
|
|
border-color: var(--color-error) !important;
|
|
|
|
|
color: #fff !important;
|
|
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
}
|
2022-12-09 20:34:45 -05:00
|
|
|
button:not(
|
|
|
|
|
.button-vue,
|
|
|
|
|
.action-button,
|
|
|
|
|
[class^="vs__"]
|
|
|
|
|
),
|
|
|
|
|
.button {
|
2017-01-23 03:17:07 -05:00
|
|
|
> span {
|
2017-01-22 11:25:02 -05:00
|
|
|
/* icon position inside buttons */
|
|
|
|
|
&[class^='icon-'],
|
|
|
|
|
&[class*=' icon-'] {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
vertical-align: text-bottom;
|
2017-01-22 11:30:38 -05:00
|
|
|
opacity: 0.5;
|
2017-01-22 11:25:02 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-05 11:17:10 -05:00
|
|
|
/* Confirm inputs */
|
|
|
|
|
input {
|
|
|
|
|
&[type='text'],
|
|
|
|
|
&[type='password'],
|
|
|
|
|
&[type='email'] {
|
|
|
|
|
+ .icon-confirm {
|
2022-08-12 05:42:51 -04:00
|
|
|
margin-left: -13px !important;
|
2018-03-05 11:17:10 -05:00
|
|
|
border-left-color: transparent !important;
|
2022-08-12 05:42:51 -04:00
|
|
|
border-radius: 0 var(--border-radius-large) var(--border-radius-large) 0 !important;
|
|
|
|
|
border-width: 2px;
|
2018-03-09 11:46:34 -05:00
|
|
|
background-clip: padding-box;
|
|
|
|
|
/* Avoid background under border */
|
2018-06-03 05:24:06 -04:00
|
|
|
background-color: var(--color-main-background) !important;
|
2018-03-06 04:21:35 -05:00
|
|
|
opacity: 1;
|
2019-03-02 04:32:36 -05:00
|
|
|
height: $default-height;
|
|
|
|
|
width: $default-height;
|
2018-03-06 04:21:35 -05:00
|
|
|
padding: 7px 6px;
|
|
|
|
|
cursor: pointer;
|
2018-11-10 03:48:14 -05:00
|
|
|
margin-right: 0;
|
2018-03-06 04:21:35 -05:00
|
|
|
&:disabled {
|
|
|
|
|
cursor: default;
|
2022-05-04 03:27:46 -04:00
|
|
|
@include icon-color('confirm-fade', 'actions', variables.$color-black, 2, true);
|
2018-03-06 04:21:35 -05:00
|
|
|
}
|
2018-03-05 11:17:10 -05:00
|
|
|
}
|
2018-03-09 11:46:34 -05:00
|
|
|
|
2018-03-05 11:17:10 -05:00
|
|
|
/* only show confirm borders if input is not focused */
|
|
|
|
|
&:not(:active):not(:hover):not(:focus){
|
2018-09-28 03:38:21 -04:00
|
|
|
&:invalid {
|
|
|
|
|
+ .icon-confirm {
|
|
|
|
|
border-color: var(--color-error);
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-03-05 11:17:10 -05:00
|
|
|
+ .icon-confirm {
|
|
|
|
|
&:active,
|
|
|
|
|
&:hover,
|
|
|
|
|
&:focus {
|
2018-06-03 05:24:06 -04:00
|
|
|
border-color: var(--color-primary-element) !important;
|
|
|
|
|
border-radius: var(--border-radius) !important;
|
2018-03-06 04:21:35 -05:00
|
|
|
&:disabled {
|
2018-06-03 15:06:27 -04:00
|
|
|
border-color: var(--color-background-darker) !important;
|
2018-03-06 04:21:35 -05:00
|
|
|
}
|
2018-03-05 11:17:10 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&:active,
|
|
|
|
|
&:hover,
|
|
|
|
|
&:focus {
|
|
|
|
|
+ .icon-confirm {
|
2018-06-03 05:24:06 -04:00
|
|
|
border-color: var(--color-primary-element) !important;
|
2018-03-05 11:17:10 -05:00
|
|
|
border-left-color: transparent !important;
|
2018-09-28 03:38:21 -04:00
|
|
|
/* above previous input */
|
2018-03-09 11:46:34 -05:00
|
|
|
z-index: 2;
|
2018-03-05 11:17:10 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2017-01-20 23:34:32 -05:00
|
|
|
/* Various Fixes */
|
|
|
|
|
button img,
|
|
|
|
|
.button img {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
select,
|
|
|
|
|
.button.multiselect {
|
2018-10-01 17:29:46 -04:00
|
|
|
font-weight: normal;
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
|
2017-01-20 23:34:32 -05:00
|
|
|
/* Radio & Checkboxes */
|
2019-04-30 03:55:39 -04:00
|
|
|
$checkbox-radio-size: 14px;
|
|
|
|
|
$color-checkbox-radio-white: #fff;
|
2018-12-19 05:31:10 -05:00
|
|
|
|
2018-06-14 03:25:19 -04:00
|
|
|
input {
|
2017-01-20 23:34:32 -05:00
|
|
|
&[type='checkbox'],
|
|
|
|
|
&[type='radio'] {
|
|
|
|
|
&.radio,
|
2016-12-22 05:17:14 -05:00
|
|
|
&.checkbox {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: -10000px;
|
|
|
|
|
top: auto;
|
|
|
|
|
width: 1px;
|
|
|
|
|
height: 1px;
|
|
|
|
|
overflow: hidden;
|
2017-01-20 23:34:32 -05:00
|
|
|
+ label {
|
|
|
|
|
user-select: none;
|
|
|
|
|
}
|
|
|
|
|
&:disabled + label,
|
|
|
|
|
&:disabled + label:before {
|
|
|
|
|
cursor: default;
|
|
|
|
|
}
|
2016-12-22 05:17:14 -05:00
|
|
|
+ label:before {
|
|
|
|
|
content: '';
|
|
|
|
|
display: inline-block;
|
2019-04-30 03:55:39 -04:00
|
|
|
height: $checkbox-radio-size;
|
|
|
|
|
width: $checkbox-radio-size;
|
2016-12-22 05:17:14 -05:00
|
|
|
vertical-align: middle;
|
2017-01-20 23:34:32 -05:00
|
|
|
border-radius: 50%;
|
2019-04-30 03:55:39 -04:00
|
|
|
margin: 0 6px 3px 3px;
|
2024-02-20 10:55:00 -05:00
|
|
|
border: 1px solid var(--color-text-maxcontrast);
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
&:not(:disabled):not(:checked) + label:hover:before,
|
|
|
|
|
&:focus + label:before {
|
2018-06-03 05:24:06 -04:00
|
|
|
border-color: var(--color-primary-element);
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2020-11-20 10:25:34 -05:00
|
|
|
&:focus-visible + label {
|
|
|
|
|
outline-style: solid;
|
2021-02-26 04:15:02 -05:00
|
|
|
outline-color: var(--color-main-text);
|
2020-11-20 10:25:34 -05:00
|
|
|
outline-width: 1px;
|
|
|
|
|
outline-offset: 2px;
|
|
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
&:checked + label:before,
|
|
|
|
|
&.checkbox:indeterminate + label:before {
|
|
|
|
|
/* ^ :indeterminate have a strange behavior on radio,
|
|
|
|
|
so we respecified the checkbox class again to be safe */
|
2018-06-03 05:24:06 -04:00
|
|
|
box-shadow: inset 0px 0px 0px 2px var(--color-main-background);
|
|
|
|
|
background-color: var(--color-primary-element);
|
|
|
|
|
border-color: var(--color-primary-element);
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
&:disabled + label:before {
|
2024-02-20 10:55:00 -05:00
|
|
|
border: 1px solid var(--color-text-maxcontrast);
|
2022-05-04 03:56:50 -04:00
|
|
|
background-color: var(--color-text-maxcontrast) !important; /* override other status */
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
&:checked:disabled + label:before {
|
2022-05-04 03:56:50 -04:00
|
|
|
background-color: var(--color-text-maxcontrast);
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2019-01-24 09:42:52 -05:00
|
|
|
|
|
|
|
|
// Detail description below label of checkbox or radio button
|
|
|
|
|
& + label ~ em {
|
|
|
|
|
display: inline-block;
|
2019-07-04 12:10:29 -04:00
|
|
|
margin-left: 25px;
|
2019-01-24 09:42:52 -05:00
|
|
|
}
|
|
|
|
|
& + label ~ em:last-of-type {
|
2019-04-30 03:55:39 -04:00
|
|
|
margin-bottom: $checkbox-radio-size;
|
2019-01-24 09:42:52 -05:00
|
|
|
}
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
&.checkbox {
|
2016-12-22 05:17:14 -05:00
|
|
|
+ label:before {
|
2017-01-20 23:34:32 -05:00
|
|
|
border-radius: 1px;
|
2019-04-30 03:55:39 -04:00
|
|
|
height: $checkbox-radio-size;
|
|
|
|
|
width: $checkbox-radio-size;
|
2017-01-20 23:34:32 -05:00
|
|
|
box-shadow: none !important;
|
2017-01-21 13:05:20 -05:00
|
|
|
background-position: center;
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-01-21 13:05:20 -05:00
|
|
|
&:checked + label:before {
|
|
|
|
|
background-image: url('../img/actions/checkbox-mark.svg');
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-01-21 13:05:20 -05:00
|
|
|
&:indeterminate + label:before {
|
|
|
|
|
background-image: url('../img/actions/checkbox-mixed.svg');
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
}
|
2017-10-04 10:09:45 -04:00
|
|
|
|
2022-05-04 03:56:50 -04:00
|
|
|
/* We do not use the variables as we keep the colours as white for this variant */
|
2017-01-20 23:34:32 -05:00
|
|
|
&.radio--white,
|
|
|
|
|
&.checkbox--white {
|
2017-09-28 12:57:02 -04:00
|
|
|
+ label:before,
|
2017-01-20 23:34:32 -05:00
|
|
|
&:focus + label:before {
|
2017-10-04 10:09:45 -04:00
|
|
|
border-color: darken($color-checkbox-radio-white, 27%);
|
2017-09-28 12:57:02 -04:00
|
|
|
}
|
|
|
|
|
&:not(:disabled):not(:checked) + label:hover:before {
|
2018-06-05 10:06:01 -04:00
|
|
|
border-color: $color-checkbox-radio-white;
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-01-31 13:29:30 -05:00
|
|
|
&:checked + label:before {
|
2018-06-03 05:24:06 -04:00
|
|
|
box-shadow: inset 0px 0px 0px 2px var(--color-main-background);
|
2017-10-04 10:09:45 -04:00
|
|
|
background-color: darken($color-checkbox-radio-white, 14%);
|
|
|
|
|
border-color: darken($color-checkbox-radio-white, 14%);
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
&:disabled + label:before {
|
2017-10-04 10:09:45 -04:00
|
|
|
background-color: darken($color-checkbox-radio-white, 27%) !important; /* override other status */
|
2018-06-05 10:06:01 -04:00
|
|
|
border-color: rgba($color-checkbox-radio-white, 0.4) !important; /* override other status */
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
&:checked:disabled + label:before {
|
2018-06-03 05:24:06 -04:00
|
|
|
box-shadow: inset 0px 0px 0px 2px var(--color-main-background);
|
2018-06-05 10:06:01 -04:00
|
|
|
border-color: rgba($color-checkbox-radio-white, 0.4) !important; /* override other status */
|
2017-10-04 10:09:45 -04:00
|
|
|
background-color: darken($color-checkbox-radio-white, 27%);
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
&.checkbox--white {
|
2017-01-31 13:29:30 -05:00
|
|
|
&:checked + label:before,
|
|
|
|
|
&:indeterminate + label:before {
|
|
|
|
|
background-color: transparent !important; /* Override default checked */
|
2018-06-05 10:06:01 -04:00
|
|
|
border-color: $color-checkbox-radio-white !important; /* Override default checked */
|
2017-01-22 10:30:13 -05:00
|
|
|
background-image: url('../img/actions/checkbox-mark-white.svg');
|
2017-01-21 13:05:20 -05:00
|
|
|
}
|
|
|
|
|
&:indeterminate + label:before {
|
2017-01-22 10:30:13 -05:00
|
|
|
background-image: url('../img/actions/checkbox-mixed-white.svg');
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-09-28 12:57:02 -04:00
|
|
|
&:disabled + label:before {
|
|
|
|
|
opacity: 0.7; /* No other choice for white background image */
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-20 23:34:32 -05:00
|
|
|
/* Select2 overriding. Merged to core with vendor stylesheet */
|
2019-01-07 11:38:18 -05:00
|
|
|
div.select2-drop {
|
2016-12-22 05:17:14 -05:00
|
|
|
margin-top: -2px;
|
2018-06-03 05:24:06 -04:00
|
|
|
background-color: var(--color-main-background);
|
2016-12-22 05:17:14 -05:00
|
|
|
&.select2-drop-active {
|
2018-06-03 15:06:27 -04:00
|
|
|
border-color: var(--color-border-dark);
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
.avatar {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
margin-right: 8px;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
img {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.select2-search input {
|
|
|
|
|
min-height: auto;
|
2022-05-04 03:56:50 -04:00
|
|
|
background: var(--icon-search-dark) no-repeat right center !important;
|
2016-12-22 05:17:14 -05:00
|
|
|
background-origin: content-box !important;
|
|
|
|
|
}
|
|
|
|
|
.select2-results {
|
|
|
|
|
max-height: 250px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
.select2-result-label {
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
span {
|
|
|
|
|
cursor: pointer;
|
2021-12-01 13:04:16 -05:00
|
|
|
em {
|
|
|
|
|
cursor: inherit;
|
|
|
|
|
background: unset;
|
|
|
|
|
}
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
.select2-result,
|
|
|
|
|
.select2-no-results,
|
|
|
|
|
.select2-searching {
|
2016-12-22 05:17:14 -05:00
|
|
|
position: relative;
|
|
|
|
|
display: list-item;
|
|
|
|
|
padding: 12px;
|
2017-09-05 12:50:33 -04:00
|
|
|
background-color: transparent;
|
2016-12-22 05:17:14 -05:00
|
|
|
cursor: pointer;
|
2024-02-20 10:55:00 -05:00
|
|
|
color: var(--color-text-maxcontrast);
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
.select2-result {
|
|
|
|
|
&.select2-selected {
|
2018-06-03 15:06:27 -04:00
|
|
|
background-color: var(--color-background-dark);
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-09-05 12:50:33 -04:00
|
|
|
}
|
|
|
|
|
.select2-highlighted {
|
2018-06-03 15:06:27 -04:00
|
|
|
background-color: var(--color-background-dark);
|
2018-06-03 05:24:06 -04:00
|
|
|
color: var(--color-main-text);
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
.select2-chosen,
|
|
|
|
|
#select2-drop {
|
|
|
|
|
.avatar,
|
|
|
|
|
.avatar img {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-01-09 09:13:34 -05:00
|
|
|
div.select2-container-multi {
|
|
|
|
|
.select2-choices,
|
|
|
|
|
&.select2-container-active .select2-choices {
|
2016-12-22 05:17:14 -05:00
|
|
|
box-shadow: none;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
text-overflow: ellipsis;
|
2018-06-03 05:24:06 -04:00
|
|
|
background: var(--color-main-background);
|
2024-02-20 10:55:00 -05:00
|
|
|
color: var(--color-text-maxcontrast) !important;
|
2016-12-22 05:17:14 -05:00
|
|
|
box-sizing: content-box;
|
2022-08-12 05:42:51 -04:00
|
|
|
border-radius: var(--border-radius-large);
|
|
|
|
|
border: 2px solid var(--color-border-dark);
|
2016-12-22 05:17:14 -05:00
|
|
|
margin: 0;
|
2022-08-12 05:42:51 -04:00
|
|
|
padding: 6px;
|
|
|
|
|
min-height: 44px;
|
|
|
|
|
&:focus-within {
|
2023-05-12 09:41:40 -04:00
|
|
|
border-color: var(--color-primary-element)
|
2022-08-12 05:42:51 -04:00
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
.select2-search-choice {
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
&.select2-search-choice-focus,
|
|
|
|
|
&:hover,
|
|
|
|
|
&:active,
|
|
|
|
|
& {
|
|
|
|
|
background-image: none;
|
2018-06-03 05:24:06 -04:00
|
|
|
background-color: var(--color-main-background);
|
2024-02-20 10:55:00 -05:00
|
|
|
color: var(--color-text-maxcontrast);
|
2018-06-03 15:06:27 -04:00
|
|
|
border: 1px solid var(--color-border-dark);
|
2017-01-20 23:34:32 -05:00
|
|
|
}
|
|
|
|
|
.select2-search-choice-close {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
.select2-search-field input {
|
|
|
|
|
line-height: 20px;
|
2022-08-12 05:42:51 -04:00
|
|
|
min-height: 28px;
|
|
|
|
|
max-height: 28px;
|
|
|
|
|
color: var(--color-main-text);
|
2017-09-06 07:28:00 -04:00
|
|
|
&.select2-active {
|
|
|
|
|
background: none !important;
|
|
|
|
|
}
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-01-07 11:38:18 -05:00
|
|
|
div.select2-container {
|
2016-12-22 05:17:14 -05:00
|
|
|
margin: 3px 3px 3px 0;
|
|
|
|
|
&.select2-container-multi .select2-choices {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
li {
|
|
|
|
|
float: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-01-07 11:38:18 -05:00
|
|
|
a.select2-choice {
|
2017-01-20 23:34:32 -05:00
|
|
|
box-shadow: none;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
text-overflow: ellipsis;
|
2018-06-03 05:24:06 -04:00
|
|
|
background: var(--color-main-background);
|
2024-02-20 10:55:00 -05:00
|
|
|
color: var(--color-text-maxcontrast) !important;
|
2017-01-20 23:34:32 -05:00
|
|
|
box-sizing: content-box;
|
2022-08-12 05:42:51 -04:00
|
|
|
border-radius: var(--border-radius-large);
|
|
|
|
|
border: 2px solid var(--color-border-dark);
|
2017-01-20 23:34:32 -05:00
|
|
|
margin: 0;
|
2022-08-12 05:42:51 -04:00
|
|
|
padding: 6px 12px;
|
|
|
|
|
min-height: 44px;
|
|
|
|
|
&:focus-within {
|
2023-05-12 09:41:40 -04:00
|
|
|
border-color: var(--color-primary-element)
|
2022-08-12 05:42:51 -04:00
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
.select2-search-choice {
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
background-image: none;
|
2018-06-03 15:06:27 -04:00
|
|
|
background-color: var(--color-background-dark);
|
|
|
|
|
border-color: var(--color-background-dark);
|
2017-01-20 23:34:32 -05:00
|
|
|
.select2-search-choice-close {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
&.select2-search-choice-focus,
|
|
|
|
|
&:hover {
|
2018-06-03 05:24:06 -04:00
|
|
|
background-color: var(--color-border);
|
|
|
|
|
border-color: var(--color-border);
|
2017-01-20 23:34:32 -05:00
|
|
|
}
|
|
|
|
|
}
|
2016-12-22 05:17:14 -05:00
|
|
|
.select2-arrow {
|
|
|
|
|
background: none;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border: none;
|
|
|
|
|
b {
|
2022-05-04 03:56:50 -04:00
|
|
|
background: var(--icon-triangle-s-dark) no-repeat center !important;
|
2016-12-22 05:17:14 -05:00
|
|
|
opacity: .5;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
&:hover .select2-arrow b,
|
|
|
|
|
&:focus .select2-arrow b,
|
|
|
|
|
&:active .select2-arrow b {
|
2016-12-22 05:17:14 -05:00
|
|
|
opacity: .7;
|
|
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
.select2-search-field input {
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
}
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-02-22 11:00:00 -05:00
|
|
|
/* Vue v-select */
|
|
|
|
|
.v-select {
|
|
|
|
|
margin: 3px 3px 3px 0;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
.dropdown-toggle {
|
|
|
|
|
display: flex !important;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
.selected-tag {
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
background-image: none;
|
2018-06-03 05:24:06 -04:00
|
|
|
background-color: var(--color-main-background);
|
2024-02-20 10:55:00 -05:00
|
|
|
color: var(--color-text-maxcontrast);
|
2018-06-03 15:06:27 -04:00
|
|
|
border: 1px solid var(--color-border-dark);
|
2018-02-22 11:00:00 -05:00
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
.close {
|
|
|
|
|
margin-left: 3px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.dropdown-menu {
|
|
|
|
|
padding: 0;
|
|
|
|
|
li {
|
|
|
|
|
padding: 5px;
|
|
|
|
|
position: relative;
|
|
|
|
|
display: list-item;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
cursor: pointer;
|
2024-02-20 10:55:00 -05:00
|
|
|
color: var(--color-text-maxcontrast);
|
2018-02-22 11:00:00 -05:00
|
|
|
a {
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
height: 25px;
|
|
|
|
|
padding: 3px 7px 4px 2px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
min-height: 1em;
|
|
|
|
|
-webkit-touch-callout: none;
|
|
|
|
|
-webkit-user-select: none;
|
|
|
|
|
-moz-user-select: none;
|
|
|
|
|
-ms-user-select: none;
|
|
|
|
|
user-select: none;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
background-color: transparent !important;
|
|
|
|
|
color: inherit !important;
|
|
|
|
|
&::before {
|
|
|
|
|
content: ' ';
|
2022-05-04 03:56:50 -04:00
|
|
|
background-image: var(--icon-checkmark-dark);
|
2018-02-22 11:00:00 -05:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-position: center;
|
|
|
|
|
min-width: 16px;
|
|
|
|
|
min-height: 16px;
|
|
|
|
|
display: block;
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
margin-right: 5px;
|
|
|
|
|
visibility: hidden;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&.highlight {
|
2018-06-03 05:24:06 -04:00
|
|
|
color: var(--color-main-text);
|
2018-02-22 11:00:00 -05:00
|
|
|
}
|
|
|
|
|
&.active > a {
|
2018-06-03 15:06:27 -04:00
|
|
|
background-color: var(--color-background-dark);
|
2018-06-03 05:24:06 -04:00
|
|
|
color: var(--color-main-text);
|
2018-02-22 11:00:00 -05:00
|
|
|
&::before {
|
|
|
|
|
visibility: visible;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-09-27 08:16:25 -04:00
|
|
|
/* Progressbar */
|
2020-07-13 09:42:29 -04:00
|
|
|
progress:not(.vue) {
|
2017-09-27 08:16:25 -04:00
|
|
|
display: block;
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 0;
|
|
|
|
|
border: 0 none;
|
2018-06-03 15:06:27 -04:00
|
|
|
background-color: var(--color-background-dark);
|
2018-06-03 05:24:06 -04:00
|
|
|
border-radius: var(--border-radius);
|
2017-09-27 08:16:25 -04:00
|
|
|
flex-basis: 100%;
|
|
|
|
|
height: 5px;
|
2017-09-28 10:10:30 -04:00
|
|
|
overflow: hidden;
|
2017-09-27 08:16:25 -04:00
|
|
|
&.warn {
|
|
|
|
|
&::-moz-progress-bar {
|
2018-06-03 05:24:06 -04:00
|
|
|
background: var(--color-error);
|
2017-09-27 08:16:25 -04:00
|
|
|
}
|
|
|
|
|
&::-webkit-progress-value {
|
2018-06-03 05:24:06 -04:00
|
|
|
background: var(--color-error);
|
2017-09-27 08:16:25 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&::-webkit-progress-bar {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
&::-moz-progress-bar {
|
2018-06-03 05:24:06 -04:00
|
|
|
border-radius: var(--border-radius);
|
2023-05-12 09:41:40 -04:00
|
|
|
background: var(--color-primary-element);
|
2017-09-27 08:16:25 -04:00
|
|
|
transition: 250ms all ease-in-out;
|
|
|
|
|
}
|
|
|
|
|
&::-webkit-progress-value {
|
2018-06-03 05:24:06 -04:00
|
|
|
border-radius: var(--border-radius);
|
2023-05-12 09:41:40 -04:00
|
|
|
background: var(--color-primary-element);
|
2017-09-27 08:16:25 -04:00
|
|
|
transition: 250ms all ease-in-out;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-20 23:34:32 -05:00
|
|
|
/* Animation */
|
2016-12-22 05:17:14 -05:00
|
|
|
@keyframes shake {
|
2017-01-20 23:34:32 -05:00
|
|
|
10%,
|
|
|
|
|
90% {
|
|
|
|
|
transform: translate(-1px);
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
20%,
|
|
|
|
|
80% {
|
|
|
|
|
transform: translate(2px);
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
30%,
|
|
|
|
|
50%,
|
|
|
|
|
70% {
|
|
|
|
|
transform: translate(-4px);
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
2017-01-20 23:34:32 -05:00
|
|
|
40%,
|
2016-12-22 05:17:14 -05:00
|
|
|
60% {
|
2017-01-20 23:34:32 -05:00
|
|
|
transform: translate(4px);
|
2016-12-22 05:17:14 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.shake {
|
|
|
|
|
animation-name: shake;
|
2017-01-20 23:34:32 -05:00
|
|
|
animation-duration: .7s;
|
2016-12-22 05:17:14 -05:00
|
|
|
animation-timing-function: ease-out;
|
|
|
|
|
}
|
2019-01-25 06:48:59 -05:00
|
|
|
|
|
|
|
|
// Keep the labels for screen readers but hide them since we use placeholders
|
|
|
|
|
// Same as .hidden-visually
|
|
|
|
|
label.infield {
|
|
|
|
|
position: absolute;
|
2020-10-29 16:35:36 -04:00
|
|
|
left: -10000px;
|
|
|
|
|
top: -10000px;
|
2019-01-25 06:48:59 -05:00
|
|
|
width: 1px;
|
|
|
|
|
height: 1px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
2019-10-10 09:54:10 -04:00
|
|
|
|
2023-03-31 10:50:51 -04:00
|
|
|
// when rules are grouped using the comma operator and one selector is invalid / unknown then the whole group is invalidated.
|
|
|
|
|
// https://www.w3.org/TR/selectors-3/#grouping
|
|
|
|
|
// In this case `::-ms-input-placeholder` is unknown to Firefox and Chrome
|
|
|
|
|
@mixin placeholder-style {
|
2019-10-10 09:54:10 -04:00
|
|
|
color: var(--color-text-maxcontrast);
|
2023-03-31 10:50:51 -04:00
|
|
|
font-size: var(--default-font-size);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::placeholder {
|
|
|
|
|
@include placeholder-style;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-ms-input-placeholder {
|
|
|
|
|
@include placeholder-style;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-input-placeholder {
|
|
|
|
|
@include placeholder-style;
|
2019-10-10 09:54:10 -04:00
|
|
|
}
|