fomantic-ui 2.9.2-beta.0 → 2.9.2-beta.10

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 (220) hide show
  1. package/.github/workflows/ci.yml +1 -1
  2. package/dist/components/accordion.css +1 -1
  3. package/dist/components/accordion.js +4 -4
  4. package/dist/components/accordion.min.css +1 -1
  5. package/dist/components/accordion.min.js +2 -2
  6. package/dist/components/ad.css +2 -2
  7. package/dist/components/ad.min.css +1 -1
  8. package/dist/components/api.js +1 -1
  9. package/dist/components/api.min.js +1 -1
  10. package/dist/components/breadcrumb.css +1 -1
  11. package/dist/components/breadcrumb.min.css +1 -1
  12. package/dist/components/button.css +1 -1
  13. package/dist/components/button.min.css +1 -1
  14. package/dist/components/calendar.css +7 -1
  15. package/dist/components/calendar.js +1 -1
  16. package/dist/components/calendar.min.css +1 -1
  17. package/dist/components/calendar.min.js +1 -1
  18. package/dist/components/card.css +2 -2
  19. package/dist/components/card.min.css +1 -1
  20. package/dist/components/checkbox.css +40 -40
  21. package/dist/components/checkbox.js +1 -1
  22. package/dist/components/checkbox.min.css +2 -2
  23. package/dist/components/checkbox.min.js +1 -1
  24. package/dist/components/comment.css +2 -2
  25. package/dist/components/comment.min.css +1 -1
  26. package/dist/components/container.css +1 -1
  27. package/dist/components/container.min.css +1 -1
  28. package/dist/components/dimmer.css +1 -1
  29. package/dist/components/dimmer.js +3 -3
  30. package/dist/components/dimmer.min.css +1 -1
  31. package/dist/components/dimmer.min.js +2 -2
  32. package/dist/components/divider.css +1 -1
  33. package/dist/components/divider.min.css +1 -1
  34. package/dist/components/dropdown.css +8 -6
  35. package/dist/components/dropdown.js +3 -3
  36. package/dist/components/dropdown.min.css +2 -2
  37. package/dist/components/dropdown.min.js +2 -2
  38. package/dist/components/embed.css +2 -2
  39. package/dist/components/embed.js +2 -2
  40. package/dist/components/embed.min.css +2 -2
  41. package/dist/components/embed.min.js +2 -2
  42. package/dist/components/emoji.css +6 -0
  43. package/dist/components/feed.css +2 -2
  44. package/dist/components/feed.min.css +1 -1
  45. package/dist/components/flag.css +1 -1
  46. package/dist/components/flag.min.css +1 -1
  47. package/dist/components/flyout.css +7 -1
  48. package/dist/components/flyout.js +18 -30
  49. package/dist/components/flyout.min.css +1 -1
  50. package/dist/components/flyout.min.js +2 -2
  51. package/dist/components/form.css +66 -37
  52. package/dist/components/form.js +102 -94
  53. package/dist/components/form.min.css +2 -2
  54. package/dist/components/form.min.js +2 -2
  55. package/dist/components/grid.css +1 -1
  56. package/dist/components/grid.min.css +1 -1
  57. package/dist/components/header.css +1 -1
  58. package/dist/components/header.min.css +1 -1
  59. package/dist/components/icon.css +1 -1
  60. package/dist/components/icon.min.css +1 -1
  61. package/dist/components/image.css +1 -1
  62. package/dist/components/image.min.css +1 -1
  63. package/dist/components/input.css +59 -25
  64. package/dist/components/input.min.css +2 -2
  65. package/dist/components/item.css +3 -3
  66. package/dist/components/item.min.css +2 -2
  67. package/dist/components/label.css +1 -1
  68. package/dist/components/label.min.css +1 -1
  69. package/dist/components/list.css +2 -2
  70. package/dist/components/list.min.css +1 -1
  71. package/dist/components/loader.css +1 -1
  72. package/dist/components/loader.min.css +1 -1
  73. package/dist/components/menu.css +31 -7
  74. package/dist/components/menu.min.css +9 -1
  75. package/dist/components/message.css +2 -2
  76. package/dist/components/message.min.css +1 -1
  77. package/dist/components/modal.css +1 -1
  78. package/dist/components/modal.js +15 -8
  79. package/dist/components/modal.min.css +1 -1
  80. package/dist/components/modal.min.js +2 -2
  81. package/dist/components/nag.css +1 -1
  82. package/dist/components/nag.js +1 -1
  83. package/dist/components/nag.min.css +1 -1
  84. package/dist/components/nag.min.js +1 -1
  85. package/dist/components/placeholder.css +7 -1
  86. package/dist/components/placeholder.min.css +1 -1
  87. package/dist/components/popup.css +148 -3
  88. package/dist/components/popup.js +20 -8
  89. package/dist/components/popup.min.css +2 -2
  90. package/dist/components/popup.min.js +2 -2
  91. package/dist/components/progress.css +1 -1
  92. package/dist/components/progress.js +3 -29
  93. package/dist/components/progress.min.css +1 -1
  94. package/dist/components/progress.min.js +2 -2
  95. package/dist/components/rail.css +1 -1
  96. package/dist/components/rail.min.css +1 -1
  97. package/dist/components/rating.css +1 -1
  98. package/dist/components/rating.js +1 -1
  99. package/dist/components/rating.min.css +1 -1
  100. package/dist/components/rating.min.js +1 -1
  101. package/dist/components/reset.css +1 -1
  102. package/dist/components/reset.min.css +1 -1
  103. package/dist/components/reveal.css +1 -1
  104. package/dist/components/reveal.min.css +1 -1
  105. package/dist/components/search.css +1 -1
  106. package/dist/components/search.js +2 -2
  107. package/dist/components/search.min.css +1 -1
  108. package/dist/components/search.min.js +2 -2
  109. package/dist/components/segment.css +3 -3
  110. package/dist/components/segment.min.css +2 -2
  111. package/dist/components/shape.css +1 -1
  112. package/dist/components/shape.js +15 -37
  113. package/dist/components/shape.min.css +1 -1
  114. package/dist/components/shape.min.js +2 -2
  115. package/dist/components/sidebar.css +1 -1
  116. package/dist/components/sidebar.js +7 -27
  117. package/dist/components/sidebar.min.css +1 -1
  118. package/dist/components/sidebar.min.js +2 -2
  119. package/dist/components/site.css +1 -10
  120. package/dist/components/site.js +1 -1
  121. package/dist/components/site.min.css +2 -2
  122. package/dist/components/site.min.js +1 -1
  123. package/dist/components/slider.css +6 -0
  124. package/dist/components/slider.js +1 -1
  125. package/dist/components/slider.min.js +1 -1
  126. package/dist/components/state.js +1 -1
  127. package/dist/components/state.min.js +1 -1
  128. package/dist/components/statistic.css +2 -2
  129. package/dist/components/statistic.min.css +1 -1
  130. package/dist/components/step.css +4 -4
  131. package/dist/components/step.min.css +2 -2
  132. package/dist/components/sticky.css +1 -1
  133. package/dist/components/sticky.js +1 -1
  134. package/dist/components/sticky.min.css +1 -1
  135. package/dist/components/sticky.min.js +1 -1
  136. package/dist/components/tab.css +1 -1
  137. package/dist/components/tab.js +1 -1
  138. package/dist/components/tab.min.css +1 -1
  139. package/dist/components/tab.min.js +1 -1
  140. package/dist/components/table.css +2 -2
  141. package/dist/components/table.min.css +2 -2
  142. package/dist/components/text.css +7 -1
  143. package/dist/components/text.min.css +1 -1
  144. package/dist/components/toast.css +7 -1
  145. package/dist/components/toast.js +3 -3
  146. package/dist/components/toast.min.css +1 -1
  147. package/dist/components/toast.min.js +2 -2
  148. package/dist/components/transition.css +1 -1
  149. package/dist/components/transition.js +10 -61
  150. package/dist/components/transition.min.css +1 -1
  151. package/dist/components/transition.min.js +2 -2
  152. package/dist/components/visibility.js +1 -1
  153. package/dist/components/visibility.min.js +1 -1
  154. package/dist/semantic.css +512 -196
  155. package/dist/semantic.js +220 -324
  156. package/dist/semantic.min.css +2 -2
  157. package/dist/semantic.min.js +2 -2
  158. package/package.json +1 -1
  159. package/src/_site/collections/breadcrumb.variables +1 -1
  160. package/src/_site/collections/message.overrides +1 -1
  161. package/src/_site/elements/emoji.overrides +3 -0
  162. package/src/_site/{modules/chatroom.variables → elements/emoji.variables} +0 -0
  163. package/src/_site/elements/flag.variables +3 -3
  164. package/src/_site/elements/list.overrides +1 -1
  165. package/src/_site/elements/placeholder.overrides +3 -0
  166. package/src/_site/elements/placeholder.variables +3 -0
  167. package/src/_site/elements/text.overrides +3 -0
  168. package/src/_site/elements/text.variables +3 -0
  169. package/src/_site/modules/{chatroom.overrides → calendar.overrides} +0 -0
  170. package/src/_site/modules/calendar.variables +3 -0
  171. package/src/_site/modules/flyout.overrides +3 -0
  172. package/src/_site/modules/flyout.variables +3 -0
  173. package/src/_site/modules/modal.variables +1 -1
  174. package/src/_site/modules/rating.variables +1 -1
  175. package/src/_site/modules/search.variables +1 -1
  176. package/src/_site/modules/sidebar.variables +1 -1
  177. package/src/_site/modules/slider.overrides +3 -0
  178. package/src/_site/modules/slider.variables +3 -0
  179. package/src/_site/modules/sticky.variables +1 -1
  180. package/src/_site/modules/toast.overrides +3 -0
  181. package/src/_site/modules/toast.variables +3 -0
  182. package/src/_site/views/ad.overrides +1 -1
  183. package/src/_site/views/card.overrides +1 -1
  184. package/src/_site/views/comment.overrides +1 -1
  185. package/src/_site/views/feed.overrides +1 -1
  186. package/src/_site/views/item.overrides +1 -1
  187. package/src/_site/views/statistic.overrides +1 -1
  188. package/src/definitions/behaviors/form.js +101 -93
  189. package/src/definitions/collections/form.less +4 -14
  190. package/src/definitions/collections/menu.less +39 -6
  191. package/src/definitions/elements/input.less +6 -20
  192. package/src/definitions/globals/site.less +0 -18
  193. package/src/definitions/modules/accordion.js +3 -3
  194. package/src/definitions/modules/checkbox.less +39 -39
  195. package/src/definitions/modules/dimmer.js +2 -2
  196. package/src/definitions/modules/dropdown.js +2 -2
  197. package/src/definitions/modules/dropdown.less +6 -10
  198. package/src/definitions/modules/embed.js +1 -1
  199. package/src/definitions/modules/embed.less +1 -1
  200. package/src/definitions/modules/flyout.js +17 -29
  201. package/src/definitions/modules/modal.js +14 -7
  202. package/src/definitions/modules/popup.js +19 -7
  203. package/src/definitions/modules/popup.less +48 -4
  204. package/src/definitions/modules/progress.js +2 -28
  205. package/src/definitions/modules/search.js +1 -1
  206. package/src/definitions/modules/shape.js +14 -36
  207. package/src/definitions/modules/sidebar.js +6 -26
  208. package/src/definitions/modules/toast.js +2 -2
  209. package/src/definitions/modules/transition.js +9 -60
  210. package/src/theme.less +4 -12
  211. package/src/themes/default/collections/menu.variables +1 -3
  212. package/src/themes/default/collections/table.variables +1 -3
  213. package/src/themes/default/elements/segment.variables +1 -3
  214. package/src/themes/default/elements/step.variables +1 -1
  215. package/src/themes/default/globals/site.variables +1 -0
  216. package/src/themes/default/globals/variation.variables +2 -0
  217. package/src/themes/default/modules/popup.variables +8 -0
  218. package/src/themes/default/views/item.variables +1 -1
  219. package/tasks/config/project/install.js +1 -1
  220. package/tasks/install.js +8 -0
