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,8 @@
17
17
 
18
18
  @import (multiple) "../../theme.config";
19
19
 
20
+ @notDisabled: if(@variationEmojiDisabled, e(":not(.disabled)"));
21
+
20
22
  /*******************************
21
23
  Emoji
22
24
  *******************************/
@@ -63,7 +65,7 @@ em[data-emoji]::before {
63
65
  Link
64
66
  -------------------- */
65
67
 
66
- em[data-emoji].link:not(.disabled) {
68
+ em[data-emoji].link@{notDisabled} {
67
69
  cursor: pointer;
68
70
  }
69
71
  }
@@ -17,6 +17,9 @@
17
17
 
18
18
  @import (multiple) "../../theme.config";
19
19
 
20
+ @notCenteredAligned: if(@variationHeaderAligned, e(":not(.centered):not(.aligned)"));
21
+ @notIcon: if(@variationHeaderIcon, e(":not(.icon)"));
22
+
20
23
  /*******************************
21
24
  Header
22
25
  *******************************/
@@ -70,8 +73,8 @@
70
73
  }
71
74
 
72
75
  /* With Text Node */
73
- .ui.header:not(.icon) > .icons:only-child,
74
- .ui.header:not(.icon) > i.icon:only-child {
76
+ .ui.header@{notIcon} > .icons:only-child,
77
+ .ui.header@{notIcon} > i.icon:only-child {
75
78
  display: inline-block;
76
79
  padding: 0;
77
80
  margin-right: @iconMargin;
@@ -111,8 +114,8 @@
111
114
  }
112
115
 
113
116
  /* After Icon */
114
- .ui.header:not(.icon):not(.centered):not(.aligned) > .icons + .content,
115
- .ui.header:not(.icon):not(.centered):not(.aligned) > i.icon + .content {
117
+ .ui.header@{notIcon}@{notCenteredAligned} > .icons + .content,
118
+ .ui.header@{notIcon}@{notCenteredAligned} > i.icon + .content {
116
119
  padding-left: @iconMargin;
117
120
  display: table-cell;
118
121
  vertical-align: @contentIconAlignment;
@@ -17,6 +17,13 @@
17
17
 
18
18
  @import (multiple) "../../theme.config";
19
19
 
20
+ @notDisabled: if(@variationIconDisabled, e(":not(.disabled)"));
21
+ @notCorner: if(@variationIconCorner, e(":not(.corner)"));
22
+ @notRotated: if(@variationIconRotated, e(":not(.rotated)"));
23
+ @notFlipped: if(@variationIconFlipped, e(":not(.flipped)"));
24
+ @notBordered: if(@variationIconBordered, e(":not(.bordered)"));
25
+ @notCircular: if(@variationIconCircular, e(":not(.circular)"));
26
+
20
27
  /*******************************
21
28
  Icon
22
29
  *******************************/
@@ -78,8 +85,8 @@ i.icon:hover,
78
85
  i.icons:hover,
79
86
  i.icon:active,
80
87
  i.icons:active,
81
- i.emphasized.icon:not(.disabled),
82
- i.emphasized.icons:not(.disabled) {
88
+ i.emphasized.icon@{notDisabled},
89
+ i.emphasized.icons@{notDisabled} {
83
90
  opacity: 1;
84
91
  }
85
92
 
@@ -113,8 +120,8 @@ i.emphasized.icons:not(.disabled) {
113
120
  Link
114
121
  -------------------- */
115
122
 
116
- i.link.icon:not(.disabled),
117
- i.link.icons:not(.disabled) {
123
+ i.link.icon@{notDisabled},
124
+ i.link.icons@{notDisabled} {
118
125
  cursor: pointer;
119
126
  opacity: @linkOpacity;
120
127
  transition: opacity @defaultDuration @defaultEasing;
@@ -163,11 +170,11 @@ i.emphasized.icons:not(.disabled) {
163
170
  }
164
171
 
165
172
  & when (@variationIconGroups) {
166
- .icons i.flipped.icon:not(.corner):not(:first-child),
167
- .icons i.horizontally.flipped.icon:not(.corner):not(:first-child) {
173
+ .icons i.flipped.icon@{notCorner}:not(:first-child),
174
+ .icons i.horizontally.flipped.icon@{notCorner}:not(:first-child) {
168
175
  transform: translateX(-50%) translateY(-50%) scale(-1, 1);
169
176
  }
170
- .icons i.vertically.flipped.icon:not(.corner):not(:first-child) {
177
+ .icons i.vertically.flipped.icon@{notCorner}:not(:first-child) {
171
178
  transform: translateX(-50%) translateY(-50%) scale(1, -1);
172
179
  }
173
180
  }
@@ -194,16 +201,16 @@ i.emphasized.icons:not(.disabled) {
194
201
  }
195
202
 
196
203
  & when (@variationIconGroups) {
197
- .icons i.rotated.rotated.icon:not(.corner):not(:first-child),
198
- .icons i.right.rotated.icon:not(.corner):not(:first-child),
199
- .icons i.clockwise.rotated.icon:not(.corner):not(:first-child) {
204
+ .icons i.rotated.rotated.icon@{notCorner}:not(:first-child),
205
+ .icons i.right.rotated.icon@{notCorner}:not(:first-child),
206
+ .icons i.clockwise.rotated.icon@{notCorner}:not(:first-child) {
200
207
  transform: translateX(-50%) translateY(-50%) rotate(90deg);
201
208
  }
202
- .icons i.left.rotated.icon:not(.corner):not(:first-child),
203
- .icons i.counterclockwise.rotated.icon:not(.corner):not(:first-child) {
209
+ .icons i.left.rotated.icon@{notCorner}:not(:first-child),
210
+ .icons i.counterclockwise.rotated.icon@{notCorner}:not(:first-child) {
204
211
  transform: translateX(-50%) translateY(-50%) rotate(-90deg);
205
212
  }
206
- .icons i.halfway.rotated.icon:not(.corner):not(:first-child) {
213
+ .icons i.halfway.rotated.icon@{notCorner}:not(:first-child) {
207
214
  transform: translateX(-50%) translateY(-50%) rotate(180deg);
208
215
  }
209
216
  }
@@ -245,28 +252,28 @@ i.emphasized.icons:not(.disabled) {
245
252
  }
246
253
 
247
254
  & when (@variationIconGroups) {
248
- .icons i.rotated.flipped.icon:not(.corner):not(:first-child),
249
- .icons i.right.rotated.flipped.icon:not(.corner):not(:first-child),
250
- .icons i.clockwise.rotated.flipped.icon:not(.corner):not(:first-child) {
255
+ .icons i.rotated.flipped.icon@{notCorner}:not(:first-child),
256
+ .icons i.right.rotated.flipped.icon@{notCorner}:not(:first-child),
257
+ .icons i.clockwise.rotated.flipped.icon@{notCorner}:not(:first-child) {
251
258
  transform: translateX(-50%) translateY(-50%) scale(-1, 1) rotate(90deg);
252
259
  }
253
- .icons i.left.rotated.flipped.icon:not(.corner):not(:first-child),
254
- .icons i.counterclockwise.rotated.flipped.icon:not(.corner):not(:first-child) {
260
+ .icons i.left.rotated.flipped.icon@{notCorner}:not(:first-child),
261
+ .icons i.counterclockwise.rotated.flipped.icon@{notCorner}:not(:first-child) {
255
262
  transform: translateX(-50%) translateY(-50%) scale(-1, 1) rotate(-90deg);
256
263
  }
257
- .icons i.halfway.rotated.flipped.icon:not(.corner):not(:first-child) {
264
+ .icons i.halfway.rotated.flipped.icon@{notCorner}:not(:first-child) {
258
265
  transform: translateX(-50%) translateY(-50%) scale(-1, 1) rotate(180deg);
259
266
  }
260
- .icons i.rotated.vertically.flipped.icon:not(.corner):not(:first-child),
261
- .icons i.right.rotated.vertically.flipped.icon:not(.corner):not(:first-child),
262
- .icons i.clockwise.rotated.vertically.flipped.icon:not(.corner):not(:first-child) {
267
+ .icons i.rotated.vertically.flipped.icon@{notCorner}:not(:first-child),
268
+ .icons i.right.rotated.vertically.flipped.icon@{notCorner}:not(:first-child),
269
+ .icons i.clockwise.rotated.vertically.flipped.icon@{notCorner}:not(:first-child) {
263
270
  transform: translateX(-50%) translateY(-50%) scale(1, -1) rotate(90deg);
264
271
  }
265
- .icons i.left.rotated.vertically.flipped.icon:not(.corner):not(:first-child),
266
- .icons i.counterclockwise.rotated.vertically.flipped.icon:not(.corner):not(:first-child) {
272
+ .icons i.left.rotated.vertically.flipped.icon@{notCorner}:not(:first-child),
273
+ .icons i.counterclockwise.rotated.vertically.flipped.icon@{notCorner}:not(:first-child) {
267
274
  transform: translateX(-50%) translateY(-50%) scale(1, -1) rotate(-90deg);
268
275
  }
269
- .icons i.halfway.rotated.vertically.flipped.icon:not(.corner):not(:first-child) {
276
+ .icons i.halfway.rotated.vertically.flipped.icon@{notCorner}:not(:first-child) {
270
277
  transform: translateX(-50%) translateY(-50%) scale(1, -1) rotate(180deg);
271
278
  }
272
279
  }
@@ -383,7 +390,7 @@ i.icons {
383
390
  top: 50%;
384
391
  left: 50%;
385
392
  margin: 0;
386
- &:not(.corner):not(.rotated):not(.flipped) {
393
+ &@{notCorner}@{notRotated}@{notFlipped} {
387
394
  transform: translateX(-50%) translateY(-50%);
388
395
  }
389
396
  }
@@ -394,7 +401,7 @@ i.icons {
394
401
  height: auto;
395
402
  vertical-align: top;
396
403
  }
397
- i.icons:not(.bordered):not(.circular) .icon:first-child:not(.rotated):not(.flipped) {
404
+ i.icons@{notBordered}@{notCircular} .icon:first-child@{notRotated}@{notFlipped} {
398
405
  transform: none;
399
406
  }
400
407
 
@@ -407,7 +414,7 @@ i.icons {
407
414
  bottom: @cornerOffset;
408
415
  font-size: @cornerIconSize;
409
416
  text-shadow: @cornerIconShadow;
410
- &:not(.rotated):not(.flipped) {
417
+ &@{notRotated}@{notFlipped} {
411
418
  transform: none;
412
419
  }
413
420
  }
@@ -17,6 +17,14 @@
17
17
 
18
18
  @import (multiple) "../../theme.config";
19
19
 
20
+ @notCorner: if(@variationInputCorner, e(":not(.corner)"));
21
+ @notAction: if(@variationInputAction, e(":not(.action)"));
22
+ @notDisabled: if(@variationInputDisabled, e(":not(.disabled)"));
23
+
24
+ @notBasic: if(@variationButtonBasic, e(":not(.basic)"));
25
+ @notTertiary: if(@variationButtonTertiary, e(":not(.tertiary)"));
26
+ @notLink: if(@variationIconLink, e(":not(.link)"));
27
+
20
28
  /*******************************
21
29
  Standard
22
30
  *******************************/
@@ -83,12 +91,12 @@
83
91
  --------------------- */
84
92
 
85
93
  .ui.disabled.input,
86
- .ui.input:not(.disabled) input[disabled] {
94
+ .ui.input@{notDisabled} input[disabled] {
87
95
  opacity: @disabledOpacity;
88
96
  }
89
97
 
90
98
  .ui.disabled.input > input,
91
- .ui.input:not(.disabled) input[disabled] {
99
+ .ui.input@{notDisabled} input[disabled] {
92
100
  pointer-events: @disabledPointerEvents;
93
101
  }
94
102
  }
@@ -275,11 +283,11 @@
275
283
  border-radius: 0 @borderRadius @borderRadius 0;
276
284
  transition: @iconTransition;
277
285
  }
278
- .ui.icon.input > i.icon:not(.link) {
286
+ .ui.icon.input > i.icon@{notLink} {
279
287
  pointer-events: none;
280
288
  }
281
- .ui.ui.ui.ui.icon.input:not(.corner) > textarea,
282
- .ui.ui.ui.ui.icon.input:not(.corner) > input {
289
+ .ui.ui.ui.ui.icon.input@{notCorner} > textarea,
290
+ .ui.ui.ui.ui.icon.input@{notCorner} > input {
283
291
  padding-right: @iconMargin;
284
292
  }
285
293
 
@@ -314,8 +322,8 @@
314
322
  .ui.ui.ui.ui[class*="left icon"]:not([class*="left corner"]).input > input {
315
323
  padding-left: @iconMargin;
316
324
  }
317
- .ui.ui.ui.ui[class*="left icon"]:not(.corner).input > textarea,
318
- .ui.ui.ui.ui[class*="left icon"]:not(.corner).input > input {
325
+ .ui.ui.ui.ui[class*="left icon"]@{notCorner}.input > textarea,
326
+ .ui.ui.ui.ui[class*="left icon"]@{notCorner}.input > input {
319
327
  padding-right: @horizontalPadding;
320
328
  }
321
329
 
@@ -338,7 +346,7 @@
338
346
  margin: 0;
339
347
  font-size: @relativeMedium;
340
348
  }
341
- .ui.labeled.input > .label:not(.corner) {
349
+ .ui.labeled.input > .label@{notCorner} {
342
350
  padding-top: @verticalPadding;
343
351
  padding-bottom: @verticalPadding;
344
352
  }
@@ -639,7 +647,7 @@
639
647
  }
640
648
 
641
649
  .ui.form .field > input[type="file"],
642
- .ui.file.input:not(.action) input[type="file"] {
650
+ .ui.file.input@{notAction} input[type="file"] {
643
651
  padding: 0;
644
652
  }
645
653
 
@@ -720,8 +728,8 @@
720
728
  position: absolute;
721
729
  }
722
730
 
723
- input[type="file"].ui.file.input:focus + label.ui.button:not(.basic):not(.tertiary),
724
- .ui.file.input input[type="file"]:focus + label.ui.button:not(.basic):not(.tertiary) {
731
+ input[type="file"].ui.file.input:focus + label.ui.button@{notBasic}@{notTertiary},
732
+ .ui.file.input input[type="file"]:focus + label.ui.button@{notBasic}@{notTertiary} {
725
733
  background: @fileButtonBackgroundHover;
726
734
  color: @hoveredTextColor;
727
735
  &.inverted {
@@ -736,8 +744,8 @@
736
744
  @h: @colors[@@color][hover];
737
745
  @lh: @colors[@@color][lightHover];
738
746
 
739
- input[type="file"].ui.file.input:focus + label.ui.@{color}.button:not(.basic):not(.tertiary),
740
- .ui.file.input input[type="file"]:focus + label.ui.@{color}.button:not(.basic):not(.tertiary) {
747
+ input[type="file"].ui.file.input:focus + label.ui.@{color}.button@{notBasic}@{notTertiary},
748
+ .ui.file.input input[type="file"]:focus + label.ui.@{color}.button@{notBasic}@{notTertiary} {
741
749
  background-color: @h;
742
750
  color: @white;
743
751
  &.inverted when (@variationButtonInverted) {
@@ -17,6 +17,12 @@
17
17
 
18
18
  @import (multiple) "../../theme.config";
19
19
 
20
+ @notTag: if(@variationLabelTag, e(":not(.tag)"));
21
+ @notImage: if(@variationLabelImage, e(":not(.image)"));
22
+ @notRibbon: if(@variationLabelRibbon, e(":not(.ribbon)"));
23
+
24
+ @notBasic: if(@variationSegmentBasic, e(":not(.basic)"));
25
+
20
26
  /*******************************
21
27
  Label
22
28
  *******************************/
@@ -164,19 +170,19 @@ a.ui.label {
164
170
  margin-bottom: @attachedSegmentPadding !important;
165
171
  }
166
172
 
167
- .ui.segment:not(.basic) > .ui.top.attached.label {
173
+ .ui.segment@{notBasic} > .ui.top.attached.label {
168
174
  margin-top: @attachedOffset;
169
175
  }
170
- .ui.segment:not(.basic) > .ui.bottom.attached.label {
176
+ .ui.segment@{notBasic} > .ui.bottom.attached.label {
171
177
  margin-bottom: @attachedOffset;
172
178
  }
173
- .ui.segment:not(.basic) > .ui.attached.label:not(.right) {
179
+ .ui.segment@{notBasic} > .ui.attached.label:not(.right) {
174
180
  margin-left: @attachedOffset;
175
181
  }
176
- .ui.segment:not(.basic) > .ui.right.attached.label {
182
+ .ui.segment@{notBasic} > .ui.right.attached.label {
177
183
  margin-right: @attachedOffset;
178
184
  }
179
- .ui.segment:not(.basic) > .ui.attached.label:not(.left):not(.right) {
185
+ .ui.segment@{notBasic} > .ui.attached.label:not(.left):not(.right) {
180
186
  width: @attachedWidthOffset;
181
187
  }
182
188
 
@@ -196,7 +202,7 @@ a.ui.label {
196
202
  padding: @imageLabelPadding;
197
203
  border-radius: @imageLabelBorderRadius;
198
204
  box-shadow: @imageLabelBoxShadow;
199
- &.attached:not(.basic) when (@variationLabelAttached) {
205
+ &.attached@{notBasic} when (@variationLabelAttached) {
200
206
  padding: @imageLabelPadding;
201
207
  }
202
208
  }
@@ -642,8 +648,8 @@ a.ui.active.label:hover::before {
642
648
  padding-bottom: @basicVerticalPadding;
643
649
  padding-right: @basicHorizontalPadding;
644
650
  }
645
- .ui.basic.labels:not(.tag):not(.image):not(.ribbon) .label,
646
- .ui.basic.label:not(.tag):not(.image):not(.ribbon) {
651
+ .ui.basic.labels@{notTag}@{notImage}@{notRibbon} .label,
652
+ .ui.basic.label@{notTag}@{notImage}@{notRibbon} {
647
653
  padding-left: @basicHorizontalPadding;
648
654
  }
649
655
  & when (@variationLabelImage) {
@@ -17,6 +17,13 @@
17
17
 
18
18
  @import (multiple) "../../theme.config";
19
19
 
20
+ @notSelection: if(@variationListSelection, e(":not(.selection)"));
21
+ @notIcon: if(@variationListIcon, e(":not(.icon)"));
22
+ @notHorizontal: if(@variationListHorizontal, e(":not(.horizontal)"));
23
+ @notCelled: if(@variationListCelled, e(":not(.celled)"));
24
+
25
+ @notLoading: if(@variationIconLoading, e(":not(.loading)"));
26
+
20
27
  /*******************************
21
28
  List
22
29
  *******************************/
@@ -87,7 +94,7 @@ ol.ui.list li:last-child,
87
94
  /* Child List */
88
95
  ul.ui.list ul,
89
96
  ol.ui.list ol,
90
- .ui.list .list:not(.icon) {
97
+ .ui.list .list@{notIcon} {
91
98
  clear: both;
92
99
  margin: 0;
93
100
  padding: @childListPadding;
@@ -110,7 +117,7 @@ ol.ui.list ol li,
110
117
  margin: 0;
111
118
  padding-top: @iconOffset;
112
119
  transition: @iconTransition;
113
- &:not(.loading) {
120
+ &@{notLoading} {
114
121
  padding-right: @iconDistance;
115
122
  vertical-align: @iconContentVerticalAlign;
116
123
  }
@@ -312,11 +319,11 @@ ol.ui.list ol li,
312
319
  margin-right: @horizontalSpacing;
313
320
  font-size: 1rem;
314
321
  }
315
- .ui.horizontal.list:not(.celled) > .item:last-child {
322
+ .ui.horizontal.list@{notCelled} > .item:last-child {
316
323
  margin-right: 0;
317
324
  padding-right: 0;
318
325
  }
319
- .ui.horizontal.list .list:not(.icon) {
326
+ .ui.horizontal.list .list@{notIcon} {
320
327
  padding-left: 0;
321
328
  padding-bottom: 0;
322
329
  }
@@ -585,7 +592,7 @@ ol.ui.list ol li,
585
592
  .ui.animated.list > .item {
586
593
  transition: @animatedListTransition;
587
594
  }
588
- .ui.animated.list:not(.horizontal) > .item:hover {
595
+ .ui.animated.list@{notHorizontal} > .item:hover {
589
596
  padding-left: @animatedListIndent;
590
597
  }
591
598
  }
@@ -594,8 +601,8 @@ ol.ui.list ol li,
594
601
  /* -------------------
595
602
  Fitted
596
603
  -------------------- */
597
- .ui.fitted.list:not(.selection) .list > .item,
598
- .ui.fitted.list:not(.selection) > .item {
604
+ .ui.fitted.list@{notSelection} .list > .item,
605
+ .ui.fitted.list@{notSelection} > .item {
599
606
  padding-left: 0;
600
607
  padding-right: 0;
601
608
  }
@@ -643,7 +650,7 @@ ol.ui.list ol li,
643
650
  }
644
651
 
645
652
  ul.ui.list ul,
646
- .ui.bulleted.list .list:not(.icon) {
653
+ .ui.bulleted.list .list@{notIcon} {
647
654
  padding-left: @bulletChildDistance;
648
655
  }
649
656
 
@@ -679,7 +686,7 @@ ol.ui.list ol li,
679
686
 
680
687
  ol.ui.list,
681
688
  .ui.ordered.list,
682
- .ui.ordered.list .list:not(.icon),
689
+ .ui.ordered.list .list@{notIcon},
683
690
  ol.ui.list ol {
684
691
  counter-reset: @orderedCountName;
685
692
  margin-left: @orderedCountDistance;
@@ -727,7 +734,7 @@ ol.ui.list ol li,
727
734
 
728
735
  /* Child Lists */
729
736
  ol.ui.list ol,
730
- .ui.ordered.list .list:not(.icon) {
737
+ .ui.ordered.list .list@{notIcon} {
731
738
  margin-left: @orderedChildCountDistance;
732
739
  }
733
740
  ol.ui.list ol li::before,
@@ -779,18 +786,18 @@ ol.ui.list ol li,
779
786
  }
780
787
 
781
788
  /* Sub Menu */
782
- .ui.divided.list:not(.horizontal) .list > .item:first-child {
789
+ .ui.divided.list@{notHorizontal} .list > .item:first-child {
783
790
  border-top-width: @dividedBorderWidth;
784
791
  }
785
792
 
786
793
  & when (@variationListBulleted) {
787
794
  /* Divided bulleted */
788
- .ui.divided.bulleted.list:not(.horizontal),
789
- .ui.divided.bulleted.list .list:not(.icon) {
795
+ .ui.divided.bulleted.list@{notHorizontal},
796
+ .ui.divided.bulleted.list .list@{notIcon} {
790
797
  margin-left: 0;
791
798
  padding-left: 0;
792
799
  }
793
- .ui.divided.bulleted.list > .item:not(.horizontal) {
800
+ .ui.divided.bulleted.list > .item@{notHorizontal} {
794
801
  padding-left: @bulletDistance;
795
802
  }
796
803
  }
@@ -804,7 +811,7 @@ ol.ui.list ol li,
804
811
  .ui.divided.ordered.list > .item {
805
812
  padding-left: @orderedCountDistance;
806
813
  }
807
- .ui.divided.ordered.list .item .list:not(.icon) {
814
+ .ui.divided.ordered.list .item .list@{notIcon} {
808
815
  margin-left: 0;
809
816
  margin-right: 0;
810
817
  padding-bottom: @itemVerticalPadding;
@@ -896,7 +903,7 @@ ol.ui.list ol li,
896
903
  .ui.celled.bulleted.list > .item {
897
904
  padding-left: (@bulletDistance);
898
905
  }
899
- .ui.celled.bulleted.list .item .list:not(.icon) {
906
+ .ui.celled.bulleted.list .item .list@{notIcon} {
900
907
  margin-left: -(@bulletDistance);
901
908
  margin-right: -(@bulletDistance);
902
909
  padding-bottom: @itemVerticalPadding;
@@ -912,7 +919,7 @@ ol.ui.list ol li,
912
919
  .ui.celled.ordered.list > .item {
913
920
  padding-left: @orderedCountDistance;
914
921
  }
915
- .ui.celled.ordered.list .item .list:not(.icon) {
922
+ .ui.celled.ordered.list .item .list@{notIcon} {
916
923
  margin-left: 0;
917
924
  margin-right: 0;
918
925
  padding-bottom: @itemVerticalPadding;
@@ -961,10 +968,10 @@ ol.ui.list ol li,
961
968
  Relaxed
962
969
  -------------------- */
963
970
 
964
- .ui.relaxed.list:not(.horizontal) > .item:not(:first-child) {
971
+ .ui.relaxed.list@{notHorizontal} > .item:not(:first-child) {
965
972
  padding-top: @relaxedItemVerticalPadding;
966
973
  }
967
- .ui.relaxed.list:not(.horizontal) > .item:not(:last-child) {
974
+ .ui.relaxed.list@{notHorizontal} > .item:not(:last-child) {
968
975
  padding-bottom: @relaxedItemVerticalPadding;
969
976
  }
970
977
 
@@ -980,10 +987,10 @@ ol.ui.list ol li,
980
987
  }
981
988
  & when (@variationListVeryRelaxed) {
982
989
  /* Very Relaxed */
983
- .ui[class*="very relaxed"].list:not(.horizontal) > .item:not(:first-child) {
990
+ .ui[class*="very relaxed"].list@{notHorizontal} > .item:not(:first-child) {
984
991
  padding-top: @veryRelaxedItemVerticalPadding;
985
992
  }
986
- .ui[class*="very relaxed"].list:not(.horizontal) > .item:not(:last-child) {
993
+ .ui[class*="very relaxed"].list@{notHorizontal} > .item:not(:last-child) {
987
994
  padding-bottom: @veryRelaxedItemVerticalPadding;
988
995
  }
989
996
 
@@ -17,6 +17,9 @@
17
17
 
18
18
  @import (multiple) "../../theme.config";
19
19
 
20
+ @notElastic: if(@variationLoaderElastic, e(":not(.elastic)"));
21
+ @notDouble: if(@variationLoaderDouble, e(":not(.double)"));
22
+
20
23
  /*******************************
21
24
  Loader
22
25
  *******************************/
@@ -97,7 +100,7 @@
97
100
  .ui.dimmer > .ui.loader {
98
101
  color: @invertedLoaderTextColor;
99
102
  }
100
- .ui.dimmer > .ui.loader:not(.elastic)::before {
103
+ .ui.dimmer > .ui.loader@{notElastic}::before {
101
104
  border-color: @invertedLoaderFillColor;
102
105
  }
103
106
 
@@ -105,7 +108,7 @@
105
108
  .ui.inverted.dimmer > .ui.loader {
106
109
  color: @loaderTextColor;
107
110
  }
108
- .ui.inverted.dimmer > .ui.loader:not(.elastic)::before {
111
+ .ui.inverted.dimmer > .ui.loader@{notElastic}::before {
109
112
  border-color: @loaderFillColor;
110
113
  }
111
114
 
@@ -246,8 +249,10 @@
246
249
  .ui.elastic.basic.loading.button::after {
247
250
  color: @loaderLineColor;
248
251
  }
249
- .ui.ui.ui.ui.double.loading.button::after {
250
- border-bottom-color: currentColor;
252
+ & when (@variationLoaderDouble) {
253
+ .ui.ui.ui.ui.double.loading.button::after {
254
+ border-bottom-color: currentColor;
255
+ }
251
256
  }
252
257
 
253
258
  & when (@variationLoaderInline) {
@@ -285,10 +290,10 @@
285
290
  border-left-color: transparent;
286
291
  border-right-color: transparent;
287
292
  }
288
- .ui.ui.ui.ui.ui.ui.ui.loading:not(.double)::after,
289
- .ui.ui.ui.ui.ui.ui.ui.loading:not(.double) .input > i.icon::after,
290
- .ui.ui.ui.ui.ui.ui.ui.loading:not(.double) > i.icon::after,
291
- .ui.ui.ui.ui.ui.ui.loader:not(.double)::after {
293
+ .ui.ui.ui.ui.ui.ui.ui.loading@{notDouble}::after,
294
+ .ui.ui.ui.ui.ui.ui.ui.loading@{notDouble} .input > i.icon::after,
295
+ .ui.ui.ui.ui.ui.ui.ui.loading@{notDouble} > i.icon::after,
296
+ .ui.ui.ui.ui.ui.ui.loader@{notDouble}::after {
292
297
  border-bottom-color: transparent;
293
298
  }
294
299
  .ui.ui.ui.ui.ui.ui.loading.card::after,
@@ -298,10 +303,10 @@
298
303
  border-left-color: @loaderFillColor;
299
304
  border-right-color: @loaderFillColor;
300
305
  }
301
- .ui.ui.ui.ui.ui.ui.loading.card:not(.double)::after,
302
- .ui.ui.ui.ui.ui.ui.loading.segments:not(.double)::after,
303
- .ui.ui.ui.ui.ui.ui.loading.segment:not(.double)::after,
304
- .ui.ui.ui.ui.ui.ui.loading.form:not(.double)::after {
306
+ .ui.ui.ui.ui.ui.ui.loading.card@{notDouble}::after,
307
+ .ui.ui.ui.ui.ui.ui.loading.segments@{notDouble}::after,
308
+ .ui.ui.ui.ui.ui.ui.loading.segment@{notDouble}::after,
309
+ .ui.ui.ui.ui.ui.ui.loading.form@{notDouble}::after {
305
310
  border-bottom-color: @loaderFillColor;
306
311
  }
307
312
 
@@ -17,6 +17,11 @@
17
17
 
18
18
  @import (multiple) "../../theme.config";
19
19
 
20
+ @notHorizontal: if(@variationSegmentHorizontal, e(":not(.horizontal)"));
21
+ @notCompact: if(@variationSegmentCompact, e(":not(.compact)"));
22
+ @notInverted: if(@variationSegmentInverted, e(":not(.inverted)"));
23
+ @notBasic: if(@variationSegmentBasic, e(":not(.basic)"));
24
+
20
25
  /*******************************
21
26
  Segment
22
27
  *******************************/
@@ -413,7 +418,7 @@
413
418
  border-top: @groupedSegmentDivider;
414
419
  }
415
420
 
416
- .ui.segments:not(.horizontal) > .segment:first-child {
421
+ .ui.segments@{notHorizontal} > .segment:first-child {
417
422
  top: @attachedTopOffset;
418
423
  bottom: 0;
419
424
  border-top: none;
@@ -423,7 +428,7 @@
423
428
  }
424
429
 
425
430
  /* Bottom */
426
- .ui.segments:not(.horizontal) > .segment:last-child {
431
+ .ui.segments@{notHorizontal} > .segment:last-child {
427
432
  top: @attachedBottomOffset;
428
433
  bottom: 0;
429
434
  margin-top: 0;
@@ -433,7 +438,7 @@
433
438
  }
434
439
 
435
440
  /* Only */
436
- .ui.segments:not(.horizontal) > .segment:only-child {
441
+ .ui.segments@{notHorizontal} > .segment:only-child {
437
442
  border-radius: @borderRadius;
438
443
  }
439
444
 
@@ -445,7 +450,7 @@
445
450
  .ui.segments > .segments:first-child {
446
451
  border-top: none;
447
452
  }
448
- .ui.segments > .segment + .segments:not(.horizontal) {
453
+ .ui.segments > .segment + .segments@{notHorizontal} {
449
454
  margin-top: 0;
450
455
  }
451
456
 
@@ -477,7 +482,7 @@
477
482
  }
478
483
 
479
484
  /* Horizontal Segment */
480
- .ui.horizontal.segments:not(.compact) > .segment:not(.compact) {
485
+ .ui.horizontal.segments@{notCompact} > .segment@{notCompact} {
481
486
  flex: 1 1 auto;
482
487
  & when (@supportIE) {
483
488
  // https://github.com/Semantic-Org/Semantic-UI/issues/2550
@@ -616,7 +621,7 @@
616
621
  @color: @value;
617
622
  @c: @colors[@@color][color];
618
623
  & when not (@color=primary) and not (@color=secondary) {
619
- .ui.ui.ui.ui.ui.@{color}.segment:not(.inverted) {
624
+ .ui.ui.ui.ui.ui.@{color}.segment@{notInverted} {
620
625
  border-top: @coloredBorderSize solid @c;
621
626
  }
622
627
  & when (@variationSegmentInverted) {
@@ -755,7 +760,7 @@
755
760
  width: @attachedWidth;
756
761
  max-width: @attachedWidth;
757
762
  box-shadow: @attachedBoxShadow;
758
- &:not(.basic) {
763
+ &@{notBasic} {
759
764
  border: @attachedBorder;
760
765
  }
761
766
  }