fomantic-ui 2.9.4-beta.1 → 2.9.4-beta.100

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 (296) hide show
  1. package/.all-contributorsrc +29 -1
  2. package/.eslintrc.js +17 -0
  3. package/.github/FUNDING.yml +1 -1
  4. package/.github/workflows/ci.yml +8 -8
  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 +5 -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 +47 -12
  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 -40
  43. package/dist/components/dropdown.js +110 -35
  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 +3 -3
  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 +28 -7
  61. package/dist/components/form.js +74 -29
  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 +4 -1
  67. package/dist/components/header.min.css +2 -2
  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 +30 -10
  73. package/dist/components/input.min.css +2 -2
  74. package/dist/components/item.css +1 -1
  75. package/dist/components/item.min.css +1 -1
  76. package/dist/components/label.css +7 -2
  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 -2
  83. package/dist/components/menu.min.css +2 -2
  84. package/dist/components/message.css +2 -1
  85. package/dist/components/message.min.css +2 -2
  86. package/dist/components/modal.css +3 -3
  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 -2
  97. package/dist/components/popup.js +10 -4
  98. package/dist/components/popup.min.css +2 -2
  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 +34 -23
  115. package/dist/components/search.js +78 -14
  116. package/dist/components/search.min.css +2 -2
  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 +6226 -3986
  165. package/dist/semantic.js +580 -195
  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/semantic.json.example +1 -1
  175. package/src/definitions/behaviors/api.js +6 -2
  176. package/src/definitions/behaviors/form.js +73 -28
  177. package/src/definitions/behaviors/state.js +3 -1
  178. package/src/definitions/behaviors/visibility.js +3 -1
  179. package/src/definitions/collections/form.less +56 -27
  180. package/src/definitions/collections/grid.less +85 -70
  181. package/src/definitions/collections/menu.less +38 -27
  182. package/src/definitions/collections/message.less +1 -0
  183. package/src/definitions/collections/table.less +183 -157
  184. package/src/definitions/elements/button.less +61 -25
  185. package/src/definitions/elements/container.less +6 -4
  186. package/src/definitions/elements/divider.less +4 -1
  187. package/src/definitions/elements/emoji.less +3 -1
  188. package/src/definitions/elements/header.less +12 -4
  189. package/src/definitions/elements/icon.less +35 -28
  190. package/src/definitions/elements/input.less +35 -19
  191. package/src/definitions/elements/label.less +19 -8
  192. package/src/definitions/elements/list.less +28 -21
  193. package/src/definitions/elements/loader.less +17 -12
  194. package/src/definitions/elements/segment.less +12 -7
  195. package/src/definitions/elements/step.less +405 -87
  196. package/src/definitions/globals/site.js +3 -1
  197. package/src/definitions/globals/site.less +17 -12
  198. package/src/definitions/modules/accordion.js +3 -1
  199. package/src/definitions/modules/accordion.less +15 -13
  200. package/src/definitions/modules/calendar.js +46 -11
  201. package/src/definitions/modules/calendar.less +6 -4
  202. package/src/definitions/modules/checkbox.js +9 -3
  203. package/src/definitions/modules/checkbox.less +12 -6
  204. package/src/definitions/modules/dimmer.js +3 -1
  205. package/src/definitions/modules/dimmer.less +16 -10
  206. package/src/definitions/modules/dropdown.js +109 -34
  207. package/src/definitions/modules/dropdown.less +109 -78
  208. package/src/definitions/modules/embed.js +16 -6
  209. package/src/definitions/modules/flyout.js +3 -1
  210. package/src/definitions/modules/flyout.less +51 -45
  211. package/src/definitions/modules/modal.js +6 -2
  212. package/src/definitions/modules/modal.less +109 -82
  213. package/src/definitions/modules/nag.js +10 -4
  214. package/src/definitions/modules/nag.less +8 -4
  215. package/src/definitions/modules/popup.js +9 -3
  216. package/src/definitions/modules/popup.less +3 -1
  217. package/src/definitions/modules/progress.js +3 -1
  218. package/src/definitions/modules/progress.less +24 -6
  219. package/src/definitions/modules/rating.js +3 -1
  220. package/src/definitions/modules/search.js +77 -13
  221. package/src/definitions/modules/search.less +41 -25
  222. package/src/definitions/modules/shape.js +6 -4
  223. package/src/definitions/modules/sidebar.js +3 -1
  224. package/src/definitions/modules/slider.js +141 -43
  225. package/src/definitions/modules/slider.less +129 -27
  226. package/src/definitions/modules/sticky.js +3 -1
  227. package/src/definitions/modules/tab.js +3 -1
  228. package/src/definitions/modules/toast.js +6 -2
  229. package/src/definitions/modules/toast.less +35 -24
  230. package/src/definitions/modules/transition.js +6 -2
  231. package/src/definitions/views/card.less +7 -5
  232. package/src/definitions/views/feed.less +14 -1
  233. package/src/definitions/views/item.less +7 -5
  234. package/src/themes/basic/assets/fonts/LICENSE.txt +91 -0
  235. package/src/themes/default/assets/fonts/LICENSE_Lato.txt +94 -0
  236. package/src/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
  237. package/src/themes/default/collections/form.variables +1 -0
  238. package/src/themes/default/elements/button.variables +3 -0
  239. package/src/themes/default/elements/emoji.variables +172 -23
  240. package/src/themes/default/elements/flag.variables +3 -3
  241. package/src/themes/default/elements/step.variables +33 -0
  242. package/src/themes/default/globals/site.variables +3 -0
  243. package/src/themes/default/globals/variation.variables +24 -2
  244. package/src/themes/default/modules/dropdown.variables +3 -0
  245. package/src/themes/default/modules/progress.variables +1 -1
  246. package/src/themes/default/modules/search.variables +15 -12
  247. package/src/themes/default/modules/slider.variables +10 -0
  248. package/src/themes/default/views/feed.variables +3 -0
  249. package/src/themes/github/assets/fonts/LICENSE.txt +94 -0
  250. package/src/themes/joypixels/elements/emoji.variables +183 -22
  251. package/src/themes/material/assets/fonts/LICENSE.txt +202 -0
  252. package/tasks/admin/components/create.js +4 -4
  253. package/tasks/admin/components/init.js +2 -2
  254. package/tasks/admin/components/update.js +3 -3
  255. package/tasks/admin/distributions/create.js +3 -3
  256. package/tasks/admin/distributions/init.js +2 -2
  257. package/tasks/admin/distributions/update.js +4 -4
  258. package/tasks/build/assets.js +1 -1
  259. package/tasks/build/css.js +19 -10
  260. package/tasks/build/javascript.js +12 -5
  261. package/tasks/check-install.js +1 -1
  262. package/tasks/config/defaults.js +4 -0
  263. package/tasks/config/project/release.js +19 -1
  264. package/tasks/config/tasks.js +7 -7
  265. package/tasks/docs/build.js +3 -3
  266. package/tasks/docs/metadata.js +1 -1
  267. package/tasks/docs/serve.js +3 -1
  268. package/tasks/install.js +2 -2
  269. package/tasks/watch.js +1 -1
  270. package/types/fomantic-ui-accordion.d.ts +1 -1
  271. package/types/fomantic-ui-api.d.ts +9 -3
  272. package/types/fomantic-ui-calendar.d.ts +114 -13
  273. package/types/fomantic-ui-checkbox.d.ts +14 -4
  274. package/types/fomantic-ui-dimmer.d.ts +1 -1
  275. package/types/fomantic-ui-dropdown.d.ts +82 -44
  276. package/types/fomantic-ui-embed.d.ts +19 -2
  277. package/types/fomantic-ui-flyout.d.ts +25 -11
  278. package/types/fomantic-ui-form.d.ts +128 -20
  279. package/types/fomantic-ui-modal.d.ts +101 -5
  280. package/types/fomantic-ui-nag.d.ts +4 -4
  281. package/types/fomantic-ui-popup.d.ts +38 -12
  282. package/types/fomantic-ui-progress.d.ts +12 -6
  283. package/types/fomantic-ui-rating.d.ts +1 -1
  284. package/types/fomantic-ui-search.d.ts +138 -22
  285. package/types/fomantic-ui-shape.d.ts +2 -2
  286. package/types/fomantic-ui-sidebar.d.ts +4 -4
  287. package/types/fomantic-ui-slider.d.ts +56 -4
  288. package/types/fomantic-ui-sticky.d.ts +1 -1
  289. package/types/fomantic-ui-tab.d.ts +6 -6
  290. package/types/fomantic-ui-toast.d.ts +14 -2
  291. package/types/fomantic-ui-transition.d.ts +41 -7
  292. package/types/fomantic-ui-visibility.d.ts +3 -3
  293. package/types/index.d.ts +25 -25
  294. package/types/tests.ts +188 -0
  295. package/types/tsconfig.json +1 -1
  296. package/types/fomantic-ui-tests.ts +0 -25
