@clayui/css 3.38.0 → 3.41.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 (140) hide show
  1. package/index.js +7 -2
  2. package/lib/css/atlas.css +819 -966
  3. package/lib/css/atlas.css.map +1 -1
  4. package/lib/css/base.css +668 -814
  5. package/lib/css/base.css.map +1 -1
  6. package/lib/css/cadmin.css +1013 -881
  7. package/lib/css/cadmin.css.map +1 -1
  8. package/lib/images/icons/geolocation.svg +1 -1
  9. package/lib/images/icons/heading.svg +9 -0
  10. package/lib/images/icons/icons.svg +1 -1
  11. package/lib/images/icons/maps.svg +10 -0
  12. package/lib/images/icons/order-ascending.svg +11 -0
  13. package/lib/images/icons/order-descending.svg +11 -0
  14. package/package.json +5 -3
  15. package/src/images/icons/geolocation.svg +1 -1
  16. package/src/images/icons/heading.svg +9 -0
  17. package/src/images/icons/maps.svg +10 -0
  18. package/src/images/icons/order-ascending.svg +11 -0
  19. package/src/images/icons/order-descending.svg +11 -0
  20. package/src/scss/_mixins.scss +1 -0
  21. package/src/scss/atlas/variables/_alerts.scss +10 -0
  22. package/src/scss/atlas/variables/_breadcrumbs.scss +4 -2
  23. package/src/scss/atlas/variables/_cards.scss +2 -2
  24. package/src/scss/atlas/variables/_custom-forms.scss +190 -14
  25. package/src/scss/atlas/variables/_dropdowns.scss +188 -17
  26. package/src/scss/atlas/variables/_forms.scss +33 -1
  27. package/src/scss/atlas/variables/_globals.scss +14 -1
  28. package/src/scss/atlas/variables/_labels.scss +171 -71
  29. package/src/scss/atlas/variables/_navs.scss +20 -8
  30. package/src/scss/atlas/variables/_pagination.scss +2 -2
  31. package/src/scss/atlas/variables/_sheets.scss +4 -2
  32. package/src/scss/atlas/variables/_stickers.scss +167 -3
  33. package/src/scss/atlas/variables/_tables.scss +58 -28
  34. package/src/scss/cadmin/components/_alerts.scss +1 -17
  35. package/src/scss/cadmin/components/_cards.scss +14 -16
  36. package/src/scss/cadmin/components/_custom-forms.scss +15 -165
  37. package/src/scss/cadmin/components/_dropdowns.scss +66 -205
  38. package/src/scss/cadmin/components/_form-validation.scss +10 -237
  39. package/src/scss/cadmin/components/_forms.scss +1 -1
  40. package/src/scss/cadmin/components/_grid.scss +20 -20
  41. package/src/scss/cadmin/components/_icons.scss +1 -6
  42. package/src/scss/cadmin/components/_images.scss +1 -1
  43. package/src/scss/cadmin/components/_input-groups.scss +17 -14
  44. package/src/scss/cadmin/components/_labels.scss +33 -101
  45. package/src/scss/cadmin/components/_list-group.scss +4 -4
  46. package/src/scss/cadmin/components/_modals.scss +1 -1
  47. package/src/scss/cadmin/components/_multi-step-nav.scss +2 -2
  48. package/src/scss/cadmin/components/_navbar.scss +2 -2
  49. package/src/scss/cadmin/components/_popovers.scss +34 -30
  50. package/src/scss/cadmin/components/_reboot.scss +1 -8
  51. package/src/scss/cadmin/components/_sidebar.scss +1 -1
  52. package/src/scss/cadmin/components/_stickers.scss +39 -94
  53. package/src/scss/cadmin/components/_toggle-switch.scss +20 -358
  54. package/src/scss/cadmin/components/_tooltip.scss +16 -14
  55. package/src/scss/cadmin/components/_type.scss +9 -1
  56. package/src/scss/cadmin/variables/_alerts.scss +38 -14
  57. package/src/scss/cadmin/variables/_breadcrumbs.scss +10 -6
  58. package/src/scss/cadmin/variables/_cards.scss +96 -28
  59. package/src/scss/cadmin/variables/_custom-forms.scss +262 -20
  60. package/src/scss/cadmin/variables/_dropdowns.scss +449 -137
  61. package/src/scss/cadmin/variables/_forms.scss +356 -5
  62. package/src/scss/cadmin/variables/_globals.scss +15 -1
  63. package/src/scss/cadmin/variables/_icons.scss +15 -2
  64. package/src/scss/cadmin/variables/_labels.scss +288 -101
  65. package/src/scss/cadmin/variables/_links.scss +9 -7
  66. package/src/scss/cadmin/variables/_menubar.scss +4 -4
  67. package/src/scss/cadmin/variables/_multi-step-nav.scss +2 -2
  68. package/src/scss/cadmin/variables/_navbar.scss +2 -2
  69. package/src/scss/cadmin/variables/_navs.scss +2 -2
  70. package/src/scss/cadmin/variables/_stickers.scss +258 -45
  71. package/src/scss/cadmin/variables/_tables.scss +1 -1
  72. package/src/scss/cadmin/variables/_timelines.scss +1 -1
  73. package/src/scss/cadmin/variables/_toggle-switch.scss +404 -1
  74. package/src/scss/cadmin/variables/_type.scss +3 -0
  75. package/src/scss/components/_alerts.scss +5 -17
  76. package/src/scss/components/_cards.scss +7 -7
  77. package/src/scss/components/_carousel.scss +2 -2
  78. package/src/scss/components/_custom-forms.scss +20 -164
  79. package/src/scss/components/_dropdowns.scss +52 -209
  80. package/src/scss/components/_form-validation.scss +8 -237
  81. package/src/scss/components/_forms.scss +66 -9
  82. package/src/scss/components/_grid.scss +15 -17
  83. package/src/scss/components/_icons.scss +4 -9
  84. package/src/scss/components/_images.scss +1 -1
  85. package/src/scss/components/_input-groups.scss +17 -14
  86. package/src/scss/components/_jumbotron.scss +1 -1
  87. package/src/scss/components/_labels.scss +29 -99
  88. package/src/scss/components/_list-group.scss +4 -4
  89. package/src/scss/components/_modals.scss +1 -1
  90. package/src/scss/components/_multi-step-nav.scss +2 -2
  91. package/src/scss/components/_navbar.scss +2 -2
  92. package/src/scss/components/_popovers.scss +30 -30
  93. package/src/scss/components/_reboot.scss +3 -39
  94. package/src/scss/components/_side-navigation.scss +2 -2
  95. package/src/scss/components/_sidebar.scss +1 -1
  96. package/src/scss/components/_stickers.scss +36 -94
  97. package/src/scss/components/_toggle-switch.scss +36 -351
  98. package/src/scss/components/_tooltip.scss +14 -14
  99. package/src/scss/components/_type.scss +9 -1
  100. package/src/scss/components/_utilities-functional-important.scss +4 -3
  101. package/src/scss/functions/_global-functions.scss +26 -6
  102. package/src/scss/functions/_lx-icons-generated.scss +125 -117
  103. package/src/scss/functions/_polyfills.scss +17 -0
  104. package/src/scss/functions/_type-conversion-functions.scss +5 -4
  105. package/src/scss/mixins/_alerts.scss +25 -0
  106. package/src/scss/mixins/_aspect-ratio.scss +1 -1
  107. package/src/scss/mixins/_buttons.scss +256 -15
  108. package/src/scss/mixins/_cards.scss +610 -114
  109. package/src/scss/mixins/_custom-forms.scss +668 -0
  110. package/src/scss/mixins/_dropdown-menu.scss +168 -48
  111. package/src/scss/mixins/_forms.scss +427 -12
  112. package/src/scss/mixins/_globals.scss +244 -234
  113. package/src/scss/mixins/_grid.scss +13 -15
  114. package/src/scss/mixins/_labels.scss +331 -97
  115. package/src/scss/mixins/_links.scss +453 -33
  116. package/src/scss/mixins/_navbar.scss +10 -10
  117. package/src/scss/mixins/_rfs.scss +14 -9
  118. package/src/scss/mixins/_stickers.scss +168 -17
  119. package/src/scss/mixins/_toggle-switch.scss +1076 -14
  120. package/src/scss/variables/_alerts.scss +38 -14
  121. package/src/scss/variables/_breadcrumbs.scss +8 -4
  122. package/src/scss/variables/_cards.scss +46 -8
  123. package/src/scss/variables/_custom-forms.scss +253 -18
  124. package/src/scss/variables/_dropdowns.scss +583 -132
  125. package/src/scss/variables/_forms.scss +304 -2
  126. package/src/scss/variables/_globals.scss +54 -1
  127. package/src/scss/variables/_icons.scss +60 -9
  128. package/src/scss/variables/_labels.scss +303 -107
  129. package/src/scss/variables/_links.scss +15 -13
  130. package/src/scss/variables/_menubar.scss +4 -4
  131. package/src/scss/variables/_multi-step-nav.scss +2 -2
  132. package/src/scss/variables/_navbar.scss +2 -2
  133. package/src/scss/variables/_navs.scss +37 -17
  134. package/src/scss/variables/_pagination.scss +15 -13
  135. package/src/scss/variables/_sheets.scss +4 -2
  136. package/src/scss/variables/_stickers.scss +327 -50
  137. package/src/scss/variables/_tables.scss +25 -9
  138. package/src/scss/variables/_timelines.scss +1 -1
  139. package/src/scss/variables/_toggle-switch.scss +404 -5
  140. package/src/scss/variables/_type.scss +3 -0
