form-select.css

Same filename in other branches
  1. 10 core/themes/olivero/css/components/form-select.css
  2. 11.x core/themes/olivero/css/components/form-select.css

Select input elements.

File

core/themes/olivero/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. [dir="ltr"] select {
  12. padding-left: 1.125rem;
  13. }
  14. [dir="rtl"] select {
  15. padding-right: 1.125rem;
  16. }
  17. [dir="ltr"] select {
  18. padding-right: 3.375rem;
  19. }
  20. [dir="rtl"] select {
  21. padding-left: 3.375rem;
  22. }
  23. select {
  24. max-width: 100%;
  25. height: 3.375rem;
  26. padding-top: 0;
  27. padding-bottom: 0;
  28. color: #0d1214;
  29. border: 1px solid #7e96a7;
  30. border-radius: 0.1875rem;
  31. background-color: #fff;
  32. background-image: url("../../images/chevron-down.svg");
  33. background-repeat: no-repeat;
  34. background-position: right 18px center; /* LTR */
  35. font-family: inherit;
  36. font-size: inherit;
  37. -webkit-appearance: none;
  38. appearance: none;
  39. }
  40. select:focus {
  41. border: solid 2px #2494db;
  42. outline: solid 2px #2494db;
  43. }
  44. @supports (outline-style: double) {
  45. select:focus {
  46. border-width: 1px;
  47. outline-width: 6px;
  48. outline-style: double;
  49. outline-offset: -1px;
  50. }
  51. }
  52. /* Hides default chevron within Internet Explorer. */
  53. select::-ms-expand {
  54. display: none;
  55. }
  56. select[disabled] {
  57. color: #7e96a7;
  58. background-color: #f1f4f7;
  59. }
  60. select.error {
  61. border: solid 2px #e33f1e;
  62. }
  63. select.error:focus {
  64. outline-color: #e33f1e;
  65. }
  66. select[multiple] {
  67. height: auto;
  68. padding: 0.5625rem;
  69. background-image: none;
  70. line-height: 1; /* Needed by non-Chromium based MS Edge browsers. */
  71. }
  72. select[multiple] option {
  73. padding: 0.5625rem;
  74. }
  75. select.form-element--small {
  76. height: 2.8125rem;
  77. }
  78. /* Necessary to show chevron in forced colors mode in modern browsers. */
  79. @media (forced-colors: active) {
  80. [dir="ltr"] select {
  81. padding-right: 1.125rem;
  82. }
  83. [dir="rtl"] select {
  84. padding-left: 1.125rem;
  85. }
  86. select {
  87. background-image: none;
  88. -webkit-appearance: listbox;
  89. appearance: listbox; /* Default appearance value for modern browsers. */
  90. /* Lets browser set appearance to whatever the browser's default is. */
  91. }
  92. @supports ((-webkit-appearance: revert) or (appearance: revert)) {
  93. select {
  94. -webkit-appearance: revert;
  95. appearance: revert;
  96. }
  97. }
  98. }
  99. /* Necessary for Internet Explorer to show chevron. */
  100. @media screen and (-ms-high-contrast: active) {
  101. [dir="ltr"] select {
  102. padding-right: 0;
  103. }
  104. [dir="rtl"] select {
  105. padding-left: 0;
  106. }
  107. select {
  108. /* Re-enable default chevron for Internet Explorer. */
  109. }
  110. select::-ms-expand {
  111. display: block;
  112. }
  113. }
  114. [dir="rtl"] select {
  115. background-position: left 18px center;
  116. }

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