@@ -1,9 +1,8 @@
1
- /*
2
- * # Fomantic - Menu
1
+ /*!
2
+ * # Fomantic-UI - Menu
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
- * Copyright 2015 Contributor
7
6
  * Released under the MIT license
8
7
  * https://opensource.org/licenses/MIT
9
8
  *
@@ -796,7 +795,7 @@ Floated Menu / Item
796
795
  .ui.compact.menu .item:last-child {
797
796
  border-radius: 0 @borderRadius @borderRadius 0;
798
797
  }
799
- .ui.pagination.menu .item:last-child::before {
798
+ .ui.pagination.menu:not(.wrapping) .item:last-child::before {
800
799
  display: none;
801
800
  }
802
801
 
@@ -1490,12 +1489,17 @@ Floated Menu / Item
1490
1489
  }
1491
1490
 
1492
1491
  & when (@variationMenuCentered) {
1493
- .ui.center.aligned.menu,
1494
- .ui.centered.menu {
1492
+ .ui.center.aligned.menu:not(.fluid),
1493
+ .ui.centered.menu:not(.fluid) {
1495
1494
  display: inline-flex;
1496
1495
  transform: translateX(-50%);
1497
1496
  margin-left: 50%;
1498
1497
  }
1498
+ .ui.center.aligned.menu .item,
1499
+ .ui.centered.menu .item {
1500
+ flex: 1 0 auto;
1501
+ justify-content: center;
1502
+ }
1499
1503
  }
1500
1504
 
1501
1505
  & when (@variationMenuInverted) {
@@ -1915,6 +1919,35 @@ Floated Menu / Item
1915
1919
  }
1916
1920
  }
1917
1921
 
1922
+ & when (@variationMenuWrapping) {
1923
+ .ui.wrapping.menu {
1924
+ flex-wrap: wrap;
1925
+ & .item::before {
1926
+ right: auto;
1927
+ left: 0;
1928
+ }
1929
+ & .item:first-child::before {
1930
+ display: none;
1931
+ }
1932
+ &:not(.tabular) .item {
1933
+ &:last-of-type,
1934
+ &:last-child {
1935
+ border-right: @dividerSize solid @dividerBackground;
1936
+ }
1937
+ }
1938
+ }
1939
+ & when (@variationMenuWrapped) {
1940
+ .ui.wrapped.menu:not(.tabular) .item {
1941
+ &:first-child {
1942
+ border-bottom-left-radius: 0;
1943
+ }
1944
+ &:last-child {
1945
+ border-top-right-radius: 0;
1946
+ }
1947
+ }
1948
+ }
1949
+ }
1950
+
1918
1951
  /* --------------
1919
1952
  Sizes
1920
1953
  --------------- */
