form--select.css

Same filename in other branches
  1. 9 core/themes/claro/css/components/form--select.css
  2. 8.9.x core/themes/claro/css/components/form--select.css
  3. 10 core/themes/claro/css/components/form--select.css

Select input elements.

File

core/themes/claro/css/components/form--select.css

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Select input elements.
  10. */
  11. .form-element--type-select {
  12. padding-inline-end: calc(2rem - var(--input-border-size));
  13. background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3e%3cpath fill='none' stroke-width='1.5' d='M1 1l6 6 6-6' stroke='%23545560'/%3e%3c/svg%3e");
  14. background-repeat: no-repeat;
  15. background-position: 100% 50%;
  16. background-size: 2.75rem 0.5625rem; /* w: 14px + (2 * 15px), h: 9px */
  17. /**
  18. * Select states.
  19. */
  20. }
  21. .form-element--type-select:focus {
  22. background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3e%3cpath fill='none' stroke-width='1.5' d='M1 1l6 6 6-6' stroke='%23003ecc'/%3e%3c/svg%3e");
  23. }
  24. .form-element--type-select[disabled] {
  25. background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3e%3cpath fill='none' stroke-width='1.5' d='M1 1l6 6 6-6' stroke='%238e929c'/%3e%3c/svg%3e");
  26. }
  27. [dir="rtl"] .form-element--type-select {
  28. background-position: 0 50%;
  29. }
  30. .no-touchevents .form-element--type-select.form-element--extrasmall,
  31. .no-touchevents .form-element--type-select[name$="][_weight]"] {
  32. padding-inline-end: calc(1.5rem - var(--input-border-size));
  33. background-size: 1.75rem 0.4375rem; /* w: 14px + (2 * 7px), h: 7px */
  34. }
  35. @media (forced-colors: active) {
  36. .form-element--type-select,
  37. .form-element--type-select:focus,
  38. .form-element--type-select[disabled] {
  39. padding-inline-end: var(--input-padding-horizontal);
  40. background-image: none;
  41. appearance: revert; /* Revert appearance value for modern browsers. */
  42. }
  43. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.