fomantic-ui-sass 2.9.1 → 2.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/app/assets/fonts/semantic-ui/Lato-Bold.woff +0 -0
  4. data/app/assets/fonts/semantic-ui/Lato-Bold.woff2 +0 -0
  5. data/app/assets/fonts/semantic-ui/Lato-BoldItalic.woff +0 -0
  6. data/app/assets/fonts/semantic-ui/Lato-BoldItalic.woff2 +0 -0
  7. data/app/assets/fonts/semantic-ui/Lato-Italic.woff +0 -0
  8. data/app/assets/fonts/semantic-ui/Lato-Italic.woff2 +0 -0
  9. data/app/assets/fonts/semantic-ui/Lato-Regular.woff +0 -0
  10. data/app/assets/fonts/semantic-ui/Lato-Regular.woff2 +0 -0
  11. data/app/assets/fonts/semantic-ui/LatoLatin-Bold.woff +0 -0
  12. data/app/assets/fonts/semantic-ui/LatoLatin-Bold.woff2 +0 -0
  13. data/app/assets/fonts/semantic-ui/LatoLatin-BoldItalic.woff +0 -0
  14. data/app/assets/fonts/semantic-ui/LatoLatin-BoldItalic.woff2 +0 -0
  15. data/app/assets/fonts/semantic-ui/LatoLatin-Italic.woff +0 -0
  16. data/app/assets/fonts/semantic-ui/LatoLatin-Italic.woff2 +0 -0
  17. data/app/assets/fonts/semantic-ui/LatoLatin-Regular.woff +0 -0
  18. data/app/assets/fonts/semantic-ui/LatoLatin-Regular.woff2 +0 -0
  19. data/app/assets/javascripts/semantic-ui/accordion.js +3 -3
  20. data/app/assets/javascripts/semantic-ui/dimmer.js +2 -2
  21. data/app/assets/javascripts/semantic-ui/dropdown.js +2 -2
  22. data/app/assets/javascripts/semantic-ui/embed.js +1 -1
  23. data/app/assets/javascripts/semantic-ui/flyout.js +17 -29
  24. data/app/assets/javascripts/semantic-ui/form.js +116 -106
  25. data/app/assets/javascripts/semantic-ui/modal.js +14 -7
  26. data/app/assets/javascripts/semantic-ui/popup.js +19 -7
  27. data/app/assets/javascripts/semantic-ui/progress.js +2 -28
  28. data/app/assets/javascripts/semantic-ui/search.js +1 -1
  29. data/app/assets/javascripts/semantic-ui/shape.js +14 -36
  30. data/app/assets/javascripts/semantic-ui/sidebar.js +6 -26
  31. data/app/assets/javascripts/semantic-ui/toast.js +2 -2
  32. data/app/assets/javascripts/semantic-ui/transition.js +9 -60
  33. data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +1 -1
  34. data/app/assets/stylesheets/semantic-ui/collections/_form.scss +66 -37
  35. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +7 -1
  36. data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +31 -7
  37. data/app/assets/stylesheets/semantic-ui/collections/_message.scss +1 -1
  38. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +2 -2
  39. data/app/assets/stylesheets/semantic-ui/elements/_button.scss +1 -1
  40. data/app/assets/stylesheets/semantic-ui/elements/_container.scss +1 -1
  41. data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +1 -1
  42. data/app/assets/stylesheets/semantic-ui/elements/_emoji.scss +2 -2
  43. data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +1 -1
  44. data/app/assets/stylesheets/semantic-ui/elements/_header.scss +1 -1
  45. data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +1 -1
  46. data/app/assets/stylesheets/semantic-ui/elements/_image.scss +1 -1
  47. data/app/assets/stylesheets/semantic-ui/elements/_input.scss +59 -25
  48. data/app/assets/stylesheets/semantic-ui/elements/_label.scss +1 -1
  49. data/app/assets/stylesheets/semantic-ui/elements/_list.scss +1 -1
  50. data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +1 -1
  51. data/app/assets/stylesheets/semantic-ui/elements/_placeholder.scss +1 -1
  52. data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +1 -1
  53. data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +1 -1
  54. data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +26 -4
  55. data/app/assets/stylesheets/semantic-ui/elements/_step.scss +4 -4
  56. data/app/assets/stylesheets/semantic-ui/elements/_text.scss +2 -2
  57. data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +1 -1
  58. data/app/assets/stylesheets/semantic-ui/globals/_site.scss +1 -10
  59. data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +1 -1
  60. data/app/assets/stylesheets/semantic-ui/modules/_calendar.scss +1 -1
  61. data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +40 -40
  62. data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +1 -1
  63. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +8 -6
  64. data/app/assets/stylesheets/semantic-ui/modules/_embed.scss +2 -2
  65. data/app/assets/stylesheets/semantic-ui/modules/_flyout.scss +1 -1
  66. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +1 -1
  67. data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +1 -1
  68. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +148 -3
  69. data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +1 -1
  70. data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +1 -1
  71. data/app/assets/stylesheets/semantic-ui/modules/_search.scss +1 -1
  72. data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +1 -1
  73. data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +1 -1
  74. data/app/assets/stylesheets/semantic-ui/modules/_slider.scss +9 -6
  75. data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +1 -1
  76. data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +1 -1
  77. data/app/assets/stylesheets/semantic-ui/modules/_toast.scss +1 -1
  78. data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1 -1
  79. data/app/assets/stylesheets/semantic-ui/views/_ad.scss +1 -1
  80. data/app/assets/stylesheets/semantic-ui/views/_card.scss +1 -1
  81. data/app/assets/stylesheets/semantic-ui/views/_comment.scss +1 -1
  82. data/app/assets/stylesheets/semantic-ui/views/_feed.scss +1 -1
  83. data/app/assets/stylesheets/semantic-ui/views/_item.scss +2 -2
  84. data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +1 -1
  85. data/lib/fomantic/ui/sass/version.rb +2 -2
  86. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c95a254b2e7c856a2308dd82e62ba2863f5f2d6973450daf1736e167e7ad5d7a
