You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
128 lines
3.8 KiB
128 lines
3.8 KiB
/* |
|
* DO NOT EDIT THIS FILE. |
|
* See the following change record for more information, |
|
* https://www.drupal.org/node/3084859 |
|
* @preserve |
|
*/ |
|
|
|
/** |
|
* @file |
|
* Checkbox and radio input elements. |
|
*/ |
|
|
|
/* |
|
* Media query breakpoints. |
|
* Processed by postcss/postcss-custom-media. |
|
*/ |
|
|
|
/* Navigation related breakpoints */ |
|
|
|
/* Grid related breakpoints */ |
|
|
|
/* Grid shifts from 6 to 14 columns. */ |
|
|
|
/* Width of the entire grid maxes out. */ |
|
|
|
input[type="checkbox"], |
|
input[type="radio"] { |
|
display: inline-block; |
|
width: var(--sp1-5); |
|
height: var(--sp1-5); |
|
margin: 0; |
|
vertical-align: middle; |
|
border: 1px solid var(--color--gray-60); |
|
border-radius: 0.1875rem; |
|
background-color: var(--color--white); |
|
background-repeat: no-repeat; |
|
background-position: 50% 50%; |
|
background-size: var(--sp1) var(--sp1); |
|
-webkit-appearance: none; |
|
-moz-appearance: none; |
|
appearance: none |
|
} |
|
|
|
input[type="checkbox"]:focus, input[type="radio"]:focus { |
|
border: solid 2px var(--color--primary-50); |
|
outline: solid 2px var(--color--primary-50) |
|
} |
|
|
|
@supports (outline-style: double) { |
|
|
|
input[type="checkbox"]:focus, input[type="radio"]:focus { |
|
border-width: 1px; |
|
outline-width: 6px; |
|
outline-style: double; |
|
outline-offset: -1px |
|
} |
|
} |
|
|
|
input[type="checkbox"]:hover, input[type="radio"]:hover { |
|
border-color: var(--color--primary-60); |
|
} |
|
|
|
input[type="checkbox"][disabled], input[type="radio"][disabled] { |
|
background-color: var(--color--gray-100) |
|
} |
|
|
|
input[type="checkbox"][disabled]:hover, input[type="radio"][disabled]:hover { |
|
border-color: var(--color--gray-60); |
|
} |
|
|
|
input[type="checkbox"][disabled]:checked, input[type="radio"][disabled]:checked { |
|
border-width: 1px; |
|
} |
|
|
|
input[type="checkbox"]:checked, input[type="radio"]:checked { |
|
border-width: 2px; |
|
} |
|
|
|
input[type="checkbox"].error, input[type="radio"].error { |
|
border: solid 2px var(--color--red) |
|
} |
|
|
|
input[type="checkbox"].error:focus, input[type="radio"].error:focus { |
|
outline-color: var(--color--red); |
|
outline-offset: -2px; |
|
} |
|
|
|
[dir="ltr"] input[type="checkbox"] + label,[dir="ltr"] input[type="radio"] + label { |
|
padding-left: var(--sp0-5) |
|
} |
|
|
|
[dir="rtl"] input[type="checkbox"] + label,[dir="rtl"] input[type="radio"] + label { |
|
padding-right: var(--sp0-5) |
|
} |
|
|
|
input[type="checkbox"] + label, input[type="radio"] + label { |
|
display: inline-block; |
|
} |
|
|
|
input[type="checkbox"]:checked { |
|
background-image: url("data:image/svg+xml,%3Csvg width='17px' height='13px' viewBox='0 0 17 13' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cpath d='M14.8232,0.176777 C14.9209,0.0791457 15.0791,0.0791455 15.1768,0.176777 L16.9445,1.94454 C17.0422,2.04217 17.0422,2.20047 16.9445,2.2981 L6.23744,13.0052 C6.13981,13.1028 5.98151,13.1028 5.88388,13.0052 L0.176777,7.2981 C0.0791456,7.20047 0.0791456,7.04218 0.176777,6.94454 L1.94454,5.17678 C2.04217,5.07915 2.20047,5.07915 2.2981,5.17678 L5.88388,8.76256 C5.98151,8.86019 6.13981,8.86019 6.23744,8.76256 L14.8232,0.176777 Z' id='Path' fill='%232494DB' fill-rule='nonzero'%3E%3C/path%3E%3C/svg%3E"); |
|
} |
|
|
|
input[type="radio"] { |
|
border-radius: 50% |
|
} |
|
|
|
input[type="radio"]:checked { |
|
background-image: url("data:image/svg+xml,%3Csvg width='17' height='17' viewBox='0 0 17 17' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8.5' cy='8.5' r='8.5' fill='%232494DB'/%3E%3C/svg%3E%0A"); |
|
background-size: 1.0625rem; |
|
} |
|
|
|
input[type="radio"]:focus { |
|
border-width: 2px; |
|
border-color: var(--color--primary-50); |
|
outline-color: transparent; |
|
box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color--primary-50); |
|
} |
|
|
|
input[type="radio"].error:focus { |
|
outline-color: transparent; |
|
box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color--red); |
|
} |
|
|
|
.form-type-boolean { |
|
margin-top: var(--sp1); |
|
margin-bottom: var(--sp1); |
|
}
|
|
|