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
@@ -169,28 +169,29 @@ a.ui.nag {
169
169
  /*--------------
170
170
  Colors
171
171
  -------------- */
172
-
173
- each(@colors, {
174
- @color: replace(@key, '@', '');
175
- @c: @colors[@@color][color];
176
- @l: @colors[@@color][light];
177
- @isVeryDark: @colors[@@color][isVeryDark];
178
-
179
- .ui.@{color}.nag {
180
- background-color: @c;
181
- & when (@isVeryDark) {
182
- color: @invertedTextColor;
172
+ & when not (@variationNagColors = false) {
173
+ each(@variationNagColors, {
174
+ @color: @value;
175
+ @c: @colors[@@color][color];
176
+ @l: @colors[@@color][light];
177
+ @isVeryDark: @colors[@@color][isVeryDark];
178
+
179
+ .ui.@{color}.nag {
180
+ background-color: @c;
181
+ & when (@isVeryDark) {
182
+ color: @invertedTextColor;
183
+ }
183
184
  }
184
- }
185
- & when (@variationNagInverted) {
186
- .ui.inverted.@{color}.nag {
187
- background-color: @l;
188
- & .title when (@isVeryDark) {
189
- color: @titleColor;
185
+ & when (@variationNagInverted) {
186
+ .ui.inverted.@{color}.nag {
187
+ background-color: @l;
188
+ & .title when (@isVeryDark) {
189
+ color: @titleColor;
190
+ }
190
191
  }
191
192
  }
192
- }
193
- })
193
+ })
194
+ }
194
195
 
195
196
  & when (@variationNagGroups) {
196
197
  /*******************************
@@ -337,7 +337,6 @@
337
337
  left: 50%;
338
338
  margin-left: @tooltipArrowHorizontalOffset;
339
339
  margin-top: -@arrowOffset;
340
- transform-origin: center top;
341
340
  }
342
341
  }
343
342
  & when (@variationPopupLeft) {
@@ -448,6 +447,11 @@
448
447
  }
449
448
  }
450
449
  & when (@variationPopupCenter) {
450
+ & when (@variationPopupBottom) {
451
+ [data-position="bottom center"][data-tooltip]:before {
452
+ transform-origin: center top;
453
+ }
454
+ }
451
455
  & when (@variationPopupLeft) {
452
456
  [data-position="left center"][data-tooltip]:before {
453
457
  transform-origin: top center;
@@ -93,7 +93,7 @@ $.fn.progress = function(parameters) {
93
93
  *
94
94
  * @param min A minimum value within multiple values
95
95
  * @param total A total amount of multiple values
96
- * @returns {number} A precison. Could be 1, 10, 100, ... 1e+10.
96
+ * @returns {number} A precision. Could be 1, 10, 100, ... 1e+10.
97
97
  */
98
98
  derivePrecision: function(min, total) {
99
99
  var precisionPower = 0
@@ -607,6 +607,9 @@ $.fn.progress = function(parameters) {
607
607
  }
608
608
  else {
609
609
  module.remove.active();
610
+ module.remove.warning();
611
+ module.remove.error();
612
+ module.remove.success();
610
613
  module.set.label(settings.text.active);
611
614
  }
612
615
  },
@@ -991,7 +994,7 @@ $.fn.progress.settings = {
991
994
  nonNumeric : 'Progress value is non numeric',
992
995
  tooHigh : 'Value specified is above 100%',
993
996
  tooLow : 'Value specified is below 0%',
994
- sumExceedsTotal : 'Sum of multple values exceed total',
997
+ sumExceedsTotal : 'Sum of multiple values exceed total',
995
998
  },
996
999
 
997
1000
  regExp: {
@@ -446,25 +446,26 @@
446
446
  /*--------------
447
447
  Colors
448
448
  ---------------*/
449
-
450
- each(@colors, {
451
- @color: replace(@key, '@', '');
452
- @c: @colors[@@color][color];
453
- @l: @colors[@@color][light];
454
-
455
- .ui.indeterminate.@{color}.progress .bar::before,
456
- .ui.@{color}.progress .bar,
457
- .ui.progress .@{color}.bar {
458
- background-color: @c;
459
- }
460
- & when (@variationProgressInverted) {
461
- .ui.inverted.indeterminate.@{color}.progress .bar::before,
462
- .ui.@{color}.inverted.progress .bar,
463
- .ui.inverted.progress .@{color}.bar {
464
- background-color: @l;
449
+ & when not (@variationProgressColors = false) {
450
+ each(@variationProgressColors, {
451
+ @color: @value;
452
+ @c: @colors[@@color][color];
453
+ @l: @colors[@@color][light];
454
+
455
+ .ui.indeterminate.@{color}.progress .bar::before,
456
+ .ui.@{color}.progress .bar,
457
+ .ui.progress .@{color}.bar {
458
+ background-color: @c;
465
459
  }
466
- }
467
- })
460
+ & when (@variationProgressInverted) {
461
+ .ui.inverted.indeterminate.@{color}.progress .bar::before,
462
+ .ui.@{color}.inverted.progress .bar,
463
+ .ui.inverted.progress .@{color}.bar {
464
+ background-color: @l;
465
+ }
466
+ }
467
+ })
468
+ }
468
469
 
469
470
  /*--------------
470
471
  Sizes
@@ -69,13 +69,20 @@
69
69
  color: @activeColor;
70
70
  }
71
71
 
72
- /* Partially Active Icon */
73
- .ui.rating .icon.partial.active {
74
- background: linear-gradient(to right, @activeColor 0% var(--full), @inactiveColor var(--full) 100%);
75
- background-clip: text;
76
- color: transparent;
77
- }
72
+ & when (@variationRatingPartial) {
73
+ /* Partially Active Icon */
74
+ .ui.rating .icon.partial.active {
75
+ background: linear-gradient(to right, @activeColor 0% var(--full), @inactiveColor var(--full) 100%);
76
+ }
78
77
 
78
+ /* central override for colors */
79
+ .ui.ui.rating .icon.partial.active {
80
+ -webkit-background-clip: text;
81
+ background-clip: text;
82
+ color: transparent;
83
+ text-shadow: none;
84
+ }
85
+ }
79
86
  /* Selected Icon */
80
87
  .ui.rating .icon.selected,
81
88
  .ui.rating .icon.selected.active,
@@ -88,42 +95,42 @@
88
95
  /*--------------
89
96
  Colors
90
97
  -------------- */
91
-
92
- each(@colors, {
93
- @color: replace(@key, '@', '');
94
- @c: @colors[@@color][color];
95
- @l: @colors[@@color][light];
96
- @h: @colors[@@color][hover];
97
- @lh: @colors[@@color][lightHover];
98
-
99
- .ui.@{color}.rating .active.icon {
100
- color: @l;
101
- text-shadow: 0px -@shadowWidth 0px @c,
102
- -@shadowWidth 0px 0px @c,
103
- 0px @shadowWidth 0px @c,
104
- @shadowWidth 0px 0px @c;
105
- }
106
- .ui.@{color}.rating .icon.selected,
107
- .ui.@{color}.rating .icon.selected.active,
108
- .ui.@{color}.rating .icon.selected.partial.active {
109
- background: inherit;
110
- color: @lh;
111
- text-shadow: 0px -@shadowWidth 0px @h,
112
- -@shadowWidth 0px 0px @h,
113
- 0px @shadowWidth 0px @h,
114
- @shadowWidth 0px 0px @h;
115
-
116
- -webkit-text-stroke: unset;
117
- background-clip: unset;
118
- }
119
- .ui.@{color}.rating .icon.partial.active {
120
- background: linear-gradient(to right, @l 0% var(--full), @inactiveColor var(--full) 100%);
121
- text-shadow: none;
122
- -webkit-text-stroke: @c 0.78px;
123
- background-clip: text;
124
- color: transparent;
125
- }
126
- })
98
+ & when not (@variationRatingColors = false) {
99
+ each(@variationRatingColors, {
100
+ @color: @value;
101
+ @c: @colors[@@color][color];
102
+ @l: @colors[@@color][light];
103
+ @h: @colors[@@color][hover];
104
+ @lh: @colors[@@color][lightHover];
105
+
106
+ .ui.@{color}.rating .active.icon {
107
+ color: @l;
108
+ text-shadow: 0px -@shadowWidth 0px @c,
109
+ -@shadowWidth 0px 0px @c,
110
+ 0px @shadowWidth 0px @c,
111
+ @shadowWidth 0px 0px @c;
112
+ }
113
+ .ui.@{color}.rating .icon.selected,
114
+ .ui.@{color}.rating .icon.selected.active,
115
+ .ui.@{color}.rating .icon.selected.partial.active {
116
+ background: inherit;
117
+ color: @lh;
118
+ text-shadow: 0px -@shadowWidth 0px @h,
119
+ -@shadowWidth 0px 0px @h,
120
+ 0px @shadowWidth 0px @h,
121
+ @shadowWidth 0px 0px @h;
122
+
123
+ -webkit-text-stroke: unset;
124
+ background-clip: unset;
125
+ }
126
+ & when (@variationRatingPartial) {
127
+ .ui.@{color}.rating .icon.partial.active {
128
+ background: linear-gradient(to right, @l 0% var(--full), @inactiveColor var(--full) 100%);
129
+ -webkit-text-stroke: @c 0.78px;
130
+ }
131
+ }
132
+ })
133
+ }
127
134
 
128
135
 
129
136
  /*******************************
@@ -437,16 +437,20 @@
437
437
  .ui.search.short > .results {
438
438
  max-height: @scrollingMobileMaxResultsHeight;
439
439
  }
440
- .ui.search[class*="very short"] > .results {
441
- max-height: @scrollingMobileMaxResultsHeight * 0.75;
440
+ & when (@variationSearchVeryShort) {
441
+ .ui.search[class*="very short"] > .results {
442
+ max-height: @scrollingMobileMaxResultsHeight * 0.75;
443
+ }
442
444
  }
443
445
  }
444
446
  & when (@variationSearchLong) {
445
447
  .ui.search.long > .results {
446
448
  max-height: @scrollingMobileMaxResultsHeight * 2;
447
449
  }
448
- .ui.search[class*="very long"] > .results {
449
- max-height: @scrollingMobileMaxResultsHeight * 3;
450
+ & when (@variationSearchVeryLong) {
451
+ .ui.search[class*="very long"] > .results {
452
+ max-height: @scrollingMobileMaxResultsHeight * 3;
453
+ }
450
454
  }
451
455
  }
452
456
  }
@@ -455,16 +459,20 @@
455
459
  .ui.search.short > .results {
456
460
  max-height: @scrollingTabletMaxResultsHeight;
457
461
  }
458
- .ui.search[class*="very short"] > .results {
459
- max-height: @scrollingTabletMaxResultsHeight * 0.75;
462
+ & when (@variationSearchVeryShort) {
463
+ .ui.search[class*="very short"] > .results {
464
+ max-height: @scrollingTabletMaxResultsHeight * 0.75;
465
+ }
460
466
  }
461
467
  }
462
468
  & when (@variationSearchLong) {
463
469
  .ui.search.long > .results {
464
470
  max-height: @scrollingTabletMaxResultsHeight * 2;
465
471
  }
466
- .ui.search[class*="very long"] > .results {
467
- max-height: @scrollingTabletMaxResultsHeight * 3;
472
+ & when (@variationSearchVeryLong) {
473
+ .ui.search[class*="very long"] > .results {
474
+ max-height: @scrollingTabletMaxResultsHeight * 3;
475
+ }
468
476
  }
469
477
  }
470
478
  }
@@ -473,16 +481,20 @@
473
481
  .ui.search.short > .results {
474
482
  max-height: @scrollingComputerMaxResultsHeight;
475
483
  }
476
- .ui.search[class*="very short"] > .results {
477
- max-height: @scrollingComputerMaxResultsHeight * 0.75;
484
+ & when (@variationSearchVeryShort) {
485
+ .ui.search[class*="very short"] > .results {
486
+ max-height: @scrollingComputerMaxResultsHeight * 0.75;
487
+ }
478
488
  }
479
489
  }
480
490
  & when (@variationSearchLong) {
481
491
  .ui.search.long > .results {
482
492
  max-height: @scrollingComputerMaxResultsHeight * 2;
483
493
  }
484
- .ui.search[class*="very long"] > .results {
485
- max-height: @scrollingComputerMaxResultsHeight * 3;
494
+ & when (@variationSearchVeryLong) {
495
+ .ui.search[class*="very long"] > .results {
496
+ max-height: @scrollingComputerMaxResultsHeight * 3;
497
+ }
486
498
  }
487
499
  }
488
500
  }
@@ -491,16 +503,20 @@
491
503
  .ui.search.short > .results {
492
504
  max-height: @scrollingWidescreenMaxResultsHeight;
493
505
  }
494
- .ui.search[class*="very short"] > .results {
495
- max-height: @scrollingWidescreenMaxResultsHeight * 0.75;
506
+ & when (@variationSearchVeryShort) {
507
+ .ui.search[class*="very short"] > .results {
508
+ max-height: @scrollingWidescreenMaxResultsHeight * 0.75;
509
+ }
496
510
  }
497
511
  }
498
512
  & when (@variationSearchLong) {
499
513
  .ui.search.long > .results {
500
514
  max-height: @scrollingWidescreenMaxResultsHeight * 2;
501
515
  }
502
- .ui.search[class*="very long"] > .results {
503
- max-height: @scrollingWidescreenMaxResultsHeight * 3;
516
+ & when (@variationSearchVeryLong) {
517
+ .ui.search[class*="very long"] > .results {
518
+ max-height: @scrollingWidescreenMaxResultsHeight * 3;
519
+ }
504
520
  }
505
521
  }
506
522
  }
@@ -141,13 +141,15 @@ body.pushable {
141
141
  .pushable > .pusher {
142
142
  position: relative;
143
143
  backface-visibility: hidden;
144
- overflow: hidden;
145
144
  min-height: 100%;
146
145
  transition: transform @duration @easing;
147
146
  z-index: @middleLayer;
148
147
 
149
148
  /* Pusher should inherit background from context */
150
149
  background: inherit;
150
+ &:not(.overflowing) {
151
+ overflow: hidden;
152
+ }
151
153
  }
152
154
 
153
155
  body.pushable > .pusher {
@@ -281,9 +283,11 @@ body.pushable > .pusher {
281
283
  width: @thinWidth;
282
284
  }
283
285
 
284
- .ui[class*="very thin"].left.sidebar,
285
- .ui[class*="very thin"].right.sidebar {
286
- width: @veryThinWidth;
286
+ & when (@variationSidebarVeryThin) {
287
+ .ui[class*="very thin"].left.sidebar,
288
+ .ui[class*="very thin"].right.sidebar {
289
+ width: @veryThinWidth;
290
+ }
287
291
  }
288
292
  }
289
293
 
@@ -298,9 +302,11 @@ body.pushable > .pusher {
298
302
  width: @wideWidth;
299
303
  }
300
304
 
301
- .ui[class*="very wide"].left.sidebar,
302
- .ui[class*="very wide"].right.sidebar {
303
- width: @veryWideWidth;
305
+ & when (@variationSidebarVeryWide) {
306
+ .ui[class*="very wide"].left.sidebar,
307
+ .ui[class*="very wide"].right.sidebar {
308
+ width: @veryWideWidth;
309
+ }
304
310
  }
305
311
  }
306
312
 
@@ -312,9 +318,11 @@ body.pushable > .pusher {
312
318
  transform: translate3d(@thinWidth, 0, 0);
313
319
  }
314
320
 
315
- .ui.visible[class*="very thin"].left.sidebar ~ .fixed,
316
- .ui.visible[class*="very thin"].left.sidebar ~ .pusher {
317
- transform: translate3d(@veryThinWidth, 0, 0);
321
+ & when (@variationSidebarVeryThin) {
322
+ .ui.visible[class*="very thin"].left.sidebar ~ .fixed,
323
+ .ui.visible[class*="very thin"].left.sidebar ~ .pusher {
324
+ transform: translate3d(@veryThinWidth, 0, 0);
325
+ }
318
326
  }
319
327
  }
320
328
 
@@ -324,9 +332,11 @@ body.pushable > .pusher {
324
332
  transform: translate3d(@wideWidth, 0, 0);
325
333
  }
326
334
 
327
- .ui.visible[class*="very wide"].left.sidebar ~ .fixed,
328
- .ui.visible[class*="very wide"].left.sidebar ~ .pusher {
329
- transform: translate3d(@veryWideWidth, 0, 0);
335
+ & when (@variationSidebarVeryWide) {
336
+ .ui.visible[class*="very wide"].left.sidebar ~ .fixed,
337
+ .ui.visible[class*="very wide"].left.sidebar ~ .pusher {
338
+ transform: translate3d(@veryWideWidth, 0, 0);
339
+ }
330
340
  }
331
341
  }
332
342
  }
@@ -339,9 +349,11 @@ body.pushable > .pusher {
339
349
  transform: translate3d(-@thinWidth, 0, 0);
340
350
  }
341
351
 
342
- .ui.visible[class*="very thin"].right.sidebar ~ .fixed,
343
- .ui.visible[class*="very thin"].right.sidebar ~ .pusher {
344
- transform: translate3d(-@veryThinWidth, 0, 0);
352
+ & when (@variationSidebarVeryThin) {
353
+ .ui.visible[class*="very thin"].right.sidebar ~ .fixed,
354
+ .ui.visible[class*="very thin"].right.sidebar ~ .pusher {
355
+ transform: translate3d(-@veryThinWidth, 0, 0);
356
+ }
345
357
  }
346
358
  }
347
359
 
@@ -351,9 +363,11 @@ body.pushable > .pusher {
351
363
  transform: translate3d(-@wideWidth, 0, 0);
352
364
  }
353
365
 
354
- .ui.visible[class*="very wide"].right.sidebar ~ .fixed,
355
- .ui.visible[class*="very wide"].right.sidebar ~ .pusher {
356
- transform: translate3d(-@veryWideWidth, 0, 0);
366
+ & when (@variationSidebarVeryWide) {
367
+ .ui.visible[class*="very wide"].right.sidebar ~ .fixed,
368
+ .ui.visible[class*="very wide"].right.sidebar ~ .pusher {
369
+ transform: translate3d(-@veryWideWidth, 0, 0);
370
+ }
357
371
  }
358
372
  }
359
373
  }
@@ -291,46 +291,47 @@
291
291
  /*--------------
292
292
  Colors
293
293
  ---------------*/
294
+ & when not (@variationSliderColors = false) {
295
+ each(@variationSliderColors, {
296
+ @color: @value;
297
+ @c: @colors[@@color][color];
298
+ @l: @colors[@@color][light];
299
+ @h: @colors[@@color][hover];
300
+ @lh: @colors[@@color][lightHover];
301
+
302
+ /* Standard */
303
+ .ui.@{color}.slider .inner .track-fill {
304
+ background-color: @c;
305
+ }
306
+ & when (@variationSliderInverted) {
307
+ .ui.@{color}.inverted.slider .inner .track-fill {
308
+ background-color: @l;
309
+ }
310
+ }
294
311
 
295
- each(@colors, {
296
- @color: replace(@key, '@', '');
297
- @c: @colors[@@color][color];
298
- @l: @colors[@@color][light];
299
- @h: @colors[@@color][hover];
300
- @lh: @colors[@@color][lightHover];
301
-
302
- /* Standard */
303
- .ui.@{color}.slider .inner .track-fill {
304
- background-color: @c;
305
- }
306
- & when (@variationSliderInverted) {
307
- .ui.@{color}.inverted.slider .inner .track-fill {
308
- background-color: @l;
309
- }
310
- }
311
-
312
- & when (@variationSliderBasic) {
313
- /* Basic */
314
- .ui.@{color}.slider.basic .inner .thumb {
315
- background-color: @c;
316
- }
317
- .ui.@{color}.slider.basic .inner .thumb:hover,
318
- .ui.@{color}.slider.basic:focus .inner .thumb {
319
- background-color: @h;
320
- }
321
- & when (@variationSliderInverted) {
322
- /* Basic Inverted */
323
- .ui.@{color}.inverted.slider.basic .inner .thumb {
324
- background-color: @l;
325
- }
326
- .ui.@{color}.inverted.slider.basic .inner .thumb:hover,
327
- .ui.@{color}.inverted.slider.basic:focus .inner .thumb {
328
- background-color: @lh;
329
- }
330
- }
331
- }
312
+ & when (@variationSliderBasic) {
313
+ /* Basic */
314
+ .ui.@{color}.slider.basic .inner .thumb {
315
+ background-color: @c;
316
+ }
317
+ .ui.@{color}.slider.basic .inner .thumb:hover,
318
+ .ui.@{color}.slider.basic:focus .inner .thumb {
319
+ background-color: @h;
320
+ }
321
+ & when (@variationSliderInverted) {
322
+ /* Basic Inverted */
323
+ .ui.@{color}.inverted.slider.basic .inner .thumb {
324
+ background-color: @l;
325
+ }
326
+ .ui.@{color}.inverted.slider.basic .inner .thumb:hover,
327
+ .ui.@{color}.inverted.slider.basic:focus .inner .thumb {
328
+ background-color: @lh;
329
+ }
330
+ }
331
+ }
332
332
 
333
- })
333
+ })
334
+ }
334
335
 
335
336
  & when (@variationSliderBasic) {
336
337
  /*--------------
@@ -938,7 +938,7 @@ $.fn.sticky.settings = {
938
938
 
939
939
  error : {
940
940
  container : 'Sticky element must be inside a relative container',
941
- visible : 'Element is hidden, you must call refresh after element becomes visible. Use silent setting to surpress this warning in production.',
941
+ visible : 'Element is hidden, you must call refresh after element becomes visible. Use silent setting to suppress this warning in production.',
942
942
  method : 'The method you called is not defined.',
943
943
  invalidContext : 'Context specified does not exist',
944
944
  elementSize : 'Sticky element is larger than its container, cannot create sticky.'
@@ -100,10 +100,18 @@ $.fn.tab = function(parameters) {
100
100
  initializedHistory = true;
101
101
  }
102
102
 
103
- if(settings.autoTabActivation && instance === undefined && module.determine.activeTab() == null) {
104
- module.debug('No active tab detected, setting first tab active', module.get.initialPath());
105
- module.changeTab(settings.autoTabActivation === true ? module.get.initialPath() : settings.autoTabActivation);
106
- };
103
+ var activeTab = module.determine.activeTab();
104
+ if(settings.autoTabActivation && instance === undefined && activeTab == null) {
105
+ activeTab = settings.autoTabActivation === true ? module.get.initialPath() : settings.autoTabActivation;
106
+ module.debug('No active tab detected, setting tab active', activeTab);
107
+ module.changeTab(activeTab);
108
+ }
109
+ if(activeTab != null && settings.history) {
110
+ var autoUpdate = $.address.autoUpdate();
111
+ $.address.autoUpdate(false);
112
+ $.address.value(activeTab);
113
+ $.address.autoUpdate(autoUpdate);
114
+ }
107
115
 
108
116
  module.instantiate();
109
117
  },
@@ -203,6 +211,7 @@ $.fn.tab = function(parameters) {
203
211
  .history(true)
204
212
  .state(settings.path)
205
213
  ;
214
+ $(window).trigger('popstate');
206
215
  }
207
216
  else {
208
217
  module.error(error.path);
@@ -370,6 +379,10 @@ $.fn.tab = function(parameters) {
370
379
  module.verbose('Tab parameters found', nextPathArray);
371
380
  }
372
381
  }
382
+ if (settings.onBeforeChange.call(element, currentPath) === false) {
383
+ module.debug('onBeforeChange returned false, cancelling tab change', $tab);
384
+ return false;
385
+ }
373
386
  if(isLastTab && remoteContent) {
374
387
  if(!shouldIgnoreLoad) {
375
388
  module.activate.navigation(currentPath);
@@ -406,6 +419,10 @@ $.fn.tab = function(parameters) {
406
419
  // if anchor exists use parent tab
407
420
  if($anchor && $anchor.length > 0 && currentPath) {
408
421
  module.debug('Anchor link used, opening parent tab', $tab, $anchor);
422
+ if (settings.onBeforeChange.call(element, currentPath) === false) {
423
+ module.debug('onBeforeChange returned false, cancelling tab change', $tab);
424
+ return false;
425
+ }
409
426
  if( !$tab.hasClass(className.active) ) {
410
427
  setTimeout(function() {
411
428
  module.scrollTo($anchor);
@@ -959,6 +976,7 @@ $.fn.tab.settings = {
959
976
  onLoad : function(tabPath, parameterArray, historyEvent) {}, // called on every load
960
977
  onVisible : function(tabPath, parameterArray, historyEvent) {}, // called every time tab visible
961
978
  onRequest : function(tabPath, parameterArray, historyEvent) {}, // called ever time a tab beings loading remote content
979
+ onBeforeChange: function(tabPath) {}, // called before a tab is about to be changed. Returning false will cancel the tab change
962
980
 
963
981
  templates : {
964
982
  determineTitle: function(tabArray) {} // returns page title for path