bullframe.css 5.0.1 → 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 (142) hide show
  1. package/CHANGELOG.md +276 -234
  2. package/LICENSE +2 -2
  3. package/README.md +34 -455
  4. package/dist/css/bullframe-classless-dark.css +1218 -932
  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 +1316 -936
  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 +1038 -715
  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 +1943 -1459
  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 +2005 -1489
  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 +769 -491
  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 +1911 -1383
  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 +71 -29
  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/css/bullframe-classless-dark-prefers.css +0 -1340
  40. package/dist/css/bullframe-classless-dark-prefers.css.map +0 -1
  41. package/dist/css/bullframe-classless-dark-prefers.min.css +0 -3
  42. package/dist/css/bullframe-classless-dark-prefers.min.css.map +0 -1
  43. package/dist/css/bullframe-dark-prefers.css +0 -2356
  44. package/dist/css/bullframe-dark-prefers.css.map +0 -1
  45. package/dist/css/bullframe-dark-prefers.min.css +0 -3
  46. package/dist/css/bullframe-dark-prefers.min.css.map +0 -1
  47. package/dist/docs/demo/css/style.css +0 -131
  48. package/dist/docs/demo/icons/android-chrome-192x192.png +0 -0
  49. package/dist/docs/demo/icons/android-chrome-384x384.png +0 -0
  50. package/dist/docs/demo/icons/apple-touch-icon.png +0 -0
  51. package/dist/docs/demo/icons/favicon-16x16.png +0 -0
  52. package/dist/docs/demo/icons/favicon-32x32.png +0 -0
  53. package/dist/docs/demo/icons/favicon.ico +0 -0
  54. package/dist/docs/demo/icons/mstile-150x150.png +0 -0
  55. package/dist/docs/demo/icons/safari-pinned-tab.svg +0 -28
  56. package/dist/docs/demo/images/logo.png +0 -0
  57. package/dist/docs/demo/images/placeholder-img-130x140.jpg +0 -0
  58. package/dist/docs/demo/images/placeholder-img-16x16.jpg +0 -0
  59. package/dist/docs/demo/images/placeholder-img-800x400.jpg +0 -0
  60. package/dist/docs/demo/images/video-poster.png +0 -0
  61. package/dist/docs/demo/index.html +0 -1152
  62. package/dist/docs/github-readme/bf-logo-full-dark.png +0 -0
  63. package/dist/docs/github-readme/bf-logo-full-light.png +0 -0
  64. package/prettier.config.js +0 -26
  65. package/src/docs/demo/css/style.css +0 -131
  66. package/src/docs/demo/icons/android-chrome-192x192.png +0 -0
  67. package/src/docs/demo/icons/android-chrome-384x384.png +0 -0
  68. package/src/docs/demo/icons/apple-touch-icon.png +0 -0
  69. package/src/docs/demo/icons/favicon-16x16.png +0 -0
  70. package/src/docs/demo/icons/favicon-32x32.png +0 -0
  71. package/src/docs/demo/icons/favicon.ico +0 -0
  72. package/src/docs/demo/icons/mstile-150x150.png +0 -0
  73. package/src/docs/demo/icons/safari-pinned-tab.svg +0 -28
  74. package/src/docs/demo/images/logo.png +0 -0
  75. package/src/docs/demo/images/placeholder-img-130x140.jpg +0 -0
  76. package/src/docs/demo/images/placeholder-img-16x16.jpg +0 -0
  77. package/src/docs/demo/images/placeholder-img-800x400.jpg +0 -0
  78. package/src/docs/demo/images/video-poster.png +0 -0
  79. package/src/docs/demo/index.html +0 -1152
  80. package/src/docs/github-readme/bf-logo-full-dark.png +0 -0
  81. package/src/docs/github-readme/bf-logo-full-light.png +0 -0
  82. package/src/scss/bullframe-classless-dark-prefers.scss +0 -2
  83. package/src/scss/bullframe-classless-dark.scss +0 -2
  84. package/src/scss/bullframe-classless-system-default.scss +0 -2
  85. package/src/scss/bullframe-classless.scss +0 -49
  86. package/src/scss/bullframe-dark-prefers.scss +0 -2
  87. package/src/scss/bullframe-dark.scss +0 -2
  88. package/src/scss/bullframe-system-default.scss +0 -2
  89. package/src/scss/bullframe-utilities.scss +0 -21
  90. package/src/scss/bullframe.scss +0 -49
  91. package/src/scss/custom/_author-styles.scss +0 -5
  92. package/src/scss/forms/_forms-normalization.scss +0 -316
  93. package/src/scss/forms/_forms-styling-radio-checkbox.scss +0 -82
  94. package/src/scss/forms/_forms-styling-range.scss +0 -113
  95. package/src/scss/forms/_forms-styling-select.scss +0 -65
  96. package/src/scss/forms/_forms-styling.scss +0 -131
  97. package/src/scss/miscellaneous/_misc-accessibility.scss +0 -36
  98. package/src/scss/miscellaneous/_misc-anchors.scss +0 -37
  99. package/src/scss/miscellaneous/_misc-embedded-content.scss +0 -117
  100. package/src/scss/miscellaneous/_misc-focus.scss +0 -79
  101. package/src/scss/miscellaneous/_misc-interactive.scss +0 -48
  102. package/src/scss/miscellaneous/_misc-layout.scss +0 -30
  103. package/src/scss/miscellaneous/_misc-lists.scss +0 -53
  104. package/src/scss/miscellaneous/_misc-scrolling.scss +0 -5
  105. package/src/scss/miscellaneous/_misc-shame.scss +0 -37
  106. package/src/scss/miscellaneous/_misc-tables.scss +0 -53
  107. package/src/scss/mixins/_mixin-dark-prefers.scss +0 -414
  108. package/src/scss/mixins/_mixin-dark.scss +0 -396
  109. package/src/scss/mixins/_mixin-grid-flex.scss +0 -80
  110. package/src/scss/mixins/_mixin-layout.scss +0 -42
  111. package/src/scss/mixins/_mixin-texts.scss +0 -37
  112. package/src/scss/typography/_typography-blockquotes.scss +0 -28
  113. package/src/scss/typography/_typography-headings.scss +0 -45
  114. package/src/scss/typography/_typography-html-body.scss +0 -75
  115. package/src/scss/typography/_typography-misc.scss +0 -90
  116. package/src/scss/typography/_typography-monospaced-elements.scss +0 -59
  117. package/src/scss/utilities/_utility-buttons.scss +0 -73
  118. package/src/scss/utilities/_utility-debugging.scss +0 -31
  119. package/src/scss/utilities/_utility-embeds.scss +0 -34
  120. package/src/scss/utilities/_utility-filters.scss +0 -21
  121. package/src/scss/utilities/_utility-form-states.scss +0 -89
  122. package/src/scss/utilities/_utility-global-dark-classless.scss +0 -3
  123. package/src/scss/utilities/_utility-global-dark-prefers-classless.scss +0 -3
  124. package/src/scss/utilities/_utility-global-dark-prefers.scss +0 -3
  125. package/src/scss/utilities/_utility-global-dark-scrollbars.scss +0 -34
  126. package/src/scss/utilities/_utility-global-dark.scss +0 -4
  127. package/src/scss/utilities/_utility-global-system-default-classless.scss +0 -3
  128. package/src/scss/utilities/_utility-global-system-default.scss +0 -3
  129. package/src/scss/utilities/_utility-grid-system.scss +0 -140
  130. package/src/scss/utilities/_utility-layout.scss +0 -187
  131. package/src/scss/utilities/_utility-lists.scss +0 -17
  132. package/src/scss/utilities/_utility-print.scss +0 -101
  133. package/src/scss/utilities/_utility-reduced-motion.scss +0 -29
  134. package/src/scss/utilities/_utility-spacing.scss +0 -148
  135. package/src/scss/utilities/_utility-tables.scss +0 -34
  136. package/src/scss/utilities/_utility-texts.scss +0 -225
  137. package/src/scss/utilities/_utility-z-index.scss +0 -83
  138. package/src/scss/variables/_variables-breakpoints.scss +0 -6
  139. package/src/scss/variables/_variables-colors.scss +0 -34
  140. package/src/scss/variables/_variables-spacing.scss +0 -24
  141. package/src/scss/variables/_variables-texts.scss +0 -8
  142. package/vite.config.js +0 -116