4
- data.tar.gz: 81028095f0a0e454ea5efb3186ca5151aa5d118ce3ca36e3ebeca77bd6495191
3
+ metadata.gz: 9caad3170202a6bfd657e19d60e505e15e0c96d8ca2f85404d352d78ffa13a09
4
+ data.tar.gz: 252679afdbcb408e17a273f2bb2ce8c89a2c53d8ab0d190d956b620e9732d2b7
5
5
  SHA512:
6
- metadata.gz: 37d12c522fc727907012f888f27ad4d365775bee587afe66c3165fa5298109d8c548e37916c491ea0835131a740a1899525c9fa6fc21691323071570d2a7cd5d
7
- data.tar.gz: 15e61dab6061c700c5451f3e9b0a8271898c01303ed59b763449ba5eaba082c0305cc5d67e5931eb3f8b54c7c9bbb3413627fcec5511da8e3d2275ad4ce30fc6
6
+ metadata.gz: d1b71b6b9d3bbabe3e73c2467c31598b311cf5755aeda0f8168de7454aa0ee9e341bdc5151a6988137f02a14aa58bdece6b4ec49d30723cafbdd2c5dd273885c
7
+ data.tar.gz: 89f84b4356be1d3e7beb34030e443e998bf17768aa2152ca23625b8bbefa77dbde3bbcc4636a7adf76e58946a5591aaed1a19e6fc127e7fac4ddb46719b24fd8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 2.9.2
2
+
3
+ Update Fomantic UI to [2.9.2](https://github.com/fomantic/Fomantic-UI/releases/tag/2.9.2)
4
+
5
+ ## 2.9.1
6
+
7
+ Update Fomantic UI to [2.9.1](https://github.com/fomantic/Fomantic-UI/releases/tag/2.9.1)
8
+
1
9
  ## 2.9.0
2
10
 
3
11
  Update Fomantic UI to [2.9.0](https://github.com/fomantic/Fomantic-UI/releases/tag/2.9.0)
@@ -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({
@@ -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',
@@ -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
@@ -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
  },