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

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 (273) hide show
  1. package/.all-contributorsrc +20 -1
  2. package/.eslintrc.js +17 -0
  3. package/.github/FUNDING.yml +1 -1
  4. package/.github/workflows/ci.yml +6 -6
  5. package/.github/workflows/depsreview.yml +14 -0
  6. package/.github/workflows/nightly.yml +1 -1
  7. package/.github/workflows/release.yml +1 -1
  8. package/CONTRIBUTORS.md +2 -0
  9. package/README.md +2 -12
  10. package/dist/components/accordion.css +1 -1
  11. package/dist/components/accordion.js +4 -2
  12. package/dist/components/accordion.min.css +1 -1
  13. package/dist/components/accordion.min.js +2 -2
  14. package/dist/components/ad.css +1 -1
  15. package/dist/components/ad.min.css +1 -1
  16. package/dist/components/api.js +7 -3
  17. package/dist/components/api.min.js +2 -2
  18. package/dist/components/breadcrumb.css +1 -1
  19. package/dist/components/breadcrumb.min.css +1 -1
  20. package/dist/components/button.css +21 -3
  21. package/dist/components/button.min.css +2 -2
  22. package/dist/components/calendar.css +1 -1
  23. package/dist/components/calendar.js +17 -4
  24. package/dist/components/calendar.min.css +1 -1
  25. package/dist/components/calendar.min.js +3 -3
  26. package/dist/components/card.css +1 -1
  27. package/dist/components/card.min.css +1 -1
  28. package/dist/components/checkbox.css +1 -1
  29. package/dist/components/checkbox.js +10 -4
  30. package/dist/components/checkbox.min.css +1 -1
  31. package/dist/components/checkbox.min.js +3 -3
  32. package/dist/components/comment.css +1 -1
  33. package/dist/components/comment.min.css +1 -1
  34. package/dist/components/container.css +1 -1
  35. package/dist/components/container.min.css +1 -1
  36. package/dist/components/dimmer.css +7 -3
  37. package/dist/components/dimmer.js +4 -2
  38. package/dist/components/dimmer.min.css +2 -2
  39. package/dist/components/dimmer.min.js +2 -2
  40. package/dist/components/divider.css +1 -1
  41. package/dist/components/divider.min.css +1 -1
  42. package/dist/components/dropdown.css +46 -38
  43. package/dist/components/dropdown.js +109 -34
  44. package/dist/components/dropdown.min.css +2 -2
  45. package/dist/components/dropdown.min.js +3 -3
  46. package/dist/components/embed.css +1 -1
  47. package/dist/components/embed.js +17 -7
  48. package/dist/components/embed.min.css +1 -1
  49. package/dist/components/embed.min.js +3 -3
  50. package/dist/components/emoji.css +4309 -3713
  51. package/dist/components/emoji.min.css +2 -2
  52. package/dist/components/feed.css +12 -1
  53. package/dist/components/feed.min.css +2 -2
  54. package/dist/components/flag.css +3 -1
  55. package/dist/components/flag.min.css +2 -2
  56. package/dist/components/flyout.css +1 -1
  57. package/dist/components/flyout.js +4 -2
  58. package/dist/components/flyout.min.css +1 -1
  59. package/dist/components/flyout.min.js +2 -2
  60. package/dist/components/form.css +15 -3
  61. package/dist/components/form.js +66 -23
  62. package/dist/components/form.min.css +2 -2
  63. package/dist/components/form.min.js +3 -3
  64. package/dist/components/grid.css +5 -5
  65. package/dist/components/grid.min.css +2 -2
  66. package/dist/components/header.css +1 -1
  67. package/dist/components/header.min.css +1 -1
  68. package/dist/components/icon.css +1 -1
  69. package/dist/components/icon.min.css +1 -1
  70. package/dist/components/image.css +1 -1
  71. package/dist/components/image.min.css +1 -1
  72. package/dist/components/input.css +1 -1
  73. package/dist/components/input.min.css +1 -1
  74. package/dist/components/item.css +1 -1
  75. package/dist/components/item.min.css +1 -1
  76. package/dist/components/label.css +7 -1
  77. package/dist/components/label.min.css +2 -2
  78. package/dist/components/list.css +1 -1
  79. package/dist/components/list.min.css +1 -1
  80. package/dist/components/loader.css +1 -1
  81. package/dist/components/loader.min.css +1 -1
  82. package/dist/components/menu.css +1 -1
  83. package/dist/components/menu.min.css +1 -1
  84. package/dist/components/message.css +2 -1
  85. package/dist/components/message.min.css +2 -2
  86. package/dist/components/modal.css +1 -1
  87. package/dist/components/modal.js +7 -3
  88. package/dist/components/modal.min.css +1 -1
  89. package/dist/components/modal.min.js +2 -2
  90. package/dist/components/nag.css +1 -1
  91. package/dist/components/nag.js +11 -5
  92. package/dist/components/nag.min.css +1 -1
  93. package/dist/components/nag.min.js +3 -3
  94. package/dist/components/placeholder.css +1 -1
  95. package/dist/components/placeholder.min.css +1 -1
  96. package/dist/components/popup.css +1 -1
  97. package/dist/components/popup.js +10 -4
  98. package/dist/components/popup.min.css +1 -1
  99. package/dist/components/popup.min.js +2 -2
  100. package/dist/components/progress.css +15 -6
  101. package/dist/components/progress.js +4 -2
  102. package/dist/components/progress.min.css +2 -2
  103. package/dist/components/progress.min.js +2 -2
  104. package/dist/components/rail.css +1 -1
  105. package/dist/components/rail.min.css +1 -1
  106. package/dist/components/rating.css +1 -1
  107. package/dist/components/rating.js +4 -2
  108. package/dist/components/rating.min.css +1 -1
  109. package/dist/components/rating.min.js +2 -2
  110. package/dist/components/reset.css +1 -1
  111. package/dist/components/reset.min.css +1 -1
  112. package/dist/components/reveal.css +1 -1
  113. package/dist/components/reveal.min.css +1 -1
  114. package/dist/components/search.css +1 -1
  115. package/dist/components/search.js +67 -14
  116. package/dist/components/search.min.css +1 -1
  117. package/dist/components/search.min.js +3 -3
  118. package/dist/components/segment.css +1 -1
  119. package/dist/components/segment.min.css +1 -1
  120. package/dist/components/shape.css +1 -1
  121. package/dist/components/shape.js +7 -5
  122. package/dist/components/shape.min.css +1 -1
  123. package/dist/components/shape.min.js +3 -3
  124. package/dist/components/sidebar.css +1 -1
  125. package/dist/components/sidebar.js +4 -2
  126. package/dist/components/sidebar.min.css +1 -1
  127. package/dist/components/sidebar.min.js +2 -2
  128. package/dist/components/site.css +14 -6
  129. package/dist/components/site.js +4 -2
  130. package/dist/components/site.min.css +2 -2
  131. package/dist/components/site.min.js +2 -2
  132. package/dist/components/slider.css +152 -2
  133. package/dist/components/slider.js +142 -44
  134. package/dist/components/slider.min.css +2 -2
  135. package/dist/components/slider.min.js +3 -3
  136. package/dist/components/state.js +4 -2
  137. package/dist/components/state.min.js +2 -2
  138. package/dist/components/statistic.css +1 -1
  139. package/dist/components/statistic.min.css +1 -1
  140. package/dist/components/step.css +992 -86
  141. package/dist/components/step.min.css +2 -2
  142. package/dist/components/sticky.css +1 -1
  143. package/dist/components/sticky.js +4 -2
  144. package/dist/components/sticky.min.css +1 -1
  145. package/dist/components/sticky.min.js +2 -2
  146. package/dist/components/tab.css +1 -1
  147. package/dist/components/tab.js +4 -2
  148. package/dist/components/tab.min.css +1 -1
  149. package/dist/components/tab.min.js +2 -2
  150. package/dist/components/table.css +32 -21
  151. package/dist/components/table.min.css +2 -2
  152. package/dist/components/text.css +1 -1
  153. package/dist/components/text.min.css +1 -1
  154. package/dist/components/toast.css +1 -1
  155. package/dist/components/toast.js +7 -3
  156. package/dist/components/toast.min.css +1 -1
  157. package/dist/components/toast.min.js +3 -3
  158. package/dist/components/transition.css +1 -1
  159. package/dist/components/transition.js +7 -3
  160. package/dist/components/transition.min.css +1 -1
  161. package/dist/components/transition.min.js +2 -2
  162. package/dist/components/visibility.js +4 -2
  163. package/dist/components/visibility.min.js +2 -2
  164. package/dist/semantic.css +6139 -3943
  165. package/dist/semantic.js +530 -180
  166. package/dist/semantic.min.css +3 -3
  167. package/dist/semantic.min.js +3 -3
  168. package/dist/themes/basic/assets/fonts/LICENSE.txt +91 -0
  169. package/dist/themes/default/assets/fonts/LICENSE_Lato.txt +94 -0
  170. package/dist/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
  171. package/dist/themes/github/assets/fonts/LICENSE.txt +94 -0
  172. package/dist/themes/material/assets/fonts/LICENSE.txt +202 -0
  173. package/package.json +14 -14
  174. package/src/definitions/behaviors/api.js +6 -2
  175. package/src/definitions/behaviors/form.js +65 -22
  176. package/src/definitions/behaviors/state.js +3 -1
  177. package/src/definitions/behaviors/visibility.js +3 -1
  178. package/src/definitions/collections/form.less +9 -2
  179. package/src/definitions/collections/grid.less +4 -4
  180. package/src/definitions/collections/message.less +1 -0
  181. package/src/definitions/collections/table.less +69 -54
  182. package/src/definitions/elements/button.less +27 -3
  183. package/src/definitions/elements/label.less +5 -0
  184. package/src/definitions/elements/step.less +399 -85
  185. package/src/definitions/globals/site.js +3 -1
  186. package/src/definitions/globals/site.less +17 -12
  187. package/src/definitions/modules/accordion.js +3 -1
  188. package/src/definitions/modules/calendar.js +16 -3
  189. package/src/definitions/modules/checkbox.js +9 -3
  190. package/src/definitions/modules/dimmer.js +3 -1
  191. package/src/definitions/modules/dimmer.less +8 -5
  192. package/src/definitions/modules/dropdown.js +108 -33
  193. package/src/definitions/modules/dropdown.less +43 -29
  194. package/src/definitions/modules/embed.js +16 -6
  195. package/src/definitions/modules/flyout.js +3 -1
  196. package/src/definitions/modules/modal.js +6 -2
  197. package/src/definitions/modules/nag.js +10 -4
  198. package/src/definitions/modules/popup.js +9 -3
  199. package/src/definitions/modules/progress.js +3 -1
  200. package/src/definitions/modules/progress.less +17 -5
  201. package/src/definitions/modules/rating.js +3 -1
  202. package/src/definitions/modules/search.js +66 -13
  203. package/src/definitions/modules/search.less +9 -2
  204. package/src/definitions/modules/shape.js +6 -4
  205. package/src/definitions/modules/sidebar.js +3 -1
  206. package/src/definitions/modules/slider.js +141 -43
  207. package/src/definitions/modules/slider.less +103 -8
  208. package/src/definitions/modules/sticky.js +3 -1
  209. package/src/definitions/modules/tab.js +3 -1
  210. package/src/definitions/modules/toast.js +6 -2
  211. package/src/definitions/modules/transition.js +6 -2
  212. package/src/definitions/views/feed.less +11 -0
  213. package/src/themes/basic/assets/fonts/LICENSE.txt +91 -0
  214. package/src/themes/default/assets/fonts/LICENSE_Lato.txt +94 -0
  215. package/src/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
  216. package/src/themes/default/elements/button.variables +3 -0
  217. package/src/themes/default/elements/emoji.variables +172 -23
  218. package/src/themes/default/elements/flag.variables +3 -3
  219. package/src/themes/default/elements/step.variables +33 -0
  220. package/src/themes/default/globals/site.variables +3 -0
  221. package/src/themes/default/globals/variation.variables +9 -0
  222. package/src/themes/default/modules/dropdown.variables +3 -0
  223. package/src/themes/default/modules/progress.variables +1 -1
  224. package/src/themes/default/modules/search.variables +3 -0
  225. package/src/themes/default/modules/slider.variables +10 -0
  226. package/src/themes/default/views/feed.variables +3 -0
  227. package/src/themes/github/assets/fonts/LICENSE.txt +94 -0
  228. package/src/themes/joypixels/elements/emoji.variables +183 -22
  229. package/src/themes/material/assets/fonts/LICENSE.txt +202 -0
  230. package/tasks/admin/components/create.js +4 -4
  231. package/tasks/admin/components/init.js +2 -2
  232. package/tasks/admin/components/update.js +3 -3
  233. package/tasks/admin/distributions/create.js +3 -3
  234. package/tasks/admin/distributions/init.js +2 -2
  235. package/tasks/admin/distributions/update.js +4 -4
  236. package/tasks/build/assets.js +1 -1
  237. package/tasks/build/css.js +19 -10
  238. package/tasks/build/javascript.js +12 -5
  239. package/tasks/check-install.js +1 -1
  240. package/tasks/config/defaults.js +2 -0
  241. package/tasks/config/tasks.js +1 -1
  242. package/tasks/docs/build.js +3 -3
  243. package/tasks/docs/metadata.js +1 -1
  244. package/tasks/docs/serve.js +3 -1
  245. package/tasks/install.js +2 -2
  246. package/tasks/watch.js +1 -1
  247. package/types/fomantic-ui-accordion.d.ts +1 -1
  248. package/types/fomantic-ui-api.d.ts +9 -3
  249. package/types/fomantic-ui-calendar.d.ts +110 -9
  250. package/types/fomantic-ui-checkbox.d.ts +14 -4
  251. package/types/fomantic-ui-dimmer.d.ts +1 -1
  252. package/types/fomantic-ui-dropdown.d.ts +82 -44
  253. package/types/fomantic-ui-embed.d.ts +19 -2
  254. package/types/fomantic-ui-flyout.d.ts +25 -11
  255. package/types/fomantic-ui-form.d.ts +123 -15
  256. package/types/fomantic-ui-modal.d.ts +101 -5
  257. package/types/fomantic-ui-nag.d.ts +4 -4
  258. package/types/fomantic-ui-popup.d.ts +38 -12
  259. package/types/fomantic-ui-progress.d.ts +12 -6
  260. package/types/fomantic-ui-rating.d.ts +1 -1
  261. package/types/fomantic-ui-search.d.ts +138 -22
  262. package/types/fomantic-ui-shape.d.ts +2 -2
  263. package/types/fomantic-ui-sidebar.d.ts +4 -4
  264. package/types/fomantic-ui-slider.d.ts +56 -4
  265. package/types/fomantic-ui-sticky.d.ts +1 -1
  266. package/types/fomantic-ui-tab.d.ts +6 -6
  267. package/types/fomantic-ui-toast.d.ts +14 -2
  268. package/types/fomantic-ui-transition.d.ts +41 -7
  269. package/types/fomantic-ui-visibility.d.ts +3 -3
  270. package/types/index.d.ts +25 -25
  271. package/types/tests.ts +188 -0
  272. package/types/tsconfig.json +1 -1
  273. package/types/fomantic-ui-tests.ts +0 -25
