@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,95 +1,165 @@
1
+ // .dropdown-toggle
2
+
3
+ $dropdown-toggle: () !default;
4
+ $dropdown-toggle: map-deep-merge(
5
+ (
6
+ white-space: nowrap,
7
+ ),
8
+ $dropdown-toggle
9
+ );
10
+
11
+ // .dropdown-menu
12
+
13
+ /// @deprecated as of v3.x use map $dropdown-menu instead
14
+
1
15
  $dropdown-bg: $white !default;
16
+
17
+ /// @deprecated as of v3.x use map $dropdown-menu instead
18
+
2
19
  $dropdown-border-color: rgba($black, 0.15) !default;
20
+
21
+ /// @deprecated as of v3.x use map $dropdown-menu instead
22
+
3
23
  $dropdown-border-style: solid !default;
24
+
25
+ /// @deprecated as of v3.x use map $dropdown-menu instead
26
+
4
27
  $dropdown-border-width: $border-width !default;
5
28
 
29
+ /// @deprecated as of v3.x use map $dropdown-menu instead
30
+
6
31
  $dropdown-border-radius: $border-radius !default;
32
+
33
+ /// @deprecated as of v3.x with no replacement
34
+
7
35
  $dropdown-inner-border-radius: $dropdown-border-radius
8
36
  math-sign($dropdown-border-width) !default;
9
37
 
38
+ /// @deprecated as of v3.x use map $dropdown-menu instead
39
+
10
40
  $dropdown-box-shadow: 0 0.5rem 1rem rgba($black, 0.175) !default;
41
+
42
+ /// @deprecated as of v3.x use map $dropdown-menu instead
43
+
11
44
  $dropdown-color: $body-color !default;
45
+
46
+ /// @deprecated as of v3.x use map $dropdown-menu instead
47
+
12
48
  $dropdown-font-size: $font-size-base !default;
49
+
50
+ /// @deprecated as of v3.x use map $dropdown-menu instead
51
+
13
52
  $dropdown-max-height: 500px !default;
53
+
54
+ /// @deprecated as of v3.x use map $dropdown-menu instead
55
+
14
56
  $dropdown-max-width: 260px !default;
57
+
58
+ /// @deprecated as of v3.x use map $dropdown-menu instead
59
+
15
60
  $dropdown-min-height: null !default;
61
+
62
+ /// @deprecated as of v3.x use map $dropdown-menu instead
63
+
16
64
  $dropdown-min-width: 10rem !default;
17
- $dropdown-padding-y: 0.5rem !default;
65
+
66
+ /// @deprecated as of v3.x use map $dropdown-menu instead
18
67
 
19
68
  $dropdown-font-size-mobile: null !default;
69
+
70
+ /// @deprecated as of v3.x use map $dropdown-menu instead
71
+
20
72
  $dropdown-max-height-mobile: 295px !default;
21
- $dropdown-max-width-mobile: 230px !default;
22
73
 
23
- $dropdown-spacer: 0.125rem !default;
74
+ /// @deprecated as of v3.x use map $dropdown-menu instead
24
75
 
25
- $dropdown-divider-bg: $gray-200 !default;
26
- $dropdown-divider-margin-y: $spacer / 2 !default;
76
+ $dropdown-max-width-mobile: 230px !default;
27
77
 
28
- $dropdown-full-wide-header-spacer-y: 20px !default;
78
+ $dropdown-padding-y: 0.5rem !default;
79
+ $dropdown-spacer: 0.125rem !default;
29
80
 