@@ -1,35 +1,92 @@
1
+ // .dropdown-menu
2
+
3
+ // @deprecated as of v3.x use map $dropdown-menu instead
4
+
1
5
  $dropdown-bg: $white !default;
6
+ // @deprecated as of v3.x use map $dropdown-menu instead
7
+
2
8
  $dropdown-border-color: $gray-300 !default;
9
+
10
+ // @deprecated as of v3.x use map $dropdown-menu instead
11
+
3
12
  $dropdown-border-width: 0 !default;
13
+
14
+ // @deprecated as of v3.x use map $dropdown-menu instead
15
+
4
16
  $dropdown-box-shadow: 0 1px 5px -1px rgba(0, 0, 0, 0.3) !default;
17
+
18
+ // @deprecated as of v3.x use map $dropdown-menu instead
19
+
5
20
  $dropdown-font-size: 0.875rem !default; // 14px
6
21
 
7
- $dropdown-padding-y: 0.375rem !default; // 6px
22
+ // @deprecated as of v3.x use map $dropdown-menu instead
23
+
8
24
  $dropdown-min-height: 40px !default;
25
+
26
+ // @deprecated as of v3.x use map $dropdown-menu instead
27
+
9
28
  $dropdown-min-width: 240px !default;
29
+
30
+ // @deprecated as of v3.x use map $dropdown-menu instead
31
+
10
32
  $dropdown-max-width: 240px !default;
