fomantic-ui 2.9.0-beta.2 → 2.9.0-beta.202

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/.all-contributorsrc +197 -3
  2. package/CONTRIBUTING.md +1 -1
  3. package/CONTRIBUTORS.md +74 -37
  4. package/README.md +1 -1
  5. package/dist/components/accordion.css +162 -26
  6. package/dist/components/accordion.js +1 -1
  7. package/dist/components/accordion.min.css +2 -2
  8. package/dist/components/accordion.min.js +2 -2
  9. package/dist/components/ad.css +1 -1
  10. package/dist/components/ad.min.css +1 -1
  11. package/dist/components/api.js +30 -26
  12. package/dist/components/api.min.js +3 -3
  13. package/dist/components/breadcrumb.css +1 -1
  14. package/dist/components/breadcrumb.min.css +1 -1
  15. package/dist/components/button.css +81 -81
  16. package/dist/components/button.min.css +2 -2
  17. package/dist/components/calendar.css +1 -1
  18. package/dist/components/calendar.js +110 -11
  19. package/dist/components/calendar.min.css +1 -1
  20. package/dist/components/calendar.min.js +3 -3
  21. package/dist/components/card.css +26 -19
  22. package/dist/components/card.min.css +2 -2
  23. package/dist/components/checkbox.css +2 -1
  24. package/dist/components/checkbox.js +17 -11
  25. package/dist/components/checkbox.min.css +2 -2
  26. package/dist/components/checkbox.min.js +3 -3
  27. package/dist/components/comment.css +11 -11
  28. package/dist/components/comment.min.css +1 -1
  29. package/dist/components/container.css +77 -1
  30. package/dist/components/container.min.css +2 -2
  31. package/dist/components/dimmer.css +28 -14
  32. package/dist/components/dimmer.js +7 -1
  33. package/dist/components/dimmer.min.css +2 -2
  34. package/dist/components/dimmer.min.js +3 -3
  35. package/dist/components/divider.css +1 -1
  36. package/dist/components/divider.min.css +1 -1
  37. package/dist/components/dropdown.css +30 -7
  38. package/dist/components/dropdown.js +59 -34
  39. package/dist/components/dropdown.min.css +2 -2
  40. package/dist/components/dropdown.min.js +3 -3
  41. package/dist/components/embed.css +1 -1
  42. package/dist/components/embed.js +1 -1
  43. package/dist/components/embed.min.css +1 -1
  44. package/dist/components/embed.min.js +2 -2
  45. package/dist/components/emoji.css +2 -2
  46. package/dist/components/feed.css +28 -28
  47. package/dist/components/feed.min.css +2 -2
  48. package/dist/components/flag.css +731 -625
  49. package/dist/components/flag.min.css +2 -2
  50. package/dist/components/form.css +106 -55
  51. package/dist/components/form.js +25 -23
  52. package/dist/components/form.min.css +2 -2
  53. package/dist/components/form.min.js +3 -3
  54. package/dist/components/grid.css +11 -8
  55. package/dist/components/grid.min.css +2 -2
  56. package/dist/components/header.css +1 -1
  57. package/dist/components/header.min.css +1 -1
  58. package/dist/components/icon.css +6 -1
  59. package/dist/components/icon.min.css +2 -2
  60. package/dist/components/image.css +1 -1
  61. package/dist/components/image.min.css +1 -1
  62. package/dist/components/input.css +734 -17
  63. package/dist/components/input.min.css +2 -2
  64. package/dist/components/item.css +13 -13
  65. package/dist/components/item.min.css +1 -1
  66. package/dist/components/label.css +1 -1
  67. package/dist/components/label.min.css +1 -1
  68. package/dist/components/list.css +1 -1
  69. package/dist/components/list.min.css +1 -1
  70. package/dist/components/loader.css +1 -1
  71. package/dist/components/loader.min.css +1 -1
  72. package/dist/components/menu.css +31 -7
  73. package/dist/components/menu.min.css +1 -1
  74. package/dist/components/message.css +41 -41
  75. package/dist/components/message.min.css +2 -2
  76. package/dist/components/modal.css +13 -1
  77. package/dist/components/modal.js +121 -46
  78. package/dist/components/modal.min.css +2 -2
  79. package/dist/components/modal.min.js +3 -3
  80. package/dist/components/nag.css +1 -1
  81. package/dist/components/nag.js +1 -1
  82. package/dist/components/nag.min.css +1 -1
  83. package/dist/components/nag.min.js +2 -2
  84. package/dist/components/placeholder.css +1 -1
  85. package/dist/components/placeholder.min.css +1 -1
  86. package/dist/components/popup.css +5 -3
  87. package/dist/components/popup.js +1 -1
  88. package/dist/components/popup.min.css +2 -2
  89. package/dist/components/popup.min.js +2 -2
  90. package/dist/components/progress.css +1 -1
  91. package/dist/components/progress.js +6 -3
  92. package/dist/components/progress.min.css +1 -1
  93. package/dist/components/progress.min.js +3 -3
  94. package/dist/components/rail.css +1 -1
  95. package/dist/components/rail.min.css +1 -1
  96. package/dist/components/rating.css +7 -46
  97. package/dist/components/rating.js +1 -1
  98. package/dist/components/rating.min.css +2 -2
  99. package/dist/components/rating.min.js +2 -2
  100. package/dist/components/reset.css +1 -1
  101. package/dist/components/reset.min.css +1 -1
  102. package/dist/components/reveal.css +1 -1
  103. package/dist/components/reveal.min.css +1 -1
  104. package/dist/components/search.css +1 -1
  105. package/dist/components/search.js +1 -1
  106. package/dist/components/search.min.css +1 -1
  107. package/dist/components/search.min.js +2 -2
  108. package/dist/components/segment.css +90 -6
  109. package/dist/components/segment.min.css +2 -2
  110. package/dist/components/shape.css +1 -1
  111. package/dist/components/shape.js +1 -1
  112. package/dist/components/shape.min.css +1 -1
  113. package/dist/components/shape.min.js +2 -2
  114. package/dist/components/sidebar.css +4 -2
  115. package/dist/components/sidebar.js +1 -1
  116. package/dist/components/sidebar.min.css +2 -2
  117. package/dist/components/sidebar.min.js +2 -2
  118. package/dist/components/site.css +61 -39
  119. package/dist/components/site.js +1 -1
  120. package/dist/components/site.min.css +2 -2
  121. package/dist/components/site.min.js +2 -2
  122. package/dist/components/slider.js +1 -1
  123. package/dist/components/slider.min.js +2 -2
  124. package/dist/components/state.js +1 -1
  125. package/dist/components/state.min.js +2 -2
  126. package/dist/components/statistic.css +1 -1
  127. package/dist/components/statistic.min.css +1 -1
  128. package/dist/components/step.css +4 -4
  129. package/dist/components/step.min.css +2 -2
  130. package/dist/components/sticky.css +1 -1
  131. package/dist/components/sticky.js +2 -2
  132. package/dist/components/sticky.min.css +1 -1
  133. package/dist/components/sticky.min.js +3 -3
  134. package/dist/components/tab.css +1 -1
  135. package/dist/components/tab.js +23 -5
  136. package/dist/components/tab.min.css +1 -1
  137. package/dist/components/tab.min.js +3 -3
  138. package/dist/components/table.css +1168 -26
  139. package/dist/components/table.min.css +2 -2
  140. package/dist/components/text.css +1 -1
  141. package/dist/components/text.min.css +1 -1
  142. package/dist/components/toast.css +45 -1
  143. package/dist/components/toast.js +56 -28
  144. package/dist/components/toast.min.css +2 -2
  145. package/dist/components/toast.min.js +3 -3
  146. package/dist/components/transition.css +1 -1
  147. package/dist/components/transition.js +2 -2
  148. package/dist/components/transition.min.css +1 -1
  149. package/dist/components/transition.min.js +3 -3
  150. package/dist/components/visibility.js +2 -2
  151. package/dist/components/visibility.min.js +2 -2
  152. package/dist/semantic.css +4300 -1394
  153. package/dist/semantic.js +473 -207
  154. package/dist/semantic.min.css +3 -3
  155. package/dist/semantic.min.js +3 -3
  156. package/examples/assets/library/iframe-content.js +8 -8
  157. package/examples/assets/library/iframe.js +3 -3
  158. package/package.json +2 -2
  159. package/src/definitions/behaviors/api.js +29 -25
  160. package/src/definitions/behaviors/form.js +24 -22
  161. package/src/definitions/behaviors/visibility.js +1 -1
  162. package/src/definitions/collections/form.less +193 -140
  163. package/src/definitions/collections/grid.less +716 -680
  164. package/src/definitions/collections/menu.less +174 -127
  165. package/src/definitions/collections/message.less +48 -46
  166. package/src/definitions/collections/table.less +849 -262
  167. package/src/definitions/elements/button.less +360 -347
  168. package/src/definitions/elements/container.less +126 -8
  169. package/src/definitions/elements/emoji.less +15 -9
  170. package/src/definitions/elements/flag.less +7 -17
  171. package/src/definitions/elements/header.less +42 -35
  172. package/src/definitions/elements/icon.less +38 -31
  173. package/src/definitions/elements/input.less +256 -21
  174. package/src/definitions/elements/label.less +92 -91
  175. package/src/definitions/elements/list.less +55 -45
  176. package/src/definitions/elements/loader.less +30 -29
  177. package/src/definitions/elements/segment.less +146 -27
  178. package/src/definitions/elements/step.less +52 -48
  179. package/src/definitions/elements/text.less +17 -15
  180. package/src/definitions/globals/site.less +23 -2
  181. package/src/definitions/modules/accordion.less +175 -24
  182. package/src/definitions/modules/calendar.js +109 -10
  183. package/src/definitions/modules/checkbox.js +16 -10
  184. package/src/definitions/modules/checkbox.less +34 -178
  185. package/src/definitions/modules/dimmer.js +6 -0
  186. package/src/definitions/modules/dimmer.less +21 -8
  187. package/src/definitions/modules/dropdown.js +58 -33
  188. package/src/definitions/modules/dropdown.less +101 -69
  189. package/src/definitions/modules/modal.js +120 -45
  190. package/src/definitions/modules/modal.less +12 -0
  191. package/src/definitions/modules/nag.less +20 -19
  192. package/src/definitions/modules/popup.less +5 -1
  193. package/src/definitions/modules/progress.js +5 -2
  194. package/src/definitions/modules/progress.less +19 -18
  195. package/src/definitions/modules/rating.less +49 -42
  196. package/src/definitions/modules/search.less +32 -16
  197. package/src/definitions/modules/sidebar.less +33 -19
  198. package/src/definitions/modules/slider.less +39 -38
  199. package/src/definitions/modules/sticky.js +1 -1
  200. package/src/definitions/modules/tab.js +22 -4
  201. package/src/definitions/modules/toast.js +55 -27
  202. package/src/definitions/modules/toast.less +53 -16
  203. package/src/definitions/modules/transition.js +1 -1
  204. package/src/definitions/views/card.less +402 -361
  205. package/src/definitions/views/comment.less +92 -81
  206. package/src/definitions/views/feed.less +164 -144
  207. package/src/definitions/views/item.less +249 -196
  208. package/src/definitions/views/statistic.less +90 -88
  209. package/src/themes/bookish/elements/header.overrides +1 -1
  210. package/src/themes/chubby/elements/button.overrides +1 -1
  211. package/src/themes/chubby/elements/header.overrides +1 -1
  212. package/src/themes/default/collections/menu.variables +6 -0
  213. package/src/themes/default/collections/table.variables +52 -0
  214. package/src/themes/default/elements/button.variables +2 -1
  215. package/src/themes/default/elements/container.variables +8 -0
  216. package/src/themes/default/elements/flag.overrides +1635 -986
  217. package/src/themes/default/elements/flag.variables +7 -5
  218. package/src/themes/default/elements/icon.overrides +35 -28
  219. package/src/themes/default/elements/icon.variables +1 -0
  220. package/src/themes/default/elements/input.variables +15 -0
  221. package/src/themes/default/elements/segment.variables +8 -0
  222. package/src/themes/default/elements/step.overrides +1 -1
  223. package/src/themes/default/globals/site.variables +6 -0
  224. package/src/themes/default/globals/variation.variables +135 -6
  225. package/src/themes/default/modules/accordion.variables +49 -2
  226. package/src/themes/default/modules/checkbox.variables +5 -5
  227. package/src/themes/default/modules/dimmer.variables +1 -1
  228. package/src/themes/default/modules/dropdown.variables +1 -1
  229. package/src/themes/default/modules/modal.variables +13 -0
  230. package/src/themes/default/modules/toast.variables +3 -0
  231. package/src/themes/famfamfam/elements/flag.overrides +1026 -0
  232. package/src/themes/famfamfam/elements/flag.variables +13 -0
  233. package/src/themes/instagram/views/card.overrides +1 -1
  234. package/src/themes/material/collections/menu.overrides +1 -1
  235. package/src/themes/material/elements/button.overrides +1 -1
  236. package/src/themes/material/elements/header.overrides +1 -1
  237. package/src/themes/material/modules/dropdown.overrides +1 -1
  238. package/src/themes/material/modules/modal.overrides +1 -1
  239. package/src/themes/rtl/globals/site.overrides +1 -1
  240. package/tasks/admin/components/init.js +2 -2
  241. package/tasks/admin/distributions/init.js +2 -2
  242. package/tasks/build/css.js +6 -1
  243. package/test/helpers/sinon.js +1 -1