30
- $dropdown-wide-width: 500px !default;
81
+ $dropdown-menu: () !default;
82
+ $dropdown-menu: map-deep-merge(
83
+ (
84
+ breakpoint-down: md,
85
+ background-clip: padding-box,
86
+ background-color: $dropdown-bg,
87
+ border-color: $dropdown-border-color,
88
+ border-radius: clay-enable-rounded($dropdown-border-radius),
89
+ border-style: $dropdown-border-style,
90
+ border-width: $dropdown-border-width,
91
+ box-shadow: clay-enable-shadows($dropdown-box-shadow),
92
+ color: $dropdown-color,
93
+ display: none,
94
+ float: left,
95
+ font-size: $dropdown-font-size,
96
+ left: 0,
97
+ list-style: none,
98
+ margin: $dropdown-spacer 0 0,
99
+ max-height: $dropdown-max-height,
100
+ max-width: $dropdown-max-width,
101
+ min-height: $dropdown-min-height,
102
+ min-width: $dropdown-min-width,
103
+ overflow: auto,
104
+ padding: $dropdown-padding-y 0,
105
+ position: absolute,
106
+ text-align: left,
107
+ top: 100%,
108
+ z-index: $zindex-dropdown,
109
+ mobile: (
110
+ font-size: $dropdown-font-size-mobile,
111
+ max-height: $dropdown-max-height-mobile,
112
+ max-width: $dropdown-max-width-mobile,
113
+ ),
114
+ show: (
115
+ display: block,
116
+ ),
117
+ ),
118
+ $dropdown-menu
119
+ );
31
120
 
32
- // Dropdown Item
121
+ // .dropdown-item
33
122
 
34
123
  $dropdown-item-padding-x: 1.5rem !default;
35
124
  $dropdown-item-padding-y: 0.25rem !default;
36
125
 
37
- $dropdown-item-disabled-cursor: $disabled-cursor !default;
126
+ /// @deprecated as of v3.x use map $dropdown-item instead
38
127
 
39
- $dropdown-item-indicator-size: 1rem !default;
40
- $dropdown-item-indicator-spacer-x: 1rem !default;
128
+ $dropdown-item-disabled-cursor: $disabled-cursor !default;
41
129
 
42
- // Dropdown Link
130
+ /// @deprecated as of v3.x use map $dropdown-item instead
43
131
 
44
132
  $dropdown-link-color: $gray-900 !default;
45
- $dropdown-link-font-weight: null !default;
46
133
 
47
- $dropdown-link-hover-bg: $gray-100 !default;
48
- $dropdown-link-hover-color: clay-darken($gray-900, 5%) !default;
134
+ /// @deprecated as of v3.x use map $dropdown-item instead
49
135
 
50
- $dropdown-link-active-bg: $component-active-bg !default;
51
- $dropdown-link-active-color: $component-active-color !default;
52
- $dropdown-link-active-font-weight: null !default;
136
+ $dropdown-link-font-weight: null !default;
53
137
 
54
- $dropdown-link-disabled-color: $gray-600 !default;
138
+ /// @deprecated as of v3.x use map $dropdown-item instead
55
139
 
56
- // Dropdown Header
140
+ $dropdown-link-hover-bg: $gray-100 !default;
57
141
 
58
- $dropdown-header-color: $gray-600 !default;
59
- $dropdown-header-font-size: null !default;
60
- $dropdown-header-margin-bottom: null !default;
61
- $dropdown-header-margin-top: null !default;
62
- $dropdown-header-padding-x: $dropdown-item-padding-x !default;
63
- $dropdown-header-padding-y: $dropdown-padding-y !default;
64
- $dropdown-header-text-transform: null !default;
142
+ /// @deprecated as of v3.x use map $dropdown-item instead
65
143
 
66
- $dropdown-header-font-size-mobile: null !default;
144
+ $dropdown-link-hover-color: clay-darken($gray-900, 5%) !default;
67
145
 
68
- // Dropdown Subheader
146
+ /// @deprecated as of v3.x use map $dropdown-item instead
69
147
 
70
- $dropdown-subheader-color: $dropdown-header-color !default;
71
- $dropdown-subheader-font-size: 0.75rem !default; // 12px
72
- $dropdown-subheader-font-weight: $font-weight-semi-bold !default;
73
- $dropdown-subheader-margin-bottom: null !default;
74
- $dropdown-subheader-margin-top: null !default;
75
- $dropdown-subheader-padding-x: $dropdown-header-padding-x !default;
76
- $dropdown-subheader-padding-y: $dropdown-header-padding-y !default;
77
- $dropdown-subheader-text-transform: uppercase !default;
148
+ $dropdown-link-active-bg: $component-active-bg !default;
78
149
 
79
- $dropdown-caption-color: $dropdown-header-color !default;
80
- $dropdown-caption-font-size: 0.875rem !default; // 14px
81
- $dropdown-caption-font-weight: null !default;
150
+ /// @deprecated as of v3.x use map $dropdown-item instead
82
151
 
