fomantic-ui-sass 2.9.1 → 2.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -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 +4 -8
  20. data/app/assets/javascripts/semantic-ui/api.js +22 -15
  21. data/app/assets/javascripts/semantic-ui/calendar.js +1 -6
  22. data/app/assets/javascripts/semantic-ui/checkbox.js +4 -6
  23. data/app/assets/javascripts/semantic-ui/dimmer.js +3 -7
  24. data/app/assets/javascripts/semantic-ui/dropdown.js +58 -35
  25. data/app/assets/javascripts/semantic-ui/embed.js +2 -7
  26. data/app/assets/javascripts/semantic-ui/flyout.js +56 -86
  27. data/app/assets/javascripts/semantic-ui/form.js +216 -157
  28. data/app/assets/javascripts/semantic-ui/modal.js +58 -39
  29. data/app/assets/javascripts/semantic-ui/nag.js +17 -9
  30. data/app/assets/javascripts/semantic-ui/popup.js +46 -26
  31. data/app/assets/javascripts/semantic-ui/progress.js +3 -34
  32. data/app/assets/javascripts/semantic-ui/rating.js +1 -5
  33. data/app/assets/javascripts/semantic-ui/search.js +5 -8
  34. data/app/assets/javascripts/semantic-ui/shape.js +15 -41
  35. data/app/assets/javascripts/semantic-ui/sidebar.js +21 -64
  36. data/app/assets/javascripts/semantic-ui/site.js +1 -1
  37. data/app/assets/javascripts/semantic-ui/slider.js +130 -34
  38. data/app/assets/javascripts/semantic-ui/state.js +23 -20
  39. data/app/assets/javascripts/semantic-ui/sticky.js +17 -16
  40. data/app/assets/javascripts/semantic-ui/tab.js +18 -8
  41. data/app/assets/javascripts/semantic-ui/toast.js +19 -11
  42. data/app/assets/javascripts/semantic-ui/transition.js +11 -66
  43. data/app/assets/javascripts/semantic-ui/visibility.js +15 -6
  44. data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +1 -1
  45. data/app/assets/stylesheets/semantic-ui/collections/_form.scss +118 -56
  46. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +113 -107
  47. data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +39 -9
  48. data/app/assets/stylesheets/semantic-ui/collections/_message.scss +1 -1
  49. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +66 -2
  50. data/app/assets/stylesheets/semantic-ui/elements/_button.scss +2 -2
  51. data/app/assets/stylesheets/semantic-ui/elements/_container.scss +62 -1
  52. data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +1 -1
  53. data/app/assets/stylesheets/semantic-ui/elements/_emoji.scss +698 -250
  54. data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +3 -2
  55. data/app/assets/stylesheets/semantic-ui/elements/_header.scss +1 -1
  56. data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +62 -62
  57. data/app/assets/stylesheets/semantic-ui/elements/_image.scss +1 -1
  58. data/app/assets/stylesheets/semantic-ui/elements/_input.scss +61 -51
  59. data/app/assets/stylesheets/semantic-ui/elements/_label.scss +21 -2
  60. data/app/assets/stylesheets/semantic-ui/elements/_list.scss +13 -13
  61. data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +282 -282
  62. data/app/assets/stylesheets/semantic-ui/elements/_placeholder.scss +1 -1
  63. data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +1 -1
  64. data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +1 -1
  65. data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +186 -37
  66. data/app/assets/stylesheets/semantic-ui/elements/_step.scss +4 -4
  67. data/app/assets/stylesheets/semantic-ui/elements/_text.scss +2 -2
  68. data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +1 -1
  69. data/app/assets/stylesheets/semantic-ui/globals/_site.scss +1 -10
  70. data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +1 -1
  71. data/app/assets/stylesheets/semantic-ui/modules/_calendar.scss +145 -8
  72. data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +89 -45
  73. data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +3 -3
  74. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +126 -31
  75. data/app/assets/stylesheets/semantic-ui/modules/_embed.scss +2 -2
  76. data/app/assets/stylesheets/semantic-ui/modules/_flyout.scss +1 -1
  77. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +10 -3
  78. data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +1 -1
  79. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +188 -42
  80. data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +1 -1
  81. data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +1 -1
  82. data/app/assets/stylesheets/semantic-ui/modules/_search.scss +26 -1
  83. data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +1 -1
  84. data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +1 -1
  85. data/app/assets/stylesheets/semantic-ui/modules/_slider.scss +9 -6
  86. data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +1 -1
  87. data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +1 -1
  88. data/app/assets/stylesheets/semantic-ui/modules/_toast.scss +6 -1
  89. data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1 -1
  90. data/app/assets/stylesheets/semantic-ui/views/_ad.scss +1 -1
  91. data/app/assets/stylesheets/semantic-ui/views/_card.scss +1 -1
  92. data/app/assets/stylesheets/semantic-ui/views/_comment.scss +6 -1
  93. data/app/assets/stylesheets/semantic-ui/views/_feed.scss +486 -5
  94. data/app/assets/stylesheets/semantic-ui/views/_item.scss +7 -2
  95. data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +1 -1
  96. data/lib/fomantic/ui/sass/version.rb +2 -2
  97. metadata +1 -1
