fomantic-ui 2.9.1-beta.27 → 2.9.1-beta.29

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 (269) hide show
  1. package/.eslintrc.js +0 -1
  2. package/.github/workflows/ci.yml +6 -0
  3. package/.prettierrc.js +12 -0
  4. package/.stylelintrc.js +13 -7
  5. package/README.md +1 -1
  6. package/dist/components/accordion.css +9 -21
  7. package/dist/components/accordion.js +3 -3
  8. package/dist/components/accordion.min.css +2 -2
  9. package/dist/components/accordion.min.js +2 -2
  10. package/dist/components/ad.css +2 -3
  11. package/dist/components/ad.min.css +2 -2
  12. package/dist/components/api.js +3 -3
  13. package/dist/components/api.min.js +2 -2
  14. package/dist/components/breadcrumb.css +1 -1
  15. package/dist/components/breadcrumb.min.css +1 -1
  16. package/dist/components/button.css +336 -713
  17. package/dist/components/button.min.css +2 -2
  18. package/dist/components/calendar.css +5 -10
  19. package/dist/components/calendar.js +3 -3
  20. package/dist/components/calendar.min.css +2 -2
  21. package/dist/components/calendar.min.js +2 -2
  22. package/dist/components/card.css +88 -201
  23. package/dist/components/card.min.css +2 -2
  24. package/dist/components/checkbox.css +35 -86
  25. package/dist/components/checkbox.js +3 -3
  26. package/dist/components/checkbox.min.css +2 -2
  27. package/dist/components/checkbox.min.js +2 -2
  28. package/dist/components/comment.css +4 -8
  29. package/dist/components/comment.min.css +2 -2
  30. package/dist/components/container.css +1 -1
  31. package/dist/components/container.min.css +1 -1
  32. package/dist/components/dimmer.css +20 -129
  33. package/dist/components/dimmer.js +3 -3
  34. package/dist/components/dimmer.min.css +2 -2
  35. package/dist/components/dimmer.min.js +2 -2
  36. package/dist/components/divider.css +3 -6
  37. package/dist/components/divider.min.css +2 -2
  38. package/dist/components/dropdown.css +51 -149
  39. package/dist/components/dropdown.js +13 -7
  40. package/dist/components/dropdown.min.css +2 -2
  41. package/dist/components/dropdown.min.js +2 -2
  42. package/dist/components/embed.css +2 -7
  43. package/dist/components/embed.js +3 -3
  44. package/dist/components/embed.min.css +2 -2
  45. package/dist/components/embed.min.js +2 -2
  46. package/dist/components/emoji.css +1 -2
  47. package/dist/components/emoji.min.css +1 -1
  48. package/dist/components/feed.css +7 -21
  49. package/dist/components/feed.min.css +2 -2
  50. package/dist/components/flag.css +1 -1
  51. package/dist/components/flag.min.css +1 -1
  52. package/dist/components/flyout.css +30 -71
  53. package/dist/components/flyout.js +3 -16
  54. package/dist/components/flyout.min.css +2 -2
  55. package/dist/components/flyout.min.js +2 -2
  56. package/dist/components/form.css +32 -101
  57. package/dist/components/form.js +3 -3
  58. package/dist/components/form.min.css +2 -2
  59. package/dist/components/form.min.js +2 -2
  60. package/dist/components/grid.css +72 -182
  61. package/dist/components/grid.min.css +2 -2
  62. package/dist/components/header.css +5 -11
  63. package/dist/components/header.min.css +2 -2
  64. package/dist/components/icon.css +37 -74
  65. package/dist/components/icon.min.css +2 -2
  66. package/dist/components/image.css +8 -21
  67. package/dist/components/image.min.css +2 -2
  68. package/dist/components/input.css +15 -50
  69. package/dist/components/input.min.css +2 -2
  70. package/dist/components/item.css +13 -38
  71. package/dist/components/item.min.css +2 -2
  72. package/dist/components/label.css +18 -45
  73. package/dist/components/label.min.css +2 -2
  74. package/dist/components/list.css +1 -7
  75. package/dist/components/list.min.css +2 -2
  76. package/dist/components/loader.css +21 -103
  77. package/dist/components/loader.min.css +2 -2
  78. package/dist/components/menu.css +49 -145
  79. package/dist/components/menu.min.css +1 -1
  80. package/dist/components/message.css +50 -114
  81. package/dist/components/message.min.css +2 -2
  82. package/dist/components/modal.css +20 -54
  83. package/dist/components/modal.js +3 -11
  84. package/dist/components/modal.min.css +2 -2
  85. package/dist/components/modal.min.js +2 -2
  86. package/dist/components/nag.css +2 -5
  87. package/dist/components/nag.js +3 -3
  88. package/dist/components/nag.min.css +2 -2
  89. package/dist/components/nag.min.js +2 -2
  90. package/dist/components/placeholder.css +7 -25
  91. package/dist/components/placeholder.min.css +2 -2
  92. package/dist/components/popup.css +68 -139
  93. package/dist/components/popup.js +16 -7
  94. package/dist/components/popup.min.css +2 -2
  95. package/dist/components/popup.min.js +2 -2
  96. package/dist/components/progress.css +25 -120
  97. package/dist/components/progress.js +3 -3
  98. package/dist/components/progress.min.css +2 -2
  99. package/dist/components/progress.min.js +2 -2
  100. package/dist/components/rail.css +1 -1
  101. package/dist/components/rail.min.css +1 -1
  102. package/dist/components/rating.css +2 -39
  103. package/dist/components/rating.js +3 -3
  104. package/dist/components/rating.min.css +2 -2
  105. package/dist/components/rating.min.js +2 -2
  106. package/dist/components/reset.css +6 -11
  107. package/dist/components/reset.min.css +2 -2
  108. package/dist/components/reveal.css +26 -58
  109. package/dist/components/reveal.min.css +2 -2
  110. package/dist/components/search.css +8 -22
  111. package/dist/components/search.js +3 -3
  112. package/dist/components/search.min.css +2 -2
  113. package/dist/components/search.min.js +2 -2
  114. package/dist/components/segment.css +32 -89
  115. package/dist/components/segment.min.css +2 -2
  116. package/dist/components/shape.css +4 -16
  117. package/dist/components/shape.js +3 -15
  118. package/dist/components/shape.min.css +2 -2
  119. package/dist/components/shape.min.js +2 -2
  120. package/dist/components/sidebar.css +59 -147
  121. package/dist/components/sidebar.js +3 -16
  122. package/dist/components/sidebar.min.css +2 -2
  123. package/dist/components/sidebar.min.js +2 -2
  124. package/dist/components/site.css +1 -14
  125. package/dist/components/site.js +11 -38
  126. package/dist/components/site.min.css +2 -2
  127. package/dist/components/site.min.js +2 -2
  128. package/dist/components/slider.css +8 -26
  129. package/dist/components/slider.js +3 -3
  130. package/dist/components/slider.min.css +1 -1
  131. package/dist/components/slider.min.js +2 -2
  132. package/dist/components/state.js +3 -3
  133. package/dist/components/state.min.js +2 -2
  134. package/dist/components/statistic.css +11 -43
  135. package/dist/components/statistic.min.css +2 -2
  136. package/dist/components/step.css +26 -89
  137. package/dist/components/step.min.css +2 -2
  138. package/dist/components/sticky.css +1 -5
  139. package/dist/components/sticky.js +3 -11
  140. package/dist/components/sticky.min.css +2 -2
  141. package/dist/components/sticky.min.js +2 -2
  142. package/dist/components/tab.css +3 -5
  143. package/dist/components/tab.js +3 -3
  144. package/dist/components/tab.min.css +2 -2
  145. package/dist/components/tab.min.js +2 -2
  146. package/dist/components/table.css +202 -409
  147. package/dist/components/table.min.css +2 -2
  148. package/dist/components/text.css +1 -1
  149. package/dist/components/text.min.css +1 -1
  150. package/dist/components/toast.css +32 -108
  151. package/dist/components/toast.js +3 -3
  152. package/dist/components/toast.min.css +2 -2
  153. package/dist/components/toast.min.js +2 -2
  154. package/dist/components/transition.css +264 -1312
  155. package/dist/components/transition.js +3 -3
  156. package/dist/components/transition.min.css +2 -2
  157. package/dist/components/transition.min.js +2 -2
  158. package/dist/components/visibility.js +3 -11
  159. package/dist/components/visibility.min.js +2 -2
  160. package/dist/semantic.css +51 -3547
  161. package/dist/semantic.js +107 -181
  162. package/dist/semantic.min.css +2 -2
  163. package/dist/semantic.min.js +2 -2
  164. package/examples/fixed.html +1 -1
  165. package/examples/grid.html +1 -1
  166. package/package.json +2 -2
  167. package/src/definitions/behaviors/api.js +2 -2
  168. package/src/definitions/behaviors/form.js +2 -2
  169. package/src/definitions/behaviors/state.js +2 -2
  170. package/src/definitions/behaviors/visibility.js +2 -10
  171. package/src/definitions/collections/table.less +4 -0
  172. package/src/definitions/elements/button.less +7 -2
  173. package/src/definitions/elements/icon.less +19 -27
  174. package/src/definitions/elements/image.less +0 -4
  175. package/src/definitions/elements/loader.less +2 -0
  176. package/src/definitions/elements/segment.less +3 -1
  177. package/src/definitions/globals/site.js +10 -37
  178. package/src/definitions/modules/accordion.js +2 -2
  179. package/src/definitions/modules/calendar.js +2 -2
  180. package/src/definitions/modules/checkbox.js +2 -2
  181. package/src/definitions/modules/dimmer.js +2 -2
  182. package/src/definitions/modules/dimmer.less +2 -10
  183. package/src/definitions/modules/dropdown.js +12 -6
  184. package/src/definitions/modules/dropdown.less +1 -4
  185. package/src/definitions/modules/embed.js +2 -2
  186. package/src/definitions/modules/flyout.js +2 -15
  187. package/src/definitions/modules/flyout.less +0 -1
  188. package/src/definitions/modules/modal.js +2 -10
  189. package/src/definitions/modules/modal.less +0 -2
  190. package/src/definitions/modules/nag.js +2 -2
  191. package/src/definitions/modules/popup.js +15 -6
  192. package/src/definitions/modules/popup.less +2 -0
  193. package/src/definitions/modules/progress.js +2 -2
  194. package/src/definitions/modules/rating.js +2 -2
  195. package/src/definitions/modules/rating.less +2 -4
  196. package/src/definitions/modules/search.js +2 -2
  197. package/src/definitions/modules/search.less +0 -1
  198. package/src/definitions/modules/shape.js +2 -14
  199. package/src/definitions/modules/sidebar.js +2 -15
  200. package/src/definitions/modules/sidebar.less +0 -1
  201. package/src/definitions/modules/slider.js +2 -2
  202. package/src/definitions/modules/sticky.js +2 -10
  203. package/src/definitions/modules/sticky.less +0 -7
  204. package/src/definitions/modules/tab.js +2 -2
  205. package/src/definitions/modules/toast.js +2 -2
  206. package/src/definitions/modules/toast.less +3 -1
  207. package/src/definitions/modules/transition.js +2 -2
  208. package/src/definitions/views/card.less +4 -15
  209. package/src/semantic.less +6 -6
  210. package/src/themes/amazon/elements/button.variables +4 -9
  211. package/src/themes/bootstrap3/elements/button.variables +3 -7
  212. package/src/themes/classic/elements/button.variables +6 -12
  213. package/src/themes/classic/views/card.overrides +2 -4
  214. package/src/themes/colored/modules/checkbox.variables +1 -3
  215. package/src/themes/default/collections/form.variables +1 -2
  216. package/src/themes/default/collections/menu.variables +2 -4
  217. package/src/themes/default/collections/message.variables +38 -76
  218. package/src/themes/default/collections/table.variables +2 -4
  219. package/src/themes/default/elements/button.variables +6 -12
  220. package/src/themes/default/elements/flag.variables +3 -3
  221. package/src/themes/default/elements/icon.variables +9 -11
  222. package/src/themes/default/elements/input.variables +1 -2
  223. package/src/themes/default/elements/list.variables +3 -7
  224. package/src/themes/default/elements/placeholder.variables +12 -8
  225. package/src/themes/default/elements/segment.variables +5 -6
  226. package/src/themes/default/elements/step.variables +1 -2
  227. package/src/themes/default/globals/site.variables +41 -83
  228. package/src/themes/default/modules/accordion.variables +4 -8
  229. package/src/themes/default/modules/checkbox.variables +4 -8
  230. package/src/themes/default/modules/dimmer.variables +1 -3
  231. package/src/themes/default/modules/dropdown.variables +1 -2
  232. package/src/themes/default/modules/embed.variables +2 -5
  233. package/src/themes/default/modules/modal.variables +3 -6
  234. package/src/themes/default/modules/progress.variables +1 -2
  235. package/src/themes/default/modules/rating.variables +1 -2
  236. package/src/themes/default/modules/search.variables +3 -6
  237. package/src/themes/default/modules/shape.variables +1 -2
  238. package/src/themes/default/modules/slider.variables +3 -1
  239. package/src/themes/default/views/card.variables +8 -18
  240. package/src/themes/github/collections/form.variables +1 -2
  241. package/src/themes/github/collections/menu.variables +1 -2
  242. package/src/themes/github/collections/message.variables +2 -4
  243. package/src/themes/github/elements/button.variables +4 -8
  244. package/src/themes/github/elements/input.variables +1 -2
  245. package/src/themes/github/modules/dropdown.variables +1 -3
  246. package/src/themes/material/elements/button.variables +2 -4
  247. package/src/themes/material/elements/icon.variables +1 -2
  248. package/src/themes/pulsar/elements/loader.overrides +0 -38
  249. package/src/themes/raised/elements/button.variables +1 -2
  250. package/src/themes/round/elements/button.variables +1 -3
  251. package/src/themes/striped/modules/progress.overrides +11 -11
  252. package/tasks/README.md +2 -2
  253. package/tasks/admin/components/create.js +2 -2
  254. package/tasks/build/assets.js +1 -1
  255. package/tasks/build/css.js +1 -1
  256. package/tasks/build/javascript.js +1 -1
  257. package/tasks/build.js +2 -2
  258. package/tasks/collections/docs.js +1 -1
  259. package/tasks/collections/install.js +2 -2
  260. package/tasks/collections/various.js +1 -1
  261. package/tasks/config/admin/release.js +5 -5
  262. package/tasks/config/admin/templates/README.md +8 -8
  263. package/tasks/config/admin/templates/bower.json +3 -2
  264. package/tasks/config/admin/templates/component-package.js +3 -3
  265. package/tasks/config/admin/templates/package.json +5 -5
  266. package/tasks/config/tasks.js +15 -11
  267. package/tasks/docs/build.js +2 -2
  268. package/tasks/install.js +2 -3
  269. package/tasks/watch.js +1 -1
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
 