@@ -25,7 +25,7 @@
25
25
  Plural
26
26
  *******************************/
27
27
 
28
- .ui.steps {
28
+ .ui.steps:not(.circular) {
29
29
  display: inline-flex;
30
30
  flex-direction: row;
31
31
  align-items: stretch;
@@ -54,7 +54,7 @@
54
54
  Singular
55
55
  *******************************/
56
56
 
57
- .ui.steps .step {
57
+ .ui.steps:not(.circular) .step {
58
58
  position: relative;
59
59
  display: flex;
60
60
  flex: 1 0 auto;
@@ -74,7 +74,7 @@
74
74
  }
75
75
 
76
76
  /* Arrow */
77
- .ui.steps .step::after {
77
+ .ui.steps:not(.circular) .step::after {
78
78
  display: none;
79
79
  position: absolute;
80
80
  z-index: 2;
@@ -92,20 +92,20 @@
92
92
  }
93
93
 
94
94
  /* First Step */
95
- .ui.steps .step:first-child {
95
+ .ui.steps:not(.circular) .step:first-child {
96
96
  padding-left: @horizontalPadding;
97
97
  border-radius: @stepsBorderRadius 0 0 @stepsBorderRadius;
98
98
  }
99
99
 
100
100
  /* Last Step */
101
- .ui.steps .step:last-child {
101
+ .ui.steps:not(.circular) .step:last-child {
102
102
  border-radius: 0 @stepsBorderRadius @stepsBorderRadius 0;
103
103
  border-right: none;
104
104
  margin-right: 0;
105
105
  }
106
106
 
107
107
  /* Only Step */
108
- .ui.steps .step:only-child {
108
+ .ui.steps:not(.circular) .step:only-child {
109
109
  border-radius: @stepsBorderRadius;
110
110
  }
111
111
 
@@ -118,6 +118,7 @@
118
118
  font-family: @titleFontFamily;
119
119
  font-size: @titleFontSize;
120
120
  font-weight: @titleFontWeight;
121
+ line-height: @lineHeight;
121
122
  }
122
123
  .ui.steps .step > .title {
123
124
  width: 100%;
@@ -128,6 +129,7 @@
128
129
  font-weight: @descriptionFontWeight;
129
130
  font-size: @descriptionFontSize;
130
131
  color: @descriptionColor;
132
+ line-height: @lineHeight;
131
133
  }
132
134
  .ui.steps .step > .description {
133
135
  width: 100%;
@@ -164,6 +166,133 @@
164
166
  Types
165
167
  *******************************/
166
168
 
169
+ & when (@variationStepCircular) {
170
+ .ui.circular.steps {
171
+ border: 0;
172
+ border-radius: 0;
173
+ box-shadow: none;
174
+
175
+ &:not(.vertical) {
176
+ background: transparent;
177
+ border: 0;
178
+ border-radius: 0;
179
+ box-shadow: none;
180
+ position: relative;
181
+ display: flex;
182
+ padding: @circularStepsMargin;
183
+ margin: @circularStepsPadding;
184
+
185
+ & .step {
186
+ background: @circularStepColor;
187
+ cursor: default;
188
+ height: @circularStepBorderWidth;
189
+ display: flex;
190
+ flex-wrap: wrap;
191
+ align-items: center;
192
+ flex: 1;
193
+ position: relative;
194
+ margin-left: @circularStepRingSize;
195
+
196
+ &::before {
197
+ left: -@circularStepRingSize;
198
+ }
199
+ &::after {
200
+ left: @circularStepIconDistance;
201
+ }
202
+
203
+ &.link::before,
204
+ &.link::after {
205
+ cursor: pointer;
206
+ }
207
+ &.completed {
208
+ background: @circularStepCompletedBackground;
209
+ }
210
+ &.completed::after {
211
+ left: @circularStepCompletedIconDistance;
212
+ }
213
+ &:last-child {
214
+ flex: 0;
215
+ }
216
+ & .content {
217
+ margin-top: @circularStepContentMarginTop;
218
+ padding: @circularStepContentPadding;
219
+ &.center.aligned {
220
+ margin-top: @circularStepContentCenterAlignedMarginTop;
221
+ & .title {
222
+ padding: @circularStepContentPadding;
223
+ margin-left: @circularStepContentCenterAlignedMarginLeft;
224
+ background: @circularStepContentCenterAlignedBackground;
225
+ }
226
+ }
227
+ &.bottom.aligned {
228
+ margin-top: @circularStepContentBottomAlignedMarginTop;
229
+ }
230
+ &:not(.aligned) .title + .description {
231
+ margin-top: @circularStepContentDescriptionDistance;
232
+ }
233
+ }
234
+ }
235
+ }
236
+
237
+ & .step {
238
+ color: inherit;
239
+
240
+ &::before {
241
+ content: "";
242
+ border-radius: 50%;
243
+ border: @circularStepBorder;
244
+ height: @circularStepRingSize;
245
+ width: @circularStepRingSize;
246
+ line-height: @circularStepRingSize;
247
+ position: absolute;
248
+ }
249
+ &::after {
250
+ content: "";
251
+ display: block;
252
+ position: absolute;
253
+ border-radius: 50%;
254
+ background: @circularStepColor;
255
+ height: @circularStepIconSize;
256
+ width: @circularStepIconSize;
257
+ }
258
+ &.active {
259
+ &::before {
260
+ border-color: @circularStepActiveColor;
261
+ }
262
+
263
+ &::after {
264
+ background: @circularStepActiveColor;
265
+ }
266
+ & .title {
267
+ color: @circularStepActiveColor;
268
+ }
269
+ }
270
+ &.completed {
271
+ &::before {
272
+ background: @circularStepCompletedBackground;
273
+ border-color: @circularStepCompletedBackground;
274
+ }
275
+ &::after {
276
+ background: transparent;
277
+ content: "\e800";
278
+ font-family: Step;
279
+ color: @circularStepCompletedColor;
280
+ height: auto;
281
+ line-height: @circularStepCompletedIconLineHeight;
282
+ }
283
+ }
284
+ }
285
+ }
286
+ @supports selector(:has(.f)) {
287
+ .ui.circular.steps:not(.vertical) .step:last-child:has(.content) {
288
+ flex: 1;
289
+ }
290
+ .ui.circular.steps:not(.vertical) .step:last-child:has(.center.aligned.content) {
291
+ background: none;
292
+ }
293
+ }
294
+ }
295
+
167
296
  & when (@variationStepOrdered) {
168
297
  /* --------------
169
298
  Ordered
@@ -173,17 +302,36 @@
173
302
  counter-reset: ordered;
174
303
  }
175
304
  .ui.ordered.steps .step::before {
176
- display: block;
177
- position: static;
178
305
  text-align: center;
179
306
  content: counter(ordered);
180
307
  align-self: @iconAlign;
181
- margin-right: @iconDistance;
182
- font-size: @iconSize;
183
308
  counter-increment: ordered;
184
309
  font-family: @orderedFontFamily;
185
310
  font-weight: @orderedFontWeight;
186
311
  }
312
+ .ui.ordered.steps:not(.circular) .step::before {
313
+ display: block;
314
+ position: static;
315
+ font-size: @iconSize;
316
+ margin-right: @iconDistance;
317
+ }
318
+
319
+ & when (@variationStepCircular) {
320
+ .ui.circular.ordered.steps .step {
321
+ &::before {
322
+ line-height: calc(@circularStepRingSize - @circularStepBorderWidth);
323
+ }
324
+ &.completed::before {
325
+ content: "";
326
+ }
327
+ &::after {
328
+ background: transparent;
329
+ }
330
+ &.active::before {
331
+ color: @circularStepActiveColor;
332
+ }
333
+ }
334
+ }
187
335
 
188
336
  .ui.ordered.steps .step > * {
189
337
  display: block;
@@ -196,53 +344,106 @@
196
344
  Vertical
197
345
  --------------- */
198
346
 
199
- .ui.vertical.steps {
347
+ .ui.vertical.steps:not(.circular) {
200
348
  display: inline-flex;
201
349
  flex-direction: column;
202
350
  overflow: visible;
203
351
  }
204
- .ui.vertical.steps .step {
352
+ .ui.vertical.steps:not(.circular) .step {
205
353
  justify-content: flex-start;
206
354
  border-radius: @borderRadius;
207
355
  padding: @verticalPadding @horizontalPadding;
208
356
  border-right: none;
209
357
  border-bottom: @verticalDivider;
210
358
  }
211
- .ui.vertical.steps .step:first-child {
359
+ .ui.vertical.steps:not(.circular) .step:first-child {
212
360
  padding: @verticalPadding @horizontalPadding;
213
361
  border-radius: @stepsBorderRadius @stepsBorderRadius 0 0;
214
362
  }
215
- .ui.vertical.steps .step:last-child {
363
+ .ui.vertical.steps:not(.circular) .step:last-child {
216
364
  border-bottom: none;
217
365
  border-radius: 0 0 @stepsBorderRadius @stepsBorderRadius;
218
366
  }
219
- .ui.vertical.steps .step:only-child {
367
+ .ui.vertical.steps:not(.circular) .step:only-child {
220
368
  border-radius: @stepsBorderRadius;
221
369
  }
222
370
 
223
371
  /* Arrow */
224
- .ui.vertical.steps .step::after {
372
+ .ui.vertical.steps:not(.circular) .step::after {
225
373
  top: @verticalArrowTopOffset;
226
374
  right: @verticalArrowRightOffset;
227
375
  border-width: @verticalArrowBorderWidth;
228
376
  display: @verticalArrowDisplay;
229
377
  }
230
- .ui.right.vertical.steps .step::after {
378
+ .ui.right.vertical.steps:not(.circular) .step::after {
231
379
  border-width: @verticalLeftArrowBorderWidth;
232
380
  left: @verticalLeftArrowLeftOffset;
233
381
  right: @verticalLeftArrowRightOffset;
234
382
  transform: translateY(-50%) translateX(-50%) rotate(-45deg);
235
383
  }
236
384
 
237
- .ui.vertical.steps .active.step::after {
385
+ .ui.vertical.steps:not(.circular) .active.step::after {
238
386
  display: @verticalActiveArrowDisplay;
239
387
  }
240
- .ui.vertical.steps .step:last-child::after {
388
+ .ui.vertical.steps:not(.circular) .step:last-child::after {
241
389
  display: @verticalLastArrowDisplay;
242
390
  }
243
- .ui.vertical.steps .active.step:last-child::after {
391
+ .ui.vertical.steps:not(.circular) .active.step:last-child::after {
244
392
  display: @verticalActiveLastArrowDisplay;
245
393
  }
394
+
395
+ /* Circular Step */
396
+ & when (@variationStepCircular) {
397
+ .ui.circular.vertical.steps {
398
+ display: inline-flex;
399
+ flex-flow: column wrap;
400
+ align-items: flex-start;
401
+
402
+ & .step {
403
+ position: relative;
404
+ width: 100%;
405
+
406
+ &::before {
407
+ left: 0;
408
+ top: 0;
409
+ }
410
+
411
+ &::after {
412
+ left: @verticalCircularStepIconDistance;
413
+ top: @verticalCircularStepIconDistance;
414
+ }
415
+
416
+ & .content {
417
+ padding-left: @verticalCircularStepContentPadding;
418
+ }
419
+
420
+ &:not(:last-child) {
421
+ padding-bottom: @verticalCircularStepPadding;
422
+
423
+ & .content::before {
424
+ content: "";
425
+ position: absolute;
426
+ border-left: @circularStepBorder;
427
+ top: @circularStepRingSize;
428
+ bottom: 0;
429
+ left: @verticalCircularStepLineDistance;
430
+ }
431
+ }
432
+
433
+ &.completed .content::before {
434
+ border-color: @circularStepCompletedBackground;
435
+ }
436
+
437
+ &.completed::before {
438
+ background: @circularStepCompletedBackground;
439
+ border-color: @circularStepCompletedBackground;
440
+ }
441
+ &.completed::after {
442
+ top: @verticalCircularStepCompletedIconDistance;
443
+ }
444
+ }
445
+ }
446
+ }
246
447
  }
247
448
 
248
449
  /* ---------------
@@ -251,12 +452,12 @@
251
452
 
252
453
  /* Mobile (Default) */
253
454
  @media only screen and (max-width: (@largestMobileScreen)) {
254
- .ui.steps:not(.unstackable) {
455
+ .ui.steps:not(.unstackable):not(.circular) {
255
456
  display: inline-flex;
256
457
  overflow: visible;
257
458
  flex-direction: column;
258
459
  }
259
- .ui.steps:not(.unstackable) .step {
460
+ .ui.steps:not(.unstackable):not(.circular) .step {
260
461
  width: 100% !important;
261
462
  flex-direction: column;
262
463
  border-radius: @borderRadius;
@@ -264,36 +465,36 @@
264
465
  border-right: none;
265
466
  border-bottom: @stepsBorder;
266
467
  }
267
- .ui.steps:not(.unstackable) .step:first-child {
468
+ .ui.steps:not(.unstackable):not(.circular) .step:first-child {
268
469
  padding: @verticalPadding @horizontalPadding;
269
470
  border-radius: @stepsBorderRadius @stepsBorderRadius 0 0;
270
471
  }
271
- .ui.steps:not(.unstackable) .step:last-child {
472
+ .ui.steps:not(.unstackable):not(.circular) .step:last-child {
272
473
  border-radius: 0 0 @stepsBorderRadius @stepsBorderRadius;
273
474
  border-bottom: none;
274
475
  }
275
476
 
276
477
  /* Arrow */
277
- .ui.steps:not(.unstackable) .step::after {
478
+ .ui.steps:not(.unstackable):not(.circular) .step::after {
278
479
  top: unset;
279
480
  bottom: -@arrowSize;
280
481
  right: 50%;
281
482
  transform: translateY(-50%) translateX(50%) rotate(45deg);
282
483
  }
283
484
  & when (@variationStepVertical) {
284
- .ui.vertical.steps .active.step:last-child::after {
485
+ .ui.vertical.steps:not(.circular) .active.step:last-child::after {
285
486
  display: none;
286
487
  }
287
488
  }
288
489
 
289
490
  /* Content */
290
- .ui.steps:not(.unstackable) .step .content {
491
+ .ui.steps:not(.unstackable):not(.circular) .step .content {
291
492
  text-align: center;
292
493
  }
293
494
 
294
495
  /* Icon */
295
- .ui.steps:not(.unstackable) .step > i.icon,
296
- .ui.ordered.steps:not(.unstackable) .step::before {
496
+ .ui.steps:not(.unstackable):not(.circular) .step > i.icon,
497
+ .ui.ordered.steps:not(.unstackable):not(.circular) .step::before {
297
498
  margin: 0 0 @mobileIconDistance 0;
298
499
  }
299
500
  }
@@ -303,32 +504,32 @@
303
504
  *******************************/
304
505
 
305
506
  /* Link Hover */
306
- .ui.steps .link.step:hover::after,
307
- .ui.steps .link.step:hover,
308
- .ui.steps a.step:hover::after,
309
- .ui.steps a.step:hover {
507
+ .ui.steps:not(.circular) .link.step:hover::after,
508
+ .ui.steps:not(.circular) .link.step:hover,
509
+ .ui.steps:not(.circular) a.step:hover::after,
510
+ .ui.steps:not(.circular) a.step:hover {
310
511
  background: @hoverBackground;
311
512
  color: @hoverColor;
312
513
  }
313
514
 
314
515
  /* Link Down */
315
- .ui.steps .link.step:active::after,
316
- .ui.steps .link.step:active,
317
- .ui.steps a.step:active::after,
318
- .ui.steps a.step:active {
516
+ .ui.steps:not(.circular) .link.step:active::after,
517
+ .ui.steps:not(.circular) .link.step:active,
518
+ .ui.steps:not(.circular) a.step:active::after,
519
+ .ui.steps:not(.circular) a.step:active {
319
520
  background: @downBackground;
320
521
  color: @downColor;
321
522
  }
322
523
 
323
524
  /* Active */
324
- .ui.steps .step.active {
525
+ .ui.steps:not(.circular) .step.active {
325
526
  cursor: auto;
326
527
  background: @activeBackground;
327
528
  }
328
- .ui.steps .step.active::after {
529
+ .ui.steps:not(.circular) .step.active::after {
329
530
  background: @activeBackground;
330
531
  }
331
- .ui.steps .step.active .title {
532
+ .ui.steps:not(.circular) .step.active .title {
332
533
  color: @activeColor;
333
534
  }
334
535
  .ui.ordered.steps .step.active::before,
@@ -337,24 +538,24 @@
337
538
  }
338
539
 
339
540
  /* Active Arrow */
340
- .ui.steps .step::after {
541
+ .ui.steps:not(.circular) .step::after {
341
542
  display: @arrowDisplay;
342
543
  }
343
- .ui.steps .active.step::after {
544
+ .ui.steps:not(.circular) .active.step::after {
344
545
  display: @activeArrowDisplay;
345
546
  }
346
- .ui.steps .step:last-child::after {
547
+ .ui.steps:not(.circular) .step:last-child::after {
347
548
  display: @lastArrowDisplay;
348
549
  }
349
- .ui.steps .active.step:last-child::after {
550
+ .ui.steps:not(.circular) .active.step:last-child::after {
350
551
  display: @activeLastArrowDisplay;
351
552
  }
352
553
 
353
554
  /* Active Hover */
354
- .ui.steps .link.active.step:hover::after,
355
- .ui.steps .link.active.step:hover,
356
- .ui.steps a.active.step:hover::after,
357
- .ui.steps a.active.step:hover {
555
+ .ui.steps:not(.circular) .link.active.step:hover::after,
556
+ .ui.steps:not(.circular) .link.active.step:hover,
557
+ .ui.steps:not(.circular) a.active.step:hover::after,
558
+ .ui.steps:not(.circular) a.active.step:hover {
358
559
  cursor: pointer;
359
560
  background: @activeHoverBackground;
360
561
  color: @activeHoverColor;
@@ -368,19 +569,30 @@
368
569
 
369
570
  & when (@variationStepDisabled) {
370
571
  /* Disabled */
371
- .ui.steps .disabled.step {
572
+ .ui.steps:not(.circular) .disabled.step {
372
573
  cursor: auto;
373
574
  background: @disabledBackground;
374
575
  pointer-events: none;
375
576
  }
376
- .ui.steps .disabled.step,
377
- .ui.steps .disabled.step .title,
378
- .ui.steps .disabled.step .description {
577
+ .ui.steps:not(.circular) .disabled.step,
578
+ .ui.steps:not(.circular) .disabled.step .title,
579
+ .ui.steps:not(.circular) .disabled.step .description {
379
580
  color: @disabledColor;
380
581
  }
381
- .ui.steps .disabled.step::after {
582
+ .ui.steps:not(.circular) .disabled.step::after {
382
583
  background: @disabledBackground;
383
584
  }
585
+ & when (@variationStepCircular) {
586
+ .ui.circular.steps .disabled.step {
587
+ cursor: auto;
588
+ opacity: @circularStepDisabledItemOpacity;
589
+
590
+ &::before,
591
+ &::after {
592
+ cursor: auto;
593
+ }
594
+ }
595
+ }
384
596
  }
385
597
 
386
598
  /*******************************
@@ -394,31 +606,31 @@
394
606
 
395
607
  /* Tablet Or Below */
396
608
  @media only screen and (max-width: @largestTabletScreen) {
397
- .ui[class*="tablet stackable"].steps {
609
+ .ui[class*="tablet stackable"].steps:not(.circular) {
398
610
  display: inline-flex;
399
611
  overflow: visible;
400
612
  flex-direction: column;
401
613
  }
402
614
 
403
615
  /* Steps */
404
- .ui[class*="tablet stackable"].steps .step {
616
+ .ui[class*="tablet stackable"].steps:not(.circular) .step {
405
617
  flex-direction: column;
406
618
  border-radius: @borderRadius;
407
619
  padding: @verticalPadding @horizontalPadding;
408
620
  border-right: none;
409
621
  border-bottom: @stepsBorder;
410
622
  }
411
- .ui[class*="tablet stackable"].steps .step:first-child {
623
+ .ui[class*="tablet stackable"].steps:not(.circular) .step:first-child {
412
624
  padding: @verticalPadding @horizontalPadding;
413
625
  border-radius: @stepsBorderRadius @stepsBorderRadius 0 0;
414
626
  }
415
- .ui[class*="tablet stackable"].steps .step:last-child {
627
+ .ui[class*="tablet stackable"].steps:not(.circular) .step:last-child {
416
628
  border-radius: 0 0 @stepsBorderRadius @stepsBorderRadius;
417
629
  border-bottom: none;
418
630
  }
419
631
 
420
632
  /* Arrow */
421
- .ui[class*="tablet stackable"].steps .step::after {
633
+ .ui[class*="tablet stackable"].steps:not(.circular) .step::after {
422
634
  top: unset;
423
635
  bottom: -@arrowSize;
424
636
  right: 50%;
@@ -426,7 +638,7 @@
426
638
  }
427
639
 
428
640
  /* Content */
429
- .ui[class*="tablet stackable"].steps .step .content {
641
+ .ui[class*="tablet stackable"].steps:not(.circular) .step .content {
430
642
  text-align: center;
431
643
  }
432
644
 
@@ -456,28 +668,28 @@
456
668
  --------------- */
457
669
 
458
670
  /* Top */
459
- .ui.attached.steps {
671
+ .ui.attached.steps:not(.circular) {
460
672
  width: @attachedWidth !important;
461
673
  margin: 0 @attachedHorizontalOffset @attachedVerticalOffset;
462
674
  max-width: @attachedWidth;
463
675
  border-radius: @stepsBorderRadius @stepsBorderRadius 0 0;
464
676
  }
465
- .ui.attached.steps .step:first-child {
677
+ .ui.attached.steps:not(.circular) .step:first-child {
466
678
  border-radius: @stepsBorderRadius 0 0 0;
467
679
  }
468
- .ui.attached.steps .step:last-child {
680
+ .ui.attached.steps:not(.circular) .step:last-child {
469
681
  border-radius: 0 @stepsBorderRadius 0 0;
470
682
  }
471
683
 
472
684
  /* Bottom */
473
- .ui.bottom.attached.steps {
685
+ .ui.bottom.attached.steps:not(.circular) {
474
686
  margin: @attachedVerticalOffset @attachedHorizontalOffset 0;
475
687
  border-radius: 0 0 @stepsBorderRadius @stepsBorderRadius;
476
688
  }
477
- .ui.bottom.attached.steps .step:first-child {
689
+ .ui.bottom.attached.steps:not(.circular) .step:first-child {
478
690
  border-radius: 0 0 0 @stepsBorderRadius;
479
691
  }
480
- .ui.bottom.attached.steps .step:last-child {
692
+ .ui.bottom.attached.steps:not(.circular) .step:last-child {
481
693
  border-radius: 0 0 @stepsBorderRadius 0;
482
694
  }
483
695
  }
@@ -548,6 +760,12 @@
548
760
  .ui.@{value}.step {
549
761
  font-size: @s;
550
762
  }
763
+ & when (@variationStepCircular) {
764
+ .ui.@{value}.circular.steps:not(.vertical) {
765
+ margin: @s 0;
766
+ padding: @s 0;
767
+ }
768
+ }
551
769
  });
552
770
  }
553
771
 
@@ -556,17 +774,17 @@
556
774
  Inverted
557
775
  --------------- */
558
776
 
559
- .ui.inverted.steps {
777
+ .ui.inverted.steps:not(.circular) {
560
778
  border: 1px solid @solidWhiteBorderColor;
561
779
  }
562
780
 
563
- .ui.inverted.steps .step {
781
+ .ui.inverted.steps:not(.circular) .step {
564
782
  color: @invertedTextColor;
565
783
  background: @black;
566
784
  border-color: @solidWhiteBorderColor;
567
785
  }
568
786
 
569
- .ui.inverted.steps .step::after {
787
+ .ui.inverted.steps:not(.circular) .step::after {
570
788
  background-color: @black;
571
789
  border-color: @solidWhiteBorderColor;
572
790
  }
@@ -576,45 +794,141 @@
576
794
  }
577
795
 
578
796
  /* Active */
579
- .ui.inverted.steps .step.active,
580
- .ui.inverted.steps .step.active::after {
797
+ .ui.inverted.steps:not(.circular) .step.active,
798
+ .ui.inverted.steps:not(.circular) .step.active::after {
581
799
  background: @invertedActiveBackground;
582
800
  }
583
- .ui.inverted.ordered.steps .step.active::before,
584
- .ui.inverted.steps .active.step i.icon {
801
+ .ui.inverted.ordered.steps:not(.circular) .step.active::before,
802
+ .ui.inverted.steps:not(.circular) .active.step i.icon {
585
803
  color: @invertedSelectedTextColor;
586
804
  }
587
805
 
588
806
  & when (@variationStepDisabled) {
589
807
  /* Disabled */
590
- .ui.inverted.steps .disabled.step,
591
- .ui.inverted.steps .disabled.step::after {
808
+ .ui.inverted.steps:not(.circular) .disabled.step,
809
+ .ui.inverted.steps:not(.circular) .disabled.step::after {
592
810
  background: @invertedDisabledBackground;
593
811
  }
594
- .ui.inverted.steps .disabled.step,
595
- .ui.inverted.steps .disabled.step .title,
596
- .ui.inverted.steps .disabled.step .description {
812
+ .ui.inverted.steps:not(.circular) .disabled.step,
813
+ .ui.inverted.steps:not(.circular) .disabled.step .title,
814
+ .ui.inverted.steps:not(.circular) .disabled.step .description {
597
815
  color: @invertedDisabledTextColor;
598
816
  }
599
817
  }
600
818
 
601
819
  /* Link Hover */
602
- .ui.inverted.steps .link.step:hover::after,
603
- .ui.inverted.steps .link.step:hover,
604
- .ui.inverted.steps a.step:hover::after,
605
- .ui.inverted.steps a.step:hover {
820
+ .ui.inverted.steps:not(.circular) .link.step:hover::after,
821
+ .ui.inverted.steps:not(.circular) .link.step:hover,
822
+ .ui.inverted.steps:not(.circular) a.step:hover::after,
823
+ .ui.inverted.steps:not(.circular) a.step:hover {
606
824
  background: @invertedHoverBackground;
607
825
  color: @invertedHoveredTextColor;
608
826
  }
609
827
 
610
828
  /* Link Down */
611
- .ui.inverted.steps .link.step:active::after,
612
- .ui.inverted.steps .link.step:active,
613
- .ui.inverted.steps a.step:active::after,
614
- .ui.inverted.steps a.step:active {
829
+ .ui.inverted.steps:not(.circular) .link.step:active::after,
830
+ .ui.inverted.steps:not(.circular) .link.step:active,
831
+ .ui.inverted.steps:not(.circular) a.step:active::after,
832
+ .ui.inverted.steps:not(.circular) a.step:active {
615
833
  background: @invertedActiveHoverBackground;
616
834
  color: @invertedPressedTextColor;
617
835
  }
836
+ & when (@variationStepCircular) {
837
+ /* Circular Step */
838
+ .ui.inverted.circular.steps {
839
+ & .step .content {
840
+ color: @invertedTextColor;
841
+ }
842
+
843
+ &:not(.vertical) {
844
+ & .step:not(.completed) {
845
+ background: @invertedTextColor;
846
+ }
847
+ & .step:not(.active):not(.completed)::before {
848
+ border-color: @invertedTextColor;
849
+ }
850
+ & .step .center.aligned.content .title {
851
+ background: @invertedCircularStepContentCenterAlignedBackground;
852
+ }
853
+ }
854
+ &:not(.ordered) .step:not(.active):not(.completed)::after {
855
+ background: @invertedTextColor;
856
+ }
857
+
858
+ & when (@variationStepVertical) {
859
+ &.vertical {
860
+ & .step:not(.active):not(.completed)::before {
861
+ border-color: @invertedTextColor;
862
+ }
863
+ & .step:not(.completed) .content::before {
864
+ background: @invertedTextColor;
865
+ }
866
+ }
867
+ }
868
+ }
869
+ }
870
+ }
871
+
872
+ & when (@variationStepCircular) and not (@variationStepColors = false) {
873
+ each(@variationStepColors, {
874
+ @variation: @value;
875
+ @color: @colors[@@variation][color];
876
+
877
+ .ui.ui.circular.steps .step.@{variation} {
878
+ &::before {
879
+ border-color: @color;
880
+ }
881
+ &::after {
882
+ background: @color;
883
+ }
884
+ }
885
+ .ui.ui.@{variation}.circular.steps .step, .ui.ui.ui.circular.steps .step.@{variation} {
886
+ &.active::before {
887
+ border-color: @color;
888
+ }
889
+ &.active::after {
890
+ background: @color;
891
+ }
892
+ &.completed::before {
893
+ background: @color;
894
+ border-color: @color;
895
+ }
896
+ }
897
+ .ui.ui.@{variation}.circular.steps:not(.vertical) .step, .ui.ui.ui.circular.steps:not(.vertical) .step.@{variation} {
898
+ &.completed {
899
+ background: @color;
900
+ }
901
+ }
902
+ .ui.ui.circular.steps:not(.vertical) .step.@{variation} {
903
+ background: @color;
904
+ }
905
+ .ui.ui.@{variation}.circular.steps .step, .ui.ui.ui.circular.steps .step.@{variation} {
906
+ &.active .content .title {
907
+ color: @color;
908
+ }
909
+ }
910
+ & when (@variationStepVertical) {
911
+ .ui.ui.vertical.circular.steps .step.completed.@{variation} .content::before {
912
+ border-color: @color;
913
+ }
914
+ .ui.ui.@{variation}.vertical.circular.steps .step, .ui.ui.vertical.circular.steps .step.@{variation} {
915
+ &.completed .content::before {
916
+ border-color: @color;
917
+ }
918
+ }
919
+ }
920
+
921
+ & when (@variationStepOrdered) {
922
+ .ui.ui.@{variation}.circular.ordered.steps .step, .ui.ui.circular.ordered.steps .step.@{variation} {
923
+ &::after {
924
+ background: transparent;
925
+ }
926
+ &.active::before {
927
+ color: @color;
928
+ }
929
+ }
930
+ }
931
+ });
618
932
  }
619
933
 
620
934
  // stylelint-disable no-invalid-position-at-import-rule