form-select.css in Drupal 10
Same filename and directory in other branches
Select input elements.
File
core/themes/olivero/css/components/form-select.cssView source
- /*
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/3084859
- * @preserve
- */
-
- /**
- * @file
- * Select input elements.
- */
-
- /*
- * Media query breakpoints.
- * Processed by postcss/postcss-custom-media.
- */
-
- /* Navigation related breakpoints */
-
- /* Grid related breakpoints */
-
- /* Grid shifts from 6 to 14 columns. */
-
- /* Width of the entire grid maxes out. */
-
- :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");
- }
-
- [dir="ltr"] select {
- padding-left: var(--sp);
- }
-
- [dir="rtl"] select {
- padding-right: var(--sp);
- }
-
- [dir="ltr"] select {
- padding-right: var(--sp3);
- }
-
- [dir="rtl"] select {
- padding-left: var(--sp3);
- }
-
- select {
- max-width: 100%;
- height: var(--sp3);
- padding-top: 0;
- padding-bottom: 0;
- 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 {
-
- /* Hides default chevron within Internet Explorer. */
- }
-
- select::-ms-expand {
- display: none;
- }
-
- 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);
- }
-
- select {
-
- /* Necessary to show chevron in forced colors mode in modern browsers. */
- }
-
- @media (forced-colors: active) {
-
- [dir="ltr"] select {
- padding-right: var(--sp);
- }
-
- [dir="rtl"] select {
- padding-left: var(--sp);
- }
-
- select {
- background-image: none;
- -webkit-appearance: listbox;
- appearance: listbox /* Default
-
- /* Lets browser set
- }
- @supports ((-webkit-appearance: revert) or (appearance: revert)) {
-
- select {
- -webkit-appearance: revert;
- appearance: revert
- }
- }
- }
-
- select {
-
- /* Necessary for Internet Explorer to show chevron. */
- }
-
- @media screen and (-ms-high-contrast: active) {
-
- [dir="ltr"] select {
- padding-right: 0;
- }
-
- [dir="rtl"] select {
- padding-left: 0;
- }
-
- select {
-
- /* Re-enable default chevron for Internet Explorer. */
- }
- select::-ms-expand {
- display: block;
- }
- }
-
- [dir="rtl"] select {
- background-position: left var(--sp) center;
- }