@clayui/css 3.158.0 → 3.160.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 (243) hide show
  1. package/lib/css/atlas.css +2097 -1938
  2. package/lib/css/atlas.css.map +1 -1
  3. package/lib/css/base.css +2077 -1906
  4. package/lib/css/base.css.map +1 -1
  5. package/lib/css/cadmin.css +1754 -1628
  6. package/lib/css/cadmin.css.map +1 -1
  7. package/lib/images/icons/blue-print.svg +9 -0
  8. package/lib/images/icons/calculator.svg +10 -0
  9. package/lib/images/icons/icons.svg +1 -1
  10. package/lib/images/icons/layout-new-window.svg +10 -0
  11. package/lib/images/icons/medal.svg +10 -0
  12. package/lib/images/icons/megaphone.svg +9 -0
  13. package/lib/images/icons/price-list.svg +11 -0
  14. package/lib/images/icons/process-builder.svg +9 -0
  15. package/lib/images/icons/product-configuration.svg +10 -0
  16. package/lib/images/icons/product-menu-open.svg +2 -2
  17. package/lib/images/icons/products.svg +9 -0
  18. package/lib/images/icons/publications.svg +10 -0
  19. package/lib/images/icons/puzzle.svg +9 -0
  20. package/lib/images/icons/rocket.svg +11 -0
  21. package/lib/images/icons/submission.svg +10 -0
  22. package/lib/images/icons/synonyms.svg +9 -0
  23. package/package.json +2 -1
  24. package/src/images/icons/blue-print.svg +9 -0
  25. package/src/images/icons/calculator.svg +10 -0
  26. package/src/images/icons/icons.svg +1 -1
  27. package/src/images/icons/layout-new-window.svg +10 -0
  28. package/src/images/icons/medal.svg +10 -0
  29. package/src/images/icons/megaphone.svg +9 -0
  30. package/src/images/icons/price-list.svg +11 -0
  31. package/src/images/icons/process-builder.svg +9 -0
  32. package/src/images/icons/product-configuration.svg +10 -0
  33. package/src/images/icons/product-menu-open.svg +2 -2
  34. package/src/images/icons/products.svg +9 -0
  35. package/src/images/icons/publications.svg +10 -0
  36. package/src/images/icons/puzzle.svg +9 -0
  37. package/src/images/icons/rocket.svg +11 -0
  38. package/src/images/icons/submission.svg +10 -0
  39. package/src/images/icons/synonyms.svg +9 -0
  40. package/src/scss/_license-text.scss +1 -1
  41. package/src/scss/atlas/variables/_alerts.scss +102 -11
  42. package/src/scss/atlas/variables/_application-bar.scss +7 -0
  43. package/src/scss/atlas/variables/_badges.scss +36 -8
  44. package/src/scss/atlas/variables/_breadcrumbs.scss +2 -1
  45. package/src/scss/atlas/variables/_cards.scss +5 -0
  46. package/src/scss/atlas/variables/_clay-color.scss +5 -0
  47. package/src/scss/atlas/variables/_custom-forms.scss +36 -5
  48. package/src/scss/atlas/variables/_date-picker.scss +14 -2
  49. package/src/scss/atlas/variables/_dropdowns.scss +9 -2
  50. package/src/scss/atlas/variables/_forms.scss +35 -5
  51. package/src/scss/atlas/variables/_globals.scss +110 -63
  52. package/src/scss/atlas/variables/_labels.scss +55 -0
  53. package/src/scss/atlas/variables/_links.scss +18 -0
  54. package/src/scss/atlas/variables/_list-group.scss +15 -4
  55. package/src/scss/atlas/variables/_management-bar.scss +11 -0
  56. package/src/scss/atlas/variables/_menubar.scss +70 -22
  57. package/src/scss/atlas/variables/_modals.scss +16 -0
  58. package/src/scss/atlas/variables/_navbar.scss +7 -0
  59. package/src/scss/atlas/variables/_navigation-bar.scss +25 -1
  60. package/src/scss/atlas/variables/_navs.scss +5 -2
  61. package/src/scss/atlas/variables/_pagination.scss +42 -22
  62. package/src/scss/atlas/variables/_panels.scss +7 -0
  63. package/src/scss/atlas/variables/_popovers.scss +6 -4
  64. package/src/scss/atlas/variables/_range.scss +6 -0
  65. package/src/scss/atlas/variables/_sheets.scss +1 -0
  66. package/src/scss/atlas/variables/_sidebar.scss +10 -0
  67. package/src/scss/atlas/variables/_tables.scss +27 -3
  68. package/src/scss/atlas/variables/_time.scss +1 -0
  69. package/src/scss/atlas/variables/_toggle-switch.scss +19 -7
  70. package/src/scss/atlas/variables/_utilities.scss +3 -0
  71. package/src/scss/cadmin/components/_alerts.scss +3 -1
  72. package/src/scss/cadmin/components/_button-groups.scss +2 -2
  73. package/src/scss/cadmin/components/_cards.scss +2 -2
  74. package/src/scss/cadmin/components/_drilldown.scss +10 -10
  75. package/src/scss/cadmin/components/_dropdowns.scss +2 -2
  76. package/src/scss/cadmin/components/_forms.scss +2 -2
  77. package/src/scss/cadmin/components/_grid.scss +6 -6
  78. package/src/scss/cadmin/components/_icons.scss +10 -2
  79. package/src/scss/cadmin/components/_images.scss +1 -1
  80. package/src/scss/cadmin/components/_input-groups.scss +4 -4
  81. package/src/scss/cadmin/components/_list-group.scss +11 -10
  82. package/src/scss/cadmin/components/_modals.scss +5 -5
  83. package/src/scss/cadmin/components/_multi-step-nav.scss +45 -20
  84. package/src/scss/cadmin/components/_navbar.scss +14 -8
  85. package/src/scss/cadmin/components/_navs.scss +1 -1
  86. package/src/scss/cadmin/components/_panels.scss +51 -25
  87. package/src/scss/cadmin/components/_popovers.scss +25 -21
  88. package/src/scss/cadmin/components/_sheets.scss +40 -14
  89. package/src/scss/cadmin/components/_time.scss +6 -2
  90. package/src/scss/cadmin/components/_timelines.scss +15 -8
  91. package/src/scss/cadmin/components/_tooltip.scss +8 -7
  92. package/src/scss/cadmin/components/_treeview.scss +8 -1
  93. package/src/scss/cadmin/components/_type.scss +4 -2
  94. package/src/scss/cadmin/components/_utilities-functional-important.scss +5 -5
  95. package/src/scss/cadmin/components/_utilities.scss +13 -13
  96. package/src/scss/cadmin/variables/_alerts.scss +184 -34
  97. package/src/scss/cadmin/variables/_badges.scss +121 -21
  98. package/src/scss/cadmin/variables/_breadcrumbs.scss +18 -11
  99. package/src/scss/cadmin/variables/_buttons.scss +15 -10
  100. package/src/scss/cadmin/variables/_cards.scss +89 -32
  101. package/src/scss/cadmin/variables/_clay-color.scss +40 -18
  102. package/src/scss/cadmin/variables/_custom-forms.scss +49 -10
  103. package/src/scss/cadmin/variables/_date-picker.scss +47 -19
  104. package/src/scss/cadmin/variables/_dropdowns.scss +105 -49
  105. package/src/scss/cadmin/variables/_dual-listbox.scss +1 -1
  106. package/src/scss/cadmin/variables/_empty-state.scss +5 -2
  107. package/src/scss/cadmin/variables/_forms.scss +218 -74
  108. package/src/scss/cadmin/variables/_globals-z-index.scss +28 -5
  109. package/src/scss/cadmin/variables/_globals.scss +141 -71
  110. package/src/scss/cadmin/variables/_images.scss +1 -2
  111. package/src/scss/cadmin/variables/_labels.scss +99 -6
  112. package/src/scss/cadmin/variables/_links.scss +47 -11
  113. package/src/scss/cadmin/variables/_list-group.scss +25 -9
  114. package/src/scss/cadmin/variables/_loaders.scss +18 -2
  115. package/src/scss/cadmin/variables/_management-bar.scss +66 -26
  116. package/src/scss/cadmin/variables/_menubar.scss +137 -43
  117. package/src/scss/cadmin/variables/_modals.scss +75 -26
  118. package/src/scss/cadmin/variables/_multi-step-nav.scss +34 -14
  119. package/src/scss/cadmin/variables/_navbar.scss +22 -15
  120. package/src/scss/cadmin/variables/_navigation-bar.scss +73 -37
  121. package/src/scss/cadmin/variables/_navs.scss +65 -33
  122. package/src/scss/cadmin/variables/_pagination.scss +60 -22
  123. package/src/scss/cadmin/variables/_panels.scss +34 -16
  124. package/src/scss/cadmin/variables/_popovers.scss +66 -77
  125. package/src/scss/cadmin/variables/_progress-bars.scss +8 -3
  126. package/src/scss/cadmin/variables/_range.scss +29 -9
  127. package/src/scss/cadmin/variables/_reorder.scss +7 -6
  128. package/src/scss/cadmin/variables/_resizer.scss +5 -3
  129. package/src/scss/cadmin/variables/_sheets.scss +21 -12
  130. package/src/scss/cadmin/variables/_sidebar.scss +76 -5
  131. package/src/scss/cadmin/variables/_slideout.scss +88 -31
  132. package/src/scss/cadmin/variables/_stickers.scss +47 -8
  133. package/src/scss/cadmin/variables/_tables.scss +142 -51
  134. package/src/scss/cadmin/variables/_tbar.scss +79 -31
  135. package/src/scss/cadmin/variables/_time.scss +14 -12
  136. package/src/scss/cadmin/variables/_timelines.scss +4 -2
  137. package/src/scss/cadmin/variables/_toggle-switch.scss +117 -37
  138. package/src/scss/cadmin/variables/_tooltip.scss +47 -49
  139. package/src/scss/cadmin/variables/_treeview.scss +62 -10
  140. package/src/scss/cadmin/variables/_type.scss +11 -9
  141. package/src/scss/cadmin/variables/_utilities.scss +123 -6
  142. package/src/scss/components/_alerts.scss +1 -1
  143. package/src/scss/components/_button-groups.scss +2 -2
  144. package/src/scss/components/_cards.scss +10 -10
  145. package/src/scss/components/_carousel.scss +2 -2
  146. package/src/scss/components/_custom-forms.scss +27 -15
  147. package/src/scss/components/_drilldown.scss +8 -4
  148. package/src/scss/components/_forms.scss +6 -6
  149. package/src/scss/components/_grid.scss +7 -7
  150. package/src/scss/components/_icons.scss +10 -2
  151. package/src/scss/components/_images.scss +1 -1
  152. package/src/scss/components/_input-groups.scss +7 -5
  153. package/src/scss/components/_jumbotron.scss +2 -2
  154. package/src/scss/components/_list-group.scss +29 -14
  155. package/src/scss/components/_modals.scss +5 -5
  156. package/src/scss/components/_multi-step-nav.scss +32 -12
  157. package/src/scss/components/_navbar.scss +10 -6
  158. package/src/scss/components/_panels.scss +82 -51
  159. package/src/scss/components/_popovers.scss +21 -25
  160. package/src/scss/components/_sheets.scss +38 -14
  161. package/src/scss/components/_side-navigation.scss +2 -2
  162. package/src/scss/components/_time.scss +2 -2
  163. package/src/scss/components/_timelines.scss +16 -12
  164. package/src/scss/components/_tooltip.scss +8 -6
  165. package/src/scss/components/_treeview.scss +8 -1
  166. package/src/scss/components/_type.scss +2 -2
  167. package/src/scss/components/_utilities-functional-important.scss +5 -5
  168. package/src/scss/components/_utilities.scss +13 -13
  169. package/src/scss/functions/_global-functions.scss +2 -2
  170. package/src/scss/functions/_lx-icons-generated.scss +29 -1
  171. package/src/scss/mixins/_alerts.scss +10 -0
  172. package/src/scss/mixins/_aspect-ratio.scss +11 -0
  173. package/src/scss/mixins/_badges.scss +14 -2
  174. package/src/scss/mixins/_buttons.scss +68 -8
  175. package/src/scss/mixins/_cards.scss +81 -0
  176. package/src/scss/mixins/_close.scss +54 -4
  177. package/src/scss/mixins/_dropdown-menu.scss +55 -6
  178. package/src/scss/mixins/_forms.scss +150 -0
  179. package/src/scss/mixins/_globals.scss +101 -358
  180. package/src/scss/mixins/_grid.scss +21 -8
  181. package/src/scss/mixins/_highlight.scss +14 -0
  182. package/src/scss/mixins/_input-groups.scss +15 -0
  183. package/src/scss/mixins/_labels.scss +64 -10
  184. package/src/scss/mixins/_links.scss +55 -4
  185. package/src/scss/mixins/_list-group.scss +8 -4
  186. package/src/scss/mixins/_menubar.scss +80 -4
  187. package/src/scss/mixins/_modals.scss +10 -18
  188. package/src/scss/mixins/_nav.scss +19 -0
  189. package/src/scss/mixins/_navbar.scss +237 -49
  190. package/src/scss/mixins/_panels.scss +48 -4
  191. package/src/scss/mixins/_stickers.scss +8 -0
  192. package/src/scss/mixins/_tbar.scss +65 -10
  193. package/src/scss/mixins/_timelines.scss +21 -11
  194. package/src/scss/mixins/_toggle-switch.scss +4 -0
  195. package/src/scss/mixins/_utilities.scss +9 -0
  196. package/src/scss/variables/_alerts.scss +184 -29
  197. package/src/scss/variables/_application-bar.scss +11 -4
  198. package/src/scss/variables/_badges.scss +133 -35
  199. package/src/scss/variables/_breadcrumbs.scss +13 -4
  200. package/src/scss/variables/_buttons.scss +11 -10
  201. package/src/scss/variables/_cards.scss +131 -53
  202. package/src/scss/variables/_clay-color.scss +36 -18
  203. package/src/scss/variables/_custom-forms.scss +51 -14
  204. package/src/scss/variables/_date-picker.scss +41 -16
  205. package/src/scss/variables/_drilldown.scss +3 -3
  206. package/src/scss/variables/_dropdowns.scss +108 -49
  207. package/src/scss/variables/_dual-listbox.scss +1 -1
  208. package/src/scss/variables/_empty-state.scss +5 -2
  209. package/src/scss/variables/_forms.scss +209 -71
  210. package/src/scss/variables/_globals-z-index.scss +26 -5
  211. package/src/scss/variables/_globals.scss +145 -68
  212. package/src/scss/variables/_images.scss +1 -2
  213. package/src/scss/variables/_labels.scss +103 -6
  214. package/src/scss/variables/_links.scss +39 -10
  215. package/src/scss/variables/_list-group.scss +39 -13
  216. package/src/scss/variables/_loaders.scss +18 -2
  217. package/src/scss/variables/_management-bar.scss +23 -6
  218. package/src/scss/variables/_menubar.scss +86 -19
  219. package/src/scss/variables/_modals.scss +66 -25
  220. package/src/scss/variables/_multi-step-nav.scss +29 -11
  221. package/src/scss/variables/_navbar.scss +14 -8
  222. package/src/scss/variables/_navigation-bar.scss +26 -4
  223. package/src/scss/variables/_navs.scss +76 -44
  224. package/src/scss/variables/_pagination.scss +30 -5
  225. package/src/scss/variables/_panels.scss +77 -24
  226. package/src/scss/variables/_popovers.scss +65 -78
  227. package/src/scss/variables/_progress-bars.scss +11 -2
  228. package/src/scss/variables/_range.scss +35 -9
  229. package/src/scss/variables/_reorder.scss +7 -6
  230. package/src/scss/variables/_resizer.scss +5 -3
  231. package/src/scss/variables/_sheets.scss +21 -13
  232. package/src/scss/variables/_sidebar.scss +72 -4
  233. package/src/scss/variables/_slideout.scss +87 -31
  234. package/src/scss/variables/_stickers.scss +61 -9
  235. package/src/scss/variables/_tables.scss +125 -33
  236. package/src/scss/variables/_tbar.scss +79 -30
  237. package/src/scss/variables/_time.scss +13 -11
  238. package/src/scss/variables/_timelines.scss +2 -1
  239. package/src/scss/variables/_toggle-switch.scss +114 -30
  240. package/src/scss/variables/_tooltip.scss +46 -49
  241. package/src/scss/variables/_treeview.scss +63 -10
  242. package/src/scss/variables/_type.scss +9 -7
  243. package/src/scss/variables/_utilities.scss +124 -6