@@ -64,11 +64,10 @@
64
64
 
65
65
  /* browsers require these rules separate */
66
66
 
67
- .ui.input > input::-webkit-input-placeholder {
67
+ .ui.input > input::placeholder {
68
68
  color: @placeholderColor;
69
69
  }
70
70
  .ui.input > input::-moz-placeholder {
71
- color: @placeholderColor;
72
71
  opacity: 1;
73
72
  }
74
73
  .ui.input > input:-ms-input-placeholder when (@supportIE) {
@@ -148,12 +147,8 @@
148
147
  color: @focusColor;
149
148
  box-shadow: @focusBoxShadow;
150
149
  }
151
- .ui.input.focus > input::-webkit-input-placeholder,
152
- .ui.input > input:focus::-webkit-input-placeholder {
153
- color: @placeholderFocusColor;
154
- }
155
- .ui.input.focus > input::-moz-placeholder,
156
- .ui.input > input:focus::-moz-placeholder {
150
+ .ui.input.focus > input::placeholder,
151
+ .ui.input > input:focus::placeholder {
157
152
  color: @placeholderFocusColor;
158
153
  }
159
154
  & when (@supportIE) {
@@ -192,10 +187,7 @@
192
187
  }
193
188
 
194
189
  /* Placeholder */
195
- .ui.input.@{state} > input::-webkit-input-placeholder {
196
- color: @formStates[@@state][inputPlaceholderColor];
197
- }
198
- .ui.input.@{state} > input::-moz-placeholder {
190
+ .ui.input.@{state} > input::placeholder {
199
191
  color: @formStates[@@state][inputPlaceholderColor];
200
192
  }
201
193
  .ui.input.@{state} > input:-ms-input-placeholder when (@supportIE) {
@@ -203,10 +195,7 @@
203
195
  }
204
196
 
205
197
  /* Focused Placeholder */
206
- .ui.input.@{state} > input:focus::-webkit-input-placeholder {
207
- color: @formStates[@@state][inputPlaceholderFocusColor];
208
- }
209
- .ui.input.@{state} > input:focus::-moz-placeholder {
198
+ .ui.input.@{state} > input:focus::placeholder {
210
199
  color: @formStates[@@state][inputPlaceholderFocusColor];
211
200
  }
212
201
  .ui.input.@{state} > input:focus:-ms-input-placeholder when (@supportIE){
@@ -258,10 +247,7 @@
258
247
  color: inherit;
259
248
  }
260
249
 
261
- .ui.transparent.inverted.input > input::-webkit-input-placeholder {
262
- color: @transparentInvertedPlaceholderColor;
263
- }
264
- .ui.transparent.inverted.input > input::-moz-placeholder {
250
+ .ui.transparent.inverted.input > input::placeholder {
265
251
  color: @transparentInvertedPlaceholderColor;
266
252
  }
267
253
  .ui.transparent.inverted.input > input:-ms-input-placeholder when (@supportIE) {
@@ -195,30 +195,12 @@ a:hover {
195
195
  *******************************/
196
196
 
197
197
  /* Site */
198
- ::-webkit-selection {
199
- background-color: @highlightBackground;
200
- color: @highlightColor;
201
- }
202
- ::-moz-selection {
203
- background-color: @highlightBackground;
204
- color: @highlightColor;
205
- }
206
198
  ::selection {
207
199
  background-color: @highlightBackground;
208
200
  color: @highlightColor;
209
201
  }
210
202
 
211
203
  /* Form */
212
- textarea::-webkit-selection,
213
- input::-webkit-selection {
214
- background-color: @inputHighlightBackground;
215
- color: @inputHighlightColor;
216
- }
217
- textarea::-moz-selection,
218
- input::-moz-selection {
219
- background-color: @inputHighlightBackground;
220
- color: @inputHighlightColor;
221
- }
222
204
  textarea::selection,
223
205
  input::selection {
224
206
  background-color: @inputHighlightBackground;
@@ -175,7 +175,7 @@
175
175
  .addClass(className.animating)
176
176
  ;
177
177
  if (settings.animateChildren) {
178
- if ($.fn.transition !== undefined && $module.transition('is supported')) {
178
+ if ($.fn.transition !== undefined) {
179
179
  $activeContent
180
180
  .children()
181
181
  .transition({
@@ -239,7 +239,7 @@
239
239
  .addClass(className.animating)
240
240
  ;
241
241
  if (settings.animateChildren) {
242
- if ($.fn.transition !== undefined && $module.transition('is supported')) {
242
+ if ($.fn.transition !== undefined) {
243
243
  $activeContent
244
244
  .children()
245
245
  .transition({
@@ -308,7 +308,7 @@
308
308
  .stop(true, true)
309
309
  ;
310
310
  if (settings.animateChildren) {
311
- if ($.fn.transition !== undefined && $module.transition('is supported')) {
311
+ if ($.fn.transition !== undefined) {
312
312
  $openContents
313
313
  .children()
314
314
  .transition({
@@ -409,10 +409,10 @@
409
409
 
410
410
  /* Active */
411
411
  .ui.slider.checkbox input:checked ~ label {
412
- color: @sliderOnLabelColor !important;
412
+ color: @sliderOnLabelColor;
413
413
  }
414
414
  .ui.slider.checkbox input:checked ~ label::before {
415
- background-color: @sliderOnLineColor !important;
415
+ background-color: @sliderOnLineColor;
416
416
  }
417
417
  .ui.slider.checkbox input:checked ~ label::after {
418
418
  left: @sliderTravelDistance;
@@ -420,10 +420,10 @@
420
420
 
421
421
  /* Active Focus */
422
422
  .ui.slider.checkbox input:focus:checked ~ label {
423
- color: @sliderOnFocusLabelColor !important;
423
+ color: @sliderOnFocusLabelColor;
424
424
  }
425
425
  .ui.slider.checkbox input:focus:checked ~ label::before {
426
- background-color: @sliderOnFocusLineColor !important;
426
+ background-color: @sliderOnFocusLineColor;
427
427
  }
428
428
 
429
429
  & when (@variationCheckboxRightAligned) {
@@ -520,10 +520,10 @@
520
520
 
521
521
  /* Active */
522
522
  .ui.toggle.checkbox input:checked ~ label {
523
- color: @toggleOnLabelColor !important;
523
+ color: @toggleOnLabelColor;
524
524
  }
525
525
  .ui.toggle.checkbox input:checked ~ label::before {
526
- background-color: @toggleOnLaneColor !important;
526
+ background-color: @toggleOnLaneColor;
527
527
  }
528
528
  .ui.toggle.checkbox input:checked ~ label::after {
529
529
  left: @toggleOnOffset;
@@ -532,10 +532,10 @@
532
532
 
533
533
  /* Active Focus */
534
534
  .ui.toggle.checkbox input:focus:checked ~ label {
535
- color: @toggleOnFocusLabelColor !important;
535
+ color: @toggleOnFocusLabelColor;
536
536
  }
537
537
  .ui.toggle.checkbox input:focus:checked ~ label::before {
538
- background-color: @toggleOnFocusLaneColor !important;
538
+ background-color: @toggleOnFocusLaneColor;
539
539
  }
540
540
 
541
541
  & when (@variationCheckboxRightAligned) {
@@ -563,8 +563,8 @@
563
563
  Fitted
564
564
  --------------- */
565
565
 
566
- .ui.fitted.checkbox label {
567
- padding-left: 0 !important;
566
+ .ui.ui.fitted.checkbox label {
567
+ padding-left: 0;
568
568
  }
569
569
 
570
570
  .ui.fitted.toggle.checkbox {
@@ -580,14 +580,14 @@
580
580
  /* --------------
581
581
  Inverted
582
582
  --------------- */
583
- .ui.inverted.checkbox label,
584
- .ui.inverted.checkbox + label {
585
- color: @invertedTextColor !important;
583
+ .ui.ui.ui.inverted.checkbox label,
584
+ .ui.ui.ui.inverted.checkbox + label {
585
+ color: @invertedTextColor;
586
586
  }
587
587
 
588
588
  /* Hover */
589
- .ui.inverted.checkbox label:hover {
590
- color: @invertedHoveredTextColor !important;
589
+ .ui.ui.inverted.checkbox label:hover {
590
+ color: @invertedHoveredTextColor;
591
591
  }
592
592
  .ui.inverted.checkbox label:hover::before {
593
593
  border-color: @strongSelectedBorderColor;
@@ -599,56 +599,56 @@
599
599
  }
600
600
 
601
601
  /* Slider Line */
602
- .ui.inverted.slider.checkbox label::before {
603
- background-color: @invertedUnselectedTextColor !important;
602
+ .ui.ui.inverted.slider.checkbox label::before {
603
+ background-color: @invertedUnselectedTextColor;
604
604
  }
605
605
 
606
606
  /* Slider Hover */
607
- .ui.inverted.slider.checkbox label:hover::before {
608
- background: @invertedLightTextColor !important;
607
+ .ui.ui.inverted.slider.checkbox label:hover::before {
608
+ background: @invertedLightTextColor;
609
609
  }
610
610
 
611
611
  /* Slider Active */
612
- .ui.inverted.slider.checkbox input:checked ~ label {
613
- color: @invertedSelectedTextColor !important;
612
+ .ui.ui.inverted.slider.checkbox input:checked ~ label {
613
+ color: @invertedSelectedTextColor;
614
614
  }
615
- .ui.inverted.slider.checkbox input:checked ~ label::before {
616
- background-color: @selectedWhiteBorderColor !important;
615
+ .ui.ui.inverted.slider.checkbox input:checked ~ label::before {
616
+ background-color: @selectedWhiteBorderColor;
617
617
  }
618
618
 
619
619
  /* Slider Active Focus */
620
- .ui.inverted.slider.checkbox input:focus:checked ~ label {
621
- color: @invertedSelectedTextColor !important;
620
+ .ui.ui.inverted.slider.checkbox input:focus:checked ~ label {
621
+ color: @invertedSelectedTextColor;
622
622
  }
623
- .ui.inverted.slider.checkbox input:focus:checked ~ label::before {
624
- background-color: @selectedWhiteBorderColor !important;
623
+ .ui.ui.inverted.slider.checkbox input:focus:checked ~ label::before {
624
+ background-color: @selectedWhiteBorderColor;
625
625
  }
626
626
  }
627
627
  & when (@variationCheckboxToggle) {
628
628
  /* Toggle Switch */
629
- .ui.inverted.toggle.checkbox label::before {
630
- background-color: @invertedTextColor !important;
629
+ .ui.ui.inverted.toggle.checkbox label::before {
630
+ background-color: @invertedTextColor;
631
631
  }
632
632
 
633
633
  /* Toggle Hover */
634
- .ui.inverted.toggle.checkbox label:hover::before {
635
- background: @invertedHoveredTextColor !important;
634
+ .ui.ui.inverted.toggle.checkbox label:hover::before {
635
+ background: @invertedHoveredTextColor;
636
636
  }
637
637
 
638
638
  /* Toggle Active */
639
- .ui.inverted.toggle.checkbox input:checked ~ label {
640
- color: @invertedSelectedTextColor !important;
639
+ .ui.ui.inverted.toggle.checkbox input:checked ~ label {
640
+ color: @invertedSelectedTextColor;
641
641
  }
642
- .ui.inverted.toggle.checkbox input:checked ~ label::before {
643
- background-color: @toggleOnLaneColor !important;
642
+ .ui.ui.inverted.toggle.checkbox input:checked ~ label::before {
643
+ background-color: @toggleOnLaneColor;
644
644
  }
645
645
 
646
646
  /* Toggle Active Focus */
647
- .ui.inverted.toggle.checkbox input:focus:checked ~ label {
648
- color: @invertedSelectedTextColor !important;
647
+ .ui.ui.inverted.toggle.checkbox input:focus:checked ~ label {
648
+ color: @invertedSelectedTextColor;
649
649
  }
650
- .ui.inverted.toggle.checkbox input:focus:checked ~ label::before {
651
- background-color: @toggleOnFocusLaneColor !important;
650
+ .ui.ui.inverted.toggle.checkbox input:focus:checked ~ label::before {
651
+ background-color: @toggleOnFocusLaneColor;
652
652
  }
653
653
  }
654
654
  }
@@ -229,7 +229,7 @@
229
229
  callback = isFunction(callback)
230
230
  ? callback
231
231
  : function () {};
232
- if (settings.useCSS && $.fn.transition !== undefined && $dimmer.transition('is supported')) {
232
+ if (settings.useCSS && $.fn.transition !== undefined) {
233
233
  if (settings.useFlex) {
234
234
  module.debug('Using flex dimmer');
235
235
  module.remove.legacy();
@@ -288,7 +288,7 @@
288
288
  callback = isFunction(callback)
289
289
  ? callback
290
290
  : function () {};
291
- if (settings.useCSS && $.fn.transition !== undefined && $dimmer.transition('is supported')) {
291
+ if (settings.useCSS && $.fn.transition !== undefined) {
292
292
  module.verbose('Hiding dimmer with css');
293
293
  $dimmer
294
294
  .transition({
@@ -3637,7 +3637,7 @@
3637
3637
  displayType: module.get.displayType(),
3638
3638
  }).transition('show');
3639
3639
  callback.call(element);
3640
- } else if (module.can.useElement('transition') && $module.transition('is supported')) {
3640
+ } else if (module.can.useElement('transition')) {
3641
3641
  $currentMenu
3642
3642
  .transition({
3643
3643
  animation: transition + ' in',
@@ -3679,7 +3679,7 @@
3679
3679
  displayType: module.get.displayType(),
3680
3680
  }).transition('hide');
3681
3681
  callback.call(element);
3682
- } else if ($.fn.transition !== undefined && $module.transition('is supported')) {
3682
+ } else if ($.fn.transition !== undefined) {
3683
3683
  $currentMenu
3684
3684
  .transition({
3685
3685
  animation: transition + ' out',
@@ -425,6 +425,12 @@ select.ui.dropdown {
425
425
  /* Compact */
426
426
  .ui.compact.selection.dropdown {
427
427
  min-width: 0;
428
+ & > .menu {
429
+ width: auto;
430
+ }
431
+ &:not(.multiline) {
432
+ width: max-content;
433
+ }
428
434
  }
429
435
  }
430
436
 
@@ -1898,16 +1904,6 @@ select.ui.dropdown {
1898
1904
  }
1899
1905
 
1900
1906
  /* Selection for form elements */
1901
- .ui.inverted.dropdown textarea::-webkit-selection,
1902
- .ui.inverted.dropdown input::-webkit-selection {
1903
- background-color: @invertedInputHighlightBackground;
1904
- color: @invertedInputHighlightColor;
1905
- }
1906
- .ui.inverted.dropdown textarea::-moz-selection,
1907
- .ui.inverted.dropdown input::-moz-selection {
1908
- background-color: @invertedInputHighlightBackground;
1909
- color: @invertedInputHighlightColor;
1910
- }
1911
1907
  .ui.inverted.dropdown textarea::selection,
1912
1908
  .ui.inverted.dropdown input::selection {
1913
1909
  background-color: @invertedInputHighlightBackground;
@@ -655,7 +655,7 @@
655
655
  return ''
656
656
  + '<iframe src="' + deQuote(src) + '"'
657
657
  + ' width="100%" height="100%"'
658
- + ' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
658
+ + ' msallowFullScreen allowFullScreen></iframe>';
659
659
  },
660
660
  placeholder: function (image, icon) {
661
661
  var
@@ -68,7 +68,7 @@
68
68
  display: block;
69
69
  width: 100%;
70
70
  height: 100%;
71
- background-color: @placeholderBackground;
71
+ background: @placeholderBackground;
72
72
  }
73
73
 
74
74
  /* --------------
@@ -80,8 +80,8 @@
80
80
  elementNamespace,
81
81
  id,
82
82
  observer,
83
+ observeAttributes = false,
83
84
  currentScroll,
84
- transitionEvent,
85
85
 
86
86
  module
87
87
  ;
@@ -145,8 +145,6 @@
145
145
  });
146
146
  }
147
147
 
148
- transitionEvent = module.get.transitionEvent();
149
-
150
148
  // avoids locking rendering if initialized in onReady
151
149
  if (settings.delaySetup) {
152
150
  requestAnimationFrame(module.setup.layout);
@@ -498,7 +496,7 @@
498
496
  ;
499
497
  mutations.every(function (mutation) {
500
498
  if (mutation.type === 'attributes') {
501
- if (mutation.attributeName === 'disabled' || $(mutation.target).find(':input').addBack(':input')) {
499
+ if (observeAttributes && (mutation.attributeName === 'disabled' || $(mutation.target).find(':input').addBack(':input').length > 0)) {
502
500
  shouldRefreshInputs = true;
503
501
  }
504
502
  } else {
@@ -549,13 +547,14 @@
549
547
  if (!settings.dimPage) {
550
548
  return;
551
549
  }
552
- $inputs = $module.find('[tabindex], :input:enabled').filter(':visible').filter(function () {
550
+ $inputs = $module.find('a[href], [tabindex], :input:enabled').filter(':visible').filter(function () {
553
551
  return $(this).closest('.disabled').length === 0;
554
552
  });
555
- $module.removeAttr('tabindex');
556
553
  if ($inputs.length === 0) {
557
554
  $inputs = $module;
558
555
  $module.attr('tabindex', -1);
556
+ } else {
557
+ $module.removeAttr('tabindex');
559
558
  }
560
559
  $inputs.first()
561
560
  .on('keydown' + elementNamespace, module.event.inputKeyDown.first)
@@ -652,6 +651,7 @@
652
651
  }
653
652
  }
654
653
  module.set.dimmerStyles();
654
+ module.set.observeAttributes(false);
655
655
  module.pushPage(function () {
656
656
  callback.call(element);
657
657
  settings.onVisible.call(element);
@@ -660,6 +660,7 @@
660
660
  }
661
661
  module.save.focus();
662
662
  module.refreshInputs();
663
+ requestAnimationFrame(module.set.observeAttributes);
663
664
  });
664
665
  settings.onChange.call(element);
665
666
  } else {
@@ -680,6 +681,7 @@
680
681
  if (module.is.visible() || module.is.animating()) {
681
682
  module.debug('Hiding flyout', callback);
682
683
  module.refreshFlyouts();
684
+ module.set.observeAttributes(false);
683
685
  module.pullPage(function () {
684
686
  callback.call(element);
685
687
  if (isFunction(settings.onHidden)) {
@@ -752,13 +754,13 @@
752
754
  };
753
755
  transitionEnd = function (event) {
754
756
  if (event.target === $module[0]) {
755
- $module.off(transitionEvent + elementNamespace, transitionEnd);
757
+ $module.off('transitionend' + elementNamespace, transitionEnd);
756
758
  module.remove.animating();
757
759
  callback.call(element);
758
760
  }
759
761
  };
760
- $module.off(transitionEvent + elementNamespace);
761
- $module.on(transitionEvent + elementNamespace, transitionEnd);
762
+ $module.off('transitionend' + elementNamespace);
763
+ $module.on('transitionend' + elementNamespace, transitionEnd);
762
764
  requestAnimationFrame(animate);
763
765
  if (settings.dimPage && !module.othersVisible()) {
764
766
  requestAnimationFrame(dim);
@@ -793,7 +795,7 @@
793
795
  };
794
796
  transitionEnd = function (event) {
795
797
  if (event.target === $module[0]) {
796
- $module.off(transitionEvent + elementNamespace, transitionEnd);
798
+ $module.off('transitionend' + elementNamespace, transitionEnd);
797
799
  module.remove.animating();
798
800
  module.remove.closing();
799
801
  module.remove.overlay();
@@ -807,8 +809,8 @@
807
809
  callback.call(element);
808
810
  }
809
811
  };
810
- $module.off(transitionEvent + elementNamespace);
811
- $module.on(transitionEvent + elementNamespace, transitionEnd);
812
+ $module.off('transitionend' + elementNamespace);
813
+ $module.on('transitionend' + elementNamespace, transitionEnd);
812
814
  requestAnimationFrame(animate);
813
815
  },
814
816
 
@@ -831,6 +833,9 @@
831
833
  },
832
834
 
833
835
  set: {
836
+ observeAttributes: function (state) {
837
+ observeAttributes = state !== false;
838
+ },
834
839
  autofocus: function () {
835
840
  var
836
841
  $autofocus = $inputs.filter('[autofocus]'),
@@ -973,23 +978,6 @@
973
978
 
974
979
  return className.left;
975
980
  },
976
- transitionEvent: function () {
977
- var
978
- element = document.createElement('element'),
979
- transitions = {
980
- transition: 'transitionend',
981
- OTransition: 'oTransitionEnd',
982
- MozTransition: 'transitionend',
983
- WebkitTransition: 'webkitTransitionEnd',
984
- },
985
- transition
986
- ;
987
- for (transition in transitions) {
988
- if (element.style[transition] !== undefined) {
989
- return transitions[transition];
990
- }
991
- }
992
- },
993
981
  id: function () {
994
982
  return id;
995
983
  },
@@ -82,6 +82,7 @@
82
82
  elementEventNamespace,
83
83
  id,
84
84
  observer,
85
+ observeAttributes = false,
85
86
  module
86
87
  ;
87
88
  module = {
@@ -265,7 +266,7 @@
265
266
  ;
266
267
  mutations.every(function (mutation) {
267
268
  if (mutation.type === 'attributes') {
268
- if (mutation.attributeName === 'disabled' || $(mutation.target).find(':input').addBack(':input')) {
269
+ if (observeAttributes && (mutation.attributeName === 'disabled' || $(mutation.target).find(':input').addBack(':input').length > 0)) {
269
270
  shouldRefreshInputs = true;
270
271
  }
271
272
  } else {
@@ -324,10 +325,11 @@
324
325
  $inputs = $module.find('a[href], [tabindex], :input:enabled').filter(':visible').filter(function () {
325
326
  return $(this).closest('.disabled').length === 0;
326
327
  });
327
- $module.removeAttr('tabindex');
328
328
  if ($inputs.length === 0) {
329
329
  $inputs = $module;
330
330
  $module.attr('tabindex', -1);
331
+ } else {
332
+ $module.removeAttr('tabindex');
331
333
  }
332
334
  $inputs.first()
333
335
  .on('keydown' + elementEventNamespace, module.event.inputKeyDown.first)
@@ -604,8 +606,9 @@
604
606
  $module.detach().appendTo($dimmer);
605
607
  }
606
608
  }
607
- if (settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
609
+ if (settings.transition && $.fn.transition !== undefined) {
608
610
  module.debug('Showing modal with css animations');
611
+ module.set.observeAttributes(false);
609
612
  $module
610
613
  .transition({
611
614
  debug: settings.debug,
@@ -623,6 +626,7 @@
623
626
  module.save.focus();
624
627
  module.set.active();
625
628
  module.refreshInputs();
629
+ requestAnimationFrame(module.set.observeAttributes);
626
630
  callback();
627
631
  },
628
632
  })
@@ -652,8 +656,9 @@
652
656
 
653
657
  if (module.is.animating() || module.is.active()) {
654
658
  module.debug('Hiding modal');
655
- if (settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
659
+ if (settings.transition && $.fn.transition !== undefined) {
656
660
  module.remove.active();
661
+ module.set.observeAttributes(false);
657
662
  $module
658
663
  .transition({
659
664
  debug: settings.debug,
@@ -673,6 +678,7 @@
673
678
  },
674
679
  onComplete: function () {
675
680
  module.unbind.scrollLock();
681
+ module.remove.active();
676
682
  if (settings.allowMultiple) {
677
683
  $previousModal.addClass(className.front);
678
684
  $module.removeClass(className.front);
@@ -988,9 +994,7 @@
988
994
  return module.cache.isIE;
989
995
  },
990
996
  animating: function () {
991
- return $module.transition('is supported')
992
- ? $module.transition('is animating')
993
- : $module.is(':visible');
997
+ return $module.transition('is animating');
994
998
  },
995
999
  scrolling: function () {
996
1000
  return $dimmable.hasClass(className.scrolling);
@@ -1033,6 +1037,9 @@
1033
1037
  },
1034
1038
 
1035
1039
  set: {
1040
+ observeAttributes: function (state) {
1041
+ observeAttributes = state !== false;
1042
+ },
1036
1043
  autofocus: function () {
1037
1044
  var
1038
1045
  $autofocus = $inputs.filter('[autofocus]'),