@@ -22,7 +22,6 @@
22
22
  $.fn.rating = function (parameters) {
23
23
  var
24
24
  $allModules = $(this),
25
- moduleSelector = $allModules.selector || '',
26
25
 
27
26
  time = Date.now(),
28
27
  performance = [],
@@ -369,7 +368,7 @@
369
368
  });
370
369
  }
371
370
  clearTimeout(module.performance.timer);
372
- module.performance.timer = setTimeout(module.performance.display, 500);
371
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
373
372
  },
374
373
  display: function () {
375
374
  var
@@ -382,9 +381,6 @@
382
381
  totalTime += data['Execution Time'];
383
382
  });
384
383
  title += ' ' + totalTime + 'ms';
385
- if (moduleSelector) {
386
- title += ' \'' + moduleSelector + '\'';
387
- }
388
384
  if ($allModules.length > 1) {
389
385
  title += ' (' + $allModules.length + ')';
390
386
  }
@@ -22,7 +22,6 @@
22
22
  $.fn.search = function (parameters) {
23
23
  var
24
24
  $allModules = $(this),
25
- moduleSelector = $allModules.selector || '',
26
25
 
27
26
  time = Date.now(),
28
27
  performance = [],
@@ -170,7 +169,7 @@
170
169
  callback = function () {
171
170
  module.cancel.query();
172
171
  module.remove.focus();
173
- module.timer = setTimeout(module.hideResults, settings.hideDelay);
172
+ module.timer = setTimeout(function () { module.hideResults(); }, settings.hideDelay);
174
173
  }
175
174
  ;
176
175
  if (pageLostFocus) {
@@ -408,7 +407,7 @@
408
407
  return module.is.focused() && !module.is.visible() && !module.is.empty();
409
408
  },
410
409
  transition: function () {
411
- return settings.transition && $.fn.transition !== undefined && $module.transition('is supported');
410
+ return settings.transition && $.fn.transition !== undefined;
412
411
  },
413
412
  },
414
413
 
@@ -562,6 +561,7 @@
562
561
  if (cache) {
563
562
  module.debug('Reading result from cache', searchTerm);
564
563
  module.save.results(cache.results);
564
+ settings.onResults.call(element, cache.results, true);
565
565
  module.addResults(cache.html);
566
566
  module.inject.id(cache.results);
567
567
  callback();
@@ -1171,7 +1171,7 @@
1171
1171
  });
1172
1172
  }
1173
1173
  clearTimeout(module.performance.timer);
1174
- module.performance.timer = setTimeout(module.performance.display, 500);
1174
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
1175
1175
  },
1176
1176
  display: function () {
1177
1177
  var
@@ -1184,9 +1184,6 @@
1184
1184
  totalTime += data['Execution Time'];
1185
1185
  });