33
+
34
+ $dropdown-padding-y: 0.375rem !default; // 6px
11
35
  $dropdown-spacer: 0.3125rem !default; // 5px
12
36
 
13
- $dropdown-header-color: $gray-900 !default;
14
- $dropdown-header-font-size: 0.875rem !default; // 14px
15
- $dropdown-header-margin-top: 0.625rem !default; // 10px
37
+ $dropdown-menu: () !default;
38
+ $dropdown-menu: map-deep-merge(
39
+ (
40
+ background-color: $dropdown-bg,
41
+ border-color: $dropdown-border-color,
42
+ border-width: $dropdown-border-width,
43
+ box-shadow: clay-enable-shadows($dropdown-box-shadow),
44
+ font-size: $dropdown-font-size,
45
+ margin: $dropdown-spacer 0 0,
46
+ max-width: $dropdown-max-width,
47
+ min-height: $dropdown-min-height,
48
+ min-width: $dropdown-min-width,
49
+ padding: $dropdown-padding-y 0,
50
+ ),
51
+ $dropdown-menu
52
+ );
16
53
 
17
- $dropdown-subheader-font-size: 0.75rem !default; // 12px
18
- $dropdown-subheader-margin-top: 0.625rem !default; // 10px
54
+ // .dropdown-item
19
55
 
