@rossigee/clarity-ui 18.2.1-fixed

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 (219) hide show
  1. package/README.md +29 -0
  2. package/STYLES.md +1796 -0
  3. package/accordion/_accordion.clarity.scss +81 -0
  4. package/accordion/_properties.accordion.scss +45 -0
  5. package/accordion/_variables.accordion.scss +91 -0
  6. package/button/_buttons.clarity.scss +374 -0
  7. package/button/_mixins.buttons.scss +232 -0
  8. package/button/_properties.buttons.scss +325 -0
  9. package/button/_properties.toggles.scss +35 -0
  10. package/button/_variables.buttons.scss +843 -0
  11. package/button/_variables.toggles.scss +41 -0
  12. package/button/button-group/_button-group.clarity.scss +193 -0
  13. package/clr-ui.css +31728 -0
  14. package/clr-ui.css.map +1 -0
  15. package/clr-ui.min.css +52 -0
  16. package/clr-ui.min.css.map +1 -0
  17. package/collapsible-panel/_mixins.collapsible-panel.scss +189 -0
  18. package/collapsible-panel/_properties.collapsible-panel.scss +42 -0
  19. package/collapsible-panel/_variables.collapsible-panel.scss +40 -0
  20. package/data/_mixins.tables.scss +111 -0
  21. package/data/_properties.tables.scss +62 -0
  22. package/data/_tables.clarity.scss +120 -0
  23. package/data/_variables.tables.scss +42 -0
  24. package/data/datagrid/_datagrid.clarity.scss +1753 -0
  25. package/data/datagrid/_mixins.datagrid.scss +102 -0
  26. package/data/datagrid/_properties.datagrid.scss +90 -0
  27. package/data/datagrid/_variables.datagrid.scss +96 -0
  28. package/data/stack-view/_properties.stack-view.scss +50 -0
  29. package/data/stack-view/_stack-view.clarity.scss +267 -0
  30. package/data/stack-view/_variables.stack-view.scss +32 -0
  31. package/data/tree-view/_properties.tree-view.scss +41 -0
  32. package/data/tree-view/_tree-view.clarity.scss +281 -0
  33. package/data/tree-view/_variables.tree-view.scss +51 -0
  34. package/emphasis/alert/_alert.clarity.scss +467 -0
  35. package/emphasis/alert/_mixins.alert.scss +96 -0
  36. package/emphasis/alert/_properties.alert.scss +183 -0
  37. package/emphasis/alert/_variables.alert.scss +502 -0
  38. package/emphasis/badge/_badges.clarity.scss +61 -0
  39. package/emphasis/badge/_mixins.bades.scss +34 -0
  40. package/emphasis/badge/_properties.badges.scss +82 -0
  41. package/emphasis/badge/_variables.badges.scss +160 -0
  42. package/emphasis/label/_labels.clarity.scss +175 -0
  43. package/emphasis/label/_mixins.label.scss +76 -0
  44. package/emphasis/label/_properties.label.scss +105 -0
  45. package/emphasis/label/_variables.label.scss +181 -0
  46. package/forms/combobox/_combobox.clarity.scss +322 -0
  47. package/forms/combobox/_properties.combobox.scss +45 -0
  48. package/forms/combobox/_variables.combobox.scss +32 -0
  49. package/forms/datepicker/_datepicker.clarity.scss +259 -0
  50. package/forms/datepicker/_mixins.datepicker.scss +90 -0
  51. package/forms/datepicker/_properties.datepicker.scss +46 -0
  52. package/forms/datepicker/_variables.datepicker.scss +74 -0
  53. package/forms/styles/_checkbox.clarity.scss +193 -0
  54. package/forms/styles/_containers.clarity.scss +228 -0
  55. package/forms/styles/_datalist.clarity.scss +47 -0
  56. package/forms/styles/_file-input.clarity.scss +134 -0
  57. package/forms/styles/_file.clarity.scss +52 -0
  58. package/forms/styles/_form.clarity.scss +87 -0
  59. package/forms/styles/_input-group.clarity.scss +118 -0
  60. package/forms/styles/_input.clarity.scss +78 -0
  61. package/forms/styles/_mixins.forms.scss +173 -0
  62. package/forms/styles/_number-input.clarity.scss +58 -0
  63. package/forms/styles/_password.clarity.scss +26 -0
  64. package/forms/styles/_properties.forms.scss +121 -0
  65. package/forms/styles/_radio.clarity.scss +120 -0
  66. package/forms/styles/_range.clarity.scss +124 -0
  67. package/forms/styles/_select.clarity.scss +178 -0
  68. package/forms/styles/_textarea.clarity.scss +77 -0
  69. package/forms/styles/_toggles.clarity.scss +209 -0
  70. package/forms/styles/_variables.forms.scss +128 -0
  71. package/icon/icon.component.scss +242 -0
  72. package/image/_icons.clarity.scss +101 -0
  73. package/image/_images.clarity.scss +42 -0
  74. package/image/_mixins.images.scss +11 -0
  75. package/layout/_card.clarity.scss +311 -0
  76. package/layout/_login.clarity.scss +240 -0
  77. package/layout/_properties.card.scss +36 -0
  78. package/layout/_properties.login.scss +32 -0
  79. package/layout/_variables.card.scss +23 -0
  80. package/layout/_variables.login.scss +22 -0
  81. package/layout/breadcrumbs/_breadcrumbs.clarity.scss +60 -0
  82. package/layout/breadcrumbs/_properties.breadcrumbs.scss +18 -0
  83. package/layout/breadcrumbs/_variables.breadcrumbs.scss +11 -0
  84. package/layout/grid/_grid.scss +23 -0
  85. package/layout/grid/grid/_grid.scss +39 -0
  86. package/layout/grid/mixins/_breakpoint.scss +83 -0
  87. package/layout/grid/mixins/_clearfix.scss +13 -0
  88. package/layout/grid/mixins/_grid-framework.scss +91 -0
  89. package/layout/grid/mixins/_grid.scss +39 -0
  90. package/layout/grid/utilities/_align.scss +30 -0
  91. package/layout/grid/utilities/_clearfix.scss +12 -0
  92. package/layout/grid/utilities/_display.scss +18 -0
  93. package/layout/grid/utilities/_flex.scss +222 -0
  94. package/layout/grid/utilities/_float.scss +26 -0
  95. package/layout/grid/utilities/_visibility.scss +60 -0
  96. package/layout/main-container/_layout.clarity.scss +87 -0
  97. package/layout/main-container/_properties.header.scss +39 -0
  98. package/layout/main-container/_variables.header.scss +32 -0
  99. package/layout/nav/_header.clarity.scss +40 -0
  100. package/layout/nav/_links.clarity.scss +84 -0
  101. package/layout/nav/_mixins.header.scss +332 -0
  102. package/layout/nav/_mixins.responsive-nav.scss +75 -0
  103. package/layout/nav/_nav.clarity.scss +100 -0
  104. package/layout/nav/_properties.nav.scss +27 -0
  105. package/layout/nav/_properties.responsive-nav.scss +23 -0
  106. package/layout/nav/_properties.subnav.scss +19 -0
  107. package/layout/nav/_responsive-nav.clarity.scss +488 -0
  108. package/layout/nav/_subnav.clarity.scss +48 -0
  109. package/layout/nav/_variables.nav.scss +13 -0
  110. package/layout/nav/_variables.responsive-nav.scss +28 -0
  111. package/layout/nav/_variables.subnav.scss +21 -0
  112. package/layout/tabs/_mixins.tabs.scss +41 -0
  113. package/layout/tabs/_properties.tabs.scss +25 -0
  114. package/layout/tabs/_tabs.clarity.scss +110 -0
  115. package/layout/tabs/_variables.tabs.scss +17 -0
  116. package/layout/vertical-nav/_mixins.vertical-nav.scss +52 -0
  117. package/layout/vertical-nav/_properties.vertical-nav.scss +73 -0
  118. package/layout/vertical-nav/_variables.vertical-nav.scss +52 -0
  119. package/layout/vertical-nav/_vertical-nav.clarity.scss +469 -0
  120. package/main.scss +14 -0
  121. package/modal/_modal.clarity.scss +362 -0
  122. package/modal/_properties.modal.scss +45 -0
  123. package/modal/_variables.modal.scss +38 -0
  124. package/package.json +15 -0
  125. package/popover/common/_popover.clarity.scss +28 -0
  126. package/popover/dropdown/_dropdown.clarity.scss +326 -0
  127. package/popover/dropdown/_menu-mixins.clarity.scss +132 -0
  128. package/popover/dropdown/_properties.dropdown.scss +50 -0
  129. package/popover/dropdown/_variables.dropdown.scss +36 -0
  130. package/popover/signpost/_properties.signpost.scss +34 -0
  131. package/popover/signpost/_signposts.clarity.scss +414 -0
  132. package/popover/signpost/_variables.signpost.scss +21 -0
  133. package/popover/tooltip/_mixins.tooltip.scss +186 -0
  134. package/popover/tooltip/_properties.tooltip.scss +28 -0
  135. package/popover/tooltip/_tooltips.clarity.scss +122 -0
  136. package/popover/tooltip/_variables.tooltip.scss +20 -0
  137. package/progress/progress-bars/_progress-bars.clarity.scss +616 -0
  138. package/progress/progress-bars/_properties.progress-bars.scss +24 -0
  139. package/progress/progress-bars/_variables.progress-bars.scss +15 -0
  140. package/progress/progress-bars/utils/_mixins.clarity.scss +18 -0
  141. package/progress/spinner/_mixins.spinner.scss +30 -0
  142. package/progress/spinner/_properties.spinner.scss +37 -0
  143. package/progress/spinner/_spinner.clarity.scss +148 -0
  144. package/progress/spinner/_variables.spinner.scss +25 -0
  145. package/stepper/_properties.stepper.scss +29 -0
  146. package/stepper/_stepper.clarity.scss +184 -0
  147. package/stepper/_variables.stepper.scss +13 -0
  148. package/styles/_a11y.scss +14 -0
  149. package/styles/_close.clarity.scss +60 -0
  150. package/styles/_components.clarity.scss +183 -0
  151. package/styles/_mixins.scss +478 -0
  152. package/styles/_normalize.scss +292 -0
  153. package/styles/_reboot.clarity.scss +374 -0
  154. package/styles/_variables.clarity.scss +139 -0
  155. package/styles/core/base/base.element.scss +97 -0
  156. package/styles/core/global.scss +12 -0
  157. package/styles/core/layout/_alignments.scss +18 -0
  158. package/styles/core/layout/_container.scss +29 -0
  159. package/styles/core/layout/_display.scss +58 -0
  160. package/styles/core/layout/_optimize.scss +60 -0
  161. package/styles/core/layout/_shadow-dom.scss +47 -0
  162. package/styles/core/layout/_spacing.scss +31 -0
  163. package/styles/core/layout/_type-grid.scss +66 -0
  164. package/styles/core/layout/_type-horizontal.scss +33 -0
  165. package/styles/core/layout/_type-vertical.scss +26 -0
  166. package/styles/core/layout/mixins/_mixins.alignment.scss +35 -0
  167. package/styles/core/layout/mixins/_mixins.display.scss +23 -0
  168. package/styles/core/layout/mixins/_mixins.grid.scss +105 -0
  169. package/styles/core/layout/mixins/_mixins.scss +106 -0
  170. package/styles/core/layout/mixins/_mixins.shadow-dom.scss +106 -0
  171. package/styles/core/layout/mixins/_mixins.type-horizontal.scss +113 -0
  172. package/styles/core/layout/mixins/_mixins.type-vertical.scss +108 -0
  173. package/styles/core/module.layout.scss +22 -0
  174. package/styles/core/module.reset.scss +48 -0
  175. package/styles/core/module.typography.scss +9 -0
  176. package/styles/core/theme.dark.scss +266 -0
  177. package/styles/core/theme.high-contrast.scss +42 -0
  178. package/styles/core/theme.low-motion.scss +20 -0
  179. package/styles/core/tokens/_alias-interaction.scss +59 -0
  180. package/styles/core/tokens/_alias-object-background.scss +14 -0
  181. package/styles/core/tokens/_alias-object-border.scss +21 -0
  182. package/styles/core/tokens/_alias-object-container.scss +20 -0
  183. package/styles/core/tokens/_alias-object-opacity.scss +15 -0
  184. package/styles/core/tokens/_alias-object-shadow.scss +17 -0
  185. package/styles/core/tokens/_alias-status.scss +34 -0
  186. package/styles/core/tokens/_alias-typography.scss +101 -0
  187. package/styles/core/tokens/_alias-utility.scss +38 -0
  188. package/styles/core/tokens/_alias-viz-colors.scss +170 -0
  189. package/styles/core/tokens/_global-animation.scss +32 -0
  190. package/styles/core/tokens/_global-colors.scss +249 -0
  191. package/styles/core/tokens/_global-space.scss +52 -0
  192. package/styles/core/tokens/_internal-scale.scss +14 -0
  193. package/styles/core/tokens/_properties.tokens.scss +21 -0
  194. package/styles/core/tokens/_variables.tokens.scss +770 -0
  195. package/styles/core/typography/_legacy-typography.scss +328 -0
  196. package/styles/core/typography/_mixins.typography.scss +18 -0
  197. package/styles/core/typography/_typography.scss +321 -0
  198. package/styles/variables/_properties.density.scss +223 -0
  199. package/styles/variables/_properties.global.scss +51 -0
  200. package/styles/variables/_properties.layout.scss +21 -0
  201. package/styles/variables/_properties.scss +11 -0
  202. package/styles/variables/_properties.typography.scss +164 -0
  203. package/styles/variables/_variables.density.scss +114 -0
  204. package/styles/variables/_variables.global.scss +82 -0
  205. package/styles/variables/_variables.layout.scss +37 -0
  206. package/styles/variables/_variables.scss +11 -0
  207. package/styles/variables/_variables.typography.scss +156 -0
  208. package/timeline/_properties.timeline.scss +38 -0
  209. package/timeline/_timeline.clarity.scss +172 -0
  210. package/timeline/_variables.timeline.scss +29 -0
  211. package/typography/_code.scss +36 -0
  212. package/typography/_font-metropolis.scss +45 -0
  213. package/typography/_lists.scss +81 -0
  214. package/typography/_typography.scss +322 -0
  215. package/utils/animations/_animations.clarity.scss +44 -0
  216. package/utils/animations/_mixins.animations.scss +33 -0
  217. package/wizard/_properties.wizard.scss +53 -0
  218. package/wizard/_variables.wizard.scss +58 -0
  219. package/wizard/_wizard.clarity.scss +688 -0