1186
1186
  title += ' ' + totalTime + 'ms';
1187
- if (moduleSelector) {
1188
- title += ' \'' + moduleSelector + '\'';
1189
- }
1190
1187
  if ($allModules.length > 1) {
1191
1188
  title += ' (' + $allModules.length + ')';
1192
1189
  }
@@ -1349,7 +1346,7 @@
1349
1346
  onResultsAdd: false,
1350
1347
 
1351
1348
  onSearchQuery: function (query) {},
1352
- onResults: function (response) {},
1349
+ onResults: function (response, fromCache) {},
1353
1350
 
1354
1351
  onResultsOpen: function () {},
1355
1352
  onResultsClose: function () {},
@@ -35,7 +35,6 @@
35
35
 
36
36
  $allModules.each(function () {
37
37
  var
38
- moduleSelector = $allModules.selector || '',
39
38
  settings = $.isPlainObject(parameters)
40
39
  ? $.extend(true, {}, $.fn.shape.settings, parameters)
41
40
  : $.extend({}, $.fn.shape.settings),
@@ -116,33 +115,29 @@
116
115
  module.set.active();
117
116
  };
118
117
  settings.onBeforeChange.call($nextSide[0]);
119
- if (module.get.transitionEvent()) {
120
- module.verbose('Starting CSS animation');
118
+ module.verbose('Starting CSS animation');
119
+ $module
120
+ .addClass(className.animating)
121
+ ;
122
+ $sides
123
+ .css(propertyObject)
124
+ .one('transitionend', callback)
125
+ ;
126
+ module.set.duration(settings.duration);
127
+ requestAnimationFrame(function () {
121
128
  $module
122
129
  .addClass(className.animating)
123
130
  ;
124
- $sides
125
- .css(propertyObject)
126
- .one(module.get.transitionEvent(), callback)
131
+ $activeSide
132
+ .addClass(className.hidden)
127
133
  ;
128
- module.set.duration(settings.duration);
129
- requestAnimationFrame(function () {
130
- $module
131
- .addClass(className.animating)
132
- ;
133
- $activeSide
134
- .addClass(className.hidden)
135
- ;
136
- });
137
- } else {
138
- callback();
139
- }
134
+ });
140
135
  },
141
136
 