20
- $dropdown-caption-color: $gray-600 !default;
56
+ $dropdown-item-padding-x: 1.25rem !default; // 20px
57
+ $dropdown-item-padding-y: 0.5rem !default; // 8px
58
+
59
+ /// @deprecated as of v3.x use map $dropdown-item instead
21
60
 
22
61
  $dropdown-link-color: $gray-600 !default;
62
+
63
+ /// @deprecated as of v3.x use map $dropdown-item instead
64
+
23
65
  $dropdown-link-font-weight: $font-weight-normal !default;
66
+
67
+ /// @deprecated as of v3.x use map $dropdown-item instead
68
+
24
69
  $dropdown-link-hover-color: $gray-900 !default;
70
+
71
+ /// @deprecated as of v3.x use map $dropdown-item instead
72
+
25
73
  $dropdown-link-hover-bg: clay-lighten($component-active-bg, 44.9) !default;
74
+
75
+ /// @deprecated as of v3.x use map $dropdown-item instead
76
+
26
77
  $dropdown-link-active-color: $dropdown-link-hover-color !default;
78
+
79
+ /// @deprecated as of v3.x use map $dropdown-item instead
80
+
27
81
  $dropdown-link-active-bg: $dropdown-link-hover-bg !default;
82
+
83
+ /// @deprecated as of v3.x use map $dropdown-item instead
84
+
28
85
  $dropdown-link-active-font-weight: $font-weight-semi-bold !default;
29
- $dropdown-link-disabled-color: $gray-500 !default;
30
86
 
31
- $dropdown-item-padding-x: 1.25rem !default; // 20px
32
- $dropdown-item-padding-y: 0.5rem !default; // 8px
87
+ /// @deprecated as of v3.x use map $dropdown-item instead
88
+
89
+ $dropdown-link-disabled-color: $gray-500 !default;
33
90
 
34
91
  // Weird box-shadow inset with border-radius render in IE https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12515080/
35
92
 