@@ -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,316 +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
- html input,
10
- button,
11
- select,
12
- optgroup,
13
- textarea {
14
- color: inherit;
15
- font-family: inherit;
16
- font-size: inherit;
17
- line-height: inherit;
18
- }
19
-
20
- html input,
21
- button,
22
- [type="radio"],
23
- [type="checkbox"],
24
- select,
25
- optgroup,
26
- textarea {
27
- margin: 0;
28
- }
29
-
30
- html input,
31
- select,
32
- textarea,
33
- legend {
34
- width: 100%;
35
- }
36
-
37
- // re-set width auto where needed
38
- html label,
39
- button,
40
- [type="image"],
41
- [type="submit"],
42
- [type="reset"],
43
- html [type="button"],
44
- [type="radio"],
45
- [type="checkbox"] {
46
- width: auto;
47
- }
48
-
49
- // inline-block display gives the best cross-browser combination
50
- // and allow several properties
51
- html input,
52
- label,
53
- select,
54
- textarea,
55
- button,
56
- html [type="button"],
57
- [type="reset"],
58
- [type="submit"],
59
- output {
60
- display: inline-block;
61
- }
62
-
63
- [type="file"] {
64
- display: block;
65
- background-color: transparent;
66
- }
67
-
68
- button,
69
- html input,
70
- select,
71
- textarea {
72
- background-image: none; // FF mobile
73
- }
74
-
75
- input,
76
- select,
77
- textarea {
78
- vertical-align: baseline;
79
- }
80
-
81
- form {
82
- margin: 0;
83
- }
84
-
85
- // 1. Remove intrinsic min-width of fieldset
86
- // https://github.com/necolas/normalize.css/pull/269
87
- fieldset {
88
- border: 0;
89
- padding: 0;
90
- margin: 0;
91
- min-width: 0; // 1.
92
- }
93
-
94
- legend {
95
- display: table; // Correct the text wrapping in Edge and IE.
96
- max-width: 100%;
97
- white-space: normal; // enable line-wrapping in FF4/5
98
- border: 0;
99
- padding: 0;
100
- font-weight: 400;
101
- margin-bottom: bf-v-space.$bf-spacing-md-px;
102
- margin-bottom: bf-v-space.$bf-spacing-md-rem;
103
- font-size: inherit;
104
- line-height: 1.375;
105
- color: inherit;
106
- }
107
-
108
- label {
109
- font-weight: 400;
110
- font-size: 90%;
111
- line-height: 1.375;
112
- margin-bottom: bf-v-space.$bf-spacing-md-px;
113
- margin-bottom: bf-v-space.$bf-spacing-md-rem;
114
- }
115
-
116
- label input,
117
- label select,
118
- label textarea {
119
- font-size: 110%;
120
- }
121
-
122
- ::-webkit-inner-spin-button {
123
- height: auto;
124
- }
125
-
126
- ::-webkit-datetime-edit-fields-wrapper,
127
- ::-webkit-datetime-edit-text,
128
- ::-webkit-datetime-edit-minute,
129
- ::-webkit-datetime-edit-hour-field,
130
- ::-webkit-datetime-edit-day-field,
131
- ::-webkit-datetime-edit-month-field,
132
- ::-webkit-datetime-edit-year-field {
133
- padding: 0;
134
- }
135
-
136
- ::-webkit-color-swatch-wrapper {
137
- padding: 0;
138
- }
139
-
140
- [type="search"] {
141
- outline-offset: calc(-1 * bf-v-space.$bf-spacing-sm-rem);
142
- }
143
-
144
- output {
145
- vertical-align: middle;
146
- }
147
-
148
- button,
149
- select {
150
- text-transform: none;
151
- }
152
-
153
- select {
154
- word-wrap: normal;
155
- }
156
-
157
- // Taken from Bootstrap Reboot v5.2
158
- // https://unpkg.com/browse/bootstrap@5.2.0/dist/css/bootstrap-reboot.css
159
- [list]:not(
160
- [type="date"],
161
- [type="datetime-local"],
162
- [type="month"],
163
- [type="week"],
164
- [type="time"]
165
- )::-webkit-calendar-picker-indicator {
166
- display: none !important;
167
- }
168
-
169
- optgroup {
170
- font-family: inherit;
171
- font-size: inherit;
172
- font-style: inherit; // fallback for font families without 600 */
173
- font-weight: 600;
174
- }
175
-
176
- // remove -webkit-appearance listing every single elements that needed it
177
- button,
178
- // avoid destroying native android audio/video players
179
- html [type="button"],
180
- [type="reset"],
181
- [type="submit"],
182
-
183
- [type="email"],
184
- [type="number"],
185
- [type="text"],
186
- [type="tel"],
187
- [type="date"],
188
- [type="datetime-local"],
189
- [type="month"],
190
- [type="week"],
191
- [type="url"],
192
- [type="image"],
193
- [type="password"],
194
- [type="search"],
195
- [type="search"]::-webkit-search-decoration,
196
- [type="search"]::-webkit-search-cancel-button,
197
- input[list],
198
- textarea {
199
- appearance: none;
200
- }
201
-
202
- ::-webkit-file-upload-button {
203
- font: inherit;
204
- appearance: auto;
205
- }
206
-
207
- ::file-selector-button {
208
- font: inherit;
209
- appearance: auto;
210
- }
211
-
212
- button,
213
- input,
214
- select,
215
- textarea {
216
- border-radius: bf-v-space.$bf-spacing-sm-rem;
217
- }
218
-
219
- [type="radio"] {
220
- border-radius: 50%;
221
- }
222
-
223
- [type="checkbox"] {
224
- border-radius: bf-v-space.$bf-spacing-md-rem;
225
- }
226
-
227
- [type="radio"],
228
- [type="checkbox"] {
229
- padding: 0;
230
- background-color: bf-v-color.$bf-white;
231
- }
232
-
233
- [type="range" i] {
234
- background-color: transparent; // FF and Chrome mobile
235
- }
236
-
237
- select[size],
238
- select[multiple] {
239
- height: auto;
240
- }
241
-
242
- select[multiple] {
243
- background-image: none; // FF mobile
244
- }
245
-
246
- textarea {
247
- height: auto;
248
- min-height: 60px;
249
- min-height: 6rem;
250
- overflow: auto;
251
- vertical-align: top;
252
- resize: vertical;
253
- }
254
-
255
- // Remove the inner border and padding of focus outlines in Firefox
256
- ::-moz-focus-inner {
257
- padding: 0;
258
- border-style: none;
259
- }
260
-
261
- button,
262
- [type="button"],
263
- [type="reset"],
264
- [type="submit"] {
265
- line-height: normal;
266
- text-align: center;
267
- margin: 0;
268
- background-clip: padding-box;
269
- vertical-align: baseline;
270
- overflow: visible;
271
- -webkit-tap-highlight-color: rgb(0 0 0 / 0%);
272
- user-select: none;
273
- border: 0;
274
- background-image: none; // FF mobile
275
-
276
- &:hover,
277
- &:active,
278
- &:focus {
279
- text-decoration: none;
280
- color: bf-v-color.$bf-dark;
281
- }
282
- }
283
-
284
- button:not(:disabled),
285
- [type="button"]:not(:disabled),
286
- [type="reset"]:not(:disabled),
287
- [type="submit"]:not(:disabled) {
288
- cursor: pointer;
289
- }
290
-
291
- // FF placeholder bug
292
- // Issue: If one change the text color of input fields, FF will change
293
- // the default color of placeholders too!
294
- // Fix: Use '!important' https://github.com/necolas/normalize.css/issues/150
295
- input::placeholder,
296
- textarea::placeholder {
297
- color: bf-v-color.$bf-gray-dark;
298
- }
299
-
300
- /*
301
- Use the modern Firefox focus style for all focusable elements.
302
- */
303
-
304
- :-moz-focusring {
305
- outline: auto;
306
- }
307
-
308
- // remove ':invalid' styles in FF
309
- // https://developer.mozilla.org/en-US/docs/Web/CSS/:-moz-ui-invalid
310
- //
311
- // for form validation in JavaScript
312
- // use '.bf-invalid' class in /utilities/_utility-form-states.scss' instead
313
- // documentation https://developer.mozilla.org/en-US/docs/Web/CSS/:invalid
314
- :-moz-ui-invalid {
315
- box-shadow: none;
316
- }
@@ -1,82 +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
- [type='checkbox'],
12
- [type='radio'] {
13
- appearance: none;
14
-
15
- height: 1.8rem;
16
- width: 1.8rem;
17
-
18
- vertical-align: top;
19
- position: relative;
20
-
21
- border: 1px solid / bf-v-color.$bf-gray;
22
-
23
- + label {
24
- line-height: 1.8rem;
25
- vertical-align: top;
26
- margin-left: bf-v-space.$bf-spacing-md-px;
27
- margin-left: bf-v-space.$bf-spacing-md-rem;
28
- }
29
-
30
- // add support for RTL languages
31
- // Read more
32
- // 1. http://bootstrap.rtlcss.com
33
- // 2. https://rtlstyling.com/
34
- *[dir='rtl'] & + label,
35
- &[dir='rtl'] + label {
36
- margin-left: 0;
37
- margin-right: bf-v-space.$bf-spacing-md-px;
38
- margin-right: bf-v-space.$bf-spacing-md-rem;
39
- }
40
-
41
- &::after {
42
- content: '';
43
- display: block;
44
- position: absolute;
45
- }
46
-
47
- &:checked {
48
- background-color: bf-v-color.$bf-blue;
49
- border-color: bf-v-color.$bf-black;
50
- }
51
- }
52
-
53
- [type='radio'] {
54
- &::after {
55
- width: 1.8rem;
56
- height: 1.8rem;
57
-
58
- left: -0.05rem;
59
- top: -0.05rem;
60
-
61
- border-radius: 50%;
62
- background: bf-v-color.$bf-white;
63
-
64
- transform: scale(0.35);
65
- }
66
- }
67
-
68
- [type='checkbox'] {
69
- &::after {
70
- width: 0.6rem;
71
- height: 0.8rem;
72
-
73
- border: 2px solid / bf-v-color.$bf-white;
74
- border-top: 0;
75
- border-left: 0;
76
-
77
- left: 35%;
78
- top: 20%;
79
-
80
- transform: rotate(43deg);
81
- }
82
- }
@@ -1,113 +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
- [type='range'] {
13
- appearance: none;
14
- width: 100%;
15
- height: 1.4rem;
16
- }
17
-
18
- [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:
28
- background-color 0.15s ease-in-out,
29
- border-color 0.15s ease-in-out,
30
- box-shadow 0.15s ease-in-out;
31
-
32
- &:active {
33
- background-color: bf-v-color.$bf-blue;
34
- }
35
- }
36
-
37
- [type='range']::-moz-range-thumb {
38
- border: 0;
39
- appearance: none;
40
-
41
- width: 1.5rem;
42
- height: 1.5rem;
43
- background-color: bf-v-color.$bf-blue;
44
- border-radius: 1.5rem;
45
- transition:
46
- background-color 0.15s ease-in-out,
47
- border-color 0.15s ease-in-out,
48
- box-shadow 0.15s ease-in-out;
49
-
50
- &:active {
51
- background-color: bf-v-color.$bf-blue;
52
- }
53
- }
54
-
55
- [type='range']::-webkit-slider-runnable-track {
56
- color: transparent;
57
- border-color: transparent;
58
-
59
- width: 100%;
60
- height: 0.65rem;
61
- cursor: pointer;
62
- background-color: bf-v-color.$bf-gray-light-extra;
63
- }
64
-
65
- [type='range']::-moz-range-track {
66
- color: transparent;
67
- border-color: transparent;
68
-
69
- width: 100%;
70
- height: 0.65rem;
71
- cursor: pointer;
72
- background-color: bf-v-color.$bf-gray-light-extra;
73
- }
74
-
75
- [type='range']:focus {
76
- outline: none;
77
-
78
- &::-webkit-slider-thumb {
79
- box-shadow:
80
- 0 0 0 0.1rem / bf-v-color.$bf-white,
81
- 0 0 0 0.2rem rgb(0 123 255 / 25%);
82
- }
83
-
84
- &::-moz-slider-thumb {
85
- box-shadow:
86
- 0 0 0 0.1rem / bf-v-color.$bf-white,
87
- 0 0 0 0.2rem rgb(0 123 255 / 25%);
88
- }
89
- }
90
-
91
- [type='range']::-moz-focus-outer {
92
- border: 0;
93
- }
94
-
95
- [type='range']:focus::-moz-range-thumb {
96
- box-shadow:
97
- 0 0 0 0.1rem / bf-v-color.$bf-white,
98
- 0 0 0 0.2rem rgb(0 123 255 / 25%);
99
- }
100
-
101
- // disabled
102
-
103
- [type='range']:disabled {
104
- pointer-events: none;
105
-
106
- &::-webkit-slider-thumb {
107
- background-color: bf-v-color.$bf-gray-light;
108
- }
109
-
110
- &::-moz-slider-thumb {
111
- background-color: bf-v-color.$bf-gray-light;
112
- }
113
- }