fomantic-ui 2.9.4-beta.91 → 2.9.4-beta.93

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 (199) hide show
  1. package/.all-contributorsrc +9 -0
  2. package/.github/workflows/ci.yml +2 -2
  3. package/CONTRIBUTORS.md +3 -0
  4. package/dist/components/accordion.css +1 -1
  5. package/dist/components/accordion.js +1 -1
  6. package/dist/components/accordion.min.css +1 -1
  7. package/dist/components/accordion.min.js +1 -1
  8. package/dist/components/ad.css +1 -1
  9. package/dist/components/ad.min.css +1 -1
  10. package/dist/components/api.js +1 -1
  11. package/dist/components/api.min.js +1 -1
  12. package/dist/components/breadcrumb.css +1 -1
  13. package/dist/components/breadcrumb.min.css +1 -1
  14. package/dist/components/button.css +1 -1
  15. package/dist/components/button.min.css +1 -1
  16. package/dist/components/calendar.css +1 -1
  17. package/dist/components/calendar.js +1 -1
  18. package/dist/components/calendar.min.css +1 -1
  19. package/dist/components/calendar.min.js +1 -1
  20. package/dist/components/card.css +1 -1
  21. package/dist/components/card.min.css +1 -1
  22. package/dist/components/checkbox.css +1 -1
  23. package/dist/components/checkbox.js +1 -1
  24. package/dist/components/checkbox.min.css +1 -1
  25. package/dist/components/checkbox.min.js +1 -1
  26. package/dist/components/comment.css +1 -1
  27. package/dist/components/comment.min.css +1 -1
  28. package/dist/components/container.css +1 -1
  29. package/dist/components/container.min.css +1 -1
  30. package/dist/components/dimmer.css +1 -1
  31. package/dist/components/dimmer.js +1 -1
  32. package/dist/components/dimmer.min.css +1 -1
  33. package/dist/components/dimmer.min.js +1 -1
  34. package/dist/components/divider.css +1 -1
  35. package/dist/components/divider.min.css +1 -1
  36. package/dist/components/dropdown.css +1 -1
  37. package/dist/components/dropdown.js +1 -1
  38. package/dist/components/dropdown.min.css +1 -1
  39. package/dist/components/dropdown.min.js +1 -1
  40. package/dist/components/embed.css +1 -1
  41. package/dist/components/embed.js +1 -1
  42. package/dist/components/embed.min.css +1 -1
  43. package/dist/components/embed.min.js +1 -1
  44. package/dist/components/emoji.css +1 -1
  45. package/dist/components/emoji.min.css +1 -1
  46. package/dist/components/feed.css +1 -1
  47. package/dist/components/feed.min.css +1 -1
  48. package/dist/components/flag.css +1 -1
  49. package/dist/components/flag.min.css +1 -1
  50. package/dist/components/flyout.css +3 -3
  51. package/dist/components/flyout.js +1 -1
  52. package/dist/components/flyout.min.css +1 -1
  53. package/dist/components/flyout.min.js +1 -1
  54. package/dist/components/form.css +1 -1
  55. package/dist/components/form.js +1 -1
  56. package/dist/components/form.min.css +1 -1
  57. package/dist/components/form.min.js +1 -1
  58. package/dist/components/grid.css +1 -1
  59. package/dist/components/grid.min.css +1 -1
  60. package/dist/components/header.css +1 -1
  61. package/dist/components/header.min.css +1 -1
  62. package/dist/components/icon.css +1 -1
  63. package/dist/components/icon.min.css +1 -1
  64. package/dist/components/image.css +1 -1
  65. package/dist/components/image.min.css +1 -1
  66. package/dist/components/input.css +1 -1
  67. package/dist/components/input.min.css +1 -1
  68. package/dist/components/item.css +1 -1
  69. package/dist/components/item.min.css +1 -1
  70. package/dist/components/label.css +1 -1
  71. package/dist/components/label.min.css +1 -1
  72. package/dist/components/list.css +1 -1
  73. package/dist/components/list.min.css +1 -1
  74. package/dist/components/loader.css +1 -1
  75. package/dist/components/loader.min.css +1 -1
  76. package/dist/components/menu.css +1 -1
  77. package/dist/components/menu.min.css +1 -1
  78. package/dist/components/message.css +1 -1
  79. package/dist/components/message.min.css +1 -1
  80. package/dist/components/modal.css +3 -3
  81. package/dist/components/modal.js +1 -1
  82. package/dist/components/modal.min.css +1 -1
  83. package/dist/components/modal.min.js +1 -1
  84. package/dist/components/nag.css +1 -1
  85. package/dist/components/nag.js +1 -1
  86. package/dist/components/nag.min.css +1 -1
  87. package/dist/components/nag.min.js +1 -1
  88. package/dist/components/placeholder.css +1 -1
  89. package/dist/components/placeholder.min.css +1 -1
  90. package/dist/components/popup.css +1 -1
  91. package/dist/components/popup.js +1 -1
  92. package/dist/components/popup.min.css +1 -1
  93. package/dist/components/popup.min.js +1 -1
  94. package/dist/components/progress.css +1 -1
  95. package/dist/components/progress.js +1 -1
  96. package/dist/components/progress.min.css +1 -1
  97. package/dist/components/progress.min.js +1 -1
  98. package/dist/components/rail.css +1 -1
  99. package/dist/components/rail.min.css +1 -1
  100. package/dist/components/rating.css +1 -1
  101. package/dist/components/rating.js +1 -1
  102. package/dist/components/rating.min.css +1 -1
  103. package/dist/components/rating.min.js +1 -1
  104. package/dist/components/reset.css +1 -1
  105. package/dist/components/reset.min.css +1 -1
  106. package/dist/components/reveal.css +1 -1
  107. package/dist/components/reveal.min.css +1 -1
  108. package/dist/components/search.css +34 -23
  109. package/dist/components/search.js +12 -1
  110. package/dist/components/search.min.css +2 -2
  111. package/dist/components/search.min.js +2 -2
  112. package/dist/components/segment.css +1 -1
  113. package/dist/components/segment.min.css +1 -1
  114. package/dist/components/shape.css +1 -1
  115. package/dist/components/shape.js +1 -1
  116. package/dist/components/shape.min.css +1 -1
  117. package/dist/components/shape.min.js +1 -1
  118. package/dist/components/sidebar.css +1 -1
  119. package/dist/components/sidebar.js +1 -1
  120. package/dist/components/sidebar.min.css +1 -1
  121. package/dist/components/sidebar.min.js +1 -1
  122. package/dist/components/site.css +1 -1
  123. package/dist/components/site.js +1 -1
  124. package/dist/components/site.min.css +1 -1
  125. package/dist/components/site.min.js +1 -1
  126. package/dist/components/slider.css +1 -1
  127. package/dist/components/slider.js +1 -1
  128. package/dist/components/slider.min.css +1 -1
  129. package/dist/components/slider.min.js +1 -1
  130. package/dist/components/state.js +1 -1
  131. package/dist/components/state.min.js +1 -1
  132. package/dist/components/statistic.css +1 -1
  133. package/dist/components/statistic.min.css +1 -1
  134. package/dist/components/step.css +1 -1
  135. package/dist/components/step.min.css +1 -1
  136. package/dist/components/sticky.css +1 -1
  137. package/dist/components/sticky.js +1 -1
  138. package/dist/components/sticky.min.css +1 -1
  139. package/dist/components/sticky.min.js +1 -1
  140. package/dist/components/tab.css +1 -1
  141. package/dist/components/tab.js +1 -1
  142. package/dist/components/tab.min.css +1 -1
  143. package/dist/components/tab.min.js +1 -1
  144. package/dist/components/table.css +1 -1
  145. package/dist/components/table.min.css +1 -1
  146. package/dist/components/text.css +1 -1
  147. package/dist/components/text.min.css +1 -1
  148. package/dist/components/toast.css +1 -1
  149. package/dist/components/toast.js +1 -1
  150. package/dist/components/toast.min.css +1 -1
  151. package/dist/components/toast.min.js +1 -1
  152. package/dist/components/transition.css +1 -1
  153. package/dist/components/transition.js +1 -1
  154. package/dist/components/transition.min.css +1 -1
  155. package/dist/components/transition.min.js +1 -1
  156. package/dist/components/visibility.js +1 -1
  157. package/dist/components/visibility.min.js +1 -1
  158. package/dist/semantic.css +93 -78
  159. package/dist/semantic.js +37 -26
  160. package/dist/semantic.min.css +2 -2
  161. package/dist/semantic.min.js +2 -2
  162. package/package.json +1 -1
  163. package/src/definitions/collections/form.less +37 -24
  164. package/src/definitions/collections/grid.less +81 -66
  165. package/src/definitions/collections/menu.less +38 -27
  166. package/src/definitions/collections/table.less +114 -103
  167. package/src/definitions/elements/button.less +36 -24
  168. package/src/definitions/elements/container.less +6 -4
  169. package/src/definitions/elements/divider.less +4 -1
  170. package/src/definitions/elements/emoji.less +3 -1
  171. package/src/definitions/elements/header.less +7 -4
  172. package/src/definitions/elements/icon.less +35 -28
  173. package/src/definitions/elements/input.less +21 -13
  174. package/src/definitions/elements/label.less +14 -8
  175. package/src/definitions/elements/list.less +28 -21
  176. package/src/definitions/elements/loader.less +17 -12
  177. package/src/definitions/elements/segment.less +12 -7
  178. package/src/definitions/elements/step.less +95 -91
  179. package/src/definitions/modules/accordion.less +15 -13
  180. package/src/definitions/modules/calendar.less +6 -4
  181. package/src/definitions/modules/checkbox.less +12 -6
  182. package/src/definitions/modules/dimmer.less +10 -7
  183. package/src/definitions/modules/dropdown.less +68 -51
  184. package/src/definitions/modules/flyout.less +51 -45
  185. package/src/definitions/modules/modal.less +109 -82
  186. package/src/definitions/modules/nag.less +8 -4
  187. package/src/definitions/modules/popup.less +3 -1
  188. package/src/definitions/modules/progress.less +10 -4
  189. package/src/definitions/modules/search.js +11 -0
  190. package/src/definitions/modules/search.less +32 -23
  191. package/src/definitions/modules/slider.less +31 -24
  192. package/src/definitions/modules/toast.less +35 -24
  193. package/src/definitions/views/card.less +7 -5
  194. package/src/definitions/views/feed.less +3 -1
  195. package/src/definitions/views/item.less +7 -5
  196. package/src/themes/default/globals/variation.variables +14 -2
  197. package/src/themes/default/modules/search.variables +14 -14
  198. package/tasks/config/project/release.js +19 -1
  199. package/tasks/config/tasks.js +6 -6