@@ -14,14 +14,17 @@ $toggle-switch-transition:
14
14
  right 100ms ease-in !default;
15
15
 
16
16
  // must all be same units--start
17
- $toggle-switch-bar-padding: 0 !default; // space between button and bar, can be negative value
17
+ $toggle-switch-bar-padding: 0px !default; // space between button and bar, can be negative value
18
18
  $toggle-switch-button-width: 25px !default;
19
- $toggle-switch-bar-height: ($toggle-switch-bar-padding * 2) +
20
- $toggle-switch-button-width !default;
19
+
20
+ $toggle-switch-bar-height: calc(
21
+ (#{$toggle-switch-bar-padding} * 2) + #{$toggle-switch-button-width}
22
+ ) !default;
21
23
  $toggle-switch-bar-width: 50px !default; // width of switch bar
22
24
 
23
25
  $toggle-switch-bar-padding-mobile: $toggle-switch-bar-padding !default;
24
26
  $toggle-switch-button-width-mobile: $toggle-switch-button-width !default;
27
+
25
28
  $toggle-switch-bar-height-mobile: $toggle-switch-bar-height !default;
26
29
  $toggle-switch-bar-width-mobile: $toggle-switch-bar-width !default;
27
30
  // must all be same units--end
@@ -30,17 +33,22 @@ $toggle-switch-bar-bg: $gray-200 !default;
30
33
  $toggle-switch-bar-border-color: $gray-400 !default;
31
34
  $toggle-switch-bar-border-radius: 3px !default;
32
35
  $toggle-switch-bar-border-width: 1px !default;
33
- $toggle-switch-bar-focus-box-shadow: $component-focus-box-shadow !default;
34
36
  $toggle-switch-bar-font-size: 0.75rem !default; // 12px
37
+
38
+ $toggle-switch-bar-focus-box-shadow: $component-focus-box-shadow !default;
39
+
35
40
  $toggle-switch-bar-font-size-mobile: $toggle-switch-bar-font-size !default;
41
+
36
42
  $toggle-switch-bar-icon-color: $gray-700 !default;
37
43
 
38
44
  $toggle-switch-button-bg: $white !default;
39
45
  $toggle-switch-button-border-color: $gray-400 !default;
40
- $toggle-switch-button-border-radius: 3px 0 0 3px !default;
46
+ $toggle-switch-button-border-radius: 3px 0px 0px 3px !default;
41
47
  $toggle-switch-button-border-width: 1px !default;
42
48
  $toggle-switch-button-font-size: $toggle-switch-bar-font-size !default;
49
+
43
50
  $toggle-switch-button-font-size-mobile: $toggle-switch-button-font-size !default; // null
51
+
44
52
  $toggle-switch-button-icon-color: $gray-700 !default;
45
53
 
46
54
  // See https://issues.liferay.com/browse/LPS-147457.
@@ -53,11 +61,13 @@ $toggle-switch-handle-after-content: unquote(
53
61
 
54
62
  $toggle-switch-bar-on-bg: $component-active-bg !default;
55
63
  $toggle-switch-bar-on-border-color: $toggle-switch-bar-on-bg !default;
64
+
56
65
  $toggle-switch-bar-on-icon-color: $component-active-color !default;
57
66
 
58
67
  $toggle-switch-button-on-bg: $white !default;
59
68
  $toggle-switch-button-on-border-color: $toggle-switch-bar-on-bg !default;
60
- $toggle-switch-button-on-border-radius: 0 3px 3px 0 !default;
69
+ $toggle-switch-button-on-border-radius: 0px 3px 3px 0px !default;
70
+
61
71
  $toggle-switch-button-on-icon-color: $toggle-switch-bar-on-bg !default;
62
72
 
63
73
  // See https://issues.liferay.com/browse/LPS-147457.
@@ -100,12 +110,15 @@ $toggle-switch: map-deep-merge(
100
110
  font-weight: $toggle-switch-font-weight,
101
111
  max-width: 100%,
102
112
  position: relative,
113
+
103
114
  disabled: (
104
115
  cursor: $toggle-switch-disabled-cursor,
116
+
105
117
  toggle-switch-label: (
106
118
  color: $toggle-switch-label-disabled-color,
107
119
  cursor: $toggle-switch-disabled-cursor,
108
120
  ),
121
+
109
122
  toggle-switch-text: (
110
123
  color: $toggle-switch-text-disabled-color,
111
124
  ),
@@ -135,12 +148,15 @@ $toggle-switch-bar: map-deep-merge(
135
148
  min-width: $toggle-switch-bar-width,
136
149
  text-transform: uppercase,
137
150
  ),
151
+
138
152
  toggle-switch-icon: (
139
153
  font-size: $toggle-switch-bar-font-size,
154
+
140
155
  lexicon-icon: (
141
156
  margin-top: -0.2em,
142
157
  ),
143
158
  ),
159
+
144
160
  button-icon: (
145
161
  font-size: $toggle-switch-button-font-size,
146
162
  ),
@@ -154,21 +170,23 @@ $toggle-switch-check: () !default;
154
170
  $toggle-switch-check: map-deep-merge(
155
171
  (
156
172
  breakpoint-down: sm,
157
- bottom: 0,
173
+ bottom: 0rem,
158
174
  font-size: 62.5%,
159
175
  height: $toggle-switch-bar-height,
160
176
  opacity: 0,
161
177
  position: absolute,
162
178
  width: $toggle-switch-bar-width,
163
179
  z-index: 2,
180
+
164
181
  toggle-switch-bar: (
165
182
  display: inline-flex,
166
183
  font-size: $toggle-switch-bar-font-size,
167
184
  height: $toggle-switch-bar-height,
168
185
  line-height: $toggle-switch-bar-height,
169
186
  position: relative,
170
- text-indent: 0,
187
+ text-indent: 0rem,
171
188
  user-select: none,
189
+
172
190
  before: (
173
191
  background-color: $toggle-switch-bar-bg,
174
192
  border-color: $toggle-switch-bar-border-color,
@@ -176,15 +194,16 @@ $toggle-switch-check: map-deep-merge(
176
194
  clay-enable-rounded($toggle-switch-bar-border-radius),
177
195
  border-style: solid,
178
196
  border-width: $toggle-switch-bar-border-width,
179
- bottom: 0,
197
+ bottom: 0rem,
180
198
  content: ' ',
181
199
  display: block,
182
- left: 0,
200
+ left: 0rem,
183
201
  position: absolute,
184
- top: 0,
202
+ top: 0rem,
185
203
  transition: $toggle-switch-transition,
186
204
  width: $toggle-switch-bar-width,
187
205
  ),
206
+
188
207
  after: (
189
208
  background-color: $toggle-switch-button-bg,
190
209
  border-color: $toggle-switch-button-border-color,
@@ -202,11 +221,13 @@ $toggle-switch-check: map-deep-merge(
202
221
  transition: $toggle-switch-transition,
203
222
  width: $toggle-switch-button-width,
204
223
  ),
224
+
205
225
  toggle-switch-handle: (
206
226
  before: (
207
227
  transition:
208
228
  clay-enable-transitions($toggle-switch-transition),
209
229
  ),
230
+
210
231
  after: (
211
232
  content: $toggle-switch-handle-after-content,
212
233
  margin-left:
@@ -218,33 +239,42 @@ $toggle-switch-check: map-deep-merge(
218
239
  white-space: nowrap,
219
240
  ),
220
241
  ),
242
+
221
243
  toggle-switch-icon: (
222
244
  color: $toggle-switch-bar-icon-color,
223
245
  left: $toggle-switch-bar-padding,
224
246
  line-height: $toggle-switch-button-width,
225
247
  position: absolute,
226
248
  text-align: center,
227
- text-indent: 0,
249
+ text-indent: 0rem,
228
250
  top: $toggle-switch-bar-padding,
229
251
  transition: $toggle-switch-transition,
230
252
  width: $toggle-switch-button-width,
231
253
  z-index: 1,
232
254
  ),
255
+
233
256
  toggle-switch-icon-on: (
234
257
  left: $toggle-switch-bar-padding,
235
258
  opacity: 0,
236
259
  ),
260
+
237
261
  toggle-switch-icon-off: (
238
- left: $toggle-switch-bar-width - $toggle-switch-bar-padding -
239
- $toggle-switch-button-width,
262
+ left:
263
+ calc(
264
+ #{$toggle-switch-bar-width} - #{$toggle-switch-bar-padding} -
265
+ #{$toggle-switch-button-width}
266
+ ),
240
267
  ),
268
+
241
269
  button-icon: (
242
270
  color: $toggle-switch-button-icon-color,
243
271
  ),
272
+
244
273
  button-icon-on: (
245
274
  opacity: 0,
246
275
  ),
247
276
  ),
277
+
248
278
  focus: (
249
279
  toggle-switch-bar: (
250
280
  before: (
@@ -252,12 +282,14 @@ $toggle-switch-check: map-deep-merge(
252
282
  ),
253
283
  ),
254
284
  ),
285
+
255
286
  disabled: (
256
287
  toggle-switch-bar: (
257
288
  cursor: $toggle-switch-disabled-cursor,
258
289
  opacity: $toggle-switch-disabled-opacity,
259
290
  ),
260
291
  ),
292
+
261
293
  checked: (
262
294
  toggle-switch-bar: (
263
295
  before: (
@@ -268,6 +300,7 @@ $toggle-switch-check: map-deep-merge(
268
300
  border-style: solid,
269
301
  border-width: $toggle-switch-bar-border-width,
270
302
  ),
303
+
271
304
  after: (
272
305
  background-color: $toggle-switch-button-on-bg,
273
306
  border-color: $toggle-switch-button-on-border-color,
@@ -277,46 +310,63 @@ $toggle-switch-check: map-deep-merge(
277
310
  ),
278
311
  border-style: solid,
279
312
  border-width: $toggle-switch-button-border-width,
280
- left: $toggle-switch-bar-width - $toggle-switch-bar-padding -
281
- $toggle-switch-button-width,
313
+ left:
314
+ calc(
315
+ #{$toggle-switch-bar-width} - #{$toggle-switch-bar-padding} -
316
+ #{$toggle-switch-button-width}
317
+ ),
282
318
  ),
319
+
283
320
  toggle-switch-handle: (
284
321
  after: (
285
322
  content: $toggle-switch-handle-on-after-content,
286
323
  ),
287
324
  ),
325
+
288
326
  toggle-switch-icon: (
289
327
  color: $toggle-switch-bar-on-icon-color,
290
328
  ),
329
+
291
330
  toggle-switch-icon-on: (
292
331
  opacity: 1,
293
332
  ),
333
+
294
334
  toggle-switch-icon-off: (
295
335
  opacity: 0,
296
336
  ),
337
+
297
338
  button-icon: (
298
339
  color: $toggle-switch-button-on-icon-color,
299
- left: $toggle-switch-bar-width - $toggle-switch-bar-padding -
300
- $toggle-switch-button-width,
340
+ left:
341
+ calc(
342
+ #{$toggle-switch-bar-width} - #{$toggle-switch-bar-padding} -
343
+ #{$toggle-switch-button-width}
344
+ ),
301
345
  ),
346
+
302
347
  button-icon-on: (
303
348
  opacity: 1,
304
349
  ),
350
+
305
351
  button-icon-off: (
306
352
  opacity: 0,
307
353
  ),
308
354
  ),
309
355
  ),
356
+
310
357
  mobile: (
311
358
  height: $toggle-switch-bar-height-mobile,
312
359
  width: $toggle-switch-bar-width-mobile,
360
+
313
361
  toggle-switch-bar: (
314
362
  height: $toggle-switch-bar-height-mobile,
315
363
  line-height: $toggle-switch-bar-height-mobile,
316
- text-indent: 0,
364
+ text-indent: 0rem,
365
+
317
366
  before: (
318
367
  width: $toggle-switch-bar-width-mobile,
319
368
  ),
369
+
320
370
  after: (
321
371
  bottom: $toggle-switch-bar-padding-mobile,
322
372
  height: $toggle-switch-button-width-mobile,
@@ -324,8 +374,10 @@ $toggle-switch-check: map-deep-merge(
324
374
  top: $toggle-switch-bar-padding-mobile,
325
375
  width: $toggle-switch-button-width-mobile,
326
376
  ),
377
+
327
378
  toggle-switch-handle: (
328
379
  min-width: $toggle-switch-bar-width-mobile,
380
+
329
381
  after: (
330
382
  margin-left:
331
383
  clay-data-label-text-position(
@@ -334,6 +386,7 @@ $toggle-switch-check: map-deep-merge(
334
386
  ),
335
387
  ),
336
388
  ),
389
+
337
390
  toggle-switch-icon: (
338
391
  font-size: $toggle-switch-bar-font-size-mobile,
339
392
  left: $toggle-switch-bar-padding-mobile,
@@ -341,25 +394,34 @@ $toggle-switch-check: map-deep-merge(
341
394
  top: $toggle-switch-bar-padding-mobile,
342
395
  width: $toggle-switch-button-width-mobile,
343
396
  ),
397
+
344
398
  toggle-switch-icon-on: (
345
399
  left: $toggle-switch-bar-padding-mobile,
346
400
  ),
401
+
347
402
  toggle-switch-icon-off: (
348
- left: $toggle-switch-bar-width-mobile -
349
- $toggle-switch-bar-padding-mobile -
350
- $toggle-switch-button-width-mobile,
403
+ left:
404
+ calc(
405
+ #{$toggle-switch-bar-width-mobile} - #{$toggle-switch-bar-padding-mobile} -
406
+ #{$toggle-switch-button-width-mobile}
407
+ ),
351
408
  ),
409
+
352
410
  button-icon: (
353
411
  font-size: $toggle-switch-button-font-size-mobile,
354
412
  ),
355
413
  ),
414
+
356
415
  checked: (
357
416
  toggle-switch-bar: (
358
417
  after: (
359
- left: $toggle-switch-bar-width-mobile -
360
- $toggle-switch-bar-padding-mobile -
361
- $toggle-switch-button-width-mobile,
418
+ left:
419
+ calc(
420
+ #{$toggle-switch-bar-width-mobile} - #{$toggle-switch-bar-padding-mobile} -
421
+ #{$toggle-switch-button-width-mobile}
422
+ ),
362
423
  ),
424
+
363
425
  toggle-switch-handle: (
364
426
  after: (
365
427
  margin-left:
@@ -369,10 +431,13 @@ $toggle-switch-check: map-deep-merge(
369
431
  ),
370
432
  ),
371
433
  ),
434
+
372
435
  button-icon: (
373
- left: $toggle-switch-bar-width-mobile -
374
- $toggle-switch-bar-padding-mobile -
375
- $toggle-switch-button-width-mobile,
436
+ left:
437
+ calc(
438
+ #{$toggle-switch-bar-width-mobile} - #{$toggle-switch-bar-padding-mobile} -
439
+ #{$toggle-switch-button-width-mobile}
440
+ ),
376
441
  ),
377
442
  ),
378
443
  ),
@@ -412,6 +477,7 @@ $toggle-switch-text-left: map-merge(
412
477
  display: inline-flex,
413
478
  line-height: $toggle-switch-bar-height,
414
479
  margin-right: 8px,
480
+
415
481
  mobile: (
416
482
  line-height: $toggle-switch-bar-height-mobile,
417
483
  ),
@@ -428,6 +494,7 @@ $toggle-switch-text-right: map-deep-merge(
428
494
  display: inline-flex,
429
495
  line-height: $toggle-switch-bar-height,
430
496
  margin-left: 8px,
497
+
431
498
  mobile: (
432
499
  line-height: $toggle-switch-bar-height-mobile,
433
500
  ),
@@ -444,11 +511,13 @@ $simple-toggle-switch: () !default;
444
511
  $simple-toggle-switch: map-deep-merge(
445
512
  (
446
513
  breakpoint-down: sm,
514
+
447
515
  align-items: center,
448
516
  display: inline-flex,
517
+
449
518
  toggle-switch-label: (
450
519
  line-height: $simple-toggle-switch-label-line-height,
451
- margin-bottom: 0,
520
+ margin-bottom: 0rem,
452
521
  max-width:
453
522
  calc(
454
523
  100% - #{clay-data-label-text-position(
@@ -457,6 +526,7 @@ $simple-toggle-switch: map-deep-merge(
457
526
  )}
458
527
  ),
459
528
  ),
529
+
460
530
  mobile: (
461
531
  toggle-switch-label: (
462
532
  max-width:
@@ -478,14 +548,17 @@ $simple-toggle-switch-reverse: () !default;
478
548
  $simple-toggle-switch-reverse: map-deep-merge(
479
549
  (
480
550
  breakpoint-down: sm,
551
+
481
552
  toggle-switch-check-bar: (
482
553
  order: 5,
483
554
  ),
555
+
484
556
  toggle-switch-check: (
485
557
  toggle-switch-bar: (
486
558
  order: 5,
487
559
  ),
488
560
  ),
561
+
489
562
  toggle-switch-label: (
490
563
  margin-right: $simple-toggle-switch-label-spacer-x,
491
564
  ),
@@ -504,47 +577,58 @@ $toggle-switch-sizes: map-deep-merge(
504
577
  max-width: calc(100% - 34px),
505
578
  ),
506
579
  ),
580
+
507
581
  toggle-switch-check: (
508
582
  height: 16px,
509
583
  width: 30px,
584
+
510
585
  toggle-switch-bar: (
511
586
  height: 16px,
512
587
  line-height: 16px,
588
+
513
589
  before: (
514
590
  width: 30px,
515
591
  ),
592
+
516
593
  after: (
517
594
  height: 16px,
518
595
  width: 16px,
519
596
  ),
597
+
520
598
  toggle-switch-handle: (
521
599
  min-width: 30px,
600
+
522
601
  after: (
523
602
  margin-left: 34px,
524
603
  ),
525
604
  ),
605
+
526
606
  toggle-switch-icon: (
527
607
  font-size: 0.6875rem,
528
608
  height: 16px,
529
- left: 0,
609
+ left: 0rem,
530
610
  line-height: 16px,
531
611
  width: 16px,
532
612
  ),
613
+
533
614
  toggle-switch-icon-off: (
534
615
  left: 14px,
535
616
  ),
536
617
  ),
618
+
537
619
  checked: (
538
620
  toggle-switch-bar: (
539
621
  after: (
540
622
  left: 14px,
541
623
  ),
624
+
542
625
  button-icon: (
543
626
  left: 14px,
544
627
  ),
545
628
  ),
546
629
  ),
547
630
  ),
631
+
548
632
  toggle-switch-label: (
549
633
  font-size: 0.75rem,
550
634
  max-width: calc(100% - 38px),
@@ -3,7 +3,7 @@ $tooltip-border-radius: $border-radius !default;
3
3
  $tooltip-box-shadow: null !default;
4
4
  $tooltip-color: $white !default;
5
5
  $tooltip-font-size: $font-size-sm !default;
6
- $tooltip-margin: 0 !default;
6
+ $tooltip-margin: 0rem !default;
7
7
  $tooltip-max-width: 200px !default;
8
8
  $tooltip-opacity: 0.9 !default;
9
9
  $tooltip-padding-x: 0.5rem !default;
@@ -46,14 +46,17 @@ $tooltip: map-deep-merge(
46
46
  word-spacing: normal,
47
47
  word-wrap: break-word,
48
48
  z-index: $zindex-tooltip,
49
+
49
50
  show: (
50
51
  opacity: $tooltip-opacity,
51
52
  ),
53
+
52
54
  arrow: (
53
55
  display: block,
54
56
  height: $tooltip-arrow-height,
55
57
  position: absolute,
56
58
  width: $tooltip-arrow-width,
59
+
57
60
  before: (
58
61
  border-color: transparent,
59
62
  border-style: solid,
@@ -88,25 +91,25 @@ $clay-tooltip-bottom: () !default;
88
91
  $clay-tooltip-bottom: map-deep-merge(
89
92
  (
90
93
  padding-top: $tooltip-arrow-height,
94
+
91
95
  arrow: (
92
96
  left: 50%,
93
- margin-left: math-sign($tooltip-arrow-width * 0.5),
94
- top: 0,
97
+ margin-left: calc(#{$tooltip-arrow-width} * -0.5),
98
+ top: 0rem,
99
+
95
100
  before: (
96
101
  border-bottom-color: $tooltip-arrow-color,
97
- border-width: 0
98
- (
99
- $tooltip-arrow-width * 0.5,
100
- )
102
+ border-width: 0rem calc(#{$tooltip-arrow-width} * 0.5)
101
103
  $tooltip-arrow-height,
102
- bottom: 0,
104
+ bottom: 0rem,
103
105
  ),
104
106
  ),
107
+
105
108
  tooltip-arrow: (
106
109
  border-bottom-color: transparent,
107
110
  border-right-color: transparent,
108
111
  left: 50%,
109
- top: 0,
112
+ top: 0rem,
110
113
  ),
111
114
  ),
112
115
  $clay-tooltip-bottom
@@ -119,7 +122,7 @@ $clay-tooltip-bottom-left: map-deep-merge(
119
122
  (
120
123
  arrow: (
121
124
  left: $tooltip-arrow-offset,
122
- margin-left: 0,
125
+ margin-left: 0rem,
123
126
  ),
124
127
  ),
125
128
  $clay-tooltip-bottom-left
@@ -132,7 +135,7 @@ $clay-tooltip-bottom-right: map-deep-merge(
132
135
  (
133
136
  arrow: (
134
137
  left: auto,
135
- margin-left: 0,
138
+ margin-left: 0rem,
136
139
  right: $tooltip-arrow-offset,
137
140
  ),
138
141
  ),
@@ -145,29 +148,26 @@ $clay-tooltip-left: () !default;
145
148
  $clay-tooltip-left: map-deep-merge(
146
149
  (
147
150
  padding-right: $tooltip-arrow-height,
151
+
148
152
  arrow: (
149
153
  height: $tooltip-arrow-width,
150
- margin-top: math-sign($tooltip-arrow-width * 0.5),
151
- right: 0,
154
+ margin-top: calc(#{$tooltip-arrow-width} * -0.5),
155
+ right: 0rem,
152
156
  top: 50%,
153
157
  width: $tooltip-arrow-height,
158
+
154
159
  before: (
155
160
  border-left-color: $tooltip-arrow-color,
156
- border-width: (
157
- $tooltip-arrow-width * 0.5,
158
- )
159
- 0
160
- (
161
- $tooltip-arrow-width * 0.5,
162
- )
163
- $tooltip-arrow-height,
164
- left: 0,
161
+ border-width: calc(#{$tooltip-arrow-width} * 0.5) 0
162
+ calc(#{$tooltip-arrow-width} * 0.5) $tooltip-arrow-height,
163
+ left: 0rem,
165
164
  ),
166
165
  ),
166
+
167
167
  tooltip-arrow: (
168
168
  border-bottom-color: transparent,
169
169
  border-left-color: transparent,
170
- right: 0,
170
+ right: 0rem,
171
171
  top: 50%,
172
172
  ),
173
173
  ),
@@ -181,7 +181,7 @@ $clay-tooltip-left-bottom: map-deep-merge(
181
181
  (
182
182
  arrow: (
183
183
  bottom: $tooltip-arrow-offset,
184
- margin-top: 0,
184
+ margin-top: 0rem,
185
185
  top: auto,
186
186
  ),
187
187
  ),
@@ -194,7 +194,7 @@ $clay-tooltip-left-top: () !default;
194
194
  $clay-tooltip-left-top: map-deep-merge(
195
195
  (
196
196
  arrow: (
197
- margin-top: 0,
197
+ margin-top: 0rem,
198
198
  top: $tooltip-arrow-offset,
199
199
  ),
200
200
  ),
@@ -207,29 +207,27 @@ $clay-tooltip-right: () !default;
207
207
  $clay-tooltip-right: map-deep-merge(
208
208
  (
209
209
  padding-left: $tooltip-arrow-height,
210
+
210
211
  arrow: (
211
212
  height: $tooltip-arrow-width,
212
- left: 0,
213
- margin-top: math-sign($tooltip-arrow-width * 0.5),
213
+ left: 0rem,
214
+ margin-top: calc(#{$tooltip-arrow-width} * -0.5),
214
215
  width: $tooltip-arrow-height,
215
216
  top: 50%,
217
+
216
218
  before: (
217
219
  border-right-color: $tooltip-arrow-color,
218
- border-width: (
219
- $tooltip-arrow-width * 0.5,
220
- )
221
- $tooltip-arrow-height
222
- (
223
- $tooltip-arrow-width * 0.5,
224
- )
225
- 0,
226
- right: 0,
220
+ border-width: calc(#{$tooltip-arrow-width} * 0.5)
221
+ $tooltip-arrow-height calc(#{$tooltip-arrow-width} * 0.5)
222
+ 0rem,
223
+ right: 0rem,
227
224
  ),
228
225
  ),
226
+
229
227
  tooltip-arrow: (
230
228
  border-right-color: transparent,
231
229
  border-top-color: transparent,
232
- left: 0,
230
+ left: 0rem,
233
231
  top: 50%,
234
232
  ),
235
233
  ),
@@ -243,7 +241,7 @@ $clay-tooltip-right-bottom: map-deep-merge(
243
241
  (
244
242
  arrow: (
245
243
  bottom: $tooltip-arrow-offset,
246
- margin-top: 0,
244
+ margin-top: 0rem,
247
245
  top: auto,
248
246
  ),
249
247
  ),
@@ -256,7 +254,7 @@ $clay-tooltip-right-top: () !default;
256
254
  $clay-tooltip-right-top: map-deep-merge(
257
255
  (
258
256
  arrow: (
259
- margin-top: 0,
257
+ margin-top: 0rem,
260
258
  top: $tooltip-arrow-offset,
261
259
  ),
262
260
  ),
@@ -269,24 +267,23 @@ $clay-tooltip-top: () !default;
269
267
  $clay-tooltip-top: map-deep-merge(
270
268
  (
271
269
  padding-bottom: $tooltip-arrow-height,
270
+
272
271
  arrow: (
273
- bottom: 0,
272
+ bottom: 0rem,
274
273
  left: 50%,
275
- margin-left: math-sign($tooltip-arrow-width * 0.5),
274
+ margin-left: calc(#{$tooltip-arrow-width} * -0.5),
276
275
  before: (
277
276
  border-top-color: $tooltip-arrow-color,
278
277
  border-width: $tooltip-arrow-height
279
- (
280
- $tooltip-arrow-width * 0.5,
281
- )
282
- 0,
283
- top: 0,
278
+ calc(#{$tooltip-arrow-width} * 0.5) 0rem,
279
+ top: 0rem,
284
280
  ),
285
281
  ),
282
+
286
283
  tooltip-arrow: (
287
284
  border-left-color: transparent,
288
285
  border-top-color: transparent,
289
- bottom: 0,
286
+ bottom: 0rem,
290
287
  left: 50%,
291
288
  ),
292
289
  ),
@@ -300,7 +297,7 @@ $clay-tooltip-top-left: map-deep-merge(
300
297
  (
301
298
  arrow: (
302
299
  left: $tooltip-arrow-offset,
303
- margin-left: 0,
300
+ margin-left: 0rem,
304
301
  ),
305
302
  ),
306
303
  $clay-tooltip-top-left
@@ -313,7 +310,7 @@ $clay-tooltip-top-right: map-deep-merge(
313
310
  (
314
311
  arrow: (
315
312
  left: auto,
316
- margin-left: 0,
313
+ margin-left: 0rem,
317
314
  right: $tooltip-arrow-offset,
318
315
  ),
319
316
  ),