bullframe.css 5.1.0 → 6.0.0

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 (117) hide show
  1. package/CHANGELOG.md +39 -2
  2. package/LICENSE +1 -1
  3. package/README.md +34 -458
  4. package/dist/css/bullframe-classless-dark.css +1270 -909
  5. package/dist/css/bullframe-classless-dark.css.map +1 -1
  6. package/dist/css/bullframe-classless-dark.min.css +1 -3
  7. package/dist/css/bullframe-classless-dark.min.css.map +1 -1
  8. package/dist/css/bullframe-classless-system-default.css +1339 -899
  9. package/dist/css/bullframe-classless-system-default.css.map +1 -1
  10. package/dist/css/bullframe-classless-system-default.min.css +1 -3
  11. package/dist/css/bullframe-classless-system-default.min.css.map +1 -1
  12. package/dist/css/bullframe-classless.css +1098 -713
  13. package/dist/css/bullframe-classless.css.map +1 -1
  14. package/dist/css/bullframe-classless.min.css +1 -3
  15. package/dist/css/bullframe-classless.min.css.map +1 -1
  16. package/dist/css/bullframe-dark.css +2105 -1541
  17. package/dist/css/bullframe-dark.css.map +1 -1
  18. package/dist/css/bullframe-dark.min.css +1 -3
  19. package/dist/css/bullframe-dark.min.css.map +1 -1
  20. package/dist/css/bullframe-system-default.css +2107 -1529
  21. package/dist/css/bullframe-system-default.css.map +1 -1
  22. package/dist/css/bullframe-system-default.min.css +1 -3
  23. package/dist/css/bullframe-system-default.min.css.map +1 -1
  24. package/dist/css/bullframe-utilities.css +766 -490
  25. package/dist/css/bullframe-utilities.css.map +1 -1
  26. package/dist/css/bullframe-utilities.min.css +1 -2
  27. package/dist/css/bullframe-utilities.min.css.map +1 -1
  28. package/dist/css/bullframe.css +1900 -1310
  29. package/dist/css/bullframe.css.map +1 -1
  30. package/dist/css/bullframe.min.css +1 -3
  31. package/dist/css/bullframe.min.css.map +1 -1
  32. package/package.json +70 -28
  33. package/.browserslistrc +0 -3
  34. package/.editorconfig +0 -15
  35. package/.htmlhintrc +0 -12
  36. package/.prettierignore +0 -1
  37. package/.stylelintignore +0 -3
  38. package/.stylelintrc.json +0 -26
  39. package/dist/apple-touch-icon.png +0 -0
  40. package/dist/css/bullframe-classless-dark-prefers.css +0 -1280
  41. package/dist/css/bullframe-classless-dark-prefers.css.map +0 -1
  42. package/dist/css/bullframe-classless-dark-prefers.min.css +0 -3
  43. package/dist/css/bullframe-classless-dark-prefers.min.css.map +0 -1
  44. package/dist/css/bullframe-dark-prefers.css +0 -2296
  45. package/dist/css/bullframe-dark-prefers.css.map +0 -1
  46. package/dist/css/bullframe-dark-prefers.min.css +0 -3
  47. package/dist/css/bullframe-dark-prefers.min.css.map +0 -1
  48. package/dist/docs/demo/index.html +0 -1154
  49. package/dist/favicon-16x16.png +0 -0
  50. package/dist/favicon-32x32.png +0 -0
  51. package/dist/favicon.ico +0 -0
  52. package/dist/index.css +0 -1
  53. package/dist/index.js.map +0 -1
  54. package/dist/placeholder-img-800x400.jpg +0 -0
  55. package/dist/video-poster.png +0 -0
  56. package/prettier.config.js +0 -26
  57. package/src/scss/bullframe-classless-dark-prefers.scss +0 -2
  58. package/src/scss/bullframe-classless-dark.scss +0 -2
  59. package/src/scss/bullframe-classless-system-default.scss +0 -2
  60. package/src/scss/bullframe-classless.scss +0 -49
  61. package/src/scss/bullframe-dark-prefers.scss +0 -2
  62. package/src/scss/bullframe-dark.scss +0 -2
  63. package/src/scss/bullframe-system-default.scss +0 -2
  64. package/src/scss/bullframe-utilities.scss +0 -21
  65. package/src/scss/bullframe.scss +0 -49
  66. package/src/scss/custom/_author-styles.scss +0 -5
  67. package/src/scss/forms/_forms-normalization.scss +0 -300
  68. package/src/scss/forms/_forms-styling-radio-checkbox.scss +0 -81
  69. package/src/scss/forms/_forms-styling-range.scss +0 -106
  70. package/src/scss/forms/_forms-styling-select.scss +0 -58
  71. package/src/scss/forms/_forms-styling.scss +0 -118
  72. package/src/scss/miscellaneous/_misc-accessibility.scss +0 -36
  73. package/src/scss/miscellaneous/_misc-anchors.scss +0 -37
  74. package/src/scss/miscellaneous/_misc-embedded-content.scss +0 -117
  75. package/src/scss/miscellaneous/_misc-focus.scss +0 -80
  76. package/src/scss/miscellaneous/_misc-interactive.scss +0 -48
  77. package/src/scss/miscellaneous/_misc-layout.scss +0 -30
  78. package/src/scss/miscellaneous/_misc-lists.scss +0 -53
  79. package/src/scss/miscellaneous/_misc-scrolling.scss +0 -5
  80. package/src/scss/miscellaneous/_misc-shame.scss +0 -37
  81. package/src/scss/miscellaneous/_misc-tables.scss +0 -53
  82. package/src/scss/mixins/_mixin-dark-prefers.scss +0 -413
  83. package/src/scss/mixins/_mixin-dark.scss +0 -415
  84. package/src/scss/mixins/_mixin-grid-flex.scss +0 -80
  85. package/src/scss/mixins/_mixin-layout.scss +0 -42
  86. package/src/scss/mixins/_mixin-texts.scss +0 -37
  87. package/src/scss/typography/_typography-blockquotes.scss +0 -28
  88. package/src/scss/typography/_typography-headings.scss +0 -45
  89. package/src/scss/typography/_typography-html-body.scss +0 -75
  90. package/src/scss/typography/_typography-misc.scss +0 -90
  91. package/src/scss/typography/_typography-monospaced-elements.scss +0 -59
  92. package/src/scss/utilities/_utility-buttons.scss +0 -73
  93. package/src/scss/utilities/_utility-debugging.scss +0 -31
  94. package/src/scss/utilities/_utility-embeds.scss +0 -34
  95. package/src/scss/utilities/_utility-filters.scss +0 -21
  96. package/src/scss/utilities/_utility-form-states.scss +0 -89
  97. package/src/scss/utilities/_utility-global-dark-classless.scss +0 -3
  98. package/src/scss/utilities/_utility-global-dark-prefers-classless.scss +0 -3
  99. package/src/scss/utilities/_utility-global-dark-prefers.scss +0 -3
  100. package/src/scss/utilities/_utility-global-dark-scrollbars.scss +0 -34
  101. package/src/scss/utilities/_utility-global-dark.scss +0 -4
  102. package/src/scss/utilities/_utility-global-system-default-classless.scss +0 -3
  103. package/src/scss/utilities/_utility-global-system-default.scss +0 -3
  104. package/src/scss/utilities/_utility-grid-system.scss +0 -140
  105. package/src/scss/utilities/_utility-layout.scss +0 -187
  106. package/src/scss/utilities/_utility-lists.scss +0 -17
  107. package/src/scss/utilities/_utility-print.scss +0 -101
  108. package/src/scss/utilities/_utility-reduced-motion.scss +0 -29
  109. package/src/scss/utilities/_utility-spacing.scss +0 -148
  110. package/src/scss/utilities/_utility-tables.scss +0 -34
  111. package/src/scss/utilities/_utility-texts.scss +0 -225
  112. package/src/scss/utilities/_utility-z-index.scss +0 -83
  113. package/src/scss/variables/_variables-breakpoints.scss +0 -6
  114. package/src/scss/variables/_variables-colors.scss +0 -34
  115. package/src/scss/variables/_variables-spacing.scss +0 -24
  116. package/src/scss/variables/_variables-texts.scss +0 -8
  117. package/vite.config.js +0 -148