142
137
  queue: function (method) {
143
138
  module.debug('Queueing animation of', method);
144
139
  $sides
145
- .one(module.get.transitionEvent(), function () {
140
+ .one('transitionend', function () {
146
141
  module.debug('Executing queued animation');
147
142
  setTimeout(function () {
148
143
  $module.shape(method);
@@ -412,24 +407,6 @@
412
407
  },
413
408
  },
414
409
 
415
- transitionEvent: function () {
416
- var
417
- element = document.createElement('element'),
418
- transitions = {
419
- transition: 'transitionend',
420
- OTransition: 'oTransitionEnd',
421
- MozTransition: 'transitionend',
422
- WebkitTransition: 'webkitTransitionEnd',
423
- },
424
- transition
425
- ;
426
- for (transition in transitions) {
427
- if (element.style[transition] !== undefined) {
428
- return transitions[transition];
429
- }
430
- }
431
- },
432
-
433
410
  nextSide: function () {
434
411
  return $activeSide.next(selector.side).length > 0
435
412
  ? $activeSide.next(selector.side)
@@ -646,7 +623,7 @@
646
623
  });
647
624
  }
648
625
  clearTimeout(module.performance.timer);
649
- module.performance.timer = setTimeout(module.performance.display, 500);
626
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
650
627
  },
651
628
  display: function () {
652
629
  var
@@ -659,9 +636,6 @@
659
636
  totalTime += data['Execution Time'];
660
637
  });
661
638
  title += ' ' + totalTime + 'ms';
662
- if (moduleSelector) {
663
- title += ' \'' + moduleSelector + '\'';
664
- }
665
639
  if ($allModules.length > 1) {
666
640
  title += ' (' + $allModules.length + ')';
667
641
  }
@@ -28,15 +28,25 @@
28
28
  $html = $('html'),
29
29
  $head = $('head'),
30
30
 
31
- moduleSelector = $allModules.selector || '',
32
-
33
31
  time = Date.now(),
34
32
  performance = [],
35
33
 
36
34
  query = arguments[0],
37
35
  methodInvoked = typeof query === 'string',
38
36
  queryArguments = [].slice.call(arguments, 1),
37
+ contextCheck = function (context, win) {
38
+ var $context;
39
+ if ([window, document].indexOf(context) >= 0) {
40
+ $context = $body;
41
+ } else {
42
+ $context = $(win.document).find(context);
43
+ if ($context.length === 0) {
44
+ $context = win.frameElement ? contextCheck(context, win.parent) : $body;
45
+ }
46
+ }
39
47
 
48
+ return $context;
49
+ },
40
50
  returnedValue;
41
51
 
42
52
  $allModules.each(function () {
@@ -55,7 +65,7 @@
55
65
  moduleNamespace = 'module-' + namespace,
56
66
 
57
67
  $module = $(this),
58
- $context = [window, document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $body,
68
+ $context = contextCheck(settings.context, window),
59
69
  isBody = $context[0] === $body[0],
60
70
 
61
71
  $sidebars = $module.children(selector.sidebar),
@@ -69,7 +79,6 @@
69
79
  elementNamespace,
70
80
  id,
71
81
  currentScroll,
72
- transitionEvent,
73
82
  initialBodyMargin = '',
74
83
  tempBodyMargin = '',
75
84
  hadScrollbar = false,
@@ -84,8 +93,6 @@
84
93
 
85
94
  module.create.id();
86
95
 
87
- transitionEvent = module.get.transitionEvent();
88
-
89
96
  // avoids locking rendering if initialized in onReady
90
97
  if (settings.delaySetup) {
91
98
  requestAnimationFrame(module.setup.layout);
@@ -122,9 +129,6 @@
122
129
  .off(eventNamespace)
123
130
  .removeData(moduleNamespace)
124
131
  ;
125
- if (module.is.ios()) {
126
- module.remove.ios();
127
- }
128
132
  // bound by uuid
129
133
  $context.off(elementNamespace);
130
134
  $window.off(elementNamespace);
@@ -280,7 +284,7 @@
280
284
 
281
285
  refresh: function () {
282
286
  module.verbose('Refreshing selector cache');
283
- $context = [window, document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $body;
287
+ $context = contextCheck(settings.context, window);
284
288
  module.refreshSidebars();
285
289
  $pusher = $context.children(selector.pusher);
286
290
  $fixed = $context.children(selector.fixed);
@@ -492,13 +496,13 @@
492
496
  };
493
497
  transitionEnd = function (event) {
494
498
  if (event.target === $transition[0]) {
495
- $transition.off(transitionEvent + elementNamespace, transitionEnd);
499
+ $transition.off('transitionend' + elementNamespace, transitionEnd);
496
500
  module.remove.animating();
497
501
  callback.call(element);
498
502
  }
499
503
  };
500
- $transition.off(transitionEvent + elementNamespace);
501
- $transition.on(transitionEvent + elementNamespace, transitionEnd);
504
+ $transition.off('transitionend' + elementNamespace);
505
+ $transition.on('transitionend' + elementNamespace, transitionEnd);
502
506
  requestAnimationFrame(animate);
503
507
  if (settings.dimPage && !module.othersVisible()) {
504
508
  requestAnimationFrame(dim);
@@ -532,7 +536,7 @@
532
536
  };
533
537
  transitionEnd = function (event) {
534
538
  if (event.target === $transition[0]) {
535
- $transition.off(transitionEvent + elementNamespace, transitionEnd);
539
+ $transition.off('transitionend' + elementNamespace, transitionEnd);
536
540
  module.remove.animating();
537
541
  module.remove.closing();
538
542
  module.remove.transition();
@@ -546,8 +550,8 @@
546
550
  callback.call(element);
547
551
  }
548
552
  };
549
- $transition.off(transitionEvent + elementNamespace);
550
- $transition.on(transitionEvent + elementNamespace, transitionEnd);
553
+ $transition.off('transitionend' + elementNamespace);
554
+ $transition.on('transitionend' + elementNamespace, transitionEnd);
551
555
  requestAnimationFrame(animate);
552
556
  },
553
557
 
@@ -588,11 +592,6 @@
588
592
  $pusher.removeClass(className.blurring);
589
593
  }
590
594
  },
591
- // ios only (scroll on html not document). This prevent auto-resize canvas/scroll in ios
592
- // (This is no longer necessary in latest iOS)
593
- ios: function () {
594
- $html.addClass(className.ios);
595
- },
596
595
 
597
596
  // container
598
597
  pushed: function () {
@@ -641,11 +640,6 @@
641
640
  }
642
641
  },
643
642
 
644
- // ios scroll on html not document
645
- ios: function () {
646
- $html.removeClass(className.ios);
647
- },
648
-
649
643
  // context
650
644
  pushed: function () {
651
645
  $context.removeClass(className.pushed);
@@ -722,23 +716,6 @@
722
716
 
723
717
  return transition;
724
718
  },
725
- transitionEvent: function () {
726
- var
727
- element = document.createElement('element'),
728
- transitions = {
729
- transition: 'transitionend',
730
- OTransition: 'oTransitionEnd',
731
- MozTransition: 'transitionend',
732
- WebkitTransition: 'webkitTransitionEnd',
733
- },
734
- transition
735
- ;
736
- for (transition in transitions) {
737
- if (element.style[transition] !== undefined) {
738
- return transitions[transition];
739
- }
740
- }
741
- },
742
719
  },
743
720
  has: {
744
721
  scrollbar: function () {
@@ -782,20 +759,6 @@
782
759
  return module.cache.isIE;
783
760
  },
784
761
 
785
- ios: function () {
786
- var
787
- userAgent = navigator.userAgent,
788
- isIOS = userAgent.match(regExp.ios),
789
- isMobileChrome = userAgent.match(regExp.mobileChrome)
790
- ;
791
- if (isIOS && !isMobileChrome) {
792
- module.verbose('Browser was found to be iOS', userAgent);
793
-
794
- return true;
795
- }
796
-
797
- return false;
798
- },
799
762
  mobile: function () {
800
763
  var
801
764
  userAgent = navigator.userAgent,
@@ -908,7 +871,7 @@
908
871
  });
909
872
  }
