bullframe.css 4.2.2 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/.browserslistrc +2 -4
  2. package/.editorconfig +8 -4
  3. package/.prettierignore +1 -0
  4. package/.stylelintignore +3 -0
  5. package/.stylelintrc.json +5 -2
  6. package/CHANGELOG.md +18 -1
  7. package/README.md +369 -327
  8. package/dist/css/bullframe-classless-dark-prefers.css +378 -269
  9. package/dist/css/bullframe-classless-dark-prefers.css.map +1 -0
  10. package/dist/css/bullframe-classless-dark-prefers.min.css +3 -3
  11. package/dist/css/bullframe-classless-dark-prefers.min.css.map +1 -1
  12. package/dist/css/bullframe-classless-dark.css +384 -253
  13. package/dist/css/bullframe-classless-dark.css.map +1 -0
  14. package/dist/css/bullframe-classless-dark.min.css +3 -3
  15. package/dist/css/bullframe-classless-dark.min.css.map +1 -1
  16. package/dist/css/bullframe-classless-system-default.css +378 -269
  17. package/dist/css/bullframe-classless-system-default.css.map +1 -0
  18. package/dist/css/bullframe-classless-system-default.min.css +3 -3
  19. package/dist/css/bullframe-classless-system-default.min.css.map +1 -1
  20. package/dist/css/bullframe-classless.css +343 -229
  21. package/dist/css/bullframe-classless.css.map +1 -0
  22. package/dist/css/bullframe-classless.min.css +3 -2
  23. package/dist/css/bullframe-classless.min.css.map +1 -1
  24. package/dist/css/bullframe-dark-prefers.css +399 -464
  25. package/dist/css/bullframe-dark-prefers.css.map +1 -0
  26. package/dist/css/bullframe-dark-prefers.min.css +3 -2
  27. package/dist/css/bullframe-dark-prefers.min.css.map +1 -1
  28. package/dist/css/bullframe-dark.css +401 -375
  29. package/dist/css/bullframe-dark.css.map +1 -0
  30. package/dist/css/bullframe-dark.min.css +3 -2
  31. package/dist/css/bullframe-dark.min.css.map +1 -1
  32. package/dist/css/bullframe-system-default.css +396 -391
  33. package/dist/css/bullframe-system-default.css.map +1 -0
  34. package/dist/css/bullframe-system-default.min.css +3 -2
  35. package/dist/css/bullframe-system-default.min.css.map +1 -1
  36. package/dist/css/bullframe-utilities.css +69 -109
  37. package/dist/css/bullframe-utilities.css.map +1 -0
  38. package/dist/css/bullframe-utilities.min.css +2 -1
  39. package/dist/css/bullframe-utilities.min.css.map +1 -1
  40. package/dist/css/bullframe.css +370 -350
  41. package/dist/css/bullframe.css.map +1 -0
  42. package/dist/css/bullframe.min.css +3 -1
  43. package/dist/css/bullframe.min.css.map +1 -1
  44. package/dist/docs/demo/css/style.css +131 -0
  45. package/{docs/test-page → dist/docs/demo}/index.html +166 -358
  46. package/dist/docs/github-readme/bf-logo-full-dark.png +0 -0
  47. package/package.json +25 -27
  48. package/prettier.config.js +26 -0
  49. package/src/docs/demo/css/style.css +131 -0
  50. package/src/docs/demo/icons/android-chrome-192x192.png +0 -0
  51. package/src/docs/demo/icons/android-chrome-384x384.png +0 -0
  52. package/src/docs/demo/icons/apple-touch-icon.png +0 -0
  53. package/src/docs/demo/icons/favicon-16x16.png +0 -0
  54. package/src/docs/demo/icons/favicon-32x32.png +0 -0
  55. package/src/docs/demo/icons/favicon.ico +0 -0
  56. package/src/docs/demo/icons/mstile-150x150.png +0 -0
  57. package/src/docs/demo/icons/safari-pinned-tab.svg +28 -0
  58. package/src/docs/demo/images/logo.png +0 -0
  59. package/src/docs/demo/images/placeholder-img-130x140.jpg +0 -0
  60. package/src/docs/demo/images/placeholder-img-16x16.jpg +0 -0
  61. package/src/docs/demo/images/placeholder-img-800x400.jpg +0 -0
  62. package/src/docs/demo/images/video-poster.png +0 -0
  63. package/src/docs/demo/index.html +1152 -0
  64. package/src/docs/github-readme/bf-logo-full-dark.png +0 -0
  65. package/src/docs/github-readme/bf-logo-full-light.png +0 -0
  66. package/src/scss/bullframe-classless-dark-prefers.scss +2 -5
  67. package/src/scss/bullframe-classless-dark.scss +2 -5
  68. package/src/scss/bullframe-classless-system-default.scss +2 -5
  69. package/src/scss/bullframe-classless.scss +49 -43
  70. package/src/scss/bullframe-dark-prefers.scss +2 -4
  71. package/src/scss/bullframe-dark.scss +2 -4
  72. package/src/scss/bullframe-system-default.scss +2 -4
  73. package/src/scss/bullframe-utilities.scss +21 -61
  74. package/src/scss/bullframe.scss +49 -121
  75. package/src/scss/custom/_author-styles.scss +5 -0
  76. package/src/scss/forms/_forms-normalization.scss +68 -58
  77. package/src/scss/forms/_forms-styling-radio-checkbox.scss +64 -66
  78. package/src/scss/forms/_forms-styling-range.scss +88 -74
  79. package/src/scss/forms/_forms-styling-select.scss +18 -16
  80. package/src/scss/forms/_forms-styling.scss +38 -26
  81. package/src/scss/miscellaneous/_misc-accessibility.scss +10 -16
  82. package/src/scss/miscellaneous/_misc-anchors.scss +15 -13
  83. package/src/scss/miscellaneous/_misc-embedded-content.scss +14 -21
  84. package/src/scss/miscellaneous/_misc-focus.scss +0 -21
  85. package/src/scss/miscellaneous/_misc-interactive.scss +48 -0
  86. package/src/scss/miscellaneous/_misc-lists.scss +9 -5
  87. package/src/scss/miscellaneous/_misc-scrolling.scss +5 -0
  88. package/src/scss/miscellaneous/_misc-shame.scss +6 -0
  89. package/src/scss/miscellaneous/_misc-tables.scss +11 -5
  90. package/src/scss/mixins/_mixin-dark-prefers.scss +414 -0
  91. package/src/scss/mixins/_mixin-dark.scss +396 -0
  92. package/src/scss/mixins/_mixin-grid-flex.scss +0 -3
  93. package/src/scss/mixins/_mixin-layout.scss +1 -1
  94. package/src/scss/mixins/_mixin-texts.scss +2 -3
  95. package/src/scss/typography/_typography-blockquotes.scss +10 -5
  96. package/src/scss/typography/_typography-headings.scss +9 -8
  97. package/src/scss/typography/_typography-html-body.scss +17 -14
  98. package/src/scss/typography/_typography-misc.scss +19 -22
  99. package/src/scss/typography/_typography-monospaced-elements.scss +21 -12
  100. package/src/scss/utilities/_utility-buttons.scss +20 -18
  101. package/src/scss/utilities/_utility-debugging.scss +2 -88
  102. package/src/scss/utilities/_utility-embeds.scss +1 -1
  103. package/src/scss/utilities/_utility-filters.scss +0 -3
  104. package/src/scss/utilities/_utility-form-states.scss +30 -21
  105. package/src/scss/utilities/_utility-global-dark-classless.scss +3 -157
  106. package/src/scss/utilities/_utility-global-dark-prefers-classless.scss +3 -3
  107. package/src/scss/utilities/_utility-global-dark-prefers.scss +3 -3
  108. package/src/scss/utilities/_utility-global-dark-scrollbars.scss +11 -6
  109. package/src/scss/utilities/_utility-global-dark.scss +4 -213
  110. package/src/scss/utilities/_utility-global-system-default-classless.scss +3 -3
  111. package/src/scss/utilities/_utility-global-system-default.scss +3 -3
  112. package/src/scss/utilities/_utility-grid-system.scss +51 -115
  113. package/src/scss/utilities/_utility-layout.scss +7 -15
  114. package/src/scss/utilities/_utility-print.scss +5 -5
  115. package/src/scss/utilities/_utility-spacing.scss +42 -40
  116. package/src/scss/utilities/_utility-tables.scss +12 -18
  117. package/src/scss/utilities/_utility-texts.scss +48 -22
  118. package/src/scss/utilities/_utility-z-index.scss +1 -1
  119. package/src/scss/variables/_variables-breakpoints.scss +1 -0
  120. package/src/scss/variables/_variables-colors.scss +8 -5
  121. package/src/scss/variables/_variables-spacing.scss +3 -5
  122. package/src/scss/variables/_variables-texts.scss +5 -9
  123. package/vite.config.js +116 -0
  124. package/.nvmrc +0 -1
  125. package/.prettierrc +0 -19
  126. package/gulpfile.js +0 -67
  127. package/src/scss/miscellaneous/_misc-author-styles-in-css.scss +0 -76
  128. /package/{docs/test-page/assets → dist/docs/demo}/icons/android-chrome-192x192.png +0 -0
  129. /package/{docs/test-page/assets → dist/docs/demo}/icons/android-chrome-384x384.png +0 -0
  130. /package/{docs/test-page/assets → dist/docs/demo}/icons/apple-touch-icon.png +0 -0
  131. /package/{docs/test-page/assets → dist/docs/demo}/icons/favicon-16x16.png +0 -0
  132. /package/{docs/test-page/assets → dist/docs/demo}/icons/favicon-32x32.png +0 -0
  133. /package/{docs/test-page/assets → dist/docs/demo}/icons/favicon.ico +0 -0
  134. /package/{docs/test-page/assets → dist/docs/demo}/icons/mstile-150x150.png +0 -0
  135. /package/{docs/test-page/assets → dist/docs/demo}/icons/safari-pinned-tab.svg +0 -0
  136. /package/{docs/test-page/assets → dist/docs/demo}/images/logo.png +0 -0
  137. /package/{docs/test-page/assets → dist/docs/demo}/images/placeholder-img-130x140.jpg +0 -0
  138. /package/{docs/test-page/assets → dist/docs/demo}/images/placeholder-img-16x16.jpg +0 -0
  139. /package/{docs/test-page/assets → dist/docs/demo}/images/placeholder-img-800x400.jpg +0 -0
  140. /package/{docs/test-page/assets → dist/docs/demo}/images/video-poster.png +0 -0
  141. /package/{docs/assets/images/branding/logo-full.png → dist/docs/github-readme/bf-logo-full-light.png} +0 -0