@@ -17,6 +17,13 @@
17
17
 
18
18
  @import (multiple) "../../theme.config";
19
19
 
20
+ @notFullscreen: if(@variationModalFullscreen, e(":not(.fullscreen)"));
21
+ @notInside: if(@variationModalCloseInside, e(":not(.inside)"));
22
+ @notAligned: if(@variationModalAligned, e(":not(.aligned)"));
23
+ @notClose: if(@variationModalClose, e(":not(.close)"));
24
+
25
+ @notFluid: if(@variationButtonFluid, e(":not(.fluid)"));
26
+
20
27
  /*******************************
21
28
  Modal
22
29
  *******************************/
@@ -37,9 +44,9 @@
37
44
  outline: none;
38
45
  }
39
46
 
40
- .ui.modal > :first-child:not(.close):not(.dimmer),
47
+ .ui.modal > :first-child@{notClose}:not(.dimmer),
41
48
  .ui.modal > i.icon:first-child + *,
42
- .ui.modal > .dimmer:first-child + *:not(.close),
49
+ .ui.modal > .dimmer:first-child + *@{notClose},
43
50
  .ui.modal > .dimmer:first-child + i.icon + * {
44
51
  border-top-left-radius: @borderRadius;
45
52
  border-top-right-radius: @borderRadius;
@@ -58,27 +65,29 @@
58
65
  Content
59
66
  *******************************/
60
67
 
61
- /* --------------
62
- Close
63
- --------------- */
68
+ & when (@variationModalClose) {
69
+ /* --------------
70
+ Close
71
+ --------------- */
64
72
 
65
- .ui.modal > .close {
66
- cursor: pointer;
67
- position: absolute;
68
- top: @closeTop;
69
- right: @closeRight;
70
- z-index: 1;
71
- opacity: @closeOpacity;
72
- font-size: @closeSize;
73
- color: @closeColor;
74
- width: @closeHitbox;
75
- height: @closeHitbox;
76
- padding: @closePadding;
77
- }
78
- .ui.modal > .close:focus,
79
- .ui.modal > .close:hover {
80
- opacity: 1;
81
- outline: none;
73
+ .ui.modal > .close {
74
+ cursor: pointer;
75
+ position: absolute;
76
+ top: @closeTop;
77
+ right: @closeRight;
78
+ z-index: 1;
79
+ opacity: @closeOpacity;
80
+ font-size: @closeSize;
81
+ color: @closeColor;
82
+ width: @closeHitbox;
83
+ height: @closeHitbox;
84
+ padding: @closePadding;
85
+ }
86
+ .ui.modal > .close:focus,
87
+ .ui.modal > .close:hover {
88
+ opacity: 1;
89
+ outline: none;
90
+ }
82
91
  }
83
92
 
84
93
  /* --------------
@@ -172,7 +181,7 @@
172
181
  border-top: @actionBorder;
173
182
  text-align: @actionAlign;
174
183
  }
175
- .ui.modal .actions > .button:not(.fluid) {
184
+ .ui.modal .actions > .button@{notFluid} {
176
185
  margin-left: @buttonDistance;
177
186
  }
178
187
  .ui.ui.modal > .basic.actions,
@@ -182,7 +191,7 @@
182
191
  & when (@variationModalLeftActions) {
183
192
  .ui.modal > .left.actions {
184
193
  text-align: left;
185
- & > .button:not(.fluid) {
194
+ & > .button@{notFluid} {
186
195
  margin-left: @buttonLeftDistance;
187
196
  margin-right: @buttonLeftDistance;
188
197
  }
@@ -194,7 +203,7 @@
194
203
  .ui.modal > .centered,
195
204
  .ui.modal > .center.aligned {
196
205
  text-align: center;
197
- &.actions > .button:not(.fluid) when (@variationModalActions) {
206
+ &.actions > .button@{notFluid} when (@variationModalActions) {
198
207
  margin-left: @buttonCenteredDistance;
199
208
  margin-right: @buttonCenteredDistance;
200
209
  }
@@ -207,55 +216,62 @@
207
216
 
208
217
  /* Modal Width */
209
218
  @media only screen and (max-width: @largestMobileScreen) {
210
- .ui.modal:not(.fullscreen) {
219
+ .ui.modal@{notFullscreen} {
211
220
  width: @mobileWidth;
212
221
  margin: @mobileMargin;
213
222
  }
214
223
  }
215
224
  @media only screen and (min-width: @tabletBreakpoint) {
216
- .ui.modal:not(.fullscreen) {
225
+ .ui.modal@{notFullscreen} {
217
226
  width: @tabletWidth;
218
227
  margin: @tabletMargin;
219
228
  }
220
229
  }
221
230
  @media only screen and (min-width: @computerBreakpoint) {
222
- .ui.modal:not(.fullscreen) {
231
+ .ui.modal@{notFullscreen} {
223
232
  width: @computerWidth;
224
233
  margin: @computerMargin;
225
- & > .active.dimmer + .close:not(.inside) {
234
+ & > .active.dimmer + .close@{notInside} when (@variationModalClose) {
226
235
  pointer-events: none;
227
236
  opacity: @closeOpacityDimmed;
228
237
  }
229
238
  }
230
- .ui.dimmer > .ui.modal:not(.fullscreen) > .close:not(.inside) {
231
- text-shadow: @closeShadow;
232
- }
233
- .ui.inverted.dimmer > .ui.modal:not(.fullscreen) > .close:not(.inside) {
234
- text-shadow: @invertedCloseShadow;
239
+ & when (@variationModalClose) {
240
+ .ui.dimmer > .ui.modal@{notFullscreen} > .close@{notInside} {
241
+ text-shadow: @closeShadow;
242
+ }
243
+ & when (@variationDimmerInverted) {
244
+ .ui.inverted.dimmer > .ui.modal@{notFullscreen} > .close@{notInside} {
245
+ text-shadow: @invertedCloseShadow;
246
+ }
247
+ }
235
248
  }
236
249
  }
237
250
  @media only screen and (min-width: @largeMonitorBreakpoint) {
238
- .ui.modal:not(.fullscreen) {
251
+ .ui.modal@{notFullscreen} {
239
252
  width: @largeMonitorWidth;
240
253
  margin: @largeMonitorMargin;
241
254
  }
242
255
  }
243
256
  @media only screen and (min-width: @widescreenMonitorBreakpoint) {
244
- .ui.modal:not(.fullscreen) {
257
+ .ui.modal@{notFullscreen} {
245
258
  width: @widescreenMonitorWidth;
246
259
  margin: @widescreenMonitorMargin;
247
260
  }
248
261
  }
249
262
 
250
- /* Tablet and Mobile */
251
- @media only screen and (max-width: @largestTabletScreen) {
252
- .ui.modal > .close + .header {
253
- padding-right: @closeHitbox;
254
- }
255
- .ui.modal > .close {
256
- top: @innerCloseTop;
257
- right: @innerCloseRight;
258
- color: @innerCloseColor;
263
+ & when (@variationModalClose) {
264
+ /* Tablet and Mobile */
265
+ @media only screen and (max-width: @largestTabletScreen) {
266
+ .ui.modal > .close + .header {
267
+ padding-right: @closeHitbox;
268
+ }
269
+
270
+ .ui.modal > .close {
271
+ top: @innerCloseTop;
272
+ right: @innerCloseRight;
273
+ color: @innerCloseColor;
274
+ }
259
275
  }
260
276
  }
261
277
 
@@ -264,8 +280,10 @@
264
280
  .ui.modal > .header {
265
281
  padding: @mobileHeaderPadding;
266
282
  }
267
- .ui.modal > .close + .header {
268
- padding-right: @closeHitbox;
283
+ & when (@variationModalClose) {
284
+ .ui.modal > .close + .header {
285
+ padding-right: @closeHitbox;
286
+ }
269
287
  }
270
288
  .ui.overlay.fullscreen.modal > .content.content.content {
271
289
  min-height: @overlayFullscreenScrollingContentMaxHeightMobile;
@@ -277,9 +295,11 @@
277
295
  display: block;
278
296
  padding: @mobileContentPadding !important;
279
297
  }
280
- .ui.modal > .close {
281
- top: @mobileCloseTop !important;
282
- right: @mobileCloseRight !important;
298
+ & when (@variationModalClose) {
299
+ .ui.modal > .close {
300
+ top: @mobileCloseTop !important;
301
+ right: @mobileCloseRight !important;
302
+ }
283
303
  }
284
304
 
285
305
  /* rtl:ignore */
@@ -351,10 +371,12 @@
351
371
  color: @basicModalHeaderColor;
352
372
  border-bottom: none;
353
373
  }
354
- .ui.basic.modal > .close {
355
- top: @basicModalCloseTop;
356
- right: @basicModalCloseRight;
357
- color: @basicInnerCloseColor;
374
+ & when (@variationModalClose) {
375
+ .ui.basic.modal > .close {
376
+ top: @basicModalCloseTop;
377
+ right: @basicModalCloseRight;
378
+ color: @basicInnerCloseColor;
379
+ }
358
380
  }
359
381
  .ui.inverted.dimmer > .basic.modal {
360
382
  color: @basicInvertedModalColor;
@@ -370,14 +392,14 @@
370
392
  .ui.legacy.legacy.page.dimmer > .ui.modal {
371
393
  left: 50% !important;
372
394
  }
373
- .ui.legacy.legacy.modal:not(.aligned),
374
- .ui.legacy.legacy.page.dimmer > .ui.modal:not(.aligned) {
395
+ .ui.legacy.legacy.modal@{notAligned},
396
+ .ui.legacy.legacy.page.dimmer > .ui.modal@{notAligned} {
375
397
  top: 50%;
376
398
  }
377
- .ui.legacy.legacy.page.dimmer > .ui.scrolling.modal:not(.aligned),
378
- .ui.page.dimmer > .ui.scrolling.legacy.legacy.modal:not(.aligned),
379
- .ui.top.aligned.legacy.legacy.page.dimmer > .ui.modal:not(.aligned),
380
- .ui.top.aligned.dimmer > .ui.legacy.legacy.modal:not(.aligned) {
399
+ .ui.legacy.legacy.page.dimmer > .ui.scrolling.modal@{notAligned},
400
+ .ui.page.dimmer > .ui.scrolling.legacy.legacy.modal@{notAligned},
401
+ .ui.top.aligned.legacy.legacy.page.dimmer > .ui.modal@{notAligned},
402
+ .ui.top.aligned.dimmer > .ui.legacy.legacy.modal@{notAligned} {
381
403
  top: auto;
382
404
  }
383
405
  & when (@variationModalOverlay) {
@@ -450,7 +472,7 @@
450
472
  .modals.dimmer .ui.scrolling.modal.fullscreen {
451
473
  top: 0;
452
474
  }
453
- .modals.dimmer .ui.scrolling.modal:not(.fullscreen) {
475
+ .modals.dimmer .ui.scrolling.modal@{notFullscreen} {
454
476
  margin: @scrollingMargin auto;
455
477
  top: @scrollingTop;
456
478
  }
@@ -470,7 +492,7 @@
470
492
  .scrolling.undetached.dimmable.dimmed > .dimmer {
471
493
  overflow: hidden;
472
494
  }
473
- .scrolling.undetached.dimmable .ui.scrolling.modal:not(.fullscreen) {
495
+ .scrolling.undetached.dimmable .ui.scrolling.modal@{notFullscreen} {
474
496
  position: absolute;
475
497
  left: 50%;
476
498
  }
@@ -517,19 +539,21 @@
517
539
  border-radius: 0;
518
540
  }
519
541
  }
520
- .ui.modal > .close.inside + .header:not(.centered):not(.center):not(.icon),
521
- .ui.fullscreen.modal > .close + .header:not(.centered):not(.center):not(.icon) {
522
- padding-right: @closeHitbox;
523
- }
524
- .ui.modal > .close.inside,
525
- .ui.fullscreen.modal > .close {
526
- top: @innerCloseTop;
527
- right: @innerCloseRight;
528
- color: @innerCloseColor;
529
- }
530
- & when (@variationModalBasic) {
531
- .ui.basic.fullscreen.modal > .close {
532
- color: @basicInnerCloseColor;
542
+ & when (@variationModalClose) {
543
+ .ui.modal > .close.inside + .header:not(.centered):not(.center):not(.icon),
544
+ .ui.fullscreen.modal > .close + .header:not(.centered):not(.center):not(.icon) {
545
+ padding-right: @closeHitbox;
546
+ }
547
+ .ui.modal > .close.inside,
548
+ .ui.fullscreen.modal > .close {
549
+ top: @innerCloseTop;
550
+ right: @innerCloseRight;
551
+ color: @innerCloseColor;
552
+ }
553
+ & when (@variationModalBasic) {
554
+ .ui.basic.fullscreen.modal > .close {
555
+ color: @basicInnerCloseColor;
556
+ }
533
557
  }
534
558
  }
535
559
  }
@@ -611,14 +635,17 @@
611
635
  color: @invertedActionColor;
612
636
  }
613
637
  }
638
+ & when (@variationModalClose) {
639
+ & when (@variationDimmerInverted) {
640
+ .ui.inverted.dimmer > .modal > .close {
641
+ color: @invertedDimmerCloseColor;
642
+ }
643
+ }
614
644
 
615
- .ui.inverted.dimmer > .modal > .close {
616
- color: @invertedDimmerCloseColor;
617
- }
618
-
619
- @media only screen and (max-width: @largestTabletScreen) {
620
- .ui.dimmer .inverted.modal > .close {
621
- color: @invertedCloseColor;
645
+ @media only screen and (max-width: @largestTabletScreen) {
646
+ .ui.dimmer .inverted.modal > .close {
647
+ color: @invertedCloseColor;
648
+ }
622
649
  }
623
650
  }
624
651
  & when (@variationModalFullscreen) or (@variationModalCloseInside) {
@@ -17,6 +17,10 @@
17
17
 
18
18
  @import (multiple) "../../theme.config";
19
19
 
20
+ @notBottom: if(@variationNagBottom, e(":not(.bottom)"));
21
+ @notFixed: if(@variationNagFixed, e(":not(.fixed)"));
22
+ @notOverlay: if(@variationNagOverlay, e(":not(.overlay)"));
23
+
20
24
  /*******************************
21
25
  Nag
22
26
  *******************************/
@@ -63,7 +67,7 @@ a.ui.nag {
63
67
  transition: @closeTransition;
64
68
  }
65
69
 
66
- .ui.nag:not(.overlay):not(.fixed) {
70
+ .ui.nag@{notOverlay}@{notFixed} {
67
71
  border-radius: @borderRadius;
68
72
  }
69
73
 
@@ -192,7 +196,7 @@ a.ui.nag {
192
196
  .ui.ui.nags .nag {
193
197
  border-radius: @groupedBorderRadius;
194
198
  }
195
- .ui.nags:not(.bottom) .nag:last-child {
199
+ .ui.nags@{notBottom} .nag:last-child {
196
200
  border-radius: @topBorderRadius;
197
201
  }
198
202
  & when(@variationNagBottom) {
@@ -200,10 +204,10 @@ a.ui.nag {
200
204
  border-radius: @bottomBorderRadius;
201
205
  }
202
206
  }
203
- .ui.nags:not(.fixed):not(.overlay) .nag:first-child {
207
+ .ui.nags@{notFixed}@{notOverlay} .nag:first-child {
204
208
  border-radius: @bottomBorderRadius;
205
209
  }
206
- .ui.nags:not(.fixed):not(.overlay) .nag:only-child {
210
+ .ui.nags@{notFixed}@{notOverlay} .nag:only-child {
207
211
  border-radius: @borderRadius;
208
212
  }
209
213
  }
@@ -17,6 +17,8 @@
17
17
 
18
18
  @import (multiple) "../../theme.config";
19
19
 
20
+ @notPadded: if(@variationGridPadded, e(":not(.padded)"));
21
+
20
22
  /*******************************
21
23
  Popup
22
24
  *******************************/
@@ -696,7 +698,7 @@
696
698
  *******************************/
697
699
 
698
700
  /* Immediate Nested Grid */
699
- .ui.ui.ui.popup > .ui.grid:not(.padded) {
701
+ .ui.ui.ui.popup > .ui.grid@{notPadded} {
700
702
  width: @nestedGridWidth;
701
703
  margin: @nestedGridMargin;
702
704
  }
@@ -17,6 +17,12 @@
17
17
 
18
18
  @import (multiple) "../../theme.config";
19
19
 
20
+ @notIndeterminate: if(@variationProgressIndeterminate, e(":not(.indeterminate)"));
21
+ @notSliding: if(@variationProgressSliding, e(":not(.sliding)"));
22
+ @notFilling: if(@variationProgressFilling, e(":not(.filling)"));
23
+ @notSwinging: if(@variationProgressSwinging, e(":not(.swinging)"));
24
+ @notBasic: if(@variationProgressBasic, e(":not(.basic)"));
25
+
20
26
  /*******************************
21
27
  Progress
22
28
  *******************************/
@@ -66,8 +72,8 @@
66
72
  min-width: @barMinWidth;
67
73
  }
68
74
  }
69
- .ui.ui.ui.progress:not([data-percent]):not(.indeterminate) .bar:not(:empty),
70
- .ui.ui.ui.progress[data-percent="0"]:not(.indeterminate) .bar:not(:empty) {
75
+ .ui.ui.ui.progress:not([data-percent])@{notIndeterminate} .bar:not(:empty),
76
+ .ui.ui.ui.progress[data-percent="0"]@{notIndeterminate} .bar:not(:empty) {
71
77
  background: transparent;
72
78
  }
73
79
  .ui.progress[data-percent="0"] .bar .progress {
@@ -396,7 +402,7 @@
396
402
  Inverted
397
403
  --------------- */
398
404
 
399
- .ui.inverted.progress:not(.basic) {
405
+ .ui.inverted.progress@{notBasic} {
400
406
  background: @invertedBackground;
401
407
  border: @invertedBorder;
402
408
  }
@@ -573,7 +579,7 @@
573
579
  animation-name: progress-filling;
574
580
  }
575
581
  }
576
- .ui.indeterminate.progress:not(.sliding):not(.filling):not(.swinging) .bar::before {
582
+ .ui.indeterminate.progress@{notSliding}@{notFilling}@{notSwinging} .bar::before {
577
583
  background: @indeterminatePulseColor;
578
584
  }
579
585
  & when (@variationProgressSliding) or (@variationProgressSwinging) or (@variationProgressFilling) {
@@ -126,6 +126,7 @@
126
126
  .on('mousedown' + eventNamespace, selector.results, module.event.result.mousedown)
127
127
  .on('mouseup' + eventNamespace, selector.results, module.event.result.mouseup)
128
128
  .on('click' + eventNamespace, selector.result, module.event.result.click)
129
+ .on('click' + eventNamespace, selector.remove, module.event.remove.click)
129
130
  ;
130
131
  },
131
132
  },
@@ -201,6 +202,12 @@
201
202
  callback();
202
203
  }
203
204
  },
205
+ remove: {
206
+ click: function () {
207
+ module.clear.value();
208
+ $prompt.trigger('focus');
209
+ },
210
+ },
204
211
  result: {
205
212
  mousedown: function () {
206
213
  module.resultsClicked = true;
@@ -837,6 +844,9 @@
837
844
  $module.data(metadata.cache, cache);
838
845
  }
839
846
  },
847
+ value: function () {
848
+ module.set.value('');
849
+ },
840
850
  },
841
851
 
842
852
  read: {
@@ -1456,6 +1466,7 @@
1456
1466
 
1457
1467
  selector: {
1458
1468
  prompt: '.prompt',
1469
+ remove: '> .icon.input > .remove.icon',
1459
1470
  searchButton: '.search.button',
1460
1471
  results: '.results',
1461
1472
  message: '.results > .message',
@@ -271,37 +271,46 @@
271
271
  Types
272
272
  *******************************/
273
273
 
274
- & when (@variationSearchSelection) {
274
+ & when (@variationSearchClear) {
275
275
  /* --------------
276
- Selection
276
+ Clear Icon
277
277
  --------------- */
278
278
 
279
- .ui.search.selection .prompt {
280
- border-radius: @selectionPromptBorderRadius;
279
+ .ui.search > .icon.input > .remove.icon {
280
+ pointer-events: all;
281
+ transition: @clearableIconTransition;
282
+ cursor: pointer;
283
+ opacity: @clearableIconOpacity;
284
+ &:hover {
285
+ opacity: @clearableIconHoverOpacity;
286
+ }
281
287
  }
282
-
283
- /* Remove input */
284
- .ui.search.selection > .icon.input > .remove.icon {
285
- pointer-events: none;
286
- position: absolute;
287
- left: auto;
288
- opacity: 0;
289
- color: @selectionCloseIconColor;
290
- top: @selectionCloseTop;
291
- right: @selectionCloseRight;
292
- transition: @selectionCloseTransition;
288
+ .ui.search > .icon.input:not([class*="left icon"]) > .icon ~ .remove.icon {
289
+ right: @clearableIconInputRight;
293
290
  }
294
- .ui.search.selection > .icon.input > .active.remove.icon {
291
+ .ui.search input[type="search"]::-webkit-search-cancel-button {
292
+ -webkit-appearance: none;
295
293
  cursor: pointer;
296
- opacity: @selectionCloseIconOpacity;
297
- pointer-events: auto;
294
+ transition: @clearableIconTransition;
295
+ opacity: @clearableIconOpacity;
296
+ background: @clearableIconBackground;
297
+ height: @clearableIconHeight;
298
+ width: @clearableIconWidth;
299
+ &:hover {
300
+ opacity: @clearableIconHoverOpacity;
301
+ }
302
+ }
303
+ & when (@variationSearchLoading) {
304
+ .ui.loading.search input[type="search"]::-webkit-search-cancel-button {
305
+ display: none;
306
+ }
298
307
  }
299
- .ui.search.selection > .icon.input:not([class*="left icon"]) > .icon ~ .remove.icon {
300
- right: @selectionCloseIconInputRight;
308
+ .ui.search > .icon.input > input:placeholder-shown ~ .remove.icon,
309
+ .ui.search.loading > .icon.input > .remove.icon {
310
+ display: none;
301
311
  }
302
- .ui.search.selection > .icon.input > .remove.icon:hover {
303
- opacity: @selectionCloseIconHoverOpacity;
304
- color: @selectionCloseIconHoverColor;
312
+ .ui.search > .icon.input > input:-ms-input-placeholder ~ .remove.icon when (@supportIE) {
313
+ display: none;
305
314
  }
306
315
  }
307
316