clone of olivero for island lives
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

1 year 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.
*/
1 year ago
: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");
1 year ago
}
select {
max-width: 100%;
12 months ago
height: var(--sp2);
1 year ago
padding-block: 0;
padding-inline-start: var(--sp);
padding-inline-end: var(--sp3);
1 year ago
color: var(--color-text-neutral-loud);
border: 1px solid var(--color--gray-60);
border-radius: var(--border-radius);
background-color: var(--color--white);
1 year ago
background-image: var(--form-element-select-icon);
1 year ago
background-repeat: no-repeat;
background-position: right var(--sp) center; /* LTR */
font-family: inherit;
font-size: inherit;
-webkit-appearance: none;
1 year ago
appearance: none;
1 year ago
}
select:focus {
1 year ago
border: solid 2px var(--color--primary-50);
outline: solid 2px var(--color--primary-50);
}
1 year ago
@supports (outline-style: double) {
1 year ago
select:focus {
border-width: 1px;
outline-width: 6px;
outline-style: double;
outline-offset: -1px;
1 year ago
}
1 year ago
}
1 year ago
select[disabled] {
1 year ago
color: var(--color--gray-60);
background-color: var(--color--gray-100);
}
1 year ago
select.error {
1 year ago
border: solid 2px var(--color--red);
}
1 year ago
select.error:focus {
1 year ago
outline-color: var(--color--red);
}
1 year ago
select[multiple] {
1 year ago
height: auto;
padding: var(--sp0-5);
background-image: none;
line-height: 1; /* Needed by non-Chromium based MS Edge browsers. */
}
1 year ago
select[multiple] option {
1 year ago
padding: var(--sp0-5);
}
1 year ago
select.form-element--small {
1 year ago
height: var(--sp2-5);
1 year ago
}
1 year ago
1 year ago
/* Necessary to show chevron in forced colors mode in modern browsers. */
1 year ago
1 year ago
@media (forced-colors: active) {
select {
padding-inline-end: var(--sp);
1 year ago
background-image: none;
-webkit-appearance: listbox;
1 year ago
appearance: listbox; /* Default <select> appearance value for modern browsers. */
1 year ago
/* Lets browser set <select> appearance to whatever the browser's default is. */
1 year ago
}
@supports ((-webkit-appearance: revert) or (appearance: revert)) {
select {
1 year ago
-webkit-appearance: revert;
1 year ago
appearance: revert;
1 year ago
}
}
1 year ago
}
1 year ago
[dir="rtl"] select {
background-position: left var(--sp) center;
}