init
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Josh Johnson
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+379
@@ -0,0 +1,379 @@
|
||||
@charset "UTF-8";
|
||||
.choices {
|
||||
margin-bottom: var(--choices-guttering, 24px);
|
||||
font-size: var(--choices-font-size-lg, 16px);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.choices:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.choices:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.choices.is-open {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.choices.is-disabled :is(.choices__inner, .choices__input) {
|
||||
background-color: var(--choices-bg-color-disabled, #eaeaea);
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
cursor: not-allowed !important;
|
||||
}
|
||||
|
||||
.choices.is-disabled .choices__item {
|
||||
cursor: not-allowed;
|
||||
color: var(--choices-item-disabled-color, #fff);
|
||||
}
|
||||
|
||||
.choices [hidden] {
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
}
|
||||
|
||||
.choices[data-type*="select-one"] {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.choices[data-type*="select-one"] .choices__inner {
|
||||
padding-bottom: var(--choices-inner-one-padding, 7.5px);
|
||||
}
|
||||
|
||||
.choices[data-type*="select-one"] .choices__input {
|
||||
width: var(--choices-width, 100%);
|
||||
padding: var(--choices-dropdown-item-padding, 10px);
|
||||
border-bottom: var(--choices-base-border, 1px solid) var(--choices-keyline-color, #ddd);
|
||||
background-color: var(--choices-bg-color-dropdown, #fff);
|
||||
margin: 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.choices[data-type*="select-one"] .choices__button {
|
||||
background-image: var(--choices-icon-cross-inverse, url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg=="));
|
||||
opacity: .25;
|
||||
background-size: 8px;
|
||||
border-radius: 10em;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-top: -10px;
|
||||
margin-right: 25px;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.choices[data-type*="select-one"] .choices__button:is(:hover, :focus) {
|
||||
opacity: var(--choices-button-opacity-hover, 1);
|
||||
}
|
||||
|
||||
.choices[data-type*="select-one"] .choices__button:focus {
|
||||
box-shadow: 0 0 0 2px var(--choices-highlight-color, #005f75);
|
||||
}
|
||||
|
||||
.choices[data-type*="select-one"] .choices__item[data-placeholder] .choices__button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.choices[data-type*="select-one"]:after {
|
||||
content: "";
|
||||
border-style: solid;
|
||||
border-color: var(--choices-text-color, #333) transparent transparent transparent;
|
||||
border-width: var(--choices-arrow-size, 5px);
|
||||
width: 0;
|
||||
height: 0;
|
||||
right: var(--choices-arrow-right, 11.5px);
|
||||
margin-top: var(--choices-arrow-margin-top, -2.5px);
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
}
|
||||
|
||||
.choices[data-type*="select-one"].is-open:after {
|
||||
border-color: transparent transparent var(--choices-text-color, #333);
|
||||
margin-top: var(--choices-arrow-margin-top-open, -7.5px);
|
||||
}
|
||||
|
||||
.choices[data-type*="select-one"][dir="rtl"]:after {
|
||||
left: 11.5px;
|
||||
right: auto;
|
||||
}
|
||||
|
||||
.choices[data-type*="select-one"][dir="rtl"] .choices__button {
|
||||
margin-left: 25px;
|
||||
margin-right: 0;
|
||||
left: 0;
|
||||
right: auto;
|
||||
}
|
||||
|
||||
.choices:is([data-type*="select-multiple"], [data-type*="text"]) .choices__inner {
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
.choices:is([data-type*="select-multiple"], [data-type*="text"]) .choices__button {
|
||||
margin: 0 calc(var(--choices-button-offset, 8px) * -.5) 0 var(--choices-button-offset, 8px);
|
||||
padding-left: calc(var(--choices-button-offset, 8px) * 2);
|
||||
border-left: 1px solid color-mix(in srgb, var(--choices-primary-color, #005f75) 90%, var(--choices-darken, black));
|
||||
background-image: var(--choices-icon-cross, url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg=="));
|
||||
background-size: var(--choices-button-dimension, 8px);
|
||||
width: var(--choices-button-dimension, 8px);
|
||||
line-height: var(--choices-button-line-height, 1);
|
||||
border-radius: var(--choices-button-border-radius, 0);
|
||||
opacity: var(--choices-button-opacity, .75);
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.choices:is([data-type*="select-multiple"], [data-type*="text"]) .choices__button:is(:hover, :focus) {
|
||||
--choices-button-opacity: var(--choices-button-opacity-hover, 1);
|
||||
}
|
||||
|
||||
.choices__inner {
|
||||
vertical-align: top;
|
||||
width: var(--choices-width, 100%);
|
||||
background-color: var(--choices-bg-color, #f9f9f9);
|
||||
padding: var(--choices-inner-padding, 7.5px 7.5px 3.75px);
|
||||
border: var(--choices-base-border, 1px solid) var(--choices-keyline-color, #ddd);
|
||||
border-radius: var(--choices-border-radius, 2.5px);
|
||||
font-size: var(--choices-font-size-md, 14px);
|
||||
min-height: var(--choices-input-height, 44px);
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.is-focused .choices__inner, .is-open .choices__inner {
|
||||
border-color: color-mix(in srgb, var(--choices-keyline-color, #ddd) 85%, var(--choices-darken, black));
|
||||
}
|
||||
|
||||
.is-open .choices__inner {
|
||||
border-radius: var(--choices-border-radius, 2.5px) var(--choices-border-radius, 2.5px) 0 0;
|
||||
}
|
||||
|
||||
.is-invalid .choices__inner {
|
||||
border-color: var(--choices-invalid-color, #d33141);
|
||||
}
|
||||
|
||||
.is-flipped.is-open .choices__inner {
|
||||
border-radius: 0 0 var(--choices-border-radius, 2.5px) var(--choices-border-radius, 2.5px);
|
||||
}
|
||||
|
||||
.choices__list {
|
||||
margin: 0;
|
||||
padding-left: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.choices__list--single {
|
||||
padding: var(--choices-list-single-padding, 4px 16px 4px 4px);
|
||||
width: var(--choices-width, 100%);
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
[dir="rtl"] .choices__list--single {
|
||||
padding-left: 16px;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
.choices__list--single .choices__item {
|
||||
width: var(--choices-width, 100%);
|
||||
}
|
||||
|
||||
.choices__list--multiple {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.choices__list--multiple .choices__item {
|
||||
vertical-align: middle;
|
||||
border-radius: var(--choices-border-radius-item, 20px);
|
||||
padding: var(--choices-multiple-item-padding, 4px 10px);
|
||||
font-size: var(--choices-font-size-sm, 12px);
|
||||
margin-right: var(--choices-multiple-item-margin, 3.75px);
|
||||
margin-bottom: var(--choices-multiple-item-margin, 3.75px);
|
||||
background-color: var(--choices-primary-color, #005f75);
|
||||
border: 1px solid color-mix(in srgb, var(--choices-primary-color, #005f75) 95%, var(--choices-darken, black));
|
||||
color: var(--choices-item-color, #fff);
|
||||
word-break: break-all;
|
||||
box-sizing: border-box;
|
||||
font-weight: 500;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.choices__list--multiple .choices__item[data-deletable] {
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
[dir="rtl"] .choices__list--multiple .choices__item {
|
||||
margin-right: 0;
|
||||
margin-left: var(--choices-multiple-item-margin, 3.75px);
|
||||
}
|
||||
|
||||
.choices__list--multiple .choices__item.is-highlighted {
|
||||
background-color: color-mix(in srgb, var(--choices-primary-color, #005f75) 95%, var(--choices-darken, black));
|
||||
border: 1px solid color-mix(in srgb, var(--choices-primary-color, #005f75) 90%, var(--choices-darken, black));
|
||||
}
|
||||
|
||||
.is-disabled .choices__list--multiple .choices__item {
|
||||
background-color: color-mix(in srgb, var(--choices-disabled-color, #eaeaea) 75%, var(--choices-darken, black));
|
||||
border: 1px solid color-mix(in srgb, var(--choices-disabled-color, #eaeaea) 65%, var(--choices-darken, black));
|
||||
}
|
||||
|
||||
.choices__list--dropdown, .choices__list[aria-expanded] {
|
||||
z-index: var(--choices-z-index, 1);
|
||||
width: var(--choices-width, 100%);
|
||||
background-color: var(--choices-bg-color-dropdown, #fff);
|
||||
border: var(--choices-base-border, 1px solid) var(--choices-keyline-color, #ddd);
|
||||
border-bottom-left-radius: var(--choices-border-radius, 2.5px);
|
||||
border-bottom-right-radius: var(--choices-border-radius, 2.5px);
|
||||
word-break: break-all;
|
||||
margin-top: -1px;
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.is-active.choices__list--dropdown, .is-active.choices__list[aria-expanded] {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.is-open .choices__list--dropdown, .is-open .choices__list[aria-expanded] {
|
||||
border-color: color-mix(in srgb, var(--choices-keyline-color, #ddd) 85%, var(--choices-darken, black));
|
||||
}
|
||||
|
||||
.is-flipped .choices__list--dropdown, .is-flipped .choices__list[aria-expanded] {
|
||||
border-radius: .25rem .25rem 0 0;
|
||||
margin-top: 0;
|
||||
margin-bottom: -1px;
|
||||
top: auto;
|
||||
bottom: 100%;
|
||||
}
|
||||
|
||||
.choices__list--dropdown .choices__list, .choices__list[aria-expanded] .choices__list {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
will-change: scroll-position;
|
||||
max-height: 300px;
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.choices__list--dropdown .choices__item, .choices__list[aria-expanded] .choices__item {
|
||||
padding: var(--choices-dropdown-item-padding, 10px);
|
||||
font-size: var(--choices-font-size-md, 14px);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
[dir="rtl"] .choices__list--dropdown .choices__item, [dir="rtl"] .choices__list[aria-expanded] .choices__item {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@media (width >= 640px) {
|
||||
.choices__list--dropdown .choices__item--selectable.is-highlighted[data-select-text], .choices__list[aria-expanded] .choices__item--selectable.is-highlighted[data-select-text] {
|
||||
padding-right: 100px;
|
||||
}
|
||||
|
||||
.choices__list--dropdown .choices__item--selectable.is-highlighted[data-select-text]:after, .choices__list[aria-expanded] .choices__item--selectable.is-highlighted[data-select-text]:after {
|
||||
content: attr(data-select-text);
|
||||
font-size: var(--choices-font-size-sm, 12px);
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 10px;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
[dir="rtl"] .choices__list--dropdown .choices__item--selectable.is-highlighted[data-select-text], [dir="rtl"] .choices__list[aria-expanded] .choices__item--selectable.is-highlighted[data-select-text] {
|
||||
text-align: right;
|
||||
padding-left: 100px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
[dir="rtl"] .choices__list--dropdown .choices__item--selectable.is-highlighted[data-select-text]:after, [dir="rtl"] .choices__list[aria-expanded] .choices__item--selectable.is-highlighted[data-select-text]:after {
|
||||
left: 10px;
|
||||
right: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.choices__list--dropdown .choices__item--selectable.is-selected:after, .choices__list[aria-expanded] .choices__item--selectable.is-selected:after {
|
||||
content: none !important;
|
||||
}
|
||||
|
||||
.choices__list--dropdown .choices__item--selectable.is-selected, .choices__list[aria-expanded] .choices__item--selectable.is-selected, .choices__list--dropdown .choices__item--selectable.is-highlighted, .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
|
||||
background-color: var(--choices-highlighted-color, #f2f2f2);
|
||||
}
|
||||
|
||||
.choices__item {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.choices__item--selectable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.choices__item--disabled {
|
||||
cursor: not-allowed;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
opacity: .5;
|
||||
}
|
||||
|
||||
.choices__heading {
|
||||
border-bottom: 1px solid color-mix(in srgb, var(--choices-keyline-color, #ddd) 90%, var(--choices-lighten, white));
|
||||
color: gray;
|
||||
padding: 10px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.choices__button {
|
||||
text-indent: -9999px;
|
||||
appearance: none;
|
||||
cursor: pointer;
|
||||
background-color: #0000;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.choices__button:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.choices__input {
|
||||
vertical-align: baseline;
|
||||
background-color: var(--choices-bg-color, #f9f9f9);
|
||||
font-size: var(--choices-font-size-md, 14px);
|
||||
margin-bottom: var(--choices-input-margin-bottom, 5px);
|
||||
max-width: var(--choices-width, 100%);
|
||||
padding: var(--choices-input-padding, 4px 0 4px 2px);
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.choices__input:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.choices__input::-webkit-search-decoration, .choices__input::-webkit-search-cancel-button, .choices__input::-webkit-search-results-button, .choices__input::-webkit-search-results-decoration {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.choices__input::-ms-clear, .choices__input::-ms-reveal {
|
||||
width: 0;
|
||||
height: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
[dir="rtl"] .choices__input {
|
||||
padding-left: 0;
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
.choices__placeholder {
|
||||
opacity: var(--choices-placeholder-opacity, .5);
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
+5285
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.
+222
@@ -0,0 +1,222 @@
|
||||
/* =============================================
|
||||
= Generic styling =
|
||||
============================================= */
|
||||
|
||||
:root {
|
||||
--color-primary: #005F75;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
/* Demo defaults */
|
||||
--body-bg: #272a2b;
|
||||
--text-color: #cacaca;
|
||||
--color-primary: #38daff;
|
||||
--section-bg: #181a1b;
|
||||
--section-color: #cacaca;
|
||||
--hr-border: #373a3d;
|
||||
--choices-primary-color: #38daff;
|
||||
--choices-item-color: black;
|
||||
--choices-bg-color: #101010;
|
||||
--choices-bg-color-dropdown: #101010;
|
||||
--choices-keyline-color: #3b3e40;
|
||||
--choices-bg-color-disabled: #181a1b;
|
||||
--choices-item-disabled-color: #eee;
|
||||
--choices-disabled-color: #2d2d2d;
|
||||
--choices-highlighted-color: #16292d;
|
||||
--choices-icon-cross: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==");
|
||||
--choices-icon-cross-inverse: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==");
|
||||
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
input, select {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
$global-guttering: 24px;
|
||||
$global-font-size-h1: 32px;
|
||||
$global-font-size-h2: 24px;
|
||||
$global-font-size-h3: 20px;
|
||||
$global-font-size-h4: 18px;
|
||||
$global-font-size-h5: 16px;
|
||||
$global-font-size-h6: 14px;
|
||||
|
||||
* {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
|
||||
font-size: 16px;
|
||||
line-height: 1.4;
|
||||
color: var(--text-color, #fff);
|
||||
background-color: var(--body-bg, #333);
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
hr {
|
||||
display: block;
|
||||
margin: $global-guttering * 1.25 0;
|
||||
border: 0;
|
||||
border-bottom: 1px solid var(--hr-border, #eaeaea);
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
margin-top: 0;
|
||||
margin-bottom: $global-guttering * 0.5;
|
||||
font-weight: 400;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
a,
|
||||
a:visited,
|
||||
a:focus {
|
||||
color: var(--link-color, #fff);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
display: block;
|
||||
width: 100%;
|
||||
background-color: var(--form-bg, #f9f9f9);
|
||||
padding: 12px;
|
||||
border: 1px solid var(--form-boder, #ddd);
|
||||
border-radius: 2.5px;
|
||||
font-size: 14px;
|
||||
appearance: none;
|
||||
margin-bottom: $global-guttering;
|
||||
}
|
||||
|
||||
h1,
|
||||
.h1 {
|
||||
font-size: $global-font-size-h1;
|
||||
}
|
||||
|
||||
h2,
|
||||
.h2 {
|
||||
font-size: $global-font-size-h2;
|
||||
}
|
||||
|
||||
h3,
|
||||
.h3 {
|
||||
font-size: $global-font-size-h3;
|
||||
}
|
||||
|
||||
h4,
|
||||
.h4 {
|
||||
font-size: $global-font-size-h4;
|
||||
}
|
||||
|
||||
h5,
|
||||
.h5 {
|
||||
font-size: $global-font-size-h5;
|
||||
}
|
||||
|
||||
h6,
|
||||
.h6 {
|
||||
font-size: $global-font-size-h6;
|
||||
}
|
||||
|
||||
label + p {
|
||||
margin-top: -4px;
|
||||
}
|
||||
|
||||
.container {
|
||||
display: block;
|
||||
margin: auto;
|
||||
max-width: 40em;
|
||||
padding: $global-guttering * 2;
|
||||
|
||||
@media (max-width: 620px) {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.section {
|
||||
background-color: var(--section-bg, #fff);
|
||||
padding: $global-guttering;
|
||||
color: var(--section-color, #333);
|
||||
|
||||
a,
|
||||
a:visited,
|
||||
a:focus {
|
||||
color: var(--link-color-section, var(--color-primary));
|
||||
}
|
||||
}
|
||||
|
||||
.logo {
|
||||
display: block;
|
||||
margin-bottom: $global-guttering * 0.5;
|
||||
}
|
||||
|
||||
.logo-img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
vertical-align: top;
|
||||
padding: $global-guttering * 0.25 0;
|
||||
}
|
||||
|
||||
.visible-ie {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.push-bottom {
|
||||
margin-bottom: $global-guttering;
|
||||
}
|
||||
|
||||
.zero-bottom {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.zero-top {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
[data-test-hook] {
|
||||
margin-bottom: $global-guttering;
|
||||
}
|
||||
|
||||
/* ===== End of Section comment block ====== */
|
||||
@@ -0,0 +1,440 @@
|
||||
/* ===============================
|
||||
= Choices =
|
||||
=============================== */
|
||||
|
||||
$choices-selector: "choices" !default;
|
||||
$choices-font-size-lg: 16px !default;
|
||||
$choices-font-size-md: 14px !default;
|
||||
$choices-font-size-sm: 12px !default;
|
||||
$choices-guttering: 24px !default;
|
||||
$choices-border-radius: 2.5px !default;
|
||||
$choices-border-radius-item: 20px !default;
|
||||
$choices-bg-color: #f9f9f9 !default;
|
||||
$choices-bg-color-disabled: #eaeaea !default;
|
||||
$choices-bg-color-dropdown: #fff !default;
|
||||
$choices-text-color: #333 !default;
|
||||
$choices-item-color: #fff !default;
|
||||
$choices-keyline-color: #ddd !default;
|
||||
$choices-primary-color: #005F75 !default;
|
||||
$choices-disabled-color: #eaeaea !default;
|
||||
$choices-item-disabled-color: #fff !default;
|
||||
$choices-invalid-color: #d33141 !default;
|
||||
$choices-highlighted-color: #f2f2f2 !default;
|
||||
$choices-highlight-color: $choices-primary-color !default;
|
||||
$choices-button-dimension: 8px !default;
|
||||
$choices-button-offset: 8px !default;
|
||||
$choices-icon-cross: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==") !default;
|
||||
$choices-icon-cross-inverse: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==") !default;
|
||||
$choices-z-index: 1 !default;
|
||||
$choices-input-height: 44px !default;
|
||||
$choices-width: 100% !default;
|
||||
$choices-base-border: 1px solid !default;
|
||||
$choices-multiple-item-margin: 3.75px !default;
|
||||
$choices-multiple-item-padding: 4px 10px !default;
|
||||
$choices-dropdown-item-padding: 10px !default;
|
||||
$choices-list-single-padding: 4px 16px 4px 4px !default;
|
||||
$choices-input-margin-bottom: 5px;
|
||||
$choices-input-padding: 4px 0 4px 2px !default;
|
||||
$choices-inner-padding: 7.5px 7.5px 3.75px !default;
|
||||
$choices-inner-one-padding: 7.5px !default;
|
||||
$choices-arrow-size: 5px !default;
|
||||
$choices-arrow-margin-top: -2.5px !default;
|
||||
$choices-arrow-margin-top-open: -7.5px !default;
|
||||
$choices-arrow-right: 11.5px !default;
|
||||
$choices-button-line-height: 1 !default;
|
||||
$choices-button-border-radius: 0 !default;
|
||||
$choices-button-opacity: 0.75 !default;
|
||||
$choices-button-opacity-hover: 1 !default;
|
||||
$choices-placeholder-opacity: 0.5 !default;
|
||||
|
||||
.#{$choices-selector} {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin-bottom: var(--choices-guttering, #{$choices-guttering});
|
||||
font-size: var(--choices-font-size-lg, #{$choices-font-size-lg});
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&.is-open {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
&.is-disabled {
|
||||
:is(.#{$choices-selector}__inner, .#{$choices-selector}__input) {
|
||||
background-color: var(--choices-bg-color-disabled, #{$choices-bg-color-disabled});
|
||||
cursor: not-allowed !important;
|
||||
user-select: none;
|
||||
}
|
||||
.#{$choices-selector}__item {
|
||||
cursor: not-allowed;
|
||||
color: var(--choices-item-disabled-color, #{$choices-item-disabled-color});
|
||||
}
|
||||
}
|
||||
|
||||
[hidden] {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.#{$choices-selector}[data-type*='select-one'] {
|
||||
cursor: pointer;
|
||||
.#{$choices-selector}__inner {
|
||||
padding-bottom: var(--choices-inner-one-padding, #{$choices-inner-one-padding});
|
||||
}
|
||||
.#{$choices-selector}__input {
|
||||
display: block;
|
||||
width: var(--choices-width, #{$choices-width});
|
||||
padding: var(--choices-dropdown-item-padding, #{$choices-dropdown-item-padding});
|
||||
border-bottom: var(--choices-base-border, #{$choices-base-border}) var(--choices-keyline-color, #{$choices-keyline-color});
|
||||
background-color: var(--choices-bg-color-dropdown, #{$choices-bg-color-dropdown});
|
||||
margin: 0;
|
||||
}
|
||||
.#{$choices-selector}__button {
|
||||
background-image: var(--choices-icon-cross-inverse, #{$choices-icon-cross-inverse});
|
||||
padding: 0;
|
||||
background-size: 8px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
margin-top: -10px;
|
||||
margin-right: 25px;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
border-radius: 10em;
|
||||
opacity: 0.25;
|
||||
|
||||
&:is(:hover, :focus) {
|
||||
opacity: var(--choices-button-opacity-hover, #{$choices-button-opacity-hover});
|
||||
}
|
||||
|
||||
&:focus {
|
||||
box-shadow: 0 0 0 2px var(--choices-highlight-color, #{$choices-highlight-color});
|
||||
}
|
||||
}
|
||||
.#{$choices-selector}__item[data-placeholder] .#{$choices-selector}__button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
height: 0;
|
||||
width: 0;
|
||||
border-style: solid;
|
||||
border-color: var(--choices-text-color, #{$choices-text-color}) transparent transparent transparent;
|
||||
border-width: var(--choices-arrow-size, #{$choices-arrow-size});
|
||||
position: absolute;
|
||||
right: var(--choices-arrow-right, #{$choices-arrow-right});
|
||||
top: 50%;
|
||||
margin-top: var(--choices-arrow-margin-top, #{$choices-arrow-margin-top});
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&.is-open::after {
|
||||
border-color: transparent transparent var(--choices-text-color, #{$choices-text-color});
|
||||
margin-top: var(--choices-arrow-margin-top-open, #{$choices-arrow-margin-top-open});
|
||||
}
|
||||
|
||||
&[dir="rtl"] {
|
||||
&::after {
|
||||
left: 11.5px;
|
||||
right: auto;
|
||||
}
|
||||
.#{$choices-selector}__button {
|
||||
right: auto;
|
||||
left: 0;
|
||||
margin-left: 25px;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.#{$choices-selector}:is([data-type*='select-multiple'], [data-type*='text']) {
|
||||
.#{$choices-selector}__inner {
|
||||
cursor: text;
|
||||
}
|
||||
.#{$choices-selector}__button {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
margin: 0 calc(var(--choices-button-offset, #{$choices-button-offset}) * -0.5) 0 var(--choices-button-offset, #{$choices-button-offset});
|
||||
padding-left: calc(var(--choices-button-offset, #{$choices-button-offset}) * 2);
|
||||
border-left: 1px solid color-mix(in srgb, var(--choices-primary-color, #{$choices-primary-color}) 90%, var(--choices-darken, black));
|
||||
background-image: var(--choices-icon-cross, #{$choices-icon-cross});
|
||||
background-size: var(--choices-button-dimension, #{$choices-button-dimension});
|
||||
width: var(--choices-button-dimension, #{$choices-button-dimension});
|
||||
line-height: var(--choices-button-line-height, #{$choices-button-line-height});
|
||||
border-radius: var(--choices-button-border-radius, #{$choices-button-border-radius});
|
||||
opacity: var(--choices-button-opacity, #{$choices-button-opacity});
|
||||
|
||||
&:is(:hover, :focus) {
|
||||
--choices-button-opacity: var(--choices-button-opacity-hover, #{$choices-button-opacity-hover});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.#{$choices-selector}__inner {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
width: var(--choices-width, #{$choices-width});
|
||||
background-color: var(--choices-bg-color, #{$choices-bg-color});
|
||||
padding: var(--choices-inner-padding, #{$choices-inner-padding});;
|
||||
border: var(--choices-base-border, #{$choices-base-border}) var(--choices-keyline-color, #{$choices-keyline-color});
|
||||
border-radius: var(--choices-border-radius, #{$choices-border-radius});
|
||||
font-size: var(--choices-font-size-md, #{$choices-font-size-md});
|
||||
min-height: var(--choices-input-height, #{$choices-input-height});
|
||||
overflow: hidden;
|
||||
|
||||
.is-focused &,
|
||||
.is-open & {
|
||||
border-color: color-mix(in srgb, var(--choices-keyline-color, #{$choices-keyline-color}) 85%, var(--choices-darken, black));
|
||||
}
|
||||
|
||||
.is-open & {
|
||||
border-radius: var(--choices-border-radius, #{$choices-border-radius}) var(--choices-border-radius, #{$choices-border-radius}) 0 0;
|
||||
}
|
||||
|
||||
.is-invalid & {
|
||||
border-color: var(--choices-invalid-color, #{$choices-invalid-color});
|
||||
}
|
||||
|
||||
.is-flipped.is-open & {
|
||||
border-radius: 0 0 var(--choices-border-radius, #{$choices-border-radius}) var(--choices-border-radius, #{$choices-border-radius});
|
||||
}
|
||||
}
|
||||
|
||||
.#{$choices-selector}__list {
|
||||
margin: 0;
|
||||
padding-left: 0;
|
||||
list-style: none;
|
||||
|
||||
&[aria-expanded] {
|
||||
@extend %choices-dropdown;
|
||||
}
|
||||
}
|
||||
|
||||
.#{$choices-selector}__list--single {
|
||||
display: inline-block;
|
||||
padding: var(--choices-list-single-padding, #{$choices-list-single-padding});
|
||||
width: var(--choices-width, #{$choices-width});
|
||||
|
||||
[dir="rtl"] & {
|
||||
padding-right: 4px;
|
||||
padding-left: 16px;
|
||||
}
|
||||
.#{$choices-selector}__item {
|
||||
width: var(--choices-width, #{$choices-width});
|
||||
}
|
||||
}
|
||||
|
||||
.#{$choices-selector}__list--multiple {
|
||||
display: inline;
|
||||
.#{$choices-selector}__item {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
border-radius: var(--choices-border-radius-item, #{$choices-border-radius-item});
|
||||
padding: var(--choices-multiple-item-padding, #{$choices-multiple-item-padding});
|
||||
font-size: var(--choices-font-size-sm, #{$choices-font-size-sm});
|
||||
font-weight: 500;
|
||||
margin-right: var(--choices-multiple-item-margin, #{$choices-multiple-item-margin});
|
||||
margin-bottom: var(--choices-multiple-item-margin, #{$choices-multiple-item-margin});
|
||||
background-color: var(--choices-primary-color, #{$choices-primary-color});
|
||||
border: 1px solid color-mix(in srgb, var(--choices-primary-color, #{$choices-primary-color}) 95%, var(--choices-darken, black));
|
||||
color: var(--choices-item-color, #{$choices-item-color});
|
||||
word-break: break-all;
|
||||
box-sizing: border-box;
|
||||
|
||||
&[data-deletable] {
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
[dir="rtl"] & {
|
||||
margin-right: 0;
|
||||
margin-left: var(--choices-multiple-item-margin, #{$choices-multiple-item-margin});
|
||||
}
|
||||
|
||||
&.is-highlighted {
|
||||
background-color: color-mix(in srgb, var(--choices-primary-color, #{$choices-primary-color}) 95%, var(--choices-darken, black));
|
||||
border: 1px solid color-mix(in srgb, var(--choices-primary-color, #{$choices-primary-color}) 90%, var(--choices-darken, black));
|
||||
}
|
||||
|
||||
.is-disabled & {
|
||||
background-color: color-mix(in srgb, var(--choices-disabled-color, #{$choices-disabled-color}) 75%, var(--choices-darken, black));
|
||||
border: 1px solid color-mix(in srgb, var(--choices-disabled-color, #{$choices-disabled-color}) 65%, var(--choices-darken, black));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
%choices-dropdown {
|
||||
display: none;
|
||||
z-index: var(--choices-z-index, #{$choices-z-index});
|
||||
position: absolute;
|
||||
width: var(--choices-width, #{$choices-width});
|
||||
background-color: var(--choices-bg-color-dropdown, #{$choices-bg-color-dropdown});
|
||||
border: var(--choices-base-border, #{$choices-base-border}) var(--choices-keyline-color, #{$choices-keyline-color});
|
||||
top: 100%;
|
||||
margin-top: -1px;
|
||||
border-bottom-left-radius: var(--choices-border-radius, #{$choices-border-radius});
|
||||
border-bottom-right-radius: var(--choices-border-radius, #{$choices-border-radius});
|
||||
overflow: hidden;
|
||||
word-break: break-all;
|
||||
|
||||
&.is-active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.is-open & {
|
||||
border-color: color-mix(in srgb, var(--choices-keyline-color, #{$choices-keyline-color}) 85%, var(--choices-darken, black));
|
||||
}
|
||||
|
||||
.is-flipped & {
|
||||
top: auto;
|
||||
bottom: 100%;
|
||||
margin-top: 0;
|
||||
margin-bottom: -1px;
|
||||
border-radius: 0.25rem 0.25rem 0 0;
|
||||
}
|
||||
.#{$choices-selector}__list {
|
||||
position: relative;
|
||||
max-height: 300px;
|
||||
overflow: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
will-change: scroll-position;
|
||||
}
|
||||
.#{$choices-selector}__item {
|
||||
position: relative;
|
||||
padding: var(--choices-dropdown-item-padding, #{$choices-dropdown-item-padding});
|
||||
font-size: var(--choices-font-size-md, #{$choices-font-size-md});
|
||||
|
||||
[dir="rtl"] & {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
.#{$choices-selector}__item--selectable {
|
||||
&.is-highlighted[data-select-text] {
|
||||
@media (min-width: 640px) {
|
||||
padding-right: 100px;
|
||||
|
||||
&::after {
|
||||
content: attr(data-select-text);
|
||||
font-size: var(--choices-font-size-sm, #{$choices-font-size-sm});
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
[dir="rtl"] & {
|
||||
text-align: right;
|
||||
padding-left: 100px;
|
||||
padding-right: 10px;
|
||||
|
||||
&::after {
|
||||
right: auto;
|
||||
left: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Reset the content on selected option
|
||||
&.is-selected {
|
||||
&::after {
|
||||
content: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-selected,
|
||||
&.is-highlighted {
|
||||
background-color: var(--choices-highlighted-color, #{$choices-highlighted-color});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.#{$choices-selector}__list--dropdown {
|
||||
@extend %choices-dropdown;
|
||||
}
|
||||
|
||||
.#{$choices-selector}__item {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.#{$choices-selector}__item--selectable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.#{$choices-selector}__item--disabled {
|
||||
cursor: not-allowed;
|
||||
user-select: none;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.#{$choices-selector}__heading {
|
||||
font-weight: 600;
|
||||
font-size: $choices-font-size-sm;
|
||||
padding: 10px;
|
||||
border-bottom: 1px solid color-mix(in srgb, var(--choices-keyline-color, #{$choices-keyline-color}) 90%, var(--choices-lighten, white));
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.#{$choices-selector}__button {
|
||||
text-indent: -9999px;
|
||||
appearance: none;
|
||||
border: 0;
|
||||
background-color: transparent;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
cursor: pointer;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
.#{$choices-selector}__input {
|
||||
display: inline-block;
|
||||
vertical-align: baseline;
|
||||
background-color: var(--choices-bg-color, #{$choices-bg-color});
|
||||
font-size: var(--choices-font-size-md, #{$choices-font-size-md});
|
||||
margin-bottom: var(--choices-input-margin-bottom, #{$choices-input-margin-bottom});
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
max-width: var(--choices-width, #{$choices-width});
|
||||
padding: var(--choices-input-padding, #{$choices-input-padding});
|
||||
|
||||
&:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
&::-webkit-search-decoration,
|
||||
&::-webkit-search-cancel-button,
|
||||
&::-webkit-search-results-button,
|
||||
&::-webkit-search-results-decoration {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&::-ms-clear,
|
||||
&::-ms-reveal {
|
||||
display: none;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
[dir="rtl"] & {
|
||||
padding-right: 2px;
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.#{$choices-selector}__placeholder {
|
||||
opacity: var(--choices-placeholder-opacity, #{$choices-placeholder-opacity});
|
||||
}
|
||||
|
||||
/* ===== End of Choices ====== */
|
||||
Reference in New Issue
Block a user