@@ -183,6 +183,7 @@
183
183
  $toast.append($('<img>', {
184
184
  class: className.image + ' ' + settings.classImage,
185
185
  src: settings.showImage,
186
+ alt: settings.alt || '',
186
187
  }));
187
188
  }
188
189
  if (settings.title !== '') {
@@ -228,7 +229,7 @@
228
229
  $toast.find(selector.icon).attr('class', iconClass + ' ' + className.icon);
229
230
  }
230
231
  if (settings.showImage) {
231
- $toast.find(selector.image).attr('src', settings.showImage);
232
+ $toast.find(selector.image).attr('src', settings.showImage).attr('alt', settings.alt || '');
232
233
  }
233
234
  if (settings.title !== '') {
234
235
  $toast.find(selector.title).html(module.helpers.escape(settings.title, settings.preserveHTML));
@@ -702,7 +703,9 @@
702
703
  });
703
704
  }
704
705
  clearTimeout(module.performance.timer);
705
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
706
+ module.performance.timer = setTimeout(function () {
707
+ module.performance.display();
708
+ }, 500);
706
709
  },
707
710
  display: function () {
708
711
  var
@@ -839,6 +842,7 @@
839
842
  actions: false,
840
843
  preserveHTML: true,
841
844
  showImage: false,
845
+ alt: false,
842
846
 
843
847
  // transition settings
844
848
  transition: {
@@ -17,6 +17,17 @@
17
17
 
18
18
  @import (multiple) "../../theme.config";
19
19
 
20
+ @notActions: if(@variationToastActions, e(":not(.actions)"));
21
+ @notAttached: if(@variationToastAttached, e(":not(.attached)"));
22
+ @notVertical: if(@variationToastVertical, e(":not(.vertical)"));
23
+ @notCenter: if(@variationToastCenter, e(":not(.center)"));
24
+ @notCentered: if(@variationToastCentered, e(":not(.centered)"));
25
+ @notBasic: if(@variationToastBasic, e(":not(.basic)"));
26
+ @notClose: if(@variationToastClose, e(":not(.close)"));
27
+ @notUnclickable: if(@variationToastUnclickable, e(":not(.unclickable)"));
28
+
29
+ @notFluid: if(@variationButtonFluid, e(":not(.fluid)"));
30
+
20
31
  /*******************************
21
32
  Toast container
22
33
  *******************************/
@@ -56,7 +67,7 @@
56
67
  & > * {
57
68
  width: 100%;
58
69
  border-radius: 0;
59
- & > .vertical:not(.actions) when (@variationToastVertical) {
70
+ & > .vertical@{notActions} when (@variationToastVertical) {
60
71
  flex: 1;
61
72
  }
62
73
  }
@@ -130,7 +141,7 @@
130
141
  &:hover {
131
142
  opacity: @toastOpacityOnHover;
132
143
  }
133
- &:not(.unclickable):hover {
144
+ &@{notUnclickable}:hover {
134
145
  cursor: @toastCursorOnHover;
135
146
  }
136
147
  & when (@variationToastFloating) {
@@ -195,18 +206,18 @@
195
206
  }
196
207
  &.icon when (@variationToastIcon) {
197
208
  align-items: inherit;
198
- & > :not(.icon):not(.actions) {
209
+ & > :not(.icon)@{notActions} {
199
210
  padding-left: @toastIconMessageContentPadding;
200
211
  }
201
- & > i.icon:not(.close) when (@variationToastIcon) {
212
+ & > i.icon@{notClose} when (@variationToastIcon) {
202
213
  display: inline-block;
203
214
  position: absolute;
204
215
  width: @toastIconMessageWidth;
205
216
  top: 50%;
206
217
  transform: translateY(-50%);
207
218
  }
208
- &:not(.vertical) {
209
- &.actions > i.icon:not(.close) when (@variationToastActions) and (@variationToastIcon) {
219
+ &@{notVertical} {
220
+ &.actions > i.icon@{notClose} when (@variationToastActions) and (@variationToastIcon) {
210
221
  top: e(%("calc(50%% - %d)", @toastIconCenteredAdjustment));
211
222
  transform: none;
212
223
  }
@@ -230,7 +241,7 @@
230
241
  margin-top: -@toastCloseTopDistance;
231
242
  margin-right: -@toastCloseTopDistance;
232
243
  }
233
- &:not(.vertical) > .close.icon when (@variationToastClose) {
244
+ &@{notVertical} > .close.icon when (@variationToastClose) {
234
245
  position: absolute;
235
246
  top: @toastCloseTopDistance;
236
247
  &:not(.left) {
@@ -243,7 +254,7 @@
243
254
  }
244
255
  & .ui.card when (@variationToastCard) {
245
256
  margin: 0;
246
- &.attached:not(.vertical) when (@variationToastAttached) {
257
+ &.attached@{notVertical} when (@variationToastAttached) {
247
258
  &.bottom {
248
259
  border-top-left-radius: 0;
249
260
  border-top-right-radius: 0;
@@ -296,7 +307,7 @@
296
307
  &:hover .pausable.progressing {
297
308
  animation-play-state: paused;
298
309
  }
299
- & .ui.toast:not(.vertical) {
310
+ & .ui.toast@{notVertical} {
300
311
  display: block;
301
312
  }
302
313
  & :not(.comment) {
@@ -306,10 +317,10 @@
306
317
  & .actions when (@variationToastActions) {
307
318
  padding: @toastActionPadding @toastActionPadding @toastActionPaddingBottom @toastActionPadding;
308
319
  text-align: right;
309
- &.attached:not(.vertical) when (@variationToastAttached) {
320
+ &.attached@{notVertical} when (@variationToastAttached) {
310
321
  margin-right: @toastLeftRightMargin;
311
322
  }
312
- &:not(.basic):not(.attached) {
323
+ &@{notBasic}@{notAttached} {
313
324
  background: @toastActionBackground;
314
325
  border-top: @toastActionBorder;
315
326
  }
@@ -333,13 +344,13 @@
333
344
  &.attached > .button when (@variationToastAttached) {
334
345
  align-items: center;
335
346
  }
336
- &:not(.attached) {
347
+ &@{notAttached} {
337
348
  border-top: 0;
338
349
  margin-top: -@toastActionPaddingBottom;
339
350
  margin-bottom: -@toastActionPaddingBottom;
340
351
  margin-left: @toastActionMarginLeft;
341
352
  justify-content: space-around;
342
- &:not(.basic) {
353
+ &@{notBasic} {
343
354
  border-left: @toastActionBorder;
344
355
  }
345
356
  & > .button:not(:last-child) {
@@ -417,7 +428,7 @@
417
428
  }
418
429
  }
419
430
 
420
- .ui.attached:not(.vertical) when (@variationToastAttached) {
431
+ .ui.attached@{notVertical} when (@variationToastAttached) {
421
432
  &:not(.top) {
422
433
  &.actions when (@variationToastActions) {
423
434
  border-bottom-left-radius: @toastBorderRadius;
@@ -480,19 +491,19 @@
480
491
  background-color: @toastNeutralColor;
481
492
  color: @toastNeutralTextColor;
482
493
  }
483
- & > i.icon:not(.close) when (@variationToastIcon) {
494
+ & > i.icon@{notClose} when (@variationToastIcon) {
484
495
  font-size: @toastIconFontSize;
485
496
  }
486
- &:not(.vertical) {
487
- &:not(.centered):not(.center) {
488
- & > i.icon:not(.close) when (@variationToastIcon) {
497
+ &@{notVertical} {
498
+ &@{notCentered}@{notCenter} {
499
+ & > i.icon@{notClose} when (@variationToastIcon) {
489
500
  position: absolute;
490
501
  }
491
502
  & > .ui.image when (@variationToastImage) {
492
503
  position: absolute;
493
504
  }
494
505
  }
495
- & > i.icon:not(.close) when (@variationToastIcon) {
506
+ & > i.icon@{notClose} when (@variationToastIcon) {
496
507
  & + .content {
497
508
  padding-left: @toastIconContentPadding;
498
509
  }
@@ -518,7 +529,7 @@
518
529
  min-height: @toastSmallImageHeight;
519
530
  }
520
531
  }
521
- &:not(.centered):not(.center) when (@variationToastImage) or (@variationToastIcon) {
532
+ &@{notCentered}@{notCenter} when (@variationToastImage) or (@variationToastIcon) {
522
533
  & > .centered.image,
523
534
  > .centered.icon {
524
535
  transform: translateY(-50%);
@@ -544,7 +555,7 @@
544
555
  }
545
556
  & when (@variationToastImage) or (@variationToastIcon) {
546
557
  & > .ui.image + .content,
547
- > i.icon:not(.close) + .content {
558
+ > i.icon@{notClose} + .content {
548
559
  padding-left: @toastImageContentPadding;
549
560
  }
550
561
  }
@@ -619,7 +630,7 @@
619
630
 
620
631
  & > .content,
621
632
  & > .ui.image,
622
- & > i.icon:not(.close) {
633
+ & > i.icon@{notClose} {
623
634
  align-self: center;
624
635
  }
625
636
  }
@@ -633,7 +644,7 @@
633
644
  .ui.toast-container .toast-box .center.aligned.actions {
634
645
  text-align: center;
635
646
 
636
- &:not(.attached) > .button:not(.fluid) {
647
+ &@{notAttached} > .button@{notFluid} {
637
648
  margin-left: @toastActionCenteredMargin;
638
649
  margin-right: @toastActionCenteredMargin;
639
650
  }
@@ -679,7 +690,7 @@
679
690
  width: auto;
680
691
  max-width: 100%;
681
692
  }
682
- & > *:not(.vertical) {
693
+ & > *@{notVertical} {
683
694
  min-width: @mobileWidth;
684
695
  }
685
696
  & when (@variationToastCard) {
@@ -142,7 +142,9 @@
142
142
  ? ($allModules.length - index) * interval
143
143
  : index * interval;
144
144
  module.debug('Delaying animation by', delay);
145
- setTimeout(function () { module.animate(); }, delay);
145
+ setTimeout(function () {
146
+ module.animate();
147
+ }, delay);
146
148
  },
147
149
 
148
150
  animate: function (overrideSettings) {
@@ -849,7 +851,9 @@
849
851
  });
850
852
  }
851
853
  clearTimeout(module.performance.timer);
852
- module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
854
+ module.performance.timer = setTimeout(function () {
855
+ module.performance.display();
856
+ }, 500);
853
857
  },
854
858
  display: function () {
855
859
  var
@@ -17,6 +17,8 @@
17
17
 
18
18
  @import (multiple) "../../theme.config";
19
19
 
20
+ @notRaised: if(@variationCardRaised, e(":not(.raised)"));
21
+
20
22
  /*******************************
21
23
  Standard
22
24
  *******************************/
@@ -358,9 +360,9 @@
358
360
  /* --------------
359
361
  Basic
360
362
  --------------- */
361
- .ui.cards:not(.raised) > .basic.card:not(.raised),
362
- .ui.ui.ui.basic.cards:not(.raised) > .card:not(.raised),
363
- .ui.ui.ui.basic.card:not(.raised) {
363
+ .ui.cards@{notRaised} > .basic.card@{notRaised},
364
+ .ui.ui.ui.basic.cards@{notRaised} > .card@{notRaised},
365
+ .ui.ui.ui.basic.card@{notRaised} {
364
366
  box-shadow: none;
365
367
  & > .buttons,
366
368
  > .button {
@@ -369,8 +371,8 @@
369
371
  }
370
372
  }
371
373
  & when (@variationCardLink) {
372
- .ui.ui.ui.ui.ui.basic.card:not(.raised):hover,
373
- .ui.ui.ui.ui.ui.basic.cards:not(.raised) .card:not(.raised):hover {
374
+ .ui.ui.ui.ui.ui.basic.card@{notRaised}:hover,
375
+ .ui.ui.ui.ui.ui.basic.cards@{notRaised} .card@{notRaised}:hover {
374
376
  box-shadow: none;
375
377
  }
376
378
  }
@@ -17,6 +17,8 @@
17
17
 
18
18
  @import (multiple) "../../theme.config";
19
19
 
20
+ @notConnected: if(@variationFeedConnected, e(":not(.connected)"));
21
+
20
22
  /*******************************
21
23
  Activity Feed
22
24
  *******************************/
@@ -47,7 +49,7 @@
47
49
  border-top: @eventDivider;
48
50
  }
49
51
  }
50
- .ui.feed:not(.connected) > .event:first-child {
52
+ .ui.feed@{notConnected} > .event:first-child {
51
53
  padding-top: 0;
52
54
  }
53
55
  .ui.feed > .event:last-child {
@@ -459,6 +461,17 @@
459
461
  color: @invertedLikeActiveColor;
460
462
  }
461
463
  }
464
+
465
+ /* Action */
466
+ .ui.inverted.feed > .event > .content .meta a,
467
+ .ui.inverted.feed > .event > .content .meta > i.icon {
468
+ color: @invertedMetadataActionColor;
469
+ }
470
+ .ui.inverted.feed > .event > .content .meta a:hover,
471
+ .ui.inverted.feed > .event > .content .meta a:hover i.icon,
472
+ .ui.inverted.feed > .event > .content .meta > i.icon:hover {
473
+ color: @invertedMetadataActionHoverColor;
474
+ }
462
475
  }
463
476
 
464
477
  /* --------------
@@ -17,6 +17,8 @@
17
17
 
18
18
  @import (multiple) "../../theme.config";
19
19
 
20
+ @notUnstackable: if(@variationItemUnstackable, e(":not(.unstackable)"));
21
+
20
22
  /*******************************
21
23
  Standard
22
24
  *******************************/
@@ -370,22 +372,22 @@
370
372
 
371
373
  /* Mobile Only */
372
374
  @media only screen and (max-width: @largestMobileScreen) {
373
- .ui.items:not(.unstackable) > .item {
375
+ .ui.items@{notUnstackable} > .item {
374
376
  flex-direction: column;
375
377
  margin: @mobileItemSpacing 0;
376
378
  }
377
- .ui.items:not(.unstackable) > .item > .image {
379
+ .ui.items@{notUnstackable} > .item > .image {
378
380
  display: block;
379
381
  margin-left: auto;
380
382
  margin-right: auto;
381
383
  }
382
- .ui.items:not(.unstackable) > .item > .image,
383
- .ui.items:not(.unstackable) > .item > .image > img {
384
+ .ui.items@{notUnstackable} > .item > .image,
385
+ .ui.items@{notUnstackable} > .item > .image > img {
384
386
  max-width: 100% !important;
385
387
  width: @mobileImageWidth !important;
386
388
  max-height: @mobileImageMaxHeight !important;
387
389
  }
388
- .ui.items:not(.unstackable) > .item > .image + .content {
390
+ .ui.items@{notUnstackable} > .item > .image + .content {
389
391
  display: block;
390
392
  padding: @mobileContentImageDistance 0 0;
391
393
  }
@@ -0,0 +1,91 @@
1
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
2
+ This license is copied below, and is also available with a FAQ at:
3
+ http://scripts.sil.org/OFL
4
+
5
+
6
+ -----------------------------------------------------------
7
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
8
+ -----------------------------------------------------------
9
+
10
+ PREAMBLE
11
+ The goals of the Open Font License (OFL) are to stimulate worldwide
12
+ development of collaborative font projects, to support the font creation
13
+ efforts of academic and linguistic communities, and to provide a free and
14
+ open framework in which fonts may be shared and improved in partnership
15
+ with others.
16
+
17
+ The OFL allows the licensed fonts to be used, studied, modified and
18
+ redistributed freely as long as they are not sold by themselves. The
19
+ fonts, including any derivative works, can be bundled, embedded,
20
+ redistributed and/or sold with any software provided that any reserved
21
+ names are not used by derivative works. The fonts and derivatives,
22
+ however, cannot be released under any other type of license. The
23
+ requirement for fonts to remain under this license does not apply
24
+ to any document created using the fonts or their derivatives.
25
+
26
+ DEFINITIONS
27
+ "Font Software" refers to the set of files released by the Copyright
28
+ Holder(s) under this license and clearly marked as such. This may
29
+ include source files, build scripts and documentation.
30
+
31
+ "Reserved Font Name" refers to any names specified as such after the
32
+ copyright statement(s).
33
+
34
+ "Original Version" refers to the collection of Font Software components as
35
+ distributed by the Copyright Holder(s).
36
+
37
+ "Modified Version" refers to any derivative made by adding to, deleting,
38
+ or substituting -- in part or in whole -- any of the components of the
39
+ Original Version, by changing formats or by porting the Font Software to a
40
+ new environment.
41
+
42
+ "Author" refers to any designer, engineer, programmer, technical
43
+ writer or other person who contributed to the Font Software.
44
+
45
+ PERMISSION & CONDITIONS
46
+ Permission is hereby granted, free of charge, to any person obtaining
47
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
48
+ redistribute, and sell modified and unmodified copies of the Font
49
+ Software, subject to the following conditions:
50
+
51
+ 1) Neither the Font Software nor any of its individual components,
52
+ in Original or Modified Versions, may be sold by itself.
53
+
54
+ 2) Original or Modified Versions of the Font Software may be bundled,
55
+ redistributed and/or sold with any software, provided that each copy
56
+ contains the above copyright notice and this license. These can be
57
+ included either as stand-alone text files, human-readable headers or
58
+ in the appropriate machine-readable metadata fields within text or
59
+ binary files as long as those fields can be easily viewed by the user.
60
+
61
+ 3) No Modified Version of the Font Software may use the Reserved Font
62
+ Name(s) unless explicit written permission is granted by the corresponding
63
+ Copyright Holder. This restriction only applies to the primary font name as
64
+ presented to the users.
65
+
66
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
67
+ Software shall not be used to promote, endorse or advertise any
68
+ Modified Version, except to acknowledge the contribution(s) of the
69
+ Copyright Holder(s) and the Author(s) or with their explicit written
70
+ permission.
71
+
72
+ 5) The Font Software, modified or unmodified, in part or in whole,
73
+ must be distributed entirely under this license, and must not be
74
+ distributed under any other license. The requirement for fonts to
75
+ remain under this license does not apply to any document created
76
+ using the Font Software.
77
+
78
+ TERMINATION
79
+ This license becomes null and void if any of the above conditions are
80
+ not met.
81
+
82
+ DISCLAIMER
83
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
84
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
85
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
86
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
87
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
88
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
89
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
90
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
91
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,94 @@
1
+ Copyright (c) 2010-2015, Łukasz Dziedzic (dziedzic@typoland.com),
2
+ with Reserved Font Name Lato.
3
+
4
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
5
+ This license is copied below, and is also available with a FAQ at:
6
+ http://scripts.sil.org/OFL
7
+
8
+
9
+ -----------------------------------------------------------
10
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
11
+ -----------------------------------------------------------
12
+
13
+ PREAMBLE
14
+ The goals of the Open Font License (OFL) are to stimulate worldwide
15
+ development of collaborative font projects, to support the font creation
16
+ efforts of academic and linguistic communities, and to provide a free and
17
+ open framework in which fonts may be shared and improved in partnership
18
+ with others.
19
+
20
+ The OFL allows the licensed fonts to be used, studied, modified and
21
+ redistributed freely as long as they are not sold by themselves. The
22
+ fonts, including any derivative works, can be bundled, embedded,
23
+ redistributed and/or sold with any software provided that any reserved
24
+ names are not used by derivative works. The fonts and derivatives,
25
+ however, cannot be released under any other type of license. The
26
+ requirement for fonts to remain under this license does not apply
27
+ to any document created using the fonts or their derivatives.
28
+
29
+ DEFINITIONS
30
+ "Font Software" refers to the set of files released by the Copyright
31
+ Holder(s) under this license and clearly marked as such. This may
32
+ include source files, build scripts and documentation.
33
+
34
+ "Reserved Font Name" refers to any names specified as such after the
35
+ copyright statement(s).
36
+
37
+ "Original Version" refers to the collection of Font Software components as
38
+ distributed by the Copyright Holder(s).
39
+
40
+ "Modified Version" refers to any derivative made by adding to, deleting,
41
+ or substituting -- in part or in whole -- any of the components of the
42
+ Original Version, by changing formats or by porting the Font Software to a
43
+ new environment.
44
+
45
+ "Author" refers to any designer, engineer, programmer, technical
46
+ writer or other person who contributed to the Font Software.
47
+
48
+ PERMISSION & CONDITIONS
49
+ Permission is hereby granted, free of charge, to any person obtaining
50
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
51
+ redistribute, and sell modified and unmodified copies of the Font
52
+ Software, subject to the following conditions:
53
+
54
+ 1) Neither the Font Software nor any of its individual components,
55
+ in Original or Modified Versions, may be sold by itself.
56
+
57
+ 2) Original or Modified Versions of the Font Software may be bundled,
58
+ redistributed and/or sold with any software, provided that each copy
59
+ contains the above copyright notice and this license. These can be
60
+ included either as stand-alone text files, human-readable headers or
61
+ in the appropriate machine-readable metadata fields within text or
62
+ binary files as long as those fields can be easily viewed by the user.
63
+
64
+ 3) No Modified Version of the Font Software may use the Reserved Font
65
+ Name(s) unless explicit written permission is granted by the corresponding
66
+ Copyright Holder. This restriction only applies to the primary font name as
67
+ presented to the users.
68
+
69
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
70
+ Software shall not be used to promote, endorse or advertise any
71
+ Modified Version, except to acknowledge the contribution(s) of the
72
+ Copyright Holder(s) and the Author(s) or with their explicit written
73
+ permission.
74
+
75
+ 5) The Font Software, modified or unmodified, in part or in whole,
76
+ must be distributed entirely under this license, and must not be
77
+ distributed under any other license. The requirement for fonts to
78
+ remain under this license does not apply to any document created
79
+ using the Font Software.
80
+
81
+ TERMINATION
82
+ This license becomes null and void if any of the above conditions are
83
+ not met.
84
+
85
+ DISCLAIMER
86
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
87
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
88
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
89
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
90
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
91
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
92
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
93
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
94
+ OTHER DEALINGS IN THE FONT SOFTWARE.