Binary file
Binary file
package/dist/favicon.ico DELETED
Binary file
package/dist/index.css DELETED
@@ -1 +0,0 @@
1
- .demo .bf-row{margin-bottom:2rem}.demo [class^=bf-col]{margin-bottom:1rem}.demo header{margin-bottom:1rem}.demo header h1{margin-top:1rem;margin-bottom:0;font-weight:700}.demo header h1 span{color:#f95c1f}@media (min-width: 600px){.demo header h1{font-size:5.5rem}}@media (min-width: 1000px){.demo header h1{font-size:7rem}}.demo header a{margin-right:1rem}@media (min-width: 600px){.demo .btn-github{font-size:115%}}.demo .description{max-width:80rem;margin-left:auto;margin-right:auto}.demo .h2--section{padding-bottom:2rem;text-transform:uppercase}@media (min-width: 600px){.demo .h2--section{font-size:4rem}}.demo legend{padding-bottom:1rem}.demo button,.demo .bf-btn,.demo .input-image,.demo input,.demo select,.demo textarea{margin-bottom:2rem}.demo dialog .bf-btn{margin-bottom:0}.demo [type=image],.demo [type=checkbox],.demo [type=radio]{margin-bottom:0}.demo .grid .col-wrapper{background-color:#888;height:6rem;line-height:6rem;overflow-y:hidden;color:#fff;font-size:80%;text-align:center;border-radius:3px;font-weight:700}.demo .grid .bf-row:nth-child(odd) .col-wrapper{background-color:#ccc;color:#000}@media (max-width: 767px){.demo .grid .bf-row{margin-bottom:0}.demo .grid [class*=bf-col-]{margin-bottom:2rem}}.demo .back-to-top{text-align:center;display:block;margin:6rem 0 12rem}.demo .back-to-top a i{vertical-align:middle;font-style:normal}@media (max-width: 575px){.demo header{margin-bottom:1rem}}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
Binary file
Binary file
@@ -1,26 +0,0 @@
1
- /** @type {import('prettier').Config} */
2
- export default {
3
- semi: true,
4
- singleQuote: true,
5
- jsxSingleQuote: true,
6
- tabWidth: 2,
7
- useTabs: false,
8
- printWidth: 98,
9
- trailingComma: "es5",
10
- bracketSpacing: true,
11
- bracketSameLine: false,
12
- arrowParens: "always",
13
- proseWrap: "preserve",
14
- htmlWhitespaceSensitivity: "css",
15
- endOfLine: "lf",
16
- overrides: [
17
- {
18
- files: "*.html",
19
- options: { printWidth: 9999 },
20
- },
21
- {
22
- files: "*.md",
23
- options: { printWidth: 9999 },
24
- },
25
- ],
26
- };
@@ -1,2 +0,0 @@
1
- @use 'bullframe-classless' as bullframecssClassless;
2
- @use 'utilities/utility-global-dark-prefers-classless' as bfUtilGlobalDarkPrefersClassless;
@@ -1,2 +0,0 @@
1
- @use 'bullframe-classless' as bullframecssClassless;
2
- @use 'utilities/utility-global-dark-classless' as bfUtilGlobalDarkClassless;
@@ -1,2 +0,0 @@
1
- @use 'bullframe-classless' as bullframecssClassless;
2
- @use 'utilities/utility-global-dark-prefers-classless' as bfUtilGlobalDarkPrefersClassless;
@@ -1,49 +0,0 @@
1
- @use 'variables/variables-colors' as bf-v-color;
2
- @use 'variables/variables-texts' as bf-v-text;
3
- @use 'variables/variables-spacing' as bf-v-space;
4
- @use 'variables/variables-breakpoints' as bf-v-bp;
5
-
6
- // @use "mixins/mixin-layout" as bfMixinLayout;
7
- // @use "mixins/mixin-texts" as bfMixinTexts;
8
- // @use "mixins/mixin-grid-flex" as bfMixinGridFlex;
9
-
10
- @use 'miscellaneous/misc-layout' as bfMiscLayout;
11
-
12
- @use 'typography/typography-html-body' as bfTypographyHtmlBody;
13
- @use 'typography/typography-headings' as bfTypographyHeadings;
14
- @use 'typography/typography-blockquotes' as bfTypographyBlockquotes;
15
- @use 'typography/typography-monospaced-elements' as bfTypographyMonospacedElements;
16
- @use 'typography/typography-misc' as bfTypographyMisc;
17
-
18
- @use 'miscellaneous/misc-anchors' as bfMiscAnchors;
19
- @use 'miscellaneous/misc-focus' as bfMiscFocus;
20
- @use 'miscellaneous/misc-lists' as bfMiscLists;
21
- @use 'miscellaneous/misc-embedded-content' as bfMiscEmbeddedContent;
22
- @use 'miscellaneous/misc-interactive' as bfMiscInteractive;
23
- @use 'miscellaneous/misc-scrolling' as bfMiscScrolling;
24
- @use 'miscellaneous/misc-tables' as bfMiscTables;
25
- @use 'miscellaneous/misc-accessibility' as bfMiscAccessibility;
26
-
27
- @use 'forms/forms-normalization' as bfFormsNormalization;
28
- @use 'forms/forms-styling' as bfFormsStyling;
29
- @use 'forms/forms-styling-select' as bfFormsStylingSelect;
30
- @use 'forms/forms-styling-radio-checkbox' as bfFormsStylingRadioCheckbox;
31
- @use 'forms/forms-styling-range' as bfFormsStylingRange;
32
-
33
- // @use "utilities/utility-grid-system" as bfUtilityGridSystem;
34
- // @use "utilities/utility-layout" as bfUtilityLayout;
35
- // @use "utilities/utility-z-index" as bfUtilityZIndex;
36
- // @use "utilities/utility-spacing" as bfUtilitySpacing;
37
- // @use "utilities/utility-texts" as bfUtilityTexts;
38
- // @use "utilities/utility-buttons" as bfUtilityButtons;
39
- // @use "utilities/utility-form-states" as bfUtilityFormStates;
40
- // @use "utilities/utility-lists" as bfUtilityLists;
41
- // @use "utilities/utility-embeds" as bfUtilityEmbeds;
42
- // @use "utilities/utility-tables" as bfUtilityTables;
43
- // @use "utilities/utility-print" as bfUtilityPrint;
44
- // @use "utilities/utility-reduced-motion" as bfUtilityReducedMotion;
45
-
46
- @use 'custom/author-styles' as bfCustomAuthorStyles;
47
- @use 'miscellaneous/misc-shame' as bfMiscShame;
48
-
49
- @use 'utilities/utility-debugging' as bfUtilityDebugging;
@@ -1,2 +0,0 @@
1
- @use 'bullframe' as bullframecss;
2
- @use 'utilities/utility-global-dark-prefers' as bfUtilGlobalDarkPrefers;
@@ -1,2 +0,0 @@
1
- @use 'bullframe' as bullframecss;
2
- @use 'utilities/utility-global-dark' as bfUtilGlobalDark;
@@ -1,2 +0,0 @@
1
- @use 'bullframe' as bullframecss;
2
- @use 'utilities/utility-global-system-default' as bfUtilGlobalSystemDefault;
@@ -1,21 +0,0 @@
1
- @use 'variables/variables-colors' as bf-v-color;
2
- @use 'variables/variables-texts' as bf-v-text;
3
- @use 'variables/variables-spacing' as bf-v-space;
4
- @use 'variables/variables-breakpoints' as bf-v-bp;
5
-
6
- @use 'mixins/mixin-layout' as bfMixinLayout;
7
- @use 'mixins/mixin-texts' as bfMixinTexts;
8
- @use 'mixins/mixin-grid-flex' as bfMixinGridFlex;
9
-
10
- @use 'utilities/utility-grid-system' as bfUtilityGridSystem;
11
- @use 'utilities/utility-layout' as bfUtilityLayout;
12
- @use 'utilities/utility-z-index' as bfUtilityZIndex;
13
- @use 'utilities/utility-spacing' as bfUtilitySpacing;
14
- @use 'utilities/utility-texts' as bfUtilityTexts;
15
- @use 'utilities/utility-buttons' as bfUtilityButtons;
16
- @use 'utilities/utility-form-states' as bfUtilityFormStates;
17
- @use 'utilities/utility-lists' as bfUtilityLists;
18
- @use 'utilities/utility-embeds' as bfUtilityEmbeds;
19
- @use 'utilities/utility-tables' as bfUtilityTables;
20
- @use 'utilities/utility-print' as bfUtilityPrint;
21
- @use 'utilities/utility-reduced-motion' as bfUtilityReducedMotion;
@@ -1,49 +0,0 @@
1
- @use 'variables/variables-colors' as bf-v-color;
2
- @use 'variables/variables-texts' as bf-v-text;
3
- @use 'variables/variables-spacing' as bf-v-space;
4
- @use 'variables/variables-breakpoints' as bf-v-bp;
5
-
6
- @use 'mixins/mixin-layout' as bfMixinLayout;
7
- @use 'mixins/mixin-texts' as bfMixinTexts;
8
- @use 'mixins/mixin-grid-flex' as bfMixinGridFlex;
9
-
10
- @use 'miscellaneous/misc-layout' as bfMiscLayout;
11
-
12
- @use 'typography/typography-html-body' as bfTypographyHtmlBody;
13
- @use 'typography/typography-headings' as bfTypographyHeadings;
14
- @use 'typography/typography-blockquotes' as bfTypographyBlockquotes;
15
- @use 'typography/typography-monospaced-elements' as bfTypographyMonospacedElements;
16
- @use 'typography/typography-misc' as bfTypographyMisc;
17
-
18
- @use 'miscellaneous/misc-anchors' as bfMiscAnchors;
19
- @use 'miscellaneous/misc-focus' as bfMiscFocus;
20
- @use 'miscellaneous/misc-lists' as bfMiscLists;
21
- @use 'miscellaneous/misc-embedded-content' as bfMiscEmbeddedContent;
22
- @use 'miscellaneous/misc-interactive' as bfMiscInteractive;
23
- @use 'miscellaneous/misc-scrolling' as bfMiscScrolling;
24
- @use 'miscellaneous/misc-tables' as bfMiscTables;
25
- @use 'miscellaneous/misc-accessibility' as bfMiscAccessibility;
26
-
27
- @use 'forms/forms-normalization' as bfFormsNormalization;
28
- @use 'forms/forms-styling' as bfFormsStyling;
29
- @use 'forms/forms-styling-select' as bfFormsStylingSelect;
30
- @use 'forms/forms-styling-radio-checkbox' as bfFormsStylingRadioCheckbox;
31
- @use 'forms/forms-styling-range' as bfFormsStylingRange;
32
-
33
- @use 'utilities/utility-grid-system' as bfUtilityGridSystem;
34
- @use 'utilities/utility-layout' as bfUtilityLayout;
35
- @use 'utilities/utility-z-index' as bfUtilityZIndex;
36
- @use 'utilities/utility-spacing' as bfUtilitySpacing;
37
- @use 'utilities/utility-texts' as bfUtilityTexts;
38
- @use 'utilities/utility-buttons' as bfUtilityButtons;
39
- @use 'utilities/utility-form-states' as bfUtilityFormStates;
40
- @use 'utilities/utility-lists' as bfUtilityLists;
41
- @use 'utilities/utility-embeds' as bfUtilityEmbeds;
42
- @use 'utilities/utility-tables' as bfUtilityTables;
43
- @use 'utilities/utility-print' as bfUtilityPrint;
44
- @use 'utilities/utility-reduced-motion' as bfUtilityReducedMotion;
45
-
46
- @use 'custom/author-styles' as bfCustomAuthorStyles;
47
- @use 'miscellaneous/misc-shame' as bfMiscShame;
48
-
49
- @use 'utilities/utility-debugging' as bfUtilityDebugging;
@@ -1,5 +0,0 @@
1
- @use '../variables/variables-colors' as bf-v-color;
2
- @use '../variables/variables-texts' as bf-v-text;
3
- @use '../variables/variables-spacing' as bf-v-space;
4
- @use '../variables/variables-breakpoints' as bf-v-bp;
5
- @use 'sass:color';
@@ -1,300 +0,0 @@
1
- @use "../variables/variables-colors" as bf-v-color;
2
- @use "../variables/variables-texts" as bf-v-text;
3
- @use "../variables/variables-spacing" as bf-v-space;
4
- @use "../variables/variables-breakpoints" as bf-v-bp;
5
- @use "sass:color";
6
-
7
- // normalization, enhancement and responsiveness
8
-
9
- :where(html input, button, select, optgroup, textarea) {
10
- color: inherit;
11
- font-family: inherit;
12
- font-size: inherit;
13
- line-height: inherit;
14
- }
15
-
16
- :where(
17
- html input,
18
- button,
19
- [type="radio"],
20
- [type="checkbox"],
21
- select,
22
- optgroup,
23
- textarea
24
- ) {
25
- margin: 0;
26
- }
27
-
28
- :where(html input, select, textarea, legend) {
29
- width: 100%;
30
- }
31
-
32
- // re-set width auto where needed
33
- :where(
34
- html label,
35
- button,
36
- [type="image"],
37
- [type="submit"],
38
- [type="reset"],
39
- html [type="button"],
40
- [type="radio"],
41
- [type="checkbox"]
42
- ) {
43
- width: auto;
44
- }
45
-
46
- // inline-block display gives the best cross-browser combination
47
- // and allow several properties
48
- :where(
49
- html input,
50
- label,
51
- select,
52
- textarea,
53
- button,
54
- html [type="button"],
55
- [type="reset"],
56
- [type="submit"],
57
- output
58
- ) {
59
- display: inline-block;
60
- }
61
-
62
- :where([type="file"]) {
63
- display: block;
64
- background-color: transparent;
65
- }
66
-
67
- :where(button, html input, select, textarea) {
68
- background-image: none; // FF mobile
69
- }
70
-
71
- :where(input, select, textarea) {
72
- vertical-align: baseline;
73
- }
74
-
75
- :where(form) {
76
- margin: 0;
77
- }
78
-
79
- // 1. Remove intrinsic min-width of fieldset
80
- // https://github.com/necolas/normalize.css/pull/269
81
- :where(fieldset) {
82
- border: 0;
83
- padding: 0;
84
- margin: 0;
85
- min-width: 0; // 1.
86
- }
87
-
88
- :where(legend) {
89
- display: table; // Correct the text wrapping in Edge and IE.
90
- max-width: 100%;
91
- white-space: normal; // enable line-wrapping in FF4/5
92
- border: 0;
93
- padding: 0;
94
- font-weight: 400;
95
- margin-bottom: bf-v-space.$bf-spacing-md-px;
96
- margin-bottom: bf-v-space.$bf-spacing-md-rem;
97
- font-size: inherit;
98
- line-height: 1.375;
99
- color: inherit;
100
- }
101
-
102
- :where(label) {
103
- font-weight: 400;
104
- font-size: 90%;
105
- line-height: 1.375;
106
- margin-bottom: bf-v-space.$bf-spacing-md-px;
107
- margin-bottom: bf-v-space.$bf-spacing-md-rem;
108
- }
109
-
110
- :where(label input, label select, label textarea) {
111
- font-size: 110%;
112
- }
113
-
114
- ::-webkit-inner-spin-button {
115
- height: auto;
116
- }
117
-
118
- ::-webkit-datetime-edit-fields-wrapper,
119
- ::-webkit-datetime-edit-text,
120
- ::-webkit-datetime-edit-minute,
121
- ::-webkit-datetime-edit-hour-field,
122
- ::-webkit-datetime-edit-day-field,
123
- ::-webkit-datetime-edit-month-field,
124
- ::-webkit-datetime-edit-year-field {
125
- padding: 0;
126
- }
127
-
128
- ::-webkit-color-swatch-wrapper {
129
- padding: 0;
130
- }
131
-
132
- :where([type="search"]) {
133
- outline-offset: calc(-1 * bf-v-space.$bf-spacing-sm-rem);
134
- }
135
-
136
- :where(output) {
137
- vertical-align: middle;
138
- }
139
-
140
- :where(button, select) {
141
- text-transform: none;
142
- }
143
-
144
- :where(select) {
145
- word-wrap: normal;
146
- }
147
-
148
- // Taken from Bootstrap Reboot v5.2
149
- // https://unpkg.com/browse/bootstrap@5.2.0/dist/css/bootstrap-reboot.css
150
- :where([list]):not(
151
- [type="date"],
152
- [type="datetime-local"],
153
- [type="month"],
154
- [type="week"],
155
- [type="time"]
156
- )::-webkit-calendar-picker-indicator {
157
- display: none !important;
158
- }
159
-
160
- :where(optgroup) {
161
- font-family: inherit;
162
- font-size: inherit;
163
- font-style: inherit; // fallback for font families without 600 */
164
- font-weight: 600;
165
- }
166
-
167
- // remove -webkit-appearance listing every single elements that needed it
168
- :where(
169
- button,
170
- html [type="button"],
171
- [type="reset"],
172
- [type="submit"],
173
- [type="email"],
174
- [type="number"],
175
- [type="text"],
176
- [type="tel"],
177
- [type="date"],
178
- [type="datetime-local"],
179
- [type="month"],
180
- [type="week"],
181
- [type="url"],
182
- [type="image"],
183
- [type="password"],
184
- [type="search"],
185
- [type="search"]::-webkit-search-decoration,
186
- [type="search"]::-webkit-search-cancel-button,
187
- input[list],
188
- textarea
189
- ) {
190
- appearance: none;
191
- }
192
-
193
- ::-webkit-file-upload-button {
194
- font: inherit;
195
- appearance: auto;
196
- }
197
-
198
- ::file-selector-button {
199
- font: inherit;
200
- appearance: auto;
201
- }
202
-
203
- :where(button, input, select, textarea) {
204
- border-radius: bf-v-space.$bf-spacing-sm-rem;
205
- }
206
-
207
- :where([type="radio"]) {
208
- border-radius: 50%;
209
- }
210
-
211
- :where([type="checkbox"]) {
212
- border-radius: bf-v-space.$bf-spacing-md-rem;
213
- }
214
-
215
- :where([type="radio"], [type="checkbox"]) {
216
- padding: 0;
217
- background-color: bf-v-color.$bf-white;
218
- }
219
-
220
- :where([type="range" i]) {
221
- background-color: transparent; // FF and Chrome mobile
222
- }
223
-
224
- :where(select[size], select[multiple]) {
225
- height: auto;
226
- }
227
-
228
- :where(select[multiple]) {
229
- background-image: none; // FF mobile
230
- }
231
-
232
- :where(textarea) {
233
- height: auto;
234
- min-height: 60px;
235
- min-height: 6rem;
236
- overflow: auto;
237
- vertical-align: top;
238
- resize: vertical;
239
- }
240
-
241
- // Remove the inner border and padding of focus outlines in Firefox
242
- ::-moz-focus-inner {
243
- padding: 0;
244
- border-style: none;
245
- }
246
-
247
- :where(button, [type="button"], [type="reset"], [type="submit"]) {
248
- line-height: normal;
249
- text-align: center;
250
- margin: 0;
251
- background-clip: padding-box;
252
- vertical-align: baseline;
253
- overflow: visible;
254
- -webkit-tap-highlight-color: rgb(0 0 0 / 0%);
255
- user-select: none;
256
- border: 0;
257
- background-image: none; // FF mobile
258
-
259
- &:hover,
260
- &:active,
261
- &:focus {
262
- text-decoration: none;
263
- color: bf-v-color.$bf-dark;
264
- }
265
- }
266
-
267
- :where(
268
- button:not(:disabled),
269
- [type="button"]:not(:disabled),
270
- [type="reset"]:not(:disabled),
271
- [type="submit"]:not(:disabled)
272
- ) {
273
- cursor: pointer;
274
- }
275
-
276
- // FF placeholder bug
277
- // Issue: If one change the text color of input fields, FF will change
278
- // the default color of placeholders too!
279
- // Fix: Use '!important' https://github.com/necolas/normalize.css/issues/150
280
- :where(input::placeholder, textarea::placeholder) {
281
- color: bf-v-color.$bf-gray-dark;
282
- }
283
-
284
- /*
285
- Use the modern Firefox focus style for all focusable elements.
286
- */
287
-
288
- :-moz-focusring {
289
- outline: auto;
290
- }
291
-
292
- // remove ':invalid' styles in FF
293
- // https://developer.mozilla.org/en-US/docs/Web/CSS/:-moz-ui-invalid
294
- //
295
- // for form validation in JavaScript
296
- // use '.bf-invalid' class in /utilities/_utility-form-states.scss' instead
297
- // documentation https://developer.mozilla.org/en-US/docs/Web/CSS/:invalid
298
- :-moz-ui-invalid {
299
- box-shadow: none;
300
- }
@@ -1,81 +0,0 @@
1
- @use "../variables/variables-colors" as bf-v-color;
2
- @use "../variables/variables-texts" as bf-v-text;
3
- @use "../variables/variables-spacing" as bf-v-space;
4
- @use "../variables/variables-breakpoints" as bf-v-bp;
5
- @use "sass:color";
6
-
7
- // heavily inspired by '2020 toggles' by Aaron Iker
8
- // https://css-tricks.com/custom-styling-form-inputs-with-modern-css-features/
9
- // https://codepen.io/aaroniker/pen/ZEYoxEY?editors=0100
10
-
11
- :where([type="checkbox"], [type="radio"]) {
12
- appearance: none;
13
-
14
- height: 1.8rem;
15
- width: 1.8rem;
16
-
17
- vertical-align: top;
18
- position: relative;
19
-
20
- border: 1px solid / bf-v-color.$bf-gray;
21
-
22
- + label {
23
- line-height: 1.8rem;
24
- vertical-align: top;
25
- margin-left: bf-v-space.$bf-spacing-md-px;
26
- margin-left: bf-v-space.$bf-spacing-md-rem;
27
- }
28
-
29
- // add support for RTL languages
30
- // Read more
31
- // 1. http://bootstrap.rtlcss.com
32
- // 2. https://rtlstyling.com/
33
- *[dir="rtl"] & + label,
34
- &[dir="rtl"] + label {
35
- margin-left: 0;
36
- margin-right: bf-v-space.$bf-spacing-md-px;
37
- margin-right: bf-v-space.$bf-spacing-md-rem;
38
- }
39
-
40
- &::after {
41
- content: "";
42
- display: block;
43
- position: absolute;
44
- }
45
-
46
- &:checked {
47
- background-color: bf-v-color.$bf-blue;
48
- border-color: bf-v-color.$bf-black;
49
- }
50
- }
51
-
52
- :where([type="radio"]) {
53
- &::after {
54
- width: 1.8rem;
55
- height: 1.8rem;
56
-
57
- left: -0.05rem;
58
- top: -0.05rem;
59
-
60
- border-radius: 50%;
61
- background: bf-v-color.$bf-white;
62
-
63
- transform: scale(0.35);
64
- }
65
- }
66
-
67
- :where([type="checkbox"]) {
68
- &::after {
69
- width: 0.6rem;
70
- height: 0.8rem;
71
-
72
- border: 2px solid / bf-v-color.$bf-white;
73
- border-top: 0;
74
- border-left: 0;
75
-
76
- left: 35%;
77
- top: 20%;
78
-
79
- transform: rotate(43deg);
80
- }
81
- }
@@ -1,106 +0,0 @@
1
- @use "../variables/variables-colors" as bf-v-color;
2
- @use "../variables/variables-texts" as bf-v-text;
3
- @use "../variables/variables-spacing" as bf-v-space;
4
- @use "../variables/variables-breakpoints" as bf-v-bp;
5
- @use "sass:color";
6
-
7
- // styling input range in modern browsers safely using the @supports CSS-at-rule
8
- // https://developer.mozilla.org/en-US/docs/Web/CSS/@supports
9
- //
10
- // standalone CodePen demo https://codepen.io/marcop135/pen/JjGrNMx
11
-
12
- :where([type="range"]) {
13
- appearance: none;
14
- width: 100%;
15
- height: 1.4rem;
16
- }
17
-
18
- :where([type="range"])::-webkit-slider-thumb {
19
- border: 0;
20
- appearance: none;
21
-
22
- width: 1.5rem;
23
- height: 1.5rem;
24
- margin-top: -0.25rem;
25
- background-color: bf-v-color.$bf-blue;
26
- border-radius: 1.5rem;
27
- transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
28
- box-shadow 0.15s ease-in-out;
29
-
30
- &:active {
31
- background-color: bf-v-color.$bf-blue;
32
- }
33
- }
34
-
35
- :where([type="range"])::-moz-range-thumb {
36
- border: 0;
37
- appearance: none;
38
-
39
- width: 1.5rem;
40
- height: 1.5rem;
41
- background-color: bf-v-color.$bf-blue;
42
- border-radius: 1.5rem;
43
- transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
44
- box-shadow 0.15s ease-in-out;
45
-
46
- &:active {
47
- background-color: bf-v-color.$bf-blue;
48
- }
49
- }
50
-
51
- :where([type="range"])::-webkit-slider-runnable-track {
52
- color: transparent;
53
- border-color: transparent;
54
-
55
- width: 100%;
56
- height: 0.65rem;
57
- cursor: pointer;
58
- background-color: bf-v-color.$bf-gray-light-extra;
59
- }
60
-
61
- :where([type="range"])::-moz-range-track {
62
- color: transparent;
63
- border-color: transparent;
64
-
65
- width: 100%;
66
- height: 0.65rem;
67
- cursor: pointer;
68
- background-color: bf-v-color.$bf-gray-light-extra;
69
- }
70
-
71
- :where([type="range"]):focus {
72
- outline: none;
73
-
74
- &::-webkit-slider-thumb {
75
- box-shadow: 0 0 0 0.1rem / bf-v-color.$bf-white,
76
- 0 0 0 0.2rem rgb(0 123 255 / 25%);
77
- }
78
-
79
- &::-moz-slider-thumb {
80
- box-shadow: 0 0 0 0.1rem / bf-v-color.$bf-white,
81
- 0 0 0 0.2rem rgb(0 123 255 / 25%);
82
- }
83
- }
84
-
85
- :where([type="range"])::-moz-focus-outer {
86
- border: 0;
87
- }
88
-
89
- :where([type="range"]):focus::-moz-range-thumb {
90
- box-shadow: 0 0 0 0.1rem / bf-v-color.$bf-white,
91
- 0 0 0 0.2rem rgb(0 123 255 / 25%);
92
- }
93
-
94
- // disabled
95
-
96
- :where([type="range"]):disabled {
97
- pointer-events: none;
98
-
99
- &::-webkit-slider-thumb {
100
- background-color: bf-v-color.$bf-gray-light;
101
- }
102
-
103
- &::-moz-slider-thumb {
104
- background-color: bf-v-color.$bf-gray-light;
105
- }
106
- }