@@ -42,8 +42,10 @@
42
42
  .ui.ui.ui.relaxed.grid.container {
43
43
  width: @mobileRelaxedGridWidth;
44
44
  }
45
- .ui.ui.ui.very.relaxed.grid.container {
46
- width: @mobileVeryRelaxedGridWidth;
45
+ & when (@variationContainerVeryRelaxed) {
46
+ .ui.ui.ui.very.relaxed.grid.container {
47
+ width: @mobileVeryRelaxedGridWidth;
48
+ }
47
49
  }
48
50
  }
49
51
  }
@@ -64,8 +66,10 @@
64
66
  .ui.ui.ui.relaxed.grid.container {
65
67
  width: @tabletRelaxedGridWidth;
66
68
  }
67
- .ui.ui.ui.very.relaxed.grid.container {
68
- width: @tabletVeryRelaxedGridWidth;
69
+ & when (@variationContainerVeryRelaxed) {
70
+ .ui.ui.ui.very.relaxed.grid.container {
71
+ width: @tabletVeryRelaxedGridWidth;
72
+ }
69
73
  }
70
74
  }
71
75
  }
@@ -86,8 +90,10 @@
86
90
  .ui.ui.ui.relaxed.grid.container {
87
91
  width: @computerRelaxedGridWidth;
88
92
  }