910
873
  clearTimeout(module.performance.timer);
911
- module.performance.timer = setTimeout(module.performance.display, 500);
874
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
912
875
  },
913
876
  display: function () {
914
877
  var
@@ -921,9 +884,6 @@
921
884
  totalTime += data['Execution Time'];
922
885
  });
923
886
  title += ' ' + totalTime + 'ms';
924
- if (moduleSelector) {
925
- title += ' \'' + moduleSelector + '\'';
926
- }
927
887
  if (performance.length > 0) {
928
888
  console.groupCollapsed(title);
929
889
  if (console.table) {
@@ -1058,7 +1018,6 @@
1058
1018
  blurring: 'blurring',
1059
1019
  closing: 'closing',
1060
1020
  dimmed: 'dimmed',
1061
- ios: 'ios',
1062
1021
  locked: 'locked',
1063
1022
  pushable: 'pushable',
1064
1023
  pushed: 'pushed',
@@ -1078,8 +1037,6 @@
1078
1037
  },
1079
1038
 
1080
1039
  regExp: {
1081
- ios: /(iPad|iPhone|iPod)/g,
1082
- mobileChrome: /(CriOS)/g,
1083
1040
  mobile: /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g,
1084
1041
  },
1085
1042
 
@@ -292,7 +292,7 @@
292
292
  });
293
293
  }
294
294
  clearTimeout(module.performance.timer);
295
- module.performance.timer = setTimeout(module.performance.display, 500);
295
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
296
296
  },
297
297
  display: function () {
298
298
  var