@@ -1,5 +1,5 @@
1
- /*! bullframe.css v4.2.2 | MIT License | https://github.com/marcop135/bullframe.css */
2
- /*! custom build: bullframe-classless */
1
+ /*! Bullframe CSS v5.0.0 | MIT License | https://github.com/marcop135/bullframe.css */
2
+ @charset "UTF-8";
3
3
  *,
4
4
  *::before,
5
5
  *::after {
@@ -43,7 +43,6 @@ html {
43
43
 
44
44
  body {
45
45
  margin: 0;
46
- font-size: 16px;
47
46
  font-size: 1.6rem;
48
47
  line-height: 1.5;
49
48
  font-weight: 400;
@@ -61,12 +60,10 @@ h4,
61
60
  h5,
62
61
  h6 {
63
62
  margin-top: 0;
64
- font-weight: 700;
65
63
  font-weight: 600;
66
64
  font-family: inherit;
67
65
  color: inherit;
68
66
  line-height: 1.25;
69
- margin-bottom: 10px;
70
67
  margin-bottom: 1rem;
71
68
  }
72
69
 
@@ -97,7 +94,6 @@ h6 {
97
94
  }
98
95
 
99
96
  blockquote {
100
- margin: 0 0 20px 0;
101
97
  margin-bottom: 2rem;
102
98
  padding-left: 0;
103
99
  font-style: italic;
@@ -112,7 +108,7 @@ blockquote small {
112
108
  display: block;
113
109
  }
114
110
 
115
- blockquote small:before {
111
+ blockquote small::before {
116
112
  content: "— ";
117
113
  }
118
114
 
@@ -121,14 +117,14 @@ q {
121
117
  }
122
118
 
123
119
  pre {
124
- margin: 0 0 20px 0;
125
120
  margin: 0 0 2rem 0;
126
121
  display: block;
127
122
  overflow: auto;
128
123
  word-break: break-all;
129
124
  word-wrap: break-word;
130
125
  white-space: pre;
131
- hyphens: none;
126
+ -webkit-hyphens: none;
127
+ hyphens: none;
132
128
  -ms-overflow-style: auto;
133
129
  }
134
130
 
@@ -136,7 +132,7 @@ pre,
136
132
  code,
137
133
  kbd,
138
134
  samp {
139
- font-family: "Menlo", "Consolas", "Roboto Mono", "Ubuntu Monospace", "Noto Mono", "Oxygen Mono", "Liberation Mono", monospace, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
135
+ font-family: Menlo, Consolas, "Roboto Mono", "Ubuntu Monospace", "Noto Mono", "Oxygen Mono", "Liberation Mono", monospace, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
140
136
  font-size: 0.875em;
141
137
  }
142
138
 
@@ -155,7 +151,6 @@ pre code {
155
151
  }
156
152
 
157
153
  p {
158
- margin: 0 0 20px 0;
159
154
  margin: 0 0 2rem 0;
160
155
  }
161
156
 
@@ -184,9 +179,9 @@ strong {
184
179
  font-weight: inherit;
185
180
  }
186
181
 
187
- /* stylelint-disable-next-line */
188
182
  b,
189
183
  strong {
184
+ /* stylelint-disable-next-line */
190
185
  font-weight: bolder;
191
186
  }
192
187
 
@@ -216,6 +211,10 @@ small {
216
211
  font-size: 80%;
217
212
  }
218
213
 
214
+ p:has(small) {
215
+ line-height: 1.25;
216
+ }
217
+
219
218
  hr {
220
219
  box-sizing: content-box;
221
220
  display: block;
@@ -223,24 +222,11 @@ hr {
223
222
  border-style: solid;
224
223
  border-width: 1px 0 0;
225
224
  color: inherit;
226
- margin: 20px 0;
227
225
  margin: 2rem 0;
228
226
  padding: 0;
229
227
  overflow: visible;
230
228
  }
231
229
 
232
- address {
233
- font-style: normal;
234
- margin-bottom: 10px;
235
- margin-bottom: 1rem;
236
- line-height: inherit;
237
- }
238
-
239
- summary {
240
- display: list-item;
241
- cursor: pointer;
242
- }
243
-
244
230
  a {
245
231
  color: #007bff;
246
232
  text-decoration: none;
@@ -251,20 +237,59 @@ a:hover, a:focus {
251
237
  color: #0056b3;
252
238
  }
253
239
 
254
- a:not([href]):not([tabindex]) {
240
+ a:not([href], [tabindex]) {
255
241
  color: inherit;
256
242
  text-decoration: none;
257
243
  }
258
244
 
259
- a:not([href]):not([tabindex]):hover,
260
- a:not([href]):not([tabindex]):focus,
261
- a:not([href]):not([class]),
262
- a:not([href]):not([class]):hover {
245
+ a:not([href], [class]),
246
+ a:not([href], [class]):hover {
263
247
  color: inherit;
264
248
  text-decoration: none;
265
249
  }
266
250
 
267
- a:not([href]):not([tabindex]):focus {
251
+ a:not([href], [tabindex]):focus {
252
+ outline: 0;
253
+ }
254
+
255
+ :focus:not(:focus-visible) {
256
+ outline: none;
257
+ }
258
+
259
+ [tabindex="-1"]:focus:not(:focus-visible) {
260
+ outline: 0 !important;
261
+ }
262
+
263
+ a:focus,
264
+ input:focus {
265
+ outline: 2px solid orange;
266
+ }
267
+
268
+ :focus-visible {
269
+ outline: 2px solid orange;
270
+ }
271
+
272
+ button:focus,
273
+ [type=button]:focus,
274
+ [type=reset]:focus,
275
+ [type=submit]:focus,
276
+ [type=email]:focus,
277
+ [type=number]:focus,
278
+ [type=password]:focus,
279
+ [type=tel]:focus,
280
+ [type=search]:focus,
281
+ [type=text]:focus,
282
+ [type=date]:focus,
283
+ [type=datetime-local]:focus,
284
+ [type=month]:focus,
285
+ [type=time]:focus,
286
+ [type=week]:focus,
287
+ [type=url]:focus,
288
+ [type=radio]:focus,
289
+ [type=checkbox]:focus,
290
+ input[list]:focus,
291
+ select:focus,
292
+ textarea:focus {
268
293
  outline: 0;
269
294
  }
270
295
 
@@ -272,7 +297,6 @@ menu,
272
297
  ol,
273
298
  ul,
274
299
  dl {
275
- margin: 0 0 20px 0;
276
300
  margin: 0 0 2rem 0;
277
301
  padding: 0;
278
302
  }
@@ -289,7 +313,6 @@ dd {
289
313
 
290
314
  ul,
291
315
  ol {
292
- margin-left: 20px;
293
316
  margin-left: 2rem;
294
317
  }
295
318
 
@@ -308,7 +331,7 @@ dd {
308
331
  margin-left: 0;
309
332
  }
310
333
 
311
- nav li:before {
334
+ nav li::before {
312
335
  content: "​";
313
336
  position: absolute;
314
337
  }
@@ -409,6 +432,128 @@ iframe {
409
432
  border-style: none;
410
433
  }
411
434
 
435
+ address {
436
+ font-style: normal;
437
+ margin-bottom: 10px;
438
+ margin-bottom: 1rem;
439
+ line-height: inherit;
440
+ }
441
+
442
+ details > summary:first-of-type {
443
+ display: list-item;
444
+ }
445
+
446
+ summary {
447
+ cursor: pointer;
448
+ font-weight: 700;
449
+ word-break: break-all;
450
+ }
451
+
452
+ dialog {
453
+ background-color: #fff;
454
+ color: #222;
455
+ border: none;
456
+ border-radius: 0.25rem;
457
+ padding: 20px;
458
+ padding: 2rem;
459
+ height: -moz-fit-content;
460
+ height: fit-content;
461
+ min-width: 25rem;
462
+ max-width: calc(100vw - 3rem);
463
+ }
464
+ @media (min-width: 768px) {
465
+ dialog {
466
+ max-width: 50rem;
467
+ }
468
+ }
469
+
470
+ dialog[open] {
471
+ display: block !important;
472
+ }
473
+
474
+ dialog::backdrop {
475
+ background: rgba(0, 0, 0, 0.4);
476
+ }
477
+
478
+ @media (prefers-reduced-motion: no-preference) {
479
+ :root {
480
+ scroll-behavior: smooth;
481
+ }
482
+ }
483
+ table {
484
+ caption-side: bottom;
485
+ max-width: 100%;
486
+ border-collapse: collapse;
487
+ border-color: currentcolor;
488
+ text-indent: 0;
489
+ }
490
+
491
+ thead,
492
+ tbody,
493
+ tfoot,
494
+ tr,
495
+ td,
496
+ th {
497
+ border-color: inherit;
498
+ border-style: solid;
499
+ border-width: 0;
500
+ }
501
+
502
+ thead th {
503
+ vertical-align: bottom;
504
+ }
505
+
506
+ th,
507
+ td {
508
+ vertical-align: top;
509
+ }
510
+
511
+ th {
512
+ text-align: inherit;
513
+ text-align: -webkit-match-parent;
514
+ font-weight: 700;
515
+ }
516
+
517
+ caption {
518
+ padding-top: 0.5rem;
519
+ padding-bottom: 0.5rem;
520
+ color: #999;
521
+ text-align: left;
522
+ caption-side: bottom;
523
+ line-height: 1.375;
524
+ font-size: 90%;
525
+ }
526
+
527
+ /* Accessibility
528
+ * ========================================================================== */
529
+ /**
530
+ * Change the cursor on busy elements in all browsers (opinionated).
531
+ */
532
+ :where([aria-busy=true i]) {
533
+ cursor: progress;
534
+ }
535
+
536
+ /*
537
+ * Change the cursor on disabled, not-editable, or otherwise
538
+ * inoperable elements in all browsers (opinionated).
539
+ */
540
+ :where([aria-disabled=true i], [disabled]) {
541
+ cursor: not-allowed;
542
+ }
543
+
544
+ /*
545
+ * Change the display on visually hidden accessible elements
546
+ * in all browsers (opinionated).
547
+ */
548
+ :where([aria-hidden=false i][hidden]) {
549
+ display: initial;
550
+ }
551
+
552
+ :where([aria-hidden=false i][hidden]:not(:focus)) {
553
+ clip: rect(0, 0, 0, 0);
554
+ position: absolute;
555
+ }
556
+
412
557
  html input,
413
558
  button,
414
559
  select,
@@ -517,8 +662,7 @@ label textarea {
517
662
  font-size: 110%;
518
663
  }
519
664
 
520
- [type=number]::-webkit-outer-spin-button,
521
- [type=number]::-webkit-inner-spin-button {
665
+ ::-webkit-inner-spin-button {
522
666
  height: auto;
523
667
  }
524
668
 
@@ -537,7 +681,6 @@ label textarea {
537
681
  }
538
682
 
539
683
  [type=search] {
540
- outline-offset: -2.5px;
541
684
  outline-offset: -0.25rem;
542
685
  }
543
686
 
@@ -554,7 +697,11 @@ select {
554
697
  word-wrap: normal;
555
698
  }
556
699
 
557
- [list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator {
700
+ [list]:not([type=date],
701
+ [type=datetime-local],
702
+ [type=month],
703
+ [type=week],
704
+ [type=time])::-webkit-calendar-picker-indicator {
558
705
  display: none !important;
559
706
  }
560
707
 
@@ -562,7 +709,6 @@ optgroup {
562
709
  font-family: inherit;
563
710
  font-size: inherit;
564
711
  font-style: inherit;
565
- font-weight: 700;
566
712
  font-weight: 600;
567
713
  }
568
714
 
@@ -587,18 +733,20 @@ html [type=button],
587
733
  input[list],
588
734
  textarea {
589
735
  -webkit-appearance: none;
736
+ appearance: none;
590
737
  }
591
738
 
592
- ::-webkit-file-upload-button {
593
- -webkit-appearance: button;
739
+ ::file-selector-button {
594
740
  font: inherit;
741
+ -webkit-appearance: auto;
742
+ -moz-appearance: auto;
743
+ appearance: auto;
595
744
  }
596
745
 
597
746
  button,
598
747
  input,
599
748
  select,
600
749
  textarea {
601
- border-radius: 2.5px;
602
750
  border-radius: 0.25rem;
603
751
  }
604
752
 
@@ -607,7 +755,6 @@ textarea {
607
755
  }
608
756
 
609
757
  [type=checkbox] {
610
- border-radius: 5px;
611
758
  border-radius: 0.5rem;
612
759
  }
613
760
 
@@ -617,7 +764,7 @@ textarea {
617
764
  background-color: #fff;
618
765
  }
619
766
 
620
- [type=range] {
767
+ [type=range i] {
621
768
  background-color: transparent;
622
769
  }
623
770
 
@@ -675,14 +822,10 @@ button:hover, button:active, button:focus,
675
822
  color: #222;
676
823
  }
677
824
 
678
- button,
679
- select,
680
- input[type=submit],
681
- input[type=button],
682
- [type=checkbox],
683
- [type=range],
684
- [type=radio],
685
- [role=button] {
825
+ button:not(:disabled),
826
+ [type=button]:not(:disabled),
827
+ [type=reset]:not(:disabled),
828
+ [type=submit]:not(:disabled) {
686
829
  cursor: pointer;
687
830
  }
688
831
 
@@ -695,6 +838,13 @@ textarea::placeholder {
695
838
  color: #666;
696
839
  }
697
840
 
841
+ /*
842
+ Use the modern Firefox focus style for all focusable elements.
843
+ */
844
+ :-moz-focusring {
845
+ outline: auto;
846
+ }
847
+
698
848
  :-moz-ui-invalid {
699
849
  box-shadow: none;
700
850
  }
@@ -715,7 +865,7 @@ input[list],
715
865
  select,
716
866
  textarea {
717
867
  background-color: #fff;
718
- border: 1px solid #999;
868
+ border: 1px solid/#999;
719
869
  padding: 5px 7.5px;
720
870
  padding: 0.5rem 0.75rem;
721
871
  }
@@ -794,32 +944,32 @@ button:active, button:focus,
794
944
 
795
945
  fieldset[disabled] button,
796
946
  fieldset[disabled] input,
797
- fieldset[disabled] input:after,
798
- fieldset[disabled] input:before,
947
+ fieldset[disabled] input::after,
948
+ fieldset[disabled] input::before,
799
949
  fieldset[disabled] input:checked,
800
950
  fieldset[disabled] select,
801
951
  fieldset[disabled] textarea,
802
952
  fieldset[disabled] label,
803
953
  button[disabled],
804
954
  input[disabled],
805
- input[disabled]:after,
806
- input[disabled]:before,
955
+ input[disabled]::after,
956
+ input[disabled]::before,
807
957
  input[disabled]:checked,
808
958
  select[disabled],
809
959
  textarea[disabled],
810
960
  label[disabled],
811
961
  button:disabled,
812
962
  input:disabled,
813
- input:disabled:after,
814
- input:disabled:before,
963
+ input:disabled::after,
964
+ input:disabled::before,
815
965
  input:disabled:checked,
816
966
  select:disabled,
817
967
  textarea:disabled,
818
968
  label:disabled,
819
969
  button[aria-disabled=true],
820
970
  input[aria-disabled=true],
821
- input[aria-disabled=true]:after,
822
- input[aria-disabled=true]:before,
971
+ input[aria-disabled=true]::after,
972
+ input[aria-disabled=true]::before,
823
973
  input[aria-disabled=true]:checked,
824
974
  select[aria-disabled=true],
825
975
  textarea[aria-disabled=true],
@@ -834,7 +984,7 @@ label[aria-disabled=true] {
834
984
  opacity: 0.5 !important;
835
985
  }
836
986
 
837
- select:not([size]):not([multiple]) {
987
+ select:not([size], [multiple]) {
838
988
  -webkit-appearance: none;
839
989
  -moz-appearance: none;
840
990
  appearance: none;
@@ -847,8 +997,8 @@ select::-ms-expand {
847
997
  display: none;
848
998
  }
849
999
 
850
- *[dir=rtl] select:not([size]):not([multiple]),
851
- select[dir=rtl]:not([size]):not([multiple]) {
1000
+ *[dir=rtl] select:not([size], [multiple]),
1001
+ select[dir=rtl]:not([size], [multiple]) {
852
1002
  background-position: left 0.85rem top 50%;
853
1003
  padding-right: 7.5px;
854
1004
  padding-right: 0.75rem;
@@ -856,181 +1006,145 @@ select[dir=rtl]:not([size]):not([multiple]) {
856
1006
  padding-left: 2rem;
857
1007
  }
858
1008
 
859
- @supports ((-webkit-appearance: none) or (-moz-appearance: none) or (appearance: none)) {
860
- [type=checkbox],
861
- [type=radio] {
862
- -webkit-appearance: none;
863
- -moz-appearance: none;
864
- appearance: none;
865
- height: 1.8rem;
866
- width: 1.8rem;
867
- vertical-align: top;
868
- position: relative;
869
- border: 1px solid #999;
870
- }
871
- [type=checkbox] + label,
872
- [type=radio] + label {
873
- line-height: 1.8rem;
874
- vertical-align: top;
875
- margin-left: 5px;
876
- margin-left: 0.5rem;
877
- }
878
- *[dir=rtl] [type=checkbox] + label, [type=checkbox][dir=rtl] + label,
879
- *[dir=rtl] [type=radio] + label,
880
- [type=radio][dir=rtl] + label {
881
- margin-left: 0;
882
- margin-right: 5px;
883
- margin-right: 0.5rem;
884
- }
885
- [type=checkbox]:after,
886
- [type=radio]:after {
887
- content: "";
888
- display: block;
889
- position: absolute;
890
- }
891
- [type=checkbox]:checked,
892
- [type=radio]:checked {
893
- background-color: #007bff;
894
- border-color: #000;
895
- }
896
- [type=radio]:after {
897
- width: 1.8rem;
898
- height: 1.8rem;
899
- left: -0.05rem;
900
- top: -0.05rem;
901
- border-radius: 50%;
902
- background: #fff;
903
- transform: scale(0.35);
904
- }
905
- [type=checkbox]:after {
906
- width: 0.6rem;
907
- height: 0.8rem;
908
- border: 2px solid #fff;
909
- border-top: 0;
910
- border-left: 0;
911
- left: 35%;
912
- top: 20%;
913
- transform: rotate(43deg);
914
- }
1009
+ [type=checkbox],
1010
+ [type=radio] {
1011
+ -webkit-appearance: none;
1012
+ -moz-appearance: none;
1013
+ appearance: none;
1014
+ height: 1.8rem;
1015
+ width: 1.8rem;
1016
+ vertical-align: top;
1017
+ position: relative;
1018
+ border: 1px solid/#999;
915
1019
  }
916
- @supports ((-webkit-appearance: none) or (-moz-appearance: none) or (appearance: none)) {
917
- [type=range] {
918
- -webkit-appearance: none;
919
- -moz-appearance: none;
920
- appearance: none;
921
- width: 100%;
922
- height: 1.4rem;
923
- }
924
- [type=range]::-webkit-slider-thumb {
925
- border: 0;
926
- -webkit-appearance: none;
927
- appearance: none;
928
- width: 1.5rem;
929
- height: 1.5rem;
930
- margin-top: -0.25rem;
931
- background-color: #007bff;
932
- border-radius: 1.5rem;
933
- -webkit-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
934
- transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
935
- }
936
- [type=range]::-webkit-slider-thumb:active {
937
- background-color: #007bff;
938
- }
939
- [type=range]::-moz-range-thumb {
940
- border: 0;
941
- -moz-appearance: none;
942
- appearance: none;
943
- width: 1.5rem;
944
- height: 1.5rem;
945
- background-color: #007bff;
946
- border-radius: 1.5rem;
947
- -moz-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
948
- transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
949
- }
950
- [type=range]::-moz-range-thumb:active {
951
- background-color: #007bff;
952
- }
953
- [type=range]::-webkit-slider-runnable-track {
954
- color: transparent;
955
- border-color: transparent;
956
- width: 100%;
957
- height: 0.65rem;
958
- cursor: pointer;
959
- background-color: #e9e9e9;
960
- }
961
- [type=range]::-moz-range-track {
962
- color: transparent;
963
- border-color: transparent;
964
- width: 100%;
965
- height: 0.65rem;
966
- cursor: pointer;
967
- background-color: #e9e9e9;
968
- }
969
- [type=range]:focus {
970
- outline: none;
971
- }
972
- [type=range]:focus::-webkit-slider-thumb {
973
- box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
974
- }
975
- [type=range]:focus::-moz-slider-thumb {
976
- box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
977
- }
978
- [type=range]::-moz-focus-outer {
979
- border: 0;
980
- }
981
- [type=range]:focus::-moz-range-thumb {
982
- box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
983
- }
984
- [type=range]:disabled {
985
- pointer-events: none;
986
- }
987
- [type=range]:disabled::-webkit-slider-thumb {
988
- background-color: #ccc;
989
- }
990
- [type=range]:disabled::-moz-slider-thumb {
991
- background-color: #ccc;
992
- }
1020
+ [type=checkbox] + label,
1021
+ [type=radio] + label {
1022
+ line-height: 1.8rem;
1023
+ vertical-align: top;
1024
+ margin-left: 5px;
1025
+ margin-left: 0.5rem;
993
1026
  }
994
- table {
995
- max-width: 100%;
996
- border-collapse: collapse;
997
- border-color: currentcolor;
998
- text-indent: 0;
1027
+ *[dir=rtl] [type=checkbox] + label, [type=checkbox][dir=rtl] + label,
1028
+ *[dir=rtl] [type=radio] + label,
1029
+ [type=radio][dir=rtl] + label {
1030
+ margin-left: 0;
1031
+ margin-right: 5px;
1032
+ margin-right: 0.5rem;
1033
+ }
1034
+ [type=checkbox]::after,
1035
+ [type=radio]::after {
1036
+ content: "";
1037
+ display: block;
1038
+ position: absolute;
1039
+ }
1040
+ [type=checkbox]:checked,
1041
+ [type=radio]:checked {
1042
+ background-color: #007bff;
1043
+ border-color: #000;
999
1044
  }
1000
1045
 
1001
- thead,
1002
- tbody,
1003
- tfoot,
1004
- tr,
1005
- td,
1006
- th {
1007
- border-color: inherit;
1008
- border-style: solid;
1009
- border-width: 0;
1046
+ [type=radio]::after {
1047
+ width: 1.8rem;
1048
+ height: 1.8rem;
1049
+ left: -0.05rem;
1050
+ top: -0.05rem;
1051
+ border-radius: 50%;
1052
+ background: #fff;
1053
+ transform: scale(0.35);
1010
1054
  }
1011
1055
 
1012
- thead th {
1013
- vertical-align: bottom;
1056
+ [type=checkbox]::after {
1057
+ width: 0.6rem;
1058
+ height: 0.8rem;
1059
+ border: 2px solid/#fff;
1060
+ border-top: 0;
1061
+ border-left: 0;
1062
+ left: 35%;
1063
+ top: 20%;
1064
+ transform: rotate(43deg);
1014
1065
  }
1015
1066
 
1016
- th,
1017
- td {
1018
- vertical-align: top;
1067
+ [type=range] {
1068
+ -webkit-appearance: none;
1069
+ -moz-appearance: none;
1070
+ appearance: none;
1071
+ width: 100%;
1072
+ height: 1.4rem;
1019
1073
  }
1020
1074
 
1021
- th {
1022
- text-align: inherit;
1023
- font-weight: 700;
1075
+ [type=range]::-webkit-slider-thumb {
1076
+ border: 0;
1077
+ -webkit-appearance: none;
1078
+ appearance: none;
1079
+ width: 1.5rem;
1080
+ height: 1.5rem;
1081
+ margin-top: -0.25rem;
1082
+ background-color: #007bff;
1083
+ border-radius: 1.5rem;
1084
+ -webkit-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
1085
+ transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
1086
+ }
1087
+ [type=range]::-webkit-slider-thumb:active {
1088
+ background-color: #007bff;
1024
1089
  }
1025
1090
 
1026
- caption {
1027
- padding-top: 5px;
1028
- padding-top: 0.5rem;
1029
- padding-bottom: 5px;
1030
- padding-bottom: 0.5rem;
1031
- color: #999;
1032
- text-align: left;
1033
- caption-side: bottom;
1034
- line-height: 1.375;
1035
- font-size: 90%;
1091
+ [type=range]::-moz-range-thumb {
1092
+ border: 0;
1093
+ -moz-appearance: none;
1094
+ appearance: none;
1095
+ width: 1.5rem;
1096
+ height: 1.5rem;
1097
+ background-color: #007bff;
1098
+ border-radius: 1.5rem;
1099
+ -moz-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
1100
+ transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
1101
+ }
1102
+ [type=range]::-moz-range-thumb:active {
1103
+ background-color: #007bff;
1104
+ }
1105
+
1106
+ [type=range]::-webkit-slider-runnable-track {
1107
+ color: transparent;
1108
+ border-color: transparent;
1109
+ width: 100%;
1110
+ height: 0.65rem;
1111
+ cursor: pointer;
1112
+ background-color: #e9e9e9;
1113
+ }
1114
+
1115
+ [type=range]::-moz-range-track {
1116
+ color: transparent;
1117
+ border-color: transparent;
1118
+ width: 100%;
1119
+ height: 0.65rem;
1120
+ cursor: pointer;
1121
+ background-color: #e9e9e9;
1122
+ }
1123
+
1124
+ [type=range]:focus {
1125
+ outline: none;
1126
+ }
1127
+ [type=range]:focus::-webkit-slider-thumb {
1128
+ box-shadow: 0 0 0 0.1rem/#fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
1129
+ }
1130
+ [type=range]:focus::-moz-slider-thumb {
1131
+ box-shadow: 0 0 0 0.1rem/#fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
1132
+ }
1133
+
1134
+ [type=range]::-moz-focus-outer {
1135
+ border: 0;
1136
+ }
1137
+
1138
+ [type=range]:focus::-moz-range-thumb {
1139
+ box-shadow: 0 0 0 0.1rem/#fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
1140
+ }
1141
+
1142
+ [type=range]:disabled {
1143
+ pointer-events: none;
1144
+ }
1145
+ [type=range]:disabled::-webkit-slider-thumb {
1146
+ background-color: #ccc;
1147
+ }
1148
+ [type=range]:disabled::-moz-slider-thumb {
1149
+ background-color: #ccc;
1036
1150
  }