89
- .ui.ui.ui.very.relaxed.grid.container {
90
- width: @computerVeryRelaxedGridWidth;
93
+ & when (@variationContainerVeryRelaxed) {
94
+ .ui.ui.ui.very.relaxed.grid.container {
95
+ width: @computerVeryRelaxedGridWidth;
96
+ }
91
97
  }
92
98
  }
93
99
  }
@@ -108,8 +114,10 @@
108
114
  .ui.ui.ui.relaxed.grid.container {
109
115
  width: @largeMonitorRelaxedGridWidth;
110
116
  }
111
- .ui.ui.ui.very.relaxed.grid.container {
112
- width: @largeMonitorVeryRelaxedGridWidth;
117
+ & when (@variationContainerVeryRelaxed) {
118
+ .ui.ui.ui.very.relaxed.grid.container {
119
+ width: @largeMonitorVeryRelaxedGridWidth;
120
+ }
113
121
  }
114
122
  }
115
123
  }
@@ -156,5 +164,115 @@
156
164
  hyphens: auto;
157
165
  }
158
166
  }
167
+ & when (@variationContainerScrolling) {
168
+ /*--------------
169
+ Scrolling
170
+ ---------------*/
171
+ .ui.scrolling.container {
172
+ overflow: auto;
173
+ }
174
+ @media only screen and (max-width : @largestMobileScreen) {
175
+ & when (@variationContainerScrollingShort) {
176
+ .ui.scrolling.container.short {
177
+ max-height: @scrollingMobileMaxHeight * 0.75;
178
+ }
179
+ }
180
+ & when (@variationContainerScrollingVeryShort) {
181
+ .ui.scrolling.container[class*="very short"] {
182
+ max-height: @scrollingMobileMaxHeight * 0.5;
183
+ }
184
+ }
185
+ .ui.scrolling.container {
186
+ max-height: @scrollingMobileMaxHeight;
187
+ }
188
+ & when (@variationContainerScrollingLong) {
189
+ .ui.scrolling.container.long {
190
+ max-height: @scrollingMobileMaxHeight * 2;
191
+ }
192
+ }
193
+ & when (@variationContainerScrollingVeryLong) {
194
+ .ui.scrolling.container[class*="very long"] {
195
+ max-height: @scrollingMobileMaxHeight * 3;
196
+ }
197
+ }
198
+ }
199
+
200
+ @media only screen and (min-width: @tabletBreakpoint) {
201
+ & when (@variationContainerScrollingShort) {
202
+ .ui.scrolling.container.short {
203
+ max-height: @scrollingTabletMaxHeight * 0.75;
204
+ }
205
+ }
206
+ & when (@variationContainerScrollingVeryShort) {
207
+ .ui.scrolling.container[class*="very short"] {
208
+ max-height: @scrollingTabletMaxHeight * 0.5;
209
+ }
210
+ }
211
+ .ui.scrolling.container {
212
+ max-height: @scrollingTabletMaxHeight;
213
+ }
214
+ & when (@variationContainerScrollingLong) {
215
+ .ui.scrolling.container.long {
216
+ max-height: @scrollingTabletMaxHeight * 2;
217
+ }
218
+ }
219
+ & when (@variationContainerScrollingVeryLong) {
220
+ .ui.scrolling.container[class*="very long"] {
221
+ max-height: @scrollingTabletMaxHeight * 3;
222
+ }
223
+ }
224
+ }
225
+ @media only screen and (min-width: @computerBreakpoint) {
226
+ & when (@variationContainerScrollingShort) {
227
+ .ui.scrolling.container.short {
228
+ max-height: @scrollingComputerMaxHeight * 0.75;
229
+ }
230
+ }
231
+ & when (@variationContainerScrollingVeryShort) {
232
+ .ui.scrolling.container[class*="very short"] {
233
+ max-height: @scrollingComputerMaxHeight * 0.5;
234
+ }
235
+ }
236
+ .ui.scrolling.container {
237
+ max-height: @scrollingComputerMaxHeight;
238
+ }
239
+ & when (@variationContainerScrollingLong) {
240
+ .ui.scrolling.container.long {
241
+ max-height: @scrollingComputerMaxHeight * 2;
242
+ }
243
+ }
244
+ & when (@variationContainerScrollingVeryLong) {
245
+ .ui.scrolling.container[class*="very long"]{
246
+ max-height: @scrollingComputerMaxHeight * 3;
247
+ }
248
+ }
249
+ }
250
+ @media only screen and (min-width: @widescreenMonitorBreakpoint) {
251
+ & when (@variationContainerScrollingShort) {
252
+ .ui.scrolling.container.short {
253
+ max-height: @scrollingWidescreenMaxHeight * 0.75;
254
+ }
255
+ }
256
+ & when (@variationContainerScrollingVeryShort) {
257
+ .ui.scrolling.container[class*="very short"] {
258
+ max-height: @scrollingWidescreenMaxHeight * 0.5;
259
+ }
260
+ }
261
+ .ui.scrolling.container {
262
+ max-height: @scrollingWidescreenMaxHeight;
263
+ }
264
+ & when (@variationContainerScrollingLong) {
265
+ .ui.scrolling.container.long {
266
+ max-height: @scrollingWidescreenMaxHeight * 2;
267
+ }
268
+ }
269
+ & when (@variationContainerScrollingVeryLong) {
270
+ .ui.scrolling.container[class*="very long"] {
271
+ max-height: @scrollingWidescreenMaxHeight * 3;
272
+ }
273
+ }
274
+ }
275
+ }
276
+
159
277
 