83
- // Dropdown Inline Scroller
152
+ $dropdown-link-active-color: $component-active-color !default;
84
153
 
85
- $dropdown-inline-scroller-max-height: 200px !default;
86
- $dropdown-inline-scroller-max-height-mobile: none !default;
154
+ /// @deprecated as of v3.x use map $dropdown-item instead
87
155
 
88
- // Dropdown Item
156
+ $dropdown-link-active-font-weight: null !default;
89
157
 
90
- $dropdown-item-disabled-cursor: $disabled-cursor !default;
158
+ /// @deprecated as of v3.x use map $dropdown-item instead
91
159
 
92
- // `background-color`, `border-width`, `text-align` for `<button>`s
160
+ $dropdown-link-disabled-color: $gray-600 !default;
161
+
162
+ // .dropdown-item `background-color`, `border-width`, `text-align` for `<button>`s
93
163
 
94
164
  $dropdown-item-base: () !default;
95
165
  $dropdown-item-base: map-deep-merge(
@@ -99,6 +169,7 @@ $dropdown-item-base: map-deep-merge(
99
169
  border-width: 0,
100
170
  clear: both,
101
171
  color: $dropdown-link-color,
172
+ cursor: $link-cursor,
102
173
  display: block,
103
174
  font-weight: $font-weight-normal,
104
175
  overflow: hidden,
@@ -112,32 +183,37 @@ $dropdown-item-base: map-deep-merge(
112
183
  white-space: normal,
113
184
  width: 100%,
114
185
  word-wrap: break-word,
115
- hover-text-decoration: none,
116
186
  hover: (
117
187
  background-color: $dropdown-link-hover-bg,
118
188
  color: $dropdown-link-hover-color,
189
+ text-decoration: none,
119
190
  ),
120
191
  focus: (
121
192
  background-color: $dropdown-link-hover-bg,
122
193
  color: $dropdown-link-hover-color,
123
194
  text-decoration: none,
124
195
  ),
125
- active-color: $dropdown-link-active-color,
126
196
  active: (
127
197
  background-color: $dropdown-link-active-bg,
198
+ color: $dropdown-link-active-color,
128
199
  text-decoration: none,
129
200
  ),
130
- active-class-font-weight: $dropdown-link-active-font-weight,
131
- disabled-color: $dropdown-link-disabled-color,
132
- disabled-cursor: $dropdown-item-disabled-cursor,
133
- disabled-opacity: 1,
134
- disabled-outline: 0,
201
+ active-class: (
202
+ font-weight: $dropdown-link-active-font-weight,
203
+ pointer-events: none,
204
+ ),
135
205
  disabled: (
136
206
  background-color: transparent,
137
- ),
138
- disabled-active-pointer-events: none,
139
- disabled-c-kbd-inline: (
140
207
  color: $dropdown-link-disabled-color,
208
+ cursor: $dropdown-item-disabled-cursor,
209
+ opacity: 1,
210
+ outline: 0,
211
+ active: (
212
+ pointer-events: none,
213
+ ),
214
+ c-kbd-inline: (
215
+ color: $dropdown-link-disabled-color,
216
+ ),
141
217
  ),
142
218
  c-kbd-inline: (
143
219
  line-height: $dropdown-font-size * $line-height-base,
@@ -146,6 +222,247 @@ $dropdown-item-base: map-deep-merge(
146
222
  $dropdown-item-base
147
223
  );
148
224
 
225
+ // .dropdown-item-text
226
+
227
+ $dropdown-item-text: () !default;
228
+ $dropdown-item-text: map-merge(
229
+ (
230
+ color: map-get($dropdown-item-base, color),
231
+ display: map-get($dropdown-item-base, display),
232
+ font-weight: map-get($dropdown-item-base, font-weight),
233
+ padding: map-get($dropdown-item-base, padding),
234
+ padding-bottom: map-get($dropdown-item-base, padding-bottom),
235
+ padding-left: map-get($dropdown-item-base, padding-left),
236
+ padding-right: map-get($dropdown-item-base, padding-right),
237
+ padding-top: map-get($dropdown-item-base, padding-top),
238
+ ),
239
+ $dropdown-item-text
240
+ );
241
+
242
+ // .dropdown-header
243
+
244
+ /// @deprecated as of v3.x use map $dropdown-header instead
245
+
246
+ $dropdown-header-color: $gray-600 !default;
247
+
248
+ /// @deprecated as of v3.x use map $dropdown-header instead
249
+
250
+ $dropdown-header-font-size: null !default;
251
+
252
+ /// @deprecated as of v3.x use map $dropdown-header instead
253
+
254
+ $dropdown-header-margin-bottom: null !default;
255
+
256
+ /// @deprecated as of v3.x use map $dropdown-header instead
257
+
258
+ $dropdown-header-margin-top: null !default;
259
+
260
+ /// @deprecated as of v3.x use map $dropdown-header instead
261
+
262
+ $dropdown-header-padding-x: $dropdown-item-padding-x !default;
263
+
264
+ /// @deprecated as of v3.x use map $dropdown-header instead
265
+
266
+ $dropdown-header-padding-y: $dropdown-padding-y !default;
267
+
268
+ /// @deprecated as of v3.x use map $dropdown-header instead
269
+
270
+ $dropdown-header-text-transform: null !default;
271
+
272
+ /// @deprecated as of v3.x use map $dropdown-header instead
273
+
274
+ $dropdown-header-font-size-mobile: null !default;
275
+
276
+ $dropdown-header: () !default;
277
+ $dropdown-header: map-deep-merge(
278
+ (
279
+ breakpoint-down: sm,
280
+ color: $dropdown-header-color,
281
+ display: block,
282
+ font-size: $dropdown-header-font-size,
283
+ margin-bottom: $dropdown-header-margin-bottom,
284
+ margin-top: $dropdown-header-margin-top,
285
+ padding-bottom: $dropdown-header-padding-y,
286
+ padding-left: $dropdown-header-padding-x,
287
+ padding-right: $dropdown-header-padding-x,
288
+ padding-top: $dropdown-header-padding-y,
289
+ position: relative,
290
+ text-transform: $dropdown-header-text-transform,
291
+ word-wrap: break-word,
292
+ mobile: (
293
+ font-size: $dropdown-header-font-size-mobile,
294
+ ),
295
+ first-child: (
296
+ margin-top: 0,
297
+ ),
298
+ ),
299
+ $dropdown-header
300
+ );
301
+
302
+ // .dropdown-subheader
303
+
304
+ /// @deprecated as of v3.x use map $dropdown-subheader instead
305
+
306
+ $dropdown-subheader-color: $dropdown-header-color !default;
307
+
308
+ /// @deprecated as of v3.x use map $dropdown-subheader instead
309
+
310
+ $dropdown-subheader-font-size: 0.75rem !default; // 12px
311
+
312
+ /// @deprecated as of v3.x use map $dropdown-subheader instead
313
+
314
+ $dropdown-subheader-font-weight: $font-weight-semi-bold !default;
315
+
316
+ /// @deprecated as of v3.x use map $dropdown-subheader instead
317
+
318
+ $dropdown-subheader-margin-bottom: null !default;
319
+
320
+ /// @deprecated as of v3.x use map $dropdown-subheader instead
321
+
322
+ $dropdown-subheader-margin-top: null !default;
323
+
324
+ /// @deprecated as of v3.x use map $dropdown-subheader instead
325
+
326
+ $dropdown-subheader-padding-x: $dropdown-header-padding-x !default;
327
+
328
+ /// @deprecated as of v3.x use map $dropdown-subheader instead
329
+
330
+ $dropdown-subheader-padding-y: $dropdown-header-padding-y !default;
331
+
332
+ /// @deprecated as of v3.x use map $dropdown-subheader instead
333
+
334
+ $dropdown-subheader-text-transform: uppercase !default;
335
+
336
+ $dropdown-subheader: () !default;
337
+ $dropdown-subheader: map-deep-merge(
338
+ (
339
+ color: $dropdown-subheader-color,
340
+ font-size: $dropdown-subheader-font-size,
341
+ font-weight: $dropdown-subheader-font-weight,
342
+ margin-bottom: $dropdown-subheader-margin-bottom,
343
+ margin-top: $dropdown-subheader-margin-top,
344
+ padding-bottom: $dropdown-subheader-padding-y,
345
+ padding-left: $dropdown-subheader-padding-x,
346
+ padding-right: $dropdown-subheader-padding-x,
347
+ padding-top: $dropdown-subheader-padding-y,
348
+ text-transform: $dropdown-subheader-text-transform,
349
+ white-space: normal,
350
+ word-wrap: break-word,
351
+ first-child: (
352
+ margin-top: 0,
353
+ ),
354
+ ),
355
+ $dropdown-subheader
356
+ );
357
+
358
+ // .dropdown-caption
359
+
360
+ /// @deprecated as of v3.x use map $dropdown-caption instead
361
+
362
+ $dropdown-caption-color: $dropdown-header-color !default;
363
+
364
+ /// @deprecated as of v3.x use map $dropdown-caption instead
365
+
366
+ $dropdown-caption-font-size: 0.875rem !default; // 14px
367
+
368
+ /// @deprecated as of v3.x use map $dropdown-caption instead
369
+
370
+ $dropdown-caption-font-weight: null !default;
371
+
372
+ $dropdown-caption: () !default;
373
+ $dropdown-caption: map-merge(
374
+ (
375
+ color: $dropdown-caption-color,
376
+ font-size: $dropdown-caption-font-size,
377
+ font-weight: $dropdown-caption-font-weight,
378
+ padding: $dropdown-item-padding-y $dropdown-item-padding-x,
379
+ white-space: normal,
380
+ word-wrap: break-word,
381
+ ),
382
+ $dropdown-caption
383
+ );
384
+
385
+ // .dropdown-divider
386
+
387
+ /// @deprecated as of v3.x use map $dropdown-divider instead
388
+
389
+ $dropdown-divider-bg: $gray-200 !default;
390
+
391
+ /// @deprecated as of v3.x use map $dropdown-divider instead
392
+
393
+ $dropdown-divider-margin-y: $spacer * 0.5 !default;
394
+
395
+ $dropdown-divider: () !default;
396
+ $dropdown-divider: map-merge(
397
+ (
398
+ border-top: 1px solid $dropdown-divider-bg,
399
+ height: 0,
400
+ margin: $dropdown-divider-margin-y 0,
401
+ overflow: hidden,
402
+ ),
403
+ $dropdown-divider
404
+ );
405
+
406
+ // .dropdown-section
407
+
408
+ /// @deprecated as of v3.x use map $dropdown-section instead
409
+
410
+ $dropdown-section-custom-control: () !default;
411
+ $dropdown-section-custom-control: map-deep-merge(
412
+ (
413
+ margin-bottom: 0,
414
+ ),
415
+ $dropdown-section-custom-control
416
+ );
417
+
418
+ /// @deprecated as of v3.x use map $dropdown-section instead
419
+
420
+ $dropdown-section-custom-control-label: () !default;
421
+
422
+ /// @deprecated as of v3.x use map $dropdown-section instead
423
+
424
+ $dropdown-section-custom-control-label-text: () !default;
425
+
426
+ /// @deprecated as of v3.x use map $dropdown-section instead
427
+
428
+ $dropdown-section-active-custom-control-label: () !default;
429
+
430
+ $dropdown-section: () !default;
431
+ $dropdown-section: map-deep-merge(
432
+ (
433
+ padding: $dropdown-item-padding-y $dropdown-item-padding-x,
434
+ form-group: (
435
+ form-group: (
436
+ margin-top: $dropdown-item-padding-y * 2,
437
+ ),
438
+ ),
439
+ custom-control: $dropdown-section-custom-control,
440
+ custom-control-label: $dropdown-section-custom-control-label,
441
+ custom-control-label-text: $dropdown-section-custom-control-label-text,
442
+ active: (
443
+ custom-control-label: $dropdown-section-active-custom-control-label,
444
+ ),
445
+ ),
446
+ $dropdown-section
447
+ );
448
+
449
+ // .dropdown-footer
450
+
451
+ $dropdown-footer: () !default;
452
+ $dropdown-footer: map-merge(
453
+ (
454
+ box-shadow: -1px -2px 3px -3px rgba(0, 0, 0, 0.5),
455
+ padding: 0.5rem $dropdown-item-padding-x 0,
456
+ position: relative,
457
+ ),
458
+ $dropdown-footer
459
+ );
460
+
461
+ // Dropdown Inline Scroller
462
+
463
+ $dropdown-inline-scroller-max-height: 200px !default;
464
+ $dropdown-inline-scroller-max-height-mobile: none !default;
465
+
149
466
  // Dropdown Item Indicator
150
467
 
151
468
  $dropdown-item-indicator-size: 1rem !default;
@@ -243,97 +560,182 @@ $dropdown-item-indicator-text-end: map-deep-merge(
243
560
  $dropdown-item-indicator-text-end
244
561
  );
245
562
 
246
- // Dropdown Item
563
+ // .dropdown-menu-top
247
564
 
248
- $dropdown-item-base: () !default;
249
- $dropdown-item-base: map-deep-merge(
565
+ $dropdown-menu-top: () !default;
566
+ $dropdown-menu-top: map-deep-merge(
250
567
  (
251
- background-color: transparent,
252
- border-radius: 0,
253
- border-width: 0,
254
- clear: both,
255
- color: $dropdown-link-color,
256
- cursor: $link-cursor,
257
- display: block,
258
- font-weight: $font-weight-normal,
259
- overflow: hidden,
260
- padding-bottom: $dropdown-item-padding-y,
261
- padding-left: $dropdown-item-padding-x,
262
- padding-right: $dropdown-item-padding-x,
263
- padding-top: $dropdown-item-padding-y,
264
- position: relative,
265
- text-align: inherit,
266
- transition: none,
267
- white-space: normal,
268
- width: 100%,
269
- word-wrap: break-word,
270
- hover: (
271
- background-color: $dropdown-link-hover-bg,
272
- color: $dropdown-link-hover-color,
273
- text-decoration: none,
274
- ),
275
- focus: (
276
- background-color: $dropdown-link-hover-bg,
277
- color: $dropdown-link-hover-color,
278
- text-decoration: none,
279
- ),
280
- active: (
281
- background-color: $dropdown-link-active-bg,
282
- color: $dropdown-link-active-color,
283
- text-decoration: none,
284
- ),
285
- active-class: (
286
- font-weight: $dropdown-link-active-font-weight,
287
- pointer-events: none,
288
- ),
289
- disabled: (
290
- background-color: transparent,
291
- color: $dropdown-link-disabled-color,
292
- cursor: $dropdown-item-disabled-cursor,
293
- opacity: 1,
294
- outline: 0,
295
- ),
296
- disabled-active: (
297
- pointer-events: none,
298
- ),
299
- disabled-c-kbd-inline: (
300
- color: $dropdown-link-disabled-color,
301
- ),
302
- c-kbd-inline: (
303
- line-height: $dropdown-font-size * $line-height-base,
304
- ),
568
+ bottom: 100% !important,
569
+ left: 0 !important,
570
+ margin-top: 0,
571
+ margin-bottom: $dropdown-spacer,
572
+ right: auto !important,
573
+ top: auto !important,
574
+ transform: none !important,
575
+ will-change: auto !important,
305
576
  ),
306
- $dropdown-item-base
577
+ $dropdown-menu-top
307
578
  );
308
579
 
309
- // Dropdown Section
580
+ // .dropdown-menu-top-right
310
581
 
311
- $dropdown-section-custom-control: () !default;
312
- $dropdown-section-custom-control: map-deep-merge(
582
+ $dropdown-menu-top-right: () !default;
583
+ $dropdown-menu-top-right: map-deep-merge(
313
584
  (
314
- margin-bottom: 0,
585
+ bottom: 100% !important,
586
+ left: auto !important,
587
+ margin-top: 0,
588
+ margin-bottom: $dropdown-spacer,
589
+ right: 0 !important,
590
+ top: auto !important,
591
+ transform: none !important,
592
+ will-change: auto !important,
315
593
  ),
316
- $dropdown-section-custom-control
594
+ $dropdown-menu-top-right
317
595
  );
318
596
 
319
- $dropdown-section-custom-control-label: () !default;
597
+ // .dropdown-menu-top-center
320
598
 
321
- $dropdown-section-custom-control-label-text: () !default;
599
+ $dropdown-menu-top-center: () !default;
600
+ $dropdown-menu-top-center: map-deep-merge(
601
+ (
602
+ bottom: 100% !important,
603
+ left: 50% !important,
604
+ margin-top: 0,
605
+ margin-bottom: $dropdown-spacer,
606
+ right: auto !important,
607
+ top: auto !important,
608
+ transform: translateX(-50%) !important,
609
+ will-change: auto !important,
610
+ ),
611
+ $dropdown-menu-top-center
612
+ );
322
613
 
323
- $dropdown-section-active-custom-control-label: () !default;
614
+ // .dropdown-menu-center
324
615
 
325
- // Dropdown Footer
616
+ $dropdown-menu-center: () !default;
617
+ $dropdown-menu-center: map-deep-merge(
618
+ (
619
+ bottom: auto !important,
620
+ left: 50% !important,
621
+ right: auto !important,
622
+ top: 100% !important,
623
+ transform: translateX(-50%) !important,
624
+ will-change: auto !important,
625
+ ),
626
+ $dropdown-menu-center
627
+ );
326
628
 
327
- $dropdown-footer: () !default;
328
- $dropdown-footer: map-merge(
629
+ // .dropdown-menu-left-side
630
+
631
+ $dropdown-menu-left-side: () !default;
632
+ $dropdown-menu-left-side: map-deep-merge(
329
633
  (
330
- box-shadow: -1px -2px 3px -3px rgba(0, 0, 0, 0.5),
331
- padding: 0.5rem $dropdown-item-padding-x 0,
332
- position: relative,
634
+ bottom: auto !important,
635
+ left: auto !important,
636
+ margin-right: $dropdown-spacer,
637
+ margin-top: 0,
638
+ right: 100% !important,
639
+ top: 0 !important,
640
+ transform: none !important,
641
+ will-change: auto !important,
333
642
  ),
334
- $dropdown-footer
643
+ $dropdown-menu-left-side
644
+ );
645
+
646
+ // .dropdown-menu-left-side-bottom
647
+
648
+ $dropdown-menu-left-side-bottom: () !default;
649
+ $dropdown-menu-left-side-bottom: map-deep-merge(
650
+ (
651
+ bottom: 0 !important,
652
+ left: auto !important,
653
+ margin-right: $dropdown-spacer,
654
+ margin-top: 0,
655
+ right: 100% !important,
656
+ top: auto !important,
657
+ transform: none !important,
658
+ will-change: auto !important,
659
+ ),
660
+ $dropdown-menu-left-side-bottom
661
+ );
662
+
663
+ // .dropdown-menu-left-side-middle
664
+
665
+ $dropdown-menu-left-side-middle: () !default;
666
+ $dropdown-menu-left-side-middle: map-deep-merge(
667
+ (
668
+ bottom: auto !important,
669
+ left: auto !important,
670
+ margin-right: $dropdown-spacer,
671
+ margin-top: 0,
672
+ right: 100% !important,
673
+ top: 50% !important,
674
+ transform: translate(0, -50%) !important,
675
+ will-change: auto !important,
676
+ ),
677
+ $dropdown-menu-left-side-middle
678
+ );
679
+
680
+ // .dropdown-menu-right-side
681
+
682
+ $dropdown-menu-right-side: () !default;
683
+ $dropdown-menu-right-side: map-deep-merge(
684
+ (
685
+ bottom: auto !important,
686
+ left: 100% !important,
687
+ margin-left: $dropdown-spacer,
688
+ margin-top: 0,
689
+ right: auto !important,
690
+ top: 0 !important,
691
+ transform: none !important,
692
+ will-change: auto !important,
693
+ ),
694
+ $dropdown-menu-right-side
695
+ );
696
+
697
+ // .dropdown-menu-right-side-bottom
698
+
699
+ $dropdown-menu-right-side-bottom: () !default;
700
+ $dropdown-menu-right-side-bottom: map-deep-merge(
701
+ (
702
+ bottom: 0 !important,
703
+ left: 100% !important,
704
+ margin-left: $dropdown-spacer,
705
+ margin-top: 0,
706
+ right: auto !important,
707
+ top: auto !important,
708
+ transform: none !important,
709
+ will-change: auto !important,
710
+ ),
711
+ $dropdown-menu-right-side-bottom
712
+ );
713
+
714
+ // .dropdown-menu-right-side-middle
715
+
716
+ $dropdown-menu-right-side-middle: () !default;
717
+ $dropdown-menu-right-side-middle: map-deep-merge(
718
+ (
719
+ bottom: auto !important,
720
+ left: 100% !important,
721
+ margin-left: $dropdown-spacer,
722
+ margin-top: 0,
723
+ right: auto !important,
724
+ top: 50% !important,
725
+ transform: translate(0, -50%) !important,
726
+ will-change: auto !important,
727
+ ),
728
+ $dropdown-menu-right-side-middle
335
729
  );
336
730
 
731
+ // .dropdown-full, .dropdown-wide
732
+
733
+ $dropdown-full-wide-header-spacer-y: 20px !default;
734
+
735
+ // .dropdown-wide
736
+
737
+ $dropdown-wide-width: 500px !default;
738
+
337
739
  // Dropdown Menu Width
338
740
 
339
741
  $dropdown-menu-width-full: () !default;
@@ -392,19 +794,68 @@ $autocomplete-dropdown-menu: map-deep-merge(
392
794
  $autocomplete-dropdown-menu
393
795
  );
394
796
 
395
- // Dropdown Action
797
+ // .dropdown-action
798
+
799
+ /// @deprecated as of v3.x use map $dropdown-action instead
396
800
 
397
801
  $dropdown-action-toggle-border-radius: $border-radius !default;
802
+
803
+ /// @deprecated as of v3.x use map $dropdown-action instead
804
+
398
805
  $dropdown-action-toggle-font-size: null !default;
399
- $dropdown-action-toggle-size: $btn-monospaced-size-sm !default;
806
+
807
+ /// @deprecated as of v3.x use map $dropdown-action instead
400
808
 
401
809
  $dropdown-action-toggle-disabled-cursor: $disabled-cursor !default;
810
+
811
+ /// @deprecated as of v3.x use map $dropdown-action instead
812
+
402
813
  $dropdown-action-toggle-disabled-opacity: 0.65 !default;
403
814
 
815
+ $dropdown-action-toggle-size: $btn-monospaced-size-sm !default;
816
+
817
+ $dropdown-action: () !default;
818
+ $dropdown-action: map-deep-merge(
819
+ (
820
+ display: inline-block,
821
+ font-size: $dropdown-action-toggle-font-size,
822
+ vertical-align: middle,
823
+ dropdown-toggle: (
824
+ align-items: center,
825
+ border-radius:
826
+ clay-enable-rounded($dropdown-action-toggle-border-radius),
827
+ cursor: $btn-cursor,
828
+ display: flex,
829
+ font-size: inherit,
830
+ font-weight: inherit,
831
+ height: $dropdown-action-toggle-size,
832
+ justify-content: center,
833
+ line-height: inherit,
834
+ padding: 0,
835
+ text-transform: inherit,
836
+ vertical-align: baseline,
837
+ width: $dropdown-action-toggle-size,
838
+ disabled: (
839
+ cursor: $dropdown-action-toggle-disabled-cursor,
840
+ opacity: $dropdown-action-toggle-disabled-opacity,
841
+ ),
842
+ lexicon-icon: (
843
+ margin-top: 0,
844
+ ),
845
+ inline-item: (
846
+ lexicon-icon: (
847
+ margin-top: 0,
848
+ ),
849
+ ),
850
+ ),
851
+ ),
852
+ $dropdown-action
853
+ );
854
+
404
855
  // Alert inside Dropdowns
405
856
 
406
857
  $dropdown-alert-font-size: null !default;
407
858
  $dropdown-alert-line-height: normal !default;
408
- $dropdown-alert-margin: ($spacer / 2) !default;
859
+ $dropdown-alert-margin: $spacer * 0.5 !default;
409
860
  $dropdown-alert-padding-x: $dropdown-header-padding-x !default;
410
861
  $dropdown-alert-padding-y: $dropdown-header-padding-y !default;