You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
2.8 KiB
100 lines
2.8 KiB
12 months ago
|
/*
|
||
|
* DO NOT EDIT THIS FILE.
|
||
|
* See the following change record for more information,
|
||
|
* https://www.drupal.org/node/3084859
|
||
|
* @preserve
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* @file
|
||
|
* Select input elements.
|
||
|
*/
|
||
|
|
||
|
:root {
|
||
|
--form-element-select-icon: url("data:image/svg+xml,%3csvg width='18' height='11' viewBox='0 0 18 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 1.49699C18 1.35271 17.9279 1.19038 17.8196 1.08216L16.9178 0.18036C16.8096 0.0721439 16.6473 0 16.503 0C16.3587 0 16.1964 0.0721439 16.0882 0.18036L9 7.26854L1.91182 0.18036C1.80361 0.0721439 1.64128 0 1.49699 0C1.33467 0 1.19038 0.0721439 1.08216 0.18036L0.180361 1.08216C0.0721442 1.19038 0 1.35271 0 1.49699C0 1.64128 0.0721442 1.80361 0.180361 1.91182L8.58517 10.3166C8.69339 10.4248 8.85571 10.497 9 10.497C9.14429 10.497 9.30661 10.4248 9.41483 10.3166L17.8196 1.91182C17.9279 1.80361 18 1.64128 18 1.49699Z' fill='%235D7585'/%3e%3c/svg%3e");
|
||
|
}
|
||
|
|
||
|
select {
|
||
|
max-width: 100%;
|
||
|
height: var(--sp2);
|
||
|
padding-block: 0;
|
||
|
padding-inline-start: var(--sp);
|
||
|
padding-inline-end: var(--sp3);
|
||
|
color: var(--color-text-neutral-loud);
|
||
|
border: 1px solid var(--color--gray-60);
|
||
|
border-radius: var(--border-radius);
|
||
|
background-color: var(--color--white);
|
||
|
background-image: var(--form-element-select-icon);
|
||
|
background-repeat: no-repeat;
|
||
|
background-position: right var(--sp) center; /* LTR */
|
||
|
font-family: inherit;
|
||
|
font-size: inherit;
|
||
|
-webkit-appearance: none;
|
||
|
appearance: none;
|
||
|
}
|
||
|
|
||
|
select:focus {
|
||
|
border: solid 2px var(--color--primary-50);
|
||
|
outline: solid 2px var(--color--primary-50);
|
||
|
}
|
||
|
|
||
|
@supports (outline-style: double) {
|
||
|
select:focus {
|
||
|
border-width: 1px;
|
||
|
outline-width: 6px;
|
||
|
outline-style: double;
|
||
|
outline-offset: -1px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
select[disabled] {
|
||
|
color: var(--color--gray-60);
|
||
|
background-color: var(--color--gray-100);
|
||
|
}
|
||
|
|
||
|
select.error {
|
||
|
border: solid 2px var(--color--red);
|
||
|
}
|
||
|
|
||
|
select.error:focus {
|
||
|
outline-color: var(--color--red);
|
||
|
}
|
||
|
|
||
|
select[multiple] {
|
||
|
height: auto;
|
||
|
padding: var(--sp0-5);
|
||
|
background-image: none;
|
||
|
line-height: 1; /* Needed by non-Chromium based MS Edge browsers. */
|
||
|
}
|
||
|
|
||
|
select[multiple] option {
|
||
|
padding: var(--sp0-5);
|
||
|
}
|
||
|
|
||
|
select.form-element--small {
|
||
|
height: var(--sp2-5);
|
||
|
}
|
||
|
|
||
|
/* Necessary to show chevron in forced colors mode in modern browsers. */
|
||
|
|
||
|
@media (forced-colors: active) {
|
||
|
select {
|
||
|
padding-inline-end: var(--sp);
|
||
|
background-image: none;
|
||
|
-webkit-appearance: listbox;
|
||
|
appearance: listbox; /* Default <select> appearance value for modern browsers. */
|
||
|
|
||
|
/* Lets browser set <select> appearance to whatever the browser's default is. */
|
||
|
}
|
||
|
@supports ((-webkit-appearance: revert) or (appearance: revert)) {
|
||
|
select {
|
||
|
-webkit-appearance: revert;
|
||
|
appearance: revert;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[dir="rtl"] select {
|
||
|
background-position: left var(--sp) center;
|
||
|
}
|