@@ -0,0 +1,292 @@
1
+ /*
2
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
3
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
4
+ * This software is released under MIT license.
5
+ * The full license information can be found in LICENSE in the root directory of this project.
6
+ */
7
+ //
8
+ // 1. Change the default font family in all browsers (opinionated).
9
+ // 2. Correct the line height in all browsers.
10
+ // 3. Prevent adjustments of font size after orientation changes in iOS.
11
+ //
12
+
13
+ html {
14
+ font-family: sans-serif; // 1
15
+ line-height: 1.15; // 2
16
+ text-size-adjust: 100%; // 3
17
+ }
18
+
19
+ //
20
+ // Remove the margin in all browsers (opinionated).
21
+ //
22
+
23
+ body {
24
+ margin: 0;
25
+ }
26
+
27
+ //
28
+ // Add the correct display in iOS 4-7.
29
+ //
30
+
31
+ audio:not([controls]) {
32
+ display: none;
33
+ height: 0;
34
+ }
35
+
36
+ //
37
+ // Add the correct vertical alignment in Chrome, Firefox, and Opera.
38
+ //
39
+
40
+ progress {
41
+ vertical-align: baseline;
42
+ }
43
+
44
+ [hidden] {
45
+ display: none;
46
+ }
47
+
48
+ //
49
+ // Remove the outline on focused links when they are also active or hovered
50
+ // in all browsers (opinionated).
51
+ //
52
+
53
+ a:active,
54
+ a:hover {
55
+ outline-width: 0;
56
+ }
57
+
58
+ // Text-level semantics
59
+ // ==========================================================================
60
+
61
+ //
62
+ // 1. Remove the bottom border in Firefox 39-.
63
+ // 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
64
+ //
65
+
66
+ abbr[title] {
67
+ border-bottom: none; // 1
68
+ text-decoration: underline; // 2
69
+ text-decoration: underline dotted; // 2
70
+ }
71
+
72
+ //
73
+ // Prevent the duplicate application of `bolder` by the next rule in Safari 6.
74
+ //
75
+
76
+ b,
77
+ strong {
78
+ font-weight: inherit;
79
+ }
80
+
81
+ //
82
+ // Add the correct font weight in Chrome, Edge, and Safari.
83
+ //
84
+
85
+ b,
86
+ strong {
87
+ font-weight: bolder;
88
+ }
89
+
90
+ //
91
+ // Add the correct font style in Android 4.3-.
92
+ //
93
+
94
+ dfn {
95
+ font-style: italic;
96
+ }
97
+
98
+ //
99
+ // Correct the font size and margin on `h1` elements within `section` and
100
+ // `article` contexts in Chrome, Firefox, and Safari.
101
+ //
102
+
103
+ h1 {
104
+ font-size: 2em;
105
+ margin: 0.67em 0;
106
+ }
107
+
108
+ //
109
+ // Add the correct font size in all browsers.
110
+ //
111
+
112
+ small {
113
+ font-size: 80%;
114
+ }
115
+
116
+ //
117
+ // Prevent `sub` and `sup` elements from affecting the line height in
118
+ // all browsers.
119
+ //
120
+
121
+ sub,
122
+ sup {
123
+ font-size: 75%;
124
+ line-height: 0;
125
+ position: relative;
126
+ vertical-align: baseline;
127
+ }
128
+
129
+ sub {
130
+ bottom: -0.25em;
131
+ }
132
+
133
+ sup {
134
+ top: -0.5em;
135
+ }
136
+
137
+ // Grouping content
138
+ // ==========================================================================
139
+
140
+ //
141
+ // 1. Correct the inheritance and scaling of font size in all browsers.
142
+ // 2. Correct the odd `em` font sizing in all browsers.
143
+ //
144
+
145
+ code,
146
+ kbd,
147
+ pre,
148
+ samp {
149
+ font-family: monospace; // 1
150
+ font-size: 1em; // 2
151
+ }
152
+
153
+ //
154
+ // 1. Add the correct box sizing in Firefox.
155
+ //
156
+
157
+ hr {
158
+ box-sizing: content-box; // 1
159
+ height: 0; // 1
160
+ }
161
+
162
+ // Forms
163
+ // ==========================================================================
164
+
165
+ //
166
+ // 1. Change font properties to `inherit` in all browsers (opinionated).
167
+ // 2. Remove the margin in Firefox and Safari.
168
+ //
169
+
170
+ button,
171
+ input,
172
+ optgroup,
173
+ select,
174
+ textarea {
175
+ font: inherit; // 1
176
+ margin: 0; // 2
177
+ }
178
+
179
+ textarea {
180
+ // from latest normalize.css which is missing from clr-ui
181
+ // https://github.com/vmware/clarity/issues/6199
182
+ line-height: 1.15;
183
+ }
184
+
185
+ //
186
+ // Restore the font weight unset by the previous rule.
187
+ //
188
+
189
+ optgroup {
190
+ font-weight: bold;
191
+ }
192
+
193
+ //
194
+ // Remove the inheritance of text transform in Firefox.
195
+ //
196
+
197
+ button,
198
+ select {
199
+ text-transform: none;
200
+ }
201
+
202
+ //
203
+ // 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
204
+ // controls in Android 4.
205
+ // 2. Correct the inability to style clickable types in iOS and Safari.
206
+ //
207
+
208
+ button,
209
+ html [type="button"], /* 1*/
210
+ [type="reset"],
211
+ [type="submit"] {
212
+ appearance: auto; // 2
213
+ }
214
+
215
+ //
216
+ // Remove the inner border and padding in Firefox.
217
+ //
218
+
219
+ button::-moz-focus-inner,
220
+ [type='button']::-moz-focus-inner,
221
+ [type='reset']::-moz-focus-inner,
222
+ [type='submit']::-moz-focus-inner {
223
+ border-style: none;
224
+ padding: 0;
225
+ }
226
+
227
+ //
228
+ // Change the border, margin, and padding in all browsers (opinionated).
229
+ //
230
+
231
+ fieldset {
232
+ border: 1px solid #c0c0c0;
233
+ margin: 0 2px;
234
+ padding: 0.35em 0.625em 0.75em;
235
+ }
236
+
237
+ //
238
+ // 1. Correct the text wrapping in Edge.
239
+ // 2. Remove the padding so developers are not caught out when they zero out
240
+ // `fieldset` elements in all browsers.
241
+ //
242
+
243
+ legend {
244
+ box-sizing: border-box;
245
+ color: inherit;
246
+ display: table; // 1
247
+ max-width: 100%; // 1
248
+ padding: 0; // 2
249
+ white-space: normal; // 1
250
+ }
251
+
252
+ //
253
+ // Correct the cursor style of increment and decrement buttons in Chrome.
254
+ //
255
+
256
+ [type='number']::-webkit-inner-spin-button,
257
+ [type='number']::-webkit-outer-spin-button {
258
+ height: auto;
259
+ }
260
+
261
+ //
262
+ // 1. Correct the odd appearance in Chrome and Safari.
263
+ // 2. Correct the outline style in Safari.
264
+ //
265
+
266
+ [type='search'] {
267
+ appearance: textfield; // 1
268
+ outline-offset: -2px; // 2
269
+ }
270
+
271
+ //
272
+ // Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
273
+ //
274
+
275
+ [type='search']::-webkit-search-cancel-button,
276
+ [type='search']::-webkit-search-decoration {
277
+ appearance: none;
278
+ }
279
+
280
+ //
281
+ // Correct the text style of placeholders in Chrome, Edge, and Safari.
282
+ //
283
+
284
+ //
285
+ // 1. Correct the inability to style clickable types in iOS and Safari.
286
+ // 2. Change font properties to `inherit` in Safari.
287
+ //
288
+
289
+ ::-webkit-file-upload-button {
290
+ appearance: auto; // 1
291
+ font: inherit; // 2
292
+ }
@@ -0,0 +1,374 @@
1
+ /*
2
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
3
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
4
+ * This software is released under MIT license.
5
+ * The full license information can be found in LICENSE in the root directory of this project.
6
+ */
7
+ // @deprecated Bootstrap dependencies are deprecated since 1.0. Review for removal of this file before 2.0
8
+ // (note that there is a section at the bottom that's not related to bootstrap but may also be candidate for removal by 2.0)
9
+
10
+ @use 'sass:map';
11
+ @use 'sass:meta';
12
+ @use '../layout/nav/variables.nav' as nav-variables;
13
+ @use 'mixins';
14
+ @use 'variables/variables.global';
15
+
16
+ @include meta.load-css('../layout/nav/properties.nav');
17
+ @include mixins.exports('reboot.clarity') {
18
+ // Customizing BS4 reboot file below from Bootstrap 4.0.0-alpha.3
19
+ // Styles taken directly from BS4 reboot file.
20
+ // Un-needed styles commented out below...
21
+ //BS4 reboot (http://v4-alpha.getbootstrap.com/content/reboot/)
22
+
23
+ // Reboot
24
+ //
25
+ // Global resets to common HTML elements and more for easier usage by Bootstrap.
26
+ // Adds additional rules on top of Normalize.css, including several overrides.
27
+
28
+ // Reset the box-sizing
29
+ //
30
+ // Change from `box-sizing: content-box` to `border-box` so that when you add
31
+ // `padding` or `border`s to an element, the overall declared `width` does not
32
+ // change. For example, `width: 100px;` will always be `100px` despite the
33
+ // `border: 10px solid red;` and `padding: 20px;`.
34
+ //
35
+ // Heads up! This reset may cause conflicts with some third-party widgets. For
36
+ // recommendations on resolving such conflicts, see
37
+ // http://getbootstrap.com/getting-started/#third-box-sizing.
38
+ //
39
+ // Credit: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
40
+
41
+ html {
42
+ box-sizing: border-box;
43
+ }
44
+
45
+ *,
46
+ *::before,
47
+ *::after {
48
+ box-sizing: inherit;
49
+ }
50
+
51
+ //
52
+ // Reset HTML, body, and more
53
+ //
54
+
55
+ html {
56
+ // Sets a specific default `font-size` for user with `rem` type scales.
57
+ // font-size: $font-size-root;
58
+ // NOTE: Clarity handles this^^^ on its own, not needed here
59
+
60
+ // Changes the default tap highlight to be completely transparent in iOS.
61
+ -webkit-tap-highlight-color: rgb(0 0 0 / 0%);
62
+ }
63
+
64
+ // body {
65
+ // NOTE: Clarity handles this on its own, not needed here
66
+
67
+ // // Make the `body` use the `font-size-root`
68
+ // font-family: $font-family-base;
69
+ // font-size: $font-size-base;
70
+ // line-height: $line-height-base;
71
+ // // Go easy on the eyes and use something other than `#000` for text
72
+ // color: $body-color;
73
+ // // By default, `<body>` has no `background-color` so we set one as a best practice.
74
+ // background-color: $body-bg;
75
+ // }
76
+
77
+ // NOTE: Clarity is not using this. We use tabindex to add focus outline
78
+ // on certain ARIA-widgets (such as dropdown) and don't want to remove the outline.
79
+
80
+ // Suppress the focus outline on elements that cannot be accessed via keyboard.
81
+ // This prevents an unwanted focus outline from appearing around elements that
82
+ // might still respond to pointer events.
83
+ //
84
+ // Credit: https://github.com/suitcss/base
85
+ //[tabindex='-1']:focus {
86
+ // outline: none !important;
87
+ //}
88
+
89
+ // NOTE: All of the following taken care of in Clarity
90
+
91
+ // //
92
+ // // Typography
93
+ // //
94
+ //
95
+ // // Remove top margins from headings
96
+ // //
97
+ // // By default, `<h1>`-`<h6>` all receive top and bottom margins. We nuke the top
98
+ // // margin for easier control within type scales as it avoids margin collapsing.
99
+ // h1, h2, h3, h4, h5, h6 {
100
+ // margin-top: 0;
101
+ // margin-bottom: .5rem;
102
+ // }
103
+ //
104
+ // // Reset margins on paragraphs
105
+ // //
106
+ // // Similarly, the top margin on `<p>`s get reset. However, we also reset the
107
+ // // bottom margin to use `rem` units instead of `em`.
108
+ // p {
109
+ // margin-top: 0;
110
+ // margin-bottom: 1rem;
111
+ // }
112
+ //
113
+ // // Abbreviations and acronyms
114
+ // abbr[title],
115
+ // // Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
116
+ // abbr[data-original-title] {
117
+ // cursor: help;
118
+ // border-bottom: 1px dotted $abbr-border-color;
119
+ // }
120
+ //
121
+ // address {
122
+ // margin-bottom: 1rem;
123
+ // font-style: normal;
124
+ // line-height: inherit;
125
+ // }
126
+ //
127
+ // ol,
128
+ // ul,
129
+ // dl {
130
+ // margin-top: 0;
131
+ // margin-bottom: 1rem;
132
+ // }
133
+ //
134
+ // ol ol,
135
+ // ul ul,
136
+ // ol ul,
137
+ // ul ol {
138
+ // margin-bottom: 0;
139
+ // }
140
+ //
141
+ // dt {
142
+ // font-weight: $dt-font-weight;
143
+ // }
144
+ //
145
+ // dd {
146
+ // margin-bottom: .5rem;
147
+ // margin-left: 0; // Undo browser default
148
+ // }
149
+ //
150
+ // blockquote {
151
+ // margin: 0 0 1rem;
152
+ // }
153
+
154
+ // //
155
+ // // Links
156
+ // //
157
+ //
158
+ // a {
159
+ // color: $link-color;
160
+ // text-decoration: $link-decoration;
161
+ //
162
+ // @include hover-focus {
163
+ // color: $link-hover-color;
164
+ // text-decoration: $link-hover-decoration;
165
+ // }
166
+ //
167
+ // &:focus {
168
+ // @include tab-focus();
169
+ // }
170
+ // }
171
+
172
+ // And undo these styles for placeholder links/named anchors (without href)
173
+ // which have not been made explicitly keyboard-focusable (without tabindex).
174
+ // It would be more straightforward to just use a[href] in previous block, but that
175
+ // causes specificity issues in many other styles that are too complex to fix.
176
+ // See https://github.com/twbs/bootstrap/issues/19402
177
+
178
+ // NOTE: The following override makes card links and buttons links gray.
179
+ // Commenting out because it does not appear that we need it. Make sure to fix the color inherit problem if uncommenting
180
+ // a:not([href]):not([tabindex]) {
181
+ // color: inherit;
182
+ // text-decoration: none;
183
+ //
184
+ // @include hover-focus {
185
+ // color: inherit;
186
+ // text-decoration: none;
187
+ // }
188
+ //
189
+ // &:focus {
190
+ // outline: none;
191
+ // }
192
+ // }
193
+
194
+ // //
195
+ // // Code
196
+ // //
197
+ //
198
+ // pre {
199
+ // // Remove browser default top margin
200
+ // margin-top: 0;
201
+ // // Reset browser default of `1em` to use `rem`s
202
+ // margin-bottom: 1rem;
203
+ // // Normalize v4 removed this property, causing `<pre>` content to break out of wrapping code snippets
204
+ // overflow: auto;
205
+ // }
206
+
207
+ //
208
+ // Figures
209
+ //
210
+
211
+ // figure {
212
+ // // Normalize adds `margin` to `figure`s as browsers apply it inconsistently.
213
+ // // We reset that to create a better flow in-page.
214
+ // margin: 0 0 1rem;
215
+ // }
216
+
217
+ //
218
+ // Images
219
+ //
220
+
221
+ img {
222
+ // By default, `<img>`s are `inline-block`. This assumes that, and vertically
223
+ // centers them. This won't apply should you reset them to `block` level.
224
+ vertical-align: middle;
225
+ // Note: `<img>`s are deliberately not made responsive by default.
226
+ // For the rationale behind this, see the comments on the `.img-fluid` class.
227
+ }
228
+
229
+ // iOS "clickable elements" fix for role="button"
230
+ //
231
+ // Fixes "clickability" issue (and more generally, the firing of events such as focus as well)
232
+ // for traditionally non-focusable elements with role="button"
233
+ // see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
234
+
235
+ [role='button'] {
236
+ cursor: pointer;
237
+ }
238
+
239
+ // Avoid 300ms click delay on touch devices that support the `touch-action` CSS property.
240
+ // See: http://caniuse.com/#feat=css-touch-action
241
+
242
+ a,
243
+ area,
244
+ button,
245
+ [role='button'],
246
+ input,
247
+ label,
248
+ select,
249
+ summary,
250
+ textarea {
251
+ touch-action: manipulation;
252
+ }
253
+
254
+ //
255
+ // Tables
256
+ //
257
+
258
+ // table {
259
+ // // No longer part of Normalize since v4
260
+ // border-collapse: collapse;
261
+ // // Reset for nesting within parents with `background-color`.
262
+ // background-color: $table-bg;
263
+ // }
264
+
265
+ // caption {
266
+ // padding-top: $table-cell-padding;
267
+ // padding-bottom: $table-cell-padding;
268
+ // color: $text-muted;
269
+ // text-align: left;
270
+ // caption-side: bottom;
271
+ // }
272
+
273
+ // th {
274
+ // // Centered by default, but left-align-ed to match the `td`s below.
275
+ // text-align: left;
276
+ // }
277
+
278
+ //
279
+ // Forms
280
+ //
281
+
282
+ // label {
283
+ // // Allow labels to use `margin` for spacing.
284
+ // display: inline-block;
285
+ // margin-bottom: .5rem;
286
+ // }
287
+
288
+ input,
289
+ button,
290
+ select,
291
+ textarea {
292
+ // // Remove all `margin`s so our classes don't have to do it themselves.
293
+ // margin: 0;
294
+ // // Normalize includes `font: inherit;`, so `font-family`. `font-size`, etc are
295
+ // // properly inherited. However, `line-height` isn't addressed there. Using this
296
+ // // ensures we don't need to unnecessarily redeclare the global font stack.
297
+ // line-height: inherit;
298
+ // iOS adds rounded borders by default
299
+ border-radius: 0;
300
+ }
301
+
302
+ input[type='radio'],
303
+ input[type='checkbox'] {
304
+ // Apply a disabled cursor for radios and checkboxes.
305
+ //
306
+ // Note: Neither radios nor checkboxes can be readonly.
307
+ &:disabled {
308
+ // cursor: $cursor-disabled;
309
+ cursor: not-allowed;
310
+ }
311
+ }
312
+
313
+ input[type='date'],
314
+ input[type='time'],
315
+ input[type='datetime-local'],
316
+ input[type='month'] {
317
+ // Remove the default appearance of temporal inputs to avoid a Mobile Safari
318
+ // bug where setting a custom line-height prevents text from being vertically
319
+ // centered within the input.
320
+ //
321
+ // Bug report: https://github.com/twbs/bootstrap/issues/11266
322
+ appearance: auto;
323
+ }
324
+
325
+ textarea {
326
+ // Textareas should really only resize vertically so they don't break their (horizontal) containers.
327
+ resize: vertical;
328
+ }
329
+
330
+ fieldset {
331
+ // Chrome and Firefox set a `min-width: min-content;` on fieldsets,
332
+ // so we reset that to ensure it behaves more like a standard block element.
333
+ // See https://github.com/twbs/bootstrap/issues/12359.
334
+ min-width: 0;
335
+ // Reset the default outline behavior of fieldsets so they don't affect page layout.
336
+ padding: 0;
337
+ margin: 0;
338
+ border: 0;
339
+ }
340
+
341
+ legend {
342
+ // Reset the entire legend element to match the `fieldset`
343
+ display: block;
344
+ width: 100%;
345
+ padding: 0;
346
+ // margin-bottom: .5rem;
347
+ // font-size: 1.5rem;
348
+ line-height: inherit;
349
+ }
350
+
351
+ input[type='search'] {
352
+ // This overrides the extra rounded corners on search inputs in iOS so that our
353
+ // `.form-control` class can properly style them. Note that this cannot simply
354
+ // be added to `.form-control` as it's not specific enough. For details, see
355
+ // https://github.com/twbs/bootstrap/issues/11586.
356
+ appearance: none;
357
+ }
358
+
359
+ // Always hide an element with the `hidden` HTML attribute (from PureCSS).
360
+ [hidden] {
361
+ display: none !important;
362
+ }
363
+
364
+ // END BS4 REBOOT STYLES
365
+
366
+ dl {
367
+ margin-bottom: 0;
368
+ margin-top: 1rem;
369
+ }
370
+
371
+ table {
372
+ border-spacing: 0;
373
+ }
374
+ }