160
278
  .loadUIOverrides();
@@ -47,8 +47,10 @@ em[data-emoji]:before {
47
47
  States
48
48
  *******************************/
49
49
 
50
- em[data-emoji].disabled {
51
- opacity: @disabledOpacity;
50
+ & when (@variationEmojiDisabled) {
51
+ em[data-emoji].disabled {
52
+ opacity: @disabledOpacity;
53
+ }
52
54
  }
53
55
 
54
56
 
@@ -56,17 +58,21 @@ em[data-emoji].disabled {
56
58
  Variations
57
59
  *******************************/
58
60
 
59
- em[data-emoji].loading:before {
60
- animation: loader @loadingDuration linear infinite;
61
+ & when (@variationEmojiLoading) {
62
+ em[data-emoji].loading:before {
63
+ animation: loader @loadingDuration linear infinite;
64
+ }
61
65
  }
62
66
 
63
67
 
64
- /*-------------------
65
- Link
66
- --------------------*/
68
+ & when (@variationEmojiLink) {
69
+ /*-------------------
70
+ Link
71
+ --------------------*/
67
72
 
68
- em[data-emoji].link:not(.disabled) {
69
- cursor: pointer;
73
+ em[data-emoji].link:not(.disabled) {
74
+ cursor: pointer;
75
+ }
70
76
  }
71
77
 
72
78
  .loadUIOverrides();
@@ -24,29 +24,19 @@
24
24
  *******************************/
25
25
 
26
26
  i.flag:not(.icon) {
27
- display: inline-block;
28
-
29
- width: @width;
30
- height: @height;
31
-
32
- line-height: @height;
33
- vertical-align: @verticalAlign;
34
- margin: 0 @margin 0 0;
35
-
36
- text-decoration: inherit;
37
-
38
27
  speak: none;
39
- -webkit-font-smoothing: antialiased;
40
28
  backface-visibility: hidden;
41
29
  }
42
30
 
43
- /* Sprite */
44
31
  i.flag:not(.icon):before {
32
+ content: '\00A0\00A0\00A0\00A0\00A0\00A0\00A0';
45
33
  display: inline-block;
46
- content: '';
47
- background: url(@spritePath) no-repeat -108px -1976px;
48
- width: @width;
49
- height: @height;
34
+ line-height: @flagLineHeight;
35
+ background-repeat: no-repeat;
36
+ background-position: center center;
37
+ & when not (@flagFileType = 'svg') {
38
+ background-size: contain;
39
+ }
50
40
  }
51
41
 
52
42
  .loadUIOverrides();
@@ -254,10 +254,12 @@
254
254
  margin-bottom: 0;
255
255
  }
256
256
  }
257
- .ui.icon.header.aligned {
258
- margin-left: auto;
259
- margin-right: auto;
260
- display: block;
257
+ & when (@variationHeaderAligned) {
258
+ .ui.icon.header.aligned {
259
+ margin-left: auto;
260
+ margin-right: auto;
261
+ display: block;
262
+ }
261
263
  }
262
264
  }
263
265
 
@@ -306,37 +308,38 @@
306
308
  /*-------------------
307
309
  Colors
308
310
  --------------------*/
309
-
310
- each(@colors, {
311
- @color: replace(@key, '@', '');
312
- @c: @colors[@@color][color];
313
- @l: @colors[@@color][light];
314
- @h: @colors[@@color][hover];
315
- @lh: @colors[@@color][lightHover];
316
-
317
- .ui.@{color}.header {
318
- color: @c;
319
- }
320
- a.ui.@{color}.header:hover {
321
- color: @h;
322
- }
323
- & when (@variationHeaderDividing) {
324
- .ui.@{color}.dividing.header {
325
- border-bottom: @dividedColoredBorderWidth solid @c;
311
+ & when not (@variationHeaderColors = false) {
312
+ each(@variationHeaderColors, {
313
+ @color: @value;
314
+ @c: @colors[@@color][color];
315
+ @l: @colors[@@color][light];
316
+ @h: @colors[@@color][hover];
317
+ @lh: @colors[@@color][lightHover];
318
+
319
+ .ui.@{color}.header {
320
+ color: @c;
326
321
  }
327
- }
328
- & when (@variationHeaderInverted) {
329
- .ui.inverted.@{color}.header.header.header {
330
- color: @l;
322
+ a.ui.@{color}.header:hover {
323
+ color: @h;
331
324
  }
332
- a.ui.inverted.@{color}.header.header.header:hover {
333
- color: @lh;
325
+ & when (@variationHeaderDividing) {
326
+ .ui.@{color}.dividing.header {
327
+ border-bottom: @dividedColoredBorderWidth solid @c;
328
+ }
334
329
  }
335
- .ui.inverted.@{color}.dividing.header {
336
- border-bottom: @dividedColoredBorderWidth solid @l;
330
+ & when (@variationHeaderInverted) {
331
+ .ui.inverted.@{color}.header.header.header {
332
+ color: @l;
333
+ }
334
+ a.ui.inverted.@{color}.header.header.header:hover {
335
+ color: @lh;
336
+ }
337
+ .ui.inverted.@{color}.dividing.header {
338
+ border-bottom: @dividedColoredBorderWidth solid @l;
339
+ }
337
340
  }
338
- }
339
- })
341
+ })
342
+ }
340
343
 
341
344
  & when (@variationHeaderAligned) {
342
345
  /*-------------------
@@ -403,8 +406,10 @@ each(@colors, {
403
406
  padding-bottom: @dividedBorderPadding;
404
407
  border-bottom: @dividedBorder;
405
408
  }
406
- .ui.dividing.header .sub.header {
407
- padding-bottom: @dividedSubHeaderPadding;
409
+ & when (@variationHeaderSub) {
410
+ .ui.dividing.header .sub.header {
411
+ padding-bottom: @dividedSubHeaderPadding;
412
+ }
408
413
  }
409
414
  .ui.dividing.header i.icon {
410
415
  margin-bottom: @dividedIconPadding;
@@ -454,8 +459,10 @@ each(@colors, {
454
459
  border: @attachedBorder;
455
460
  border-radius: 0;
456
461
  }
457
- .ui.attached.block.header {
458
- background: @blockBackground;
462
+ & when (@variationHeaderBlock) {
463
+ .ui.attached.block.header {
464
+ background: @blockBackground;
465
+ }
459
466
  }
460
467
  .ui.attached:not(.top).header {
461
468
  border-top: none;
@@ -22,16 +22,17 @@
22
22
  /*******************************
23
23
  Icon
24
24
  *******************************/
25
-
26
- @font-face {
27
- font-family: 'Icons';
28
- src: @fallbackSRC;
29
- src: @src;
30
- font-style: normal;
31
- font-weight: @normal;
32
- font-variant: normal;
33
- text-decoration: inherit;
34
- text-transform: none;
25
+ & when (@importIcons) {
26
+ @font-face {
27
+ font-family: 'Icons';
28
+ src: @fallbackSRC;
29
+ src: @src;
30
+ font-style: normal;
31
+ font-weight: @normal;
32
+ font-variant: normal;
33
+ text-decoration: inherit;
34
+ text-transform: none;
35
+ }
35
36
  }
36
37
 
37
38
  i.icon {
@@ -104,6 +105,7 @@ i.emphasized.icon:not(.disabled), i.emphasized.icons:not(.disabled) {
104
105
  Fitted
105
106
  --------------------*/
106
107
 
108
+ i.fitted.icons,
107
109
  i.fitted.icon {
108
110
  width: auto;
109
111
  margin: 0 !important;
@@ -319,30 +321,31 @@ i.emphasized.icon:not(.disabled), i.emphasized.icons:not(.disabled) {
319
321
  /*-------------------
320
322
  Colors
321
323
  --------------------*/
322
-
323
- each(@colors, {
324
- @color: replace(@key, '@', '');
325
- @c: @colors[@@color][color];
326
- @l: @colors[@@color][light];
327
-
328
- i.@{color}.icon.icon.icon.icon.icon {
329
- color: @c;
330
- }
331
- & when (@variationIconInverted) {
332
- i.inverted.@{color}.icon.icon.icon.icon.icon {
333
- color: @l;
324
+ & when not (@variationIconColors = false) {
325
+ each(@variationIconColors, {
326
+ @color: @value;
327
+ @c: @colors[@@color][color];
328
+ @l: @colors[@@color][light];
329
+
330
+ i.@{color}.icon.icon.icon.icon.icon {
331
+ color: @c;
334
332
  }
335
- & when (@variationIconBordered) or (@variationIconCircular) {
336
- i.inverted.bordered.@{color}.icon.icon.icon.icon.icon,
337
- i.inverted.circular.@{color}.icon.icon.icon.icon.icon,
338
- i.inverted.bordered.@{color}.icons,
339
- i.inverted.circular.@{color}.icons {
340
- background-color: @c;
341
- color: @white;
333
+ & when (@variationIconInverted) {
334
+ i.inverted.@{color}.icon.icon.icon.icon.icon {
335
+ color: @l;
336
+ }
337
+ & when (@variationIconBordered) or (@variationIconCircular) {
338
+ i.inverted.bordered.@{color}.icon.icon.icon.icon.icon,
339
+ i.inverted.circular.@{color}.icon.icon.icon.icon.icon,
340
+ i.inverted.bordered.@{color}.icons,
341
+ i.inverted.circular.@{color}.icons {
342
+ background-color: @c;
343
+ color: @white;
344
+ }
342
345
  }
343
346
  }
344
- }
345
- })
347
+ })
348
+ }
346
349
 
347
350
 
348
351
  /*-------------------
@@ -375,6 +378,10 @@ i.icons {
375
378
  display: inline-block;
376
379
  position: relative;
377
380
  line-height: 1;
381
+ min-width: @width;
382
+ min-height: @height;
383
+ margin: 0 @distanceFromText 0 0;
384
+ text-align: center;
378
385
  }
379
386
 
380
387
  i.icons .icon {