form--select.css
Same filename in other branches
Select input elements.
File
-
core/
themes/ claro/ css/ components/ form--select.css
View source
- /*
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/2815083
- * @preserve
- */
-
- /**
- * @file
- * Select input elements.
- */
-
- .form-element--type-select {
- padding-right: calc(2rem - 1px);
- 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 1L7 7L13 1' stroke='%23545560'/%3E%3C/svg%3E%0A");
- background-repeat: no-repeat;
- background-position: 100% 50%;
- background-size: 2.75rem 0.5625rem; /* w: 14px + (2 * 15px), h: 9px */
- }
-
- [dir="rtl"] .form-element--type-select {
- padding-right: calc(1rem - 1px);
- padding-left: calc(2rem - 1px);
- background-position: 0 50%;
- }
-
- .no-touchevents .form-element--type-select.form-element--extrasmall,
- .no-touchevents .form-element--type-select[name$="][_weight]"] {
- padding-right: calc(1.5rem - 1px);
- background-size: 1.75rem 0.4375rem; /* w: 14px + (2 * 7px), h: 7px */
- }
-
- [dir="rtl"].no-touchevents .form-element--type-select.form-element--extrasmall,
- [dir="rtl"].no-touchevents .form-element--type-select[name$="][_weight]"] {
- padding-right: calc(0.5rem - 1px);
- padding-left: calc(1.5rem - 1px);
- }
-
- .form-element--type-select::-ms-expand {
- display: none;
- }
-
- /**
- * Select states.
- */
-
- .form-element--type-select:focus {
- 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 1L7 7L13 1' stroke='%23004adc'/%3E%3C/svg%3E%0A");
- }
-
- .form-element--type-select[disabled] {
- 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 1L7 7L13 1' stroke='%238e929c'/%3E%3C/svg%3E%0A");
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.