@@ -37,11 +94,15 @@ $dropdown-item-base: () !default;
37
94
  $dropdown-item-base: map-deep-merge(
38
95
  (
39
96
  font-size: inherit,
40
- focus-box-shadow: $component-focus-inset-box-shadow,
41
- focus-outline: 0,
42
- focus-text-decoration: none,
43
- active-class-c-kbd-inline: (
44
- color: $dropdown-link-active-color,
97
+ focus: (
98
+ box-shadow: $component-focus-inset-box-shadow,
99
+ outline: 0,
100
+ text-decoration: none,
101
+ ),
102
+ active-class: (
103
+ c-kbd-inline: (
104
+ color: $dropdown-link-active-color,
105
+ ),
45
106
  ),
46
107
  disabled: (
47
108
  box-shadow: none,
@@ -53,6 +114,81 @@ $dropdown-item-base: map-deep-merge(
53
114
  $dropdown-item-base
54
115
  );
55
116
 
117
+ // .dropdown-header
118
+
119
+ // @deprecated as of v3.x use map $dropdown-header instead
120
+
121
+ $dropdown-header-color: $gray-900 !default;
122
+
123
+ // @deprecated as of v3.x use map $dropdown-header instead
124
+
125
+ $dropdown-header-font-size: 0.875rem !default; // 14px
126
+
127
+ // @deprecated as of v3.x use map $dropdown-header instead
128
+
129
+ $dropdown-header-margin-top: 0.625rem !default; // 10px
130
+
131
+ $dropdown-header: () !default;
132
+ $dropdown-header: map-deep-merge(
133
+ (
134
+ color: $dropdown-header-color,
135
+ font-size: $dropdown-header-font-size,
136
+ margin-top: $dropdown-header-margin-top,
137
+ ),
138
+ $dropdown-header
139
+ );
140
+
141
+ // .dropdown-subheader
142
+
143
+ // @deprecated as of v3.x use map $dropdown-subheader instead
144
+
145
+ $dropdown-subheader-font-size: 0.75rem !default; // 12px
146
+
147
+ // @deprecated as of v3.x use map $dropdown-subheader instead
148
+
149
+ $dropdown-subheader-margin-top: 0.625rem !default; // 10px
150
+
151
+ $dropdown-subheader: () !default;
152
+ $dropdown-subheader: map-deep-merge(
153
+ (
154
+ font-size: $dropdown-subheader-font-size,
155
+ margin-top: $dropdown-subheader-margin-top,
156
+ ),
157
+ $dropdown-subheader
158
+ );
159
+
160
+ // .dropdown-caption
161
+
162
+ // @deprecated as of v3.x use map $dropdown-caption instead
163
+
164
+ $dropdown-caption-color: $gray-600 !default;
165
+
166
+ $dropdown-caption: () !default;
167
+ $dropdown-caption: map-merge(
168
+ (
169
+ color: $dropdown-caption-color,
170
+ ),
171
+ $dropdown-caption
172
+ );
173
+
174
+ // .dropdown-divider
175
+
176
+ // @deprecated as of v3.x use map $dropdown-divider instead
177
+
178
+ $dropdown-divider-bg: $dropdown-border-color !default;
179
+
180
+ $dropdown-divider: () !default;
181
+ $dropdown-divider: map-merge(
182
+ (
183
+ background-color: $dropdown-divider-bg,
184
+ ),
185
+ $dropdown-divider
186
+ );
187
+
188
+ // .dropdown-section
189
+
190
+ // @deprecated as of v3.x use map $dropdown-section instead
191
+
56
192
  $dropdown-section-custom-control-label: () !default;
57
193
  $dropdown-section-custom-control-label: map-deep-merge(
58
194
  (
@@ -61,6 +197,8 @@ $dropdown-section-custom-control-label: map-deep-merge(
61
197
  $dropdown-section-custom-control-label
62
198
  );
63
199
 
200
+ // @deprecated as of v3.x use map $dropdown-section instead
201
+
64
202
  $dropdown-section-active-custom-control-label: () !default;
65
203
  $dropdown-section-active-custom-control-label: map-deep-merge(
66
204
  (
@@ -69,6 +207,8 @@ $dropdown-section-active-custom-control-label: map-deep-merge(
69
207
  $dropdown-section-active-custom-control-label
70
208
  );
71
209
 
210
+ // @deprecated as of v3.x use map $dropdown-section instead
211
+
72
212
  $dropdown-section-custom-control-label-text: () !default;
73
213
  $dropdown-section-custom-control-label-text: map-deep-merge(
74
214
  (
@@ -77,7 +217,17 @@ $dropdown-section-custom-control-label-text: map-deep-merge(
77
217
  $dropdown-section-custom-control-label-text
78
218
  );
79
219
 
80
- $dropdown-divider-bg: $dropdown-border-color !default;
220
+ $dropdown-section: () !default;
221
+ $dropdown-section: map-deep-merge(
222
+ (
223
+ custom-control-label: $dropdown-section-custom-control-label,
224
+ custom-control-label-text: $dropdown-section-custom-control-label-text,
225
+ active: (
226
+ custom-control-label: $dropdown-section-active-custom-control-label,
227
+ ),
228
+ ),
229
+ $dropdown-section
230
+ );
81
231
 
82
232
  // Autocomplete Dropdown Menu
83
233
 
@@ -91,7 +241,28 @@ $autocomplete-dropdown-menu: map-deep-merge(
91
241
 
92
242
  // Dropdown Action
93
243
 
244
+ // @deprecated as of v3.x use map $dropdown-action instead
245
+
94
246
  $dropdown-action-toggle-font-size: 1rem !default; // 16px
95
- $dropdown-action-toggle-size: $btn-monospaced-size-sm !default;
247
+
248
+ /// @deprecated as of v3.x use map $dropdown-action instead
96
249
 
97
250
  $dropdown-action-toggle-disabled-opacity: $btn-disabled-opacity !default;
251
+
252
+ $dropdown-action-toggle-size: $btn-monospaced-size-sm !default;
253
+
254
+ $dropdown-action: () !default;
255
+ $dropdown-action: map-deep-merge(
256
+ (
257
+ dropdown-toggle: (
258
+ font-size: $dropdown-action-toggle-font-size,
259
+ height: $dropdown-action-toggle-size,
260
+ line-height: $dropdown-action-toggle-size,
261
+ width: $dropdown-action-toggle-size,
262
+ disabled: (
263
+ opacity: $dropdown-action-toggle-disabled-opacity,
264
+ ),
265
+ ),
266
+ ),
267
+ $dropdown-action
268
+ );
@@ -371,11 +371,43 @@ $input-select-icon-disabled: clay-icon(
371
371
  $input-select-icon-disabled-color
372
372
  ) !default;
373
373
 
374
+ // select.form-control[size]
375
+
376
+ // focus.option.checked: Chrome can't style text, we invert colors to make text white
377
+ // option.checked: hack for changing the background-color
378
+ // firefox-only: overwrite some styles for Chrome to make it match Lexicon
379
+
374
380
  $input-select-size: () !default;
375
381
  $input-select-size: map-deep-merge(
376
382
  (
383
+ focus: (
384
+ option: (
385
+ checked: (
386
+ background-image: linear-gradient(#ffa700, #ffa700),
387
+ color: #fff,
388
+ filter: invert(100%),
389
+ ),
390
+ ),
391
+ ),
377
392
  option: (
378
- padding: 0.25rem 0.5rem,
393
+ padding: 0.4375rem 0.5rem,
394
+ checked: (
395
+ background-image: linear-gradient(#{$gray-300}, #{$gray-300}),
396
+ ),
397
+ ),
398
+ firefox-only: (
399
+ focus: (
400
+ option: (
401
+ checked: (
402
+ background-image:
403
+ linear-gradient(#{$primary-d2}, #{$primary-d2}),
404
+ filter: invert(0),
405
+ ),
406
+ ),
407
+ ),
408
+ option: (
409
+ padding: 0.40625rem 0.5rem,
410
+ ),
379
411
  ),
380
412
  ),
381
413
  $input-select-size
@@ -392,7 +392,7 @@ $h4-font-size-mobile: null !default;
392
392
  $h5-font-size-mobile: null !default;
393
393
  $h6-font-size-mobile: null !default;
394
394
 
395
- $headings-margin-bottom: $spacer / 2 !default;
395
+ $headings-margin-bottom: $spacer * 0.5 !default;
396
396
  $headings-font-family: null !default;
397
397
  $headings-font-weight: 500 !default;
398
398
  $headings-line-height: 1.2 !default;
@@ -442,6 +442,19 @@ $link-decoration: none !default;
442
442
  $link-hover-color: $primary-d2 !default;
443
443
  $link-hover-decoration: underline !default;
444
444
 
445
+ $link: () !default;
446
+ $link: map-deep-merge(
447
+ (
448
+ color: $link-color,
449
+ text-decoration: $link-decoration,
450
+ hover: (
451
+ color: $link-hover-color,
452
+ text-decoration: $link-hover-decoration,
453
+ ),
454
+ ),
455
+ $link
456
+ );
457
+
445
458
  // Darken percentage for links with `.text-*` class (e.g. `.text-success`)
446
459
 
447
460
  $emphasized-link-hover-darken-percentage: 15% !default;