@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
@@ -66,14 +66,15 @@
66
66
  @include clay-css($custom-control);
67
67
 
68
68
  &:only-child {
69
- margin-bottom: 0;
69
+ $only-child: setter(map-get($custom-control, only-child), ());
70
+
71
+ @include clay-css($only-child);
70
72
  }
71
73
 
72
74
  label {
73
- cursor: map-get($custom-control-label, cursor);
74
- display: inline;
75
- font-size: $font-size-base;
76
- margin-bottom: 0;
75
+ $label: setter(map-get($custom-control, label), ());
76
+
77
+ @include clay-css($label);
77
78
  }
78
79
  }
79
80
 
@@ -82,7 +83,7 @@
82
83
  }
83
84
 
84
85
  label.custom-control-label {
85
- font-size: map-get($custom-control-label, font-size);
86
+ @include clay-css($label-custom-control-label);
86
87
  }
87
88
 
88
89
  .custom-control-label-text {
@@ -105,176 +106,31 @@ label.custom-control-label {
105
106
  // Custom Control Indicator
106
107
 
107
108
  .custom-control-label::before {
108
- background-color: $custom-control-indicator-bg;
109
- border-color: $custom-control-indicator-border-color;
110
- border-style: $custom-control-indicator-border-style;
111
- border-width: $custom-control-indicator-border-width;
112
-
113
- @include box-shadow($custom-control-indicator-box-shadow);
114
-
115
- content: '';
116
- display: block;
117
- float: left;
118
- font-size: $custom-control-indicator-size;
119
- height: $custom-control-indicator-size;
120
- left: 0;
121
- position: relative;
122
- top: $custom-control-indicator-position-top;
123
-
124
- @include transition($custom-forms-transition);
109
+ $before: setter(map-get($custom-control-label, before), ());
125
110
 
126
- width: $custom-control-indicator-size;
111
+ @include clay-css($before);
127
112
  }
128
113
 
129
114
  .custom-control-label::after {
130
- background: no-repeat 50% / #{$custom-control-indicator-bg-size};
131
- content: '';
132
- display: block;
133
- height: $custom-control-indicator-size;
134
- left: 0;
135
- position: absolute;
136
- top: $custom-control-indicator-position-top;
137
- width: $custom-control-indicator-size;
138
- }
139
-
140
- .custom-control-input {
141
- cursor: $form-check-input-cursor;
142
- height: $custom-control-indicator-size;
143
- left: 0;
144
- opacity: 0;
145
- position: absolute;
146
- top: $custom-control-indicator-position-top;
147
- width: $custom-control-indicator-size;
148
- z-index: 1;
149
-
150
- &:focus ~ .custom-control-label::before {
151
- @if $enable-shadows {
152
- box-shadow: $input-box-shadow, $input-focus-box-shadow;
153
- } @else {
154
- box-shadow: $custom-control-indicator-focus-box-shadow;
155
- }
156
- }
157
-
158
- &:focus:not(:checked) ~ .custom-control-label::before {
159
- border-color: $custom-control-indicator-focus-border-color;
160
- }
161
-
162
- &:active ~ .custom-control-label::before {
163
- background-color: $custom-control-indicator-active-bg;
164
- border-color: $custom-control-indicator-active-border-color;
165
-
166
- @include box-shadow($custom-control-indicator-active-box-shadow);
167
-
168
- color: $custom-control-indicator-active-color;
169
- }
170
-
171
- &:active:checked ~ .custom-control-label::before {
172
- background-color: $custom-control-indicator-checked-active-bg;
173
- border-color: $custom-control-indicator-checked-active-border-color;
174
- }
175
-
176
- &:checked ~ .custom-control-label::before {
177
- @include gradient-bg($custom-control-indicator-checked-bg);
115
+ $after: setter(map-get($custom-control-label, after), ());
178
116
 
179
- border-color: $custom-control-indicator-checked-border-color;
180
-
181
- @include box-shadow($custom-control-indicator-checked-box-shadow);
182
-
183
- color: $custom-control-indicator-checked-color;
184
- }
185
-
186
- // Use [disabled] and :disabled to work around https://github.com/twbs/bootstrap/issues/28247
187
-
188
- &[disabled],
189
- &:disabled {
190
- cursor: $custom-control-indicator-disabled-cursor;
191
-
192
- ~ .custom-control-label::before {
193
- background-color: $custom-control-indicator-disabled-bg;
194
- border-color: $custom-control-indicator-disabled-border-color;
195
- box-shadow: none;
196
- }
197
-
198
- ~ .custom-control-label {
199
- @include clay-container($custom-control-label-disabled);
200
- }
201
- }
202
-
203
- &:disabled:checked ~ .custom-control-label::before {
204
- background-color: $custom-control-indicator-checked-disabled-bg;
205
- border-color: $custom-control-indicator-checked-disabled-border-color;
206
- }
117
+ @include clay-css($after);
207
118
  }
208
119
 
209
- .custom-control .custom-control-input:focus ~ .custom-control-label::before {
210
- box-shadow: $custom-control-indicator-focus-box-shadow;
120
+ .custom-control-input {
121
+ @include clay-custom-control-input-variant($custom-control-input);
211
122
  }
212
123
 
213
124
  // Custom Checkbox
214
125
 
215
126
  .custom-checkbox {
216
- .custom-control-input {
217
- &:checked ~ .custom-control-label::after {
218
- background-image: escape-svg(
219
- $custom-checkbox-indicator-icon-checked
220
- );
221
- background-size: $custom-checkbox-indicator-icon-checked-bg-size;
222
- }
223
-
224
- &:indeterminate ~ .custom-control-label::before {
225
- @include gradient-bg($custom-checkbox-indicator-indeterminate-bg);
226
-
227
- border-color: $custom-control-indicator-indeterminate-border-color;
228
-
229
- @include box-shadow(
230
- $custom-checkbox-indicator-indeterminate-box-shadow
231
- );
232
- }
233
-
234
- &:indeterminate ~ .custom-control-label::after {
235
- background-image: escape-svg(
236
- $custom-checkbox-indicator-icon-indeterminate
237
- );
238
- background-size: $custom-checkbox-indicator-icon-indeterminate-bg-size;
239
- }
240
-
241
- &:disabled:checked ~ .custom-control-label::before {
242
- background-color: $custom-control-indicator-checked-disabled-bg;
243
- }
244
-
245
- &:disabled:indeterminate ~ .custom-control-label::before {
246
- background-color: $custom-control-indicator-checked-disabled-bg;
247
- border-color: $custom-control-indicator-checked-disabled-border-color;
248
- }
249
- }
250
-
251
- .custom-control-label::before {
252
- @include border-radius($custom-checkbox-indicator-border-radius);
253
- }
127
+ @include clay-custom-control-variant($custom-checkbox);
254
128
  }
255
129
 
256
130
  // Custom Radio
257
131
 
258
132
  .custom-radio {
259
- .custom-control-input {
260
- &:checked ~ .custom-control-label::after {
261
- background-image: escape-svg($custom-radio-indicator-icon-checked);
262
- background-size: $custom-radio-indicator-icon-checked-bg-size;
263
- }
264
-
265
- &:disabled ~ .custom-control-label::before {
266
- border-color: $custom-radio-indicator-disabled-border-color;
267
- }
268
-
269
- &:disabled:checked ~ .custom-control-label::before {
270
- background-color: $custom-control-indicator-checked-disabled-bg;
271
- border-color: $custom-radio-indicator-checked-disabled-border-color;
272
- }
273
- }
274
-
275
- .custom-control-label::before {
276
- border-radius: $custom-radio-indicator-border-radius;
277
- }
133
+ @include clay-custom-control-variant($custom-radio);
278
134
  }
279
135
 
280
136
  // Custom Control Inline
@@ -320,8 +176,8 @@ label.custom-control-label {
320
176
  $font-size-base *
321
177
  $line-height-base -
322
178
  $custom-control-indicator-size
323
- ) /
324
- 2,
179
+ ) *
180
+ 0.5,
325
181
  $custom-control-indicator-border-width * 2
326
182
  );
327
183
  width: $custom-switch-indicator-size;
@@ -571,8 +427,8 @@ label.custom-control-label {
571
427
  height: $custom-range-thumb-height;
572
428
  margin-top: (
573
429
  $custom-range-track-height - $custom-range-thumb-height
574
- ) /
575
- 2; // Webkit specific
430
+ ) *
431
+ 0.5; // Webkit specific
576
432
 
577
433
  @include transition($custom-forms-transition);
578
434
 
@@ -662,7 +518,7 @@ label.custom-control-label {
662
518
  &::-ms-track {
663
519
  background-color: transparent;
664
520
  border-color: transparent;
665
- border-width: $custom-range-thumb-height / 2;
521
+ border-width: $custom-range-thumb-height * 0.5;
666
522
 
667
523
  @include box-shadow($custom-range-track-box-shadow);
668
524
 
@@ -6,60 +6,35 @@
6
6
  }
7
7
 
8
8
  .dropdown-toggle {
9
- white-space: nowrap;
9
+ @include clay-button-variant($dropdown-toggle);
10
10
 
11
11
  @include caret();
12
12
  }
13
13
 
14
14
  .dropdown-header {
15
- color: $dropdown-header-color;
16
- display: block;
17
- font-size: $dropdown-header-font-size;
18
- margin-bottom: $dropdown-header-margin-bottom;
19
- margin-top: $dropdown-header-margin-top;
20
- padding-bottom: $dropdown-header-padding-y;
21
- padding-left: $dropdown-header-padding-x;
22
- padding-right: $dropdown-header-padding-x;
23
- padding-top: $dropdown-header-padding-y;
24
- position: relative;
25
- text-transform: $dropdown-header-text-transform;
26
- word-wrap: break-word;
15
+ @include clay-css($dropdown-header);
27
16
 
28
- @include clay-scale-component {
29
- font-size: $dropdown-header-font-size-mobile;
17
+ @include media-breakpoint-down(map-get($dropdown-header, breakpoint-down)) {
18
+ @include clay-css(setter(map-get($dropdown-header, mobile), ()));
30
19
  }
31
20
 
32
21
  &:first-child {
33
- margin-top: 0;
22
+ @include clay-css(setter(map-get($dropdown-header, first-child), ()));
34
23
  }
35
24
  }
36
25
 
37
26
  .dropdown-subheader {
38
- color: $dropdown-subheader-color;
39
- font-size: $dropdown-subheader-font-size;
40
- font-weight: $dropdown-subheader-font-weight;
41
- margin-bottom: $dropdown-subheader-margin-bottom;
42
- margin-top: $dropdown-subheader-margin-top;
43
- padding-bottom: $dropdown-subheader-padding-y;
44
- padding-left: $dropdown-subheader-padding-x;
45
- padding-right: $dropdown-subheader-padding-x;
46
- padding-top: $dropdown-subheader-padding-y;
47
- text-transform: $dropdown-subheader-text-transform;
48
- white-space: normal;
49
- word-wrap: break-word;
27
+ @include clay-css($dropdown-subheader);
50
28
 
51
29
  &:first-child {
52
- margin-top: 0;
30
+ @include clay-css(
31
+ setter(map-get($dropdown-subheader, first-child), ())
32
+ );
53
33
  }
54
34
  }
55
35
 
56
36
  .dropdown-caption {
57
- color: $dropdown-caption-color;
58
- font-size: $dropdown-caption-font-size;
59
- font-weight: $dropdown-caption-font-weight;
60
- padding: $dropdown-item-padding-y $dropdown-item-padding-x;
61
- white-space: normal;
62
- word-wrap: break-word;
37
+ @include clay-css($dropdown-caption);
63
38
  }
64
39
 
65
40
  .dropdown-item {
@@ -79,38 +54,50 @@
79
54
  // Dropdown Item Text
80
55
 
81
56
  .dropdown-item-text {
82
- color: map-get($dropdown-item-base, color);
83
- display: map-get($dropdown-item-base, display);
84
- font-weight: map-get($dropdown-item-base, font-weight);
85
- padding: map-get($dropdown-item-base, padding);
86
- padding-bottom: map-get($dropdown-item-base, padding-bottom);
87
- padding-left: map-get($dropdown-item-base, padding-left);
88
- padding-right: map-get($dropdown-item-base, padding-right);
89
- padding-top: map-get($dropdown-item-base, padding-top);
57
+ @include clay-css($dropdown-item-text);
90
58
  }
91
59
 
92
60
  .dropdown-section {
93
- padding: $dropdown-item-padding-y $dropdown-item-padding-x;
61
+ @include clay-css($dropdown-section);
94
62
 
95
63
  .form-group + .form-group {
96
- margin-top: $dropdown-item-padding-y * 2;
64
+ @include clay-css(
65
+ setter(map-deep-get($dropdown-section, form-group, form-group), ())
66
+ );
97
67
  }
98
68
 
99
69
  .custom-control {
100
- @include clay-css($dropdown-section-custom-control);
70
+ @include clay-css(
71
+ setter(map-get($dropdown-section, custom-control), ())
72
+ );
101
73
  }
102
74
 
103
75
  .custom-control-label {
104
- @include clay-css($dropdown-section-custom-control-label);
76
+ @include clay-css(
77
+ setter(map-get($dropdown-section, custom-control-label), ())
78
+ );
105
79
  }
106
80
 
107
81
  .custom-control-label-text {
108
- @include clay-css($dropdown-section-custom-control-label-text);
82
+ @include clay-css(
83
+ setter(map-get($dropdown-section, custom-control-label-text), ())
84
+ );
109
85
  }
110
86
 
111
87
  &.active {
88
+ @include clay-css(setter(map-get($dropdown-section, active), ()));
89
+
112
90
  .custom-control-label {
113
- @include clay-css($dropdown-section-active-custom-control-label);
91
+ @include clay-css(
92
+ setter(
93
+ map-deep-get(
94
+ $dropdown-section,
95
+ active,
96
+ custom-control-label
97
+ ),
98
+ ()
99
+ )
100
+ );
114
101
  }
115
102
  }
116
103
  }
@@ -124,50 +111,7 @@
124
111
  // Dropdown Menu
125
112
 
126
113
  .dropdown-menu {
127
- background-clip: padding-box;
128
- background-color: $dropdown-bg;
129
- border-color: $dropdown-border-color;
130
- border-style: $dropdown-border-style;
131
- border-width: $dropdown-border-width;
132
-
133
- @include border-radius($dropdown-border-radius);
134
- @include box-shadow($dropdown-box-shadow);
135
-
136
- color: $dropdown-color;
137
- display: none;
138
- float: left;
139
- font-size: $dropdown-font-size;
140
- left: 0;
141
- list-style: none;
142
- margin: $dropdown-spacer 0 0;
143
- max-height: $dropdown-max-height;
144
- max-width: $dropdown-max-width;
145
- min-height: $dropdown-min-height;
146
- min-width: $dropdown-min-width;
147
- overflow: auto;
148
-
149
- // Firefox clips overflowing content and doesn't respect `padding-bottom` on `.dropdown-menu`
150
-
151
- padding: $dropdown-padding-y 0 0;
152
- position: absolute;
153
- text-align: left;
154
- top: 100%;
155
- z-index: $zindex-dropdown;
156
-
157
- &::after {
158
- content: '';
159
- display: block;
160
- padding-top: $dropdown-padding-y;
161
- }
162
-
163
- @include media-breakpoint-down(md) {
164
- max-height: $dropdown-max-height-mobile;
165
- max-width: $dropdown-max-width-mobile;
166
- }
167
-
168
- @include clay-scale-component {
169
- font-size: $dropdown-font-size-mobile;
170
- }
114
+ @include clay-dropdown-menu-variant($dropdown-menu);
171
115
 
172
116
  .alert {
173
117
  font-size: $dropdown-alert-font-size;
@@ -214,10 +158,6 @@
214
158
  }
215
159
  }
216
160
 
217
- .dropdown-menu.show {
218
- display: block;
219
- }
220
-
221
161
  // Dropdown Menu Alignment
222
162
 
223
163
  @each $breakpoint in map-keys($grid-breakpoints) {
@@ -303,47 +243,18 @@
303
243
  // Dropdown Divider
304
244
 
305
245
  .dropdown-divider {
306
- border-top: 1px solid $dropdown-divider-bg;
307
- height: 0;
308
- margin: $dropdown-divider-margin-y 0;
309
- overflow: hidden;
246
+ @include clay-css($dropdown-divider);
310
247
  }
311
248
 
312
249
  // Dropdown Action
313
250
 
314
251
  .dropdown-action {
315
- display: inline-block;
316
- font-size: $dropdown-action-toggle-font-size;
317
- vertical-align: middle;
252
+ @include clay-css($dropdown-action);
318
253
 
319
254
  > .dropdown-toggle {
320
- align-items: center;
321
-
322
- @include border-radius($dropdown-action-toggle-border-radius);
323
-
324
- cursor: $btn-cursor;
325
- display: flex;
326
-
327
- @include clay-monospace($dropdown-action-toggle-size);
328
-
329
- font-size: inherit;
330
- font-weight: inherit;
331
- justify-content: center;
332
- line-height: inherit;
333
- padding: 0;
334
- text-transform: inherit;
335
- vertical-align: baseline;
336
-
337
- &:disabled,
338
- &.disabled {
339
- cursor: $dropdown-action-toggle-disabled-cursor;
340
- opacity: $dropdown-action-toggle-disabled-opacity;
341
- }
342
-
343
- .inline-item .lexicon-icon,
344
- .lexicon-icon {
345
- margin-top: 0;
346
- }
255
+ @include clay-button-variant(
256
+ setter(map-get($dropdown-action, dropdown-toggle), ())
257
+ );
347
258
  }
348
259
  }
349
260
 
@@ -435,111 +346,43 @@
435
346
  // Dropdown Menu Positions
436
347
 
437
348
  .dropdown-menu-top {
438
- bottom: 100% !important;
439
- left: 0 !important;
440
- margin-top: 0;
441
- margin-bottom: $dropdown-spacer;
442
- right: auto !important;
443
- top: auto !important;
444
- transform: none !important;
445
- will-change: auto !important;
349
+ @include clay-dropdown-menu-variant($dropdown-menu-top);
446
350
  }
447
351
 
448
352
  .dropdown-menu-top-right {
449
- bottom: 100% !important;
450
- left: auto !important;
451
- margin-top: 0;
452
- margin-bottom: $dropdown-spacer;
453
- right: 0 !important;
454
- top: auto !important;
455
- transform: none !important;
456
- will-change: auto !important;
353
+ @include clay-dropdown-menu-variant($dropdown-menu-top-right);
457
354
  }
458
355
 
459
356
  .dropdown-menu-top-center {
460
- bottom: 100% !important;
461
- left: 50% !important;
462
- margin-top: 0;
463
- margin-bottom: $dropdown-spacer;
464
- right: auto !important;
465
- top: auto !important;
466
- transform: translateX(-50%) !important;
467
- will-change: auto !important;
357
+ @include clay-dropdown-menu-variant($dropdown-menu-top-center);
468
358
  }
469
359
 
470
360
  .dropdown-menu-center {
471
- bottom: auto !important;
472
- left: 50% !important;
473
- right: auto !important;
474
- top: 100% !important;
475
- transform: translateX(-50%) !important;
476
- will-change: auto !important;
361
+ @include clay-dropdown-menu-variant($dropdown-menu-center);
477
362
  }
478
363
 
479
364
  .dropdown-menu-left-side {
480
- bottom: auto !important;
481
- left: auto !important;
482
- margin-right: $dropdown-spacer;
483
- margin-top: 0;
484
- right: 100% !important;
485
- top: 0 !important;
486
- transform: none !important;
487
- will-change: auto !important;
365
+ @include clay-dropdown-menu-variant($dropdown-menu-left-side);
488
366
  }
489
367
 
490
368
  .dropdown-menu-left-side-bottom {
491
- bottom: 0 !important;
492
- left: auto !important;
493
- margin-right: $dropdown-spacer;
494
- margin-top: 0;
495
- right: 100% !important;
496
- top: auto !important;
497
- transform: none !important;
498
- will-change: auto !important;
369
+ @include clay-dropdown-menu-variant($dropdown-menu-left-side-bottom);
499
370
  }
500
371
 
501
372
  .dropdown-menu-left-side-middle {
502
- bottom: auto !important;
503
- left: auto !important;
504
- margin-right: $dropdown-spacer;
505
- margin-top: 0;
506
- right: 100% !important;
507
- top: 50% !important;
508
- transform: translate(0, -50%) !important;
509
- will-change: auto !important;
373
+ @include clay-dropdown-menu-variant($dropdown-menu-left-side-middle);
510
374
  }
511
375
 
512
376
  .dropdown-menu-right-side {
513
- bottom: auto !important;
514
- left: 100% !important;
515
- margin-left: $dropdown-spacer;
516
- margin-top: 0;
517
- right: auto !important;
518
- top: 0 !important;
519
- transform: none !important;
520
- will-change: auto !important;
377
+ @include clay-dropdown-menu-variant($dropdown-menu-right-side);
521
378
  }
522
379
 
523
380
  .dropdown-menu-right-side-bottom {
524
- bottom: 0 !important;
525
- left: 100% !important;
526
- margin-left: $dropdown-spacer;
527
- margin-top: 0;
528
- right: auto !important;
529
- top: auto !important;
530
- transform: none !important;
531
- will-change: auto !important;
381
+ @include clay-dropdown-menu-variant($dropdown-menu-right-side-bottom);
532
382
  }
533
383
 
534
384
  .dropdown-menu-right-side-middle {
535
- bottom: auto !important;
536
- left: 100% !important;
537
- margin-left: $dropdown-spacer;
538
- margin-top: 0;
539
- right: auto !important;
540
- top: 50% !important;
541
- transform: translate(0, -50%) !important;
542
- will-change: auto !important;
385
+ @include clay-dropdown-menu-variant($dropdown-menu-right-side-middle);
543
386
  }
544
387
 
545
388
  // Dropdown wide / full