form-boolean.css

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

Checkbox and radio input elements.

File

core/themes/olivero/css/components/form-boolean.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. * Checkbox and radio input elements.
  10. */
  11. input[type="checkbox"],
  12. input[type="radio"] {
  13. display: inline-block;
  14. width: 1.6875rem;
  15. height: 1.6875rem;
  16. margin: 0;
  17. vertical-align: middle;
  18. border: 1px solid #7e96a7;
  19. border-radius: 0.1875rem;
  20. background-color: #fff;
  21. background-repeat: no-repeat;
  22. background-position: 50% 50%;
  23. background-size: 1.125rem 1.125rem;
  24. -webkit-appearance: none;
  25. appearance: none;
  26. }
  27. input[type="checkbox"]:focus,
  28. input[type="radio"]:focus {
  29. border: solid 2px #2494db;
  30. outline: solid 2px #2494db;
  31. }
  32. @supports (outline-style: double) {
  33. input[type="checkbox"]:focus,
  34. input[type="radio"]:focus {
  35. border-width: 1px;
  36. outline-width: 6px;
  37. outline-style: double;
  38. outline-offset: -1px;
  39. }
  40. }
  41. input[type="checkbox"]:hover,
  42. input[type="radio"]:hover {
  43. border-color: #53b0eb;
  44. }
  45. input[type="checkbox"][disabled],
  46. input[type="radio"][disabled] {
  47. background-color: #f1f4f7;
  48. }
  49. input[type="checkbox"][disabled]:hover,
  50. input[type="radio"][disabled]:hover {
  51. border-color: #7e96a7;
  52. }
  53. input[type="checkbox"][disabled]:checked,
  54. input[type="radio"][disabled]:checked {
  55. border-width: 1px;
  56. }
  57. input[type="checkbox"]:checked,
  58. input[type="radio"]:checked {
  59. border-width: 2px;
  60. }
  61. input.error[type="checkbox"],
  62. input.error[type="radio"] {
  63. border: solid 2px #e33f1e;
  64. }
  65. input.error[type="checkbox"]:focus,
  66. input.error[type="radio"]:focus {
  67. outline-color: #e33f1e;
  68. outline-offset: -2px;
  69. }
  70. /* Specific pseudo-element to apply red borders for IE11 bool elements in case of error */
  71. input.error[type="checkbox"]::-ms-check,
  72. input.error[type="radio"]::-ms-check {
  73. border: 1px solid #e33f1e;
  74. }
  75. [dir="ltr"] input[type="checkbox"] + label,
  76. [dir="ltr"] input[type="radio"] + label {
  77. padding-left: 0.5625rem;
  78. }
  79. [dir="rtl"] input[type="checkbox"] + label,
  80. [dir="rtl"] input[type="radio"] + label {
  81. padding-right: 0.5625rem;
  82. }
  83. input[type="checkbox"] + label,
  84. input[type="radio"] + label {
  85. display: inline-block;
  86. }
  87. input[type="checkbox"]:checked {
  88. 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");
  89. }
  90. input[type="radio"] {
  91. border-radius: 50%;
  92. }
  93. input[type="radio"]:checked {
  94. 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");
  95. background-size: 1.0625rem;
  96. }
  97. input[type="radio"]:focus {
  98. border-width: 2px;
  99. border-color: #2494db;
  100. outline-color: transparent;
  101. box-shadow: 0 0 0 2px white, 0 0 0 4px #2494db;
  102. }
  103. input.error[type="radio"]:focus {
  104. outline-color: transparent;
  105. box-shadow: 0 0 0 2px white, 0 0 0 4px #e33f1e;
  106. }
  107. .form-type-boolean {
  108. margin-top: 1.125rem;
  109. margin-bottom: 1.125rem;
  110. }

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