11
- (function ($, window, document, undefined) {
11
+ (function ($, window, document) {
12
12
  'use strict';
13
13
 
14
14
  function isFunction(obj) {
@@ -461,7 +461,7 @@
461
461
  if ($allModules.length > 1) {
462
462
  title += ' (' + $allModules.length + ')';
463
463
  }
464
- if ((console.group !== undefined || console.table !== undefined) && performance.length > 0) {
464
+ if (performance.length > 0) {
465
465
  console.groupCollapsed(title);
466
466
  if (console.table) {
467
467
  console.table(performance);
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
 
11
- (function ($, window, document, undefined) {
11
+ (function ($, window, document) {
12
12
  'use strict';
13
13
 
14
14
  function isFunction(obj) {
@@ -37,14 +37,6 @@
37
37
  methodInvoked = typeof query === 'string',
38
38
  queryArguments = [].slice.call(arguments, 1),
39
39
 
40
- requestAnimationFrame = window.requestAnimationFrame
41
- || window.mozRequestAnimationFrame
42
- || window.webkitRequestAnimationFrame
43
- || window.msRequestAnimationFrame
44
- || function (callback) {
45
- setTimeout(callback, 0);
46
- },
47
-
48
40
  returnedValue
49
41
  ;
50
42
 
@@ -437,14 +429,12 @@
437
429
  style += ''
438
430
  + ' .ui.visible.' + direction + '.flyout ~ .fixed,'
439
431
  + ' .ui.visible.' + direction + '.flyout ~ .pusher {'
440
- + ' -webkit-transform: translate3d(' + distance[direction] + 'px, 0, 0);'
441
432
  + ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
442
433
  + ' }';
443
434
  } else if (direction === 'top' || direction === 'bottom') {
444
435
  style += ''
445
436
  + ' .ui.visible.' + direction + '.flyout ~ .fixed,'
446
437
  + ' .ui.visible.' + direction + '.flyout ~ .pusher {'
447
- + ' -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);'
448
438
  + ' transform: translate3d(0, ' + distance[direction] + 'px, 0);'
449
439
  + ' }';
450
440
  }
@@ -456,13 +446,11 @@
456
446
  module.debug('Adding CSS rules for animation distance', width);
457
447
  style += ''
458
448
  + ' body.pushable > .ui.visible.' + direction + '.flyout ~ .pusher::after {'
459
- + ' -webkit-transform: translate3d(' + distance[direction] + 'px, 0, 0);'
460
449
  + ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
461
450
  + ' }';
462
451
  } else if (direction === 'top' || direction === 'bottom') {
463
452
  style += ''
464
453
  + ' body.pushable > .ui.visible.' + direction + '.flyout ~ .pusher::after {'
465
- + ' -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);'
466
454
  + ' transform: translate3d(0, ' + distance[direction] + 'px, 0);'
467
455
  + ' }';
468
456
  }
@@ -470,7 +458,6 @@
470
458
  style += ''
471
459
  + ' body.pushable > .ui.visible.left.flyout ~ .ui.visible.right.flyout ~ .pusher::after,'
472
460
  + ' body.pushable > .ui.visible.right.flyout ~ .ui.visible.left.flyout ~ .pusher::after {'
473
- + ' -webkit-transform: translate3d(0, 0, 0);'
474
461
  + ' transform: translate3d(0, 0, 0);'
475
462
  + ' }';
476
463
  }
@@ -1215,7 +1202,7 @@
1215
1202
  if (moduleSelector) {
1216
1203
  title += ' \'' + moduleSelector + '\'';
1217
1204
  }
1218
- if ((console.group !== undefined || console.table !== undefined) && performance.length > 0) {
1205
+ if (performance.length > 0) {
1219
1206
  console.groupCollapsed(title);
1220
1207
  if (console.table) {
1221
1208
  console.table(performance);
@@ -31,7 +31,6 @@
31
31
  will-change: transform;
32
32
  transform: translate3d(0, 0, 0);
33
33
  visibility: hidden;
34
- -webkit-overflow-scrolling: touch;
35
34
  height: 100%;
36
35
  max-height: 100%;
37
36
  max-width: 100%;
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
 
11
- (function ($, window, document, undefined) {
11
+ (function ($, window, document) {
12
12
  'use strict';
13
13
 
14
14
  function isFunction(obj) {
@@ -35,14 +35,6 @@
35
35
  methodInvoked = typeof query === 'string',
36
36
  queryArguments = [].slice.call(arguments, 1),
37
37
 
38
- requestAnimationFrame = window.requestAnimationFrame
39
- || window.mozRequestAnimationFrame
40
- || window.webkitRequestAnimationFrame
41
- || window.msRequestAnimationFrame
42
- || function (callback) {
43
- setTimeout(callback, 0);
44
- },
45
-
46
38
  returnedValue
47
39
  ;
48
40
 
@@ -1221,7 +1213,7 @@
1221
1213
  if (moduleSelector) {
1222
1214
  title += ' \'' + moduleSelector + '\'';
1223
1215
  }
1224
- if ((console.group !== undefined || console.table !== undefined) && performance.length > 0) {
1216
+ if (performance.length > 0) {
1225
1217
  console.groupCollapsed(title);
1226
1218
  if (console.table) {
1227
1219
  console.table(performance);
@@ -446,7 +446,6 @@
446
446
  .scrolling.dimmable.dimmed > .dimmer {
447
447
  overflow: auto;
448
448
  overscroll-behavior: @overscrollBehavior;
449
- -webkit-overflow-scrolling: touch;
450
449
  }
451
450
  .modals.dimmer .ui.scrolling.modal:not(.fullscreen) {
452
451
  margin: @scrollingMargin auto;
@@ -463,7 +462,6 @@
463
462
  .scrolling.undetached.dimmable.dimmed {
464
463
  overflow: auto;
465
464
  overscroll-behavior: @overscrollBehavior;
466
- -webkit-overflow-scrolling: touch;
467
465
  }
468
466
  .scrolling.undetached.dimmable.dimmed > .dimmer {
469
467
  overflow: hidden;
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
 
11
- (function ($, window, document, undefined) {
11
+ (function ($, window, document) {
12
12
  'use strict';
13
13
 
14
14
  function isFunction(obj) {
@@ -382,7 +382,7 @@
382
382
  if (moduleSelector) {
383
383
  title += ' \'' + moduleSelector + '\'';
384
384
  }
385
- if ((console.group !== undefined || console.table !== undefined) && performance.length > 0) {
385
+ if (performance.length > 0) {
386
386
  console.groupCollapsed(title);
387
387
  if (console.table) {
388
388
  console.table(performance);
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
 
11
- (function ($, window, document, undefined) {
11
+ (function ($, window, document) {
12
12
  'use strict';
13
13
 
14
14
  function isFunction(obj) {
@@ -414,7 +414,7 @@
414
414
  animate: {
415
415
  show: function (callback) {
416
416
  callback = isFunction(callback) ? callback : function () {};
417
- if (settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
417
+ if (settings.transition && module.can.useElement('transition') && $module.transition('is supported')) {
418
418
  module.set.visible();
419
419
  $popup
420
420
  .transition({
@@ -431,8 +431,6 @@
431
431
  },
432
432
  })
433
433
  ;
434
- } else {
435
- module.error(error.noTransition);
436
434
  }
437
435
  },
438
436
  hide: function (callback) {
@@ -1073,6 +1071,17 @@
1073
1071
  },
1074
1072
  },
1075
1073
 
1074
+ can: {
1075
+ useElement: function (element) {
1076
+ if ($.fn[element] !== undefined) {
1077
+ return true;
1078
+ }
1079
+ module.error(error.noElement.replace('{element}', element));
1080
+
1081
+ return false;
1082
+ },
1083
+ },
1084
+
1076
1085
  has: {
1077
1086
  popup: function () {
1078
1087
  return $popup && $popup.length > 0;
@@ -1229,7 +1238,7 @@
1229
1238
  if (moduleSelector) {
1230
1239
  title += ' \'' + moduleSelector + '\'';
1231
1240
  }
1232
- if ((console.group !== undefined || console.table !== undefined) && performance.length > 0) {
1241
+ if (performance.length > 0) {
1233
1242
  console.groupCollapsed(title);
1234
1243
  if (console.table) {
1235
1244
  console.table(performance);
@@ -1445,7 +1454,7 @@
1445
1454
  invalidPosition: 'The position you specified is not a valid position',
1446
1455
  cannotPlace: 'Popup does not fit within the boundaries of the viewport',
1447
1456
  method: 'The method you called is not defined.',
1448
- noTransition: 'This module requires ui transitions <https://github.com/Semantic-Org/UI-Transition>',
1457
+ noElement: 'This module requires ui {element}',
1449
1458
  notFound: 'The target or popup you specified does not exist on the page',
1450
1459
  },
1451
1460
 
@@ -175,6 +175,8 @@
175
175
  [data-tooltip][data-position="left center"]:hover::after,
176
176
  [data-tooltip][data-position="right center"]:hover::after {
177
177
  transform: translateY(-50%) scale(1) !important;
178
+ // https://github.com/fomantic/Fomantic-UI/pull/1537
179
+ // stylelint-disable-next-line property-no-vendor-prefix
178
180
  -moz-transform: translateY(-50%) scale(1.0001) !important;
179
181
  }
180
182
  [data-tooltip][data-position="top left"]::after,
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
 
11
- (function ($, window, document, undefined) {
11
+ (function ($, window, document) {
12
12
  'use strict';
13
13
 
14
14
  function isFunction(obj) {
@@ -835,7 +835,7 @@
835
835
  if (moduleSelector) {
836
836
  title += ' \'' + moduleSelector + '\'';
837
837
  }
838
- if ((console.group !== undefined || console.table !== undefined) && performance.length > 0) {
838
+ if (performance.length > 0) {
839
839
  console.groupCollapsed(title);
840
840
  if (console.table) {
841
841
  console.table(performance);
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
 
11
- (function ($, window, document, undefined) {
11
+ (function ($, window, document) {
12
12
  'use strict';
13
13
 
14
14
  function isFunction(obj) {
@@ -387,7 +387,7 @@
387
387
  if ($allModules.length > 1) {
388
388
  title += ' (' + $allModules.length + ')';
389
389
  }
390
- if ((console.group !== undefined || console.table !== undefined) && performance.length > 0) {
390
+ if (performance.length > 0) {
391
391
  console.groupCollapsed(title);
392
392
  if (console.table) {
393
393
  console.table(performance);
@@ -107,8 +107,7 @@
107
107
  0 -@shadowWidth 0 @c,
108
108
  -@shadowWidth 0 0 @c,
109
109
  0 @shadowWidth 0 @c,
110
- @shadowWidth 0 0 @c
111
- ;
110
+ @shadowWidth 0 0 @c;
112
111
  }
113
112
  .ui.@{color}.rating .icon.selected,
114
113
  .ui.@{color}.rating .icon.selected.active,
@@ -119,8 +118,7 @@
119
118
  0 -@shadowWidth 0 @h,
120
119
  -@shadowWidth 0 0 @h,
121
120
  0 @shadowWidth 0 @h,
122
- @shadowWidth 0 0 @h
123
- ;
121
+ @shadowWidth 0 0 @h;
124
122
 
125
123
  -webkit-text-stroke: unset;
126
124
  background-clip: unset;
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
 
11
- (function ($, window, document, undefined) {
11
+ (function ($, window, document) {
12
12
  'use strict';
13
13
 
14
14
  function isFunction(obj) {
@@ -1163,7 +1163,7 @@
1163
1163
  if ($allModules.length > 1) {
1164
1164
  title += ' (' + $allModules.length + ')';
1165
1165
  }
1166
- if ((console.group !== undefined || console.table !== undefined) && performance.length > 0) {
1166
+ if (performance.length > 0) {
1167
1167
  console.groupCollapsed(title);
1168
1168
  if (console.table) {
1169
1169
  console.table(performance);
@@ -387,7 +387,6 @@
387
387
  overflow-y: auto;
388
388
  overscroll-behavior: @overscrollBehavior;
389
389
  backface-visibility: hidden;
390
- -webkit-overflow-scrolling: touch;
391
390
  }
392
391
  }
393
392
 
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
 
11
- (function ($, window, document, undefined) {
11
+ (function ($, window, document) {
12
12
  'use strict';
13
13
 
14
14
  function isFunction(obj) {
@@ -30,14 +30,6 @@
30
30
  methodInvoked = typeof query === 'string',
31
31
  queryArguments = [].slice.call(arguments, 1),
32
32
 
33
- requestAnimationFrame = window.requestAnimationFrame
34
- || window.mozRequestAnimationFrame
35
- || window.webkitRequestAnimationFrame
36
- || window.msRequestAnimationFrame
37
- || function (callback) {
38
- setTimeout(callback, 0);
39
- },
40
-
41
33
  returnedValue
42
34
  ;
43
35
 
@@ -216,10 +208,6 @@
216
208
  if (settings.duration || settings.duration === 0) {
217
209
  $sides.add($side)
218
210
  .css({
219
- '-webkit-transition-duration': duration,
220
- '-moz-transition-duration': duration,
221
- '-ms-transition-duration': duration,
222
- '-o-transition-duration': duration,
223
211
  'transition-duration': duration,
224
212
  })
225
213
  ;
@@ -677,7 +665,7 @@
677
665
  if ($allModules.length > 1) {
678
666
  title += ' (' + $allModules.length + ')';
679
667
  }
680
- if ((console.group !== undefined || console.table !== undefined) && performance.length > 0) {
668
+ if (performance.length > 0) {
681
669
  console.groupCollapsed(title);
682
670
  if (console.table) {
683
671
  console.table(performance);
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
 
11
- (function ($, window, document, undefined) {
11
+ (function ($, window, document) {
12
12
  'use strict';
13
13
 
14
14
  function isFunction(obj) {
@@ -37,14 +37,6 @@
37
37
  methodInvoked = typeof query === 'string',
38
38
  queryArguments = [].slice.call(arguments, 1),
39
39
 
40
- requestAnimationFrame = window.requestAnimationFrame
41
- || window.mozRequestAnimationFrame
42
- || window.webkitRequestAnimationFrame
43
- || window.msRequestAnimationFrame
44
- || function (callback) {
45
- setTimeout(callback, 0);
46
- },
47
-
48
40
  returnedValue;
49
41
 
50
42
  $allModules.each(function () {
@@ -246,14 +238,12 @@
246
238
  style += ''
247
239
  + ' .ui.visible.' + direction + '.sidebar ~ .fixed,'
248
240
  + ' .ui.visible.' + direction + '.sidebar ~ .pusher {'
249
- + ' -webkit-transform: translate3d(' + distance[direction] + 'px, 0, 0);'
250
241
  + ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
251
242
  + ' }';
252
243
  } else if (direction === 'top' || direction === 'bottom') {
253
244
  style += ''
254
245
  + ' .ui.visible.' + direction + '.sidebar ~ .fixed,'
255
246
  + ' .ui.visible.' + direction + '.sidebar ~ .pusher {'
256
- + ' -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);'
257
247
  + ' transform: translate3d(0, ' + distance[direction] + 'px, 0);'
258
248
  + ' }';
259
249
  }
@@ -265,13 +255,11 @@
265
255
  module.debug('Adding CSS rules for animation distance', width);
266
256
  style += ''
267
257
  + ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
268
- + ' -webkit-transform: translate3d(' + distance[direction] + 'px, 0, 0);'
269
258
  + ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
270
259
  + ' }';
271
260
  } else if (direction === 'top' || direction === 'bottom') {
272
261
  style += ''
273
262
  + ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
274
- + ' -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);'
275
263
  + ' transform: translate3d(0, ' + distance[direction] + 'px, 0);'
276
264
  + ' }';
277
265
  }
@@ -279,7 +267,6 @@
279
267
  style += ''
280
268
  + ' body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher::after,'
281
269
  + ' body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher::after {'
282
- + ' -webkit-transform: translate3d(0, 0, 0);'
283
270
  + ' transform: translate3d(0, 0, 0);'
284
271
  + ' }';
285
272
  }
@@ -937,7 +924,7 @@
937
924
  if (moduleSelector) {
938
925
  title += ' \'' + moduleSelector + '\'';
939
926
  }
940
- if ((console.group !== undefined || console.table !== undefined) && performance.length > 0) {
927
+ if (performance.length > 0) {
941
928
  console.groupCollapsed(title);
942
929
  if (console.table) {
943
930
  console.table(performance);
@@ -31,7 +31,6 @@
31
31
  will-change: transform;
32
32
  transform: translate3d(0, 0, 0);
33
33
  visibility: hidden;
34
- -webkit-overflow-scrolling: touch;
35
34
  height: 100% !important;
36
35
  max-height: 100%;
37
36
  border-radius: 0 !important;
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
 
11
- (function ($, window, document, undefined) {
11
+ (function ($, window, document) {
12
12
  'use strict';
13
13
 
14
14
  function isFunction(obj) {
@@ -1194,7 +1194,7 @@
1194
1194
  if (moduleSelector) {
1195
1195
  title += ' \'' + moduleSelector + '\'';
1196
1196
  }
1197
- if ((console.group !== undefined || console.table !== undefined) && performance.length > 0) {
1197
+ if (performance.length > 0) {
1198
1198
  console.groupCollapsed(title);
1199
1199
  if (console.table) {
1200
1200
  console.table(performance);
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
 
11
- (function ($, window, document, undefined) {
11
+ (function ($, window, document) {
12
12
  'use strict';
13
13
 
14
14
  function isFunction(obj) {
@@ -55,14 +55,6 @@
55
55
 
56
56
  instance = $module.data(moduleNamespace),
57
57
 
58
- requestAnimationFrame = window.requestAnimationFrame
59
- || window.mozRequestAnimationFrame
60
- || window.webkitRequestAnimationFrame
61
- || window.msRequestAnimationFrame
62
- || function (callback) {
63
- setTimeout(callback, 0);
64
- },
65
-
66
58
  element = this,
67
59
 
68
60
  documentObserver,
@@ -768,7 +760,7 @@
768
760
  if (moduleSelector) {
769
761
  title += ' \'' + moduleSelector + '\'';
770
762
  }
771
- if ((console.group !== undefined || console.table !== undefined) && performance.length > 0) {
763
+ if (performance.length > 0) {
772
764
  console.groupCollapsed(title);
773
765
  if (console.table) {
774
766
  console.table(performance);
@@ -62,13 +62,6 @@
62
62
  *******************************/
63
63
 
64
64
  .ui.native.sticky {
65
- position: -webkit-sticky;
66
- position: -moz-sticky;
67
- & when (@supportIE) {
68
- position: -ms-sticky;
69
- }
70
-
71
- position: -o-sticky;
72
65
  position: sticky;
73
66
  }
74
67
 
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
 
11
- (function ($, window, document, undefined) {
11
+ (function ($, window, document) {
12
12
  'use strict';
13
13
 
14
14
  function isWindow(obj) {
@@ -810,7 +810,7 @@
810
810
  if (moduleSelector) {
811
811
  title += ' \'' + moduleSelector + '\'';
812
812
  }
813
- if ((console.group !== undefined || console.table !== undefined) && performance.length > 0) {
813
+ if (performance.length > 0) {
814
814
  console.groupCollapsed(title);
815
815
  if (console.table) {
816
816
  console.table(performance);
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
 
11
- (function ($, window, document, undefined) {
11
+ (function ($, window, document) {
12
12
  'use strict';
13
13
 
14
14
  function isFunction(obj) {
@@ -707,7 +707,7 @@
707
707
  if (moduleSelector) {
708
708
  title += ' \'' + moduleSelector + '\'';
709
709
  }
710
- if ((console.group !== undefined || console.table !== undefined) && performance.length > 0) {
710
+ if (performance.length > 0) {
711
711
  console.groupCollapsed(title);
712
712
  if (console.table) {
713
713
  console.table(performance);
@@ -589,7 +589,9 @@
589
589
  }
590
590
 
591
591
  .ui.hoverfloating.message:hover when (@variationToastMessage) and (@variationToastFloating) {
592
- box-shadow: 0 0 0 1px inset, @floatingShadow;
592
+ box-shadow:
593
+ 0 0 0 1px inset,
594
+ @floatingShadow;
593
595
  }
594
596
 
595
597
  .ui.center.toast-container .toast-box,
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
 
11
- (function ($, window, document, undefined) {
11
+ (function ($, window, document) {
12
12
  'use strict';
13
13
 
14
14
  function isFunction(obj) {
@@ -915,7 +915,7 @@
915
915
  if ($allModules.length > 1) {
916
916
  title += ' (' + $allModules.length + ')';
917
917
  }
918
- if ((console.group !== undefined || console.table !== undefined) && performance.length > 0) {
918
+ if (performance.length > 0) {
919
919
  console.groupCollapsed(title);
920
920
  if (console.table) {
921
921
  console.table(performance);
@@ -550,13 +550,6 @@
550
550
  background-position: center;
551
551
  justify-content: center;
552
552
  align-items: center;
553
- display: -webkit-box;
554
- display: -moz-box;
555
- & when (@supportIE) {
556
- display: -ms-flexbox;
557
- }
558
-
559
- display: -webkit-flex;
560
553
  display: flex;
561
554
  width: 100%;
562
555
  border-radius: @defaultBorderRadius 0 0 @defaultBorderRadius;
@@ -682,8 +675,7 @@
682
675
  box-shadow:
683
676
  @borderShadow,
684
677
  0 @coloredShadowDistance 0 0 @c,
685
- @shadowBoxShadow
686
- ;
678
+ @shadowBoxShadow;
687
679
  }
688
680
  & when (@variationCardLink) {
689
681
  .ui.cards a.@{color}.card:hover,
@@ -695,8 +687,7 @@
695
687
  box-shadow:
696
688
  @borderShadow,
697
689
  0 @coloredShadowDistance 0 0 @h,
698
- @shadowHoverBoxShadow
699
- ;
690
+ @shadowHoverBoxShadow;
700
691
  }
701
692
  }
702
693
  & when (@variationCardBasic) {
@@ -734,8 +725,7 @@
734
725
  box-shadow:
735
726
  0 @shadowDistance 3px 0 @solidWhiteBorderColor,
736
727
  0 @coloredShadowDistance 0 0 @l,
737
- 0 0 0 @borderWidth @solidWhiteBorderColor
738
- ;
728
+ 0 0 0 @borderWidth @solidWhiteBorderColor;
739
729
  }
740
730
  & when (@variationCardLink) {
741
731
  .ui.inverted.cards a.@{color}.card:hover,
@@ -747,8 +737,7 @@
747
737
  box-shadow:
748
738
  0 @shadowDistance 3px 0 @solidWhiteBorderColor,
749
739
  0 @coloredShadowDistance 0 0 @lh,
750
- 0 0 0 @borderWidth @solidWhiteBorderColor
751
- ;
740
+ 0 0 0 @borderWidth @solidWhiteBorderColor;
752
741
  }
753
742
  }
754
743
  & when (@variationCardBasic) {
package/src/semantic.less CHANGED
@@ -1,11 +1,11 @@
1
1
  /*
2
2
 
3
- ███████╗███████╗███╗ ███╗ █████╗ ███╗ ██╗████████╗██╗ ██████╗ ██╗ ██╗██╗
4
- ██╔════╝██╔════╝████╗ ████║██╔══██╗████╗ ██║╚══██╔══╝██║██╔════╝ ██║ ██║██║
5
- ███████╗█████╗ ██╔████╔██║███████║██╔██╗ ██║ ██║ ██║██║ ██║ ██║██║
6
- ╚════██║██╔══╝ ██║╚██╔╝██║██╔══██║██║╚██╗██║ ██║ ██║██║ ██║ ██║██║
7
- ███████║███████╗██║ ╚═╝ ██║██║ ██║██║ ╚████║ ██║ ██║╚██████╗ ╚██████╔╝██║
8
- ╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝
3
+ ███████╗ ██████╗ ███╗ ███╗ █████╗ ███╗ ██╗████████╗██╗ ██████╗ ██╗ ██╗██╗
4
+ ██╔════╝██╔═══██╗████╗ ████║██╔══██╗████╗ ██║╚══██╔══╝██║██╔════╝ ██║ ██║██║
5
+ █████╗ ██║ ██║██╔████╔██║███████║██╔██╗ ██║ ██║ ██║██║ ██║ ██║██║
6
+ ██╔══╝ ██║ ██║██║╚██╔╝██║██╔══██║██║╚██╗██║ ██║ ██║██║ ██║ ██║██║
7
+ ██║ ╚██████╔╝██║ ╚═╝ ██║██║ ██║██║ ╚████║ ██║ ██║╚██████╗ ╚██████╔╝██║
8
+ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝
9
9
 
10
10
  Import this file into your LESS project to use Fomantic-UI without build tools
11
11
  */