form--select.pcss.css
Same filename in other branches
Select input elements.
File
-
core/
themes/ claro/ css/ components/ form--select.pcss.css
View source
- /**
- * @file
- * Select input elements.
- */
-
- @import "../base/variables.pcss.css";
-
- .form-element--type-select {
- padding-right: calc(2rem - var(--input-border-size));
- 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 - var(--input-border-size));
- padding-left: calc(2rem - var(--input-border-size));
- 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 - var(--input-border-size));
- 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 - var(--input-border-size));
- padding-left: calc(1.5rem - var(--input-border-size));
- }
-
- .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.