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. &:focus {
  21. 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");
  22. }
  23. &[disabled] {
  24. 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");
  25. }
  26. [dir="rtl"]
  27. .no-touchevents
  28. }
  29. }
  30. @media (forced-colors: active) {
  31. .form-element--type-select,
  32. .form-element--type-select:focus,
  33. .form-element--type-select[disabled] {
  34. padding-inline-end: var(--input-padding-horizontal);
  35. background-image: none;
  36. appearance: revert; /* Revert appearance value for modern browsers. */
  37. }
  38. }

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