fomantic-ui-sass 2.8.8 → 2.9.0

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 +8 -0
  3. data/app/assets/fonts/semantic-ui/brand-icons.eot +0 -0
  4. data/app/assets/fonts/semantic-ui/brand-icons.svg +41 -6
  5. data/app/assets/fonts/semantic-ui/brand-icons.ttf +0 -0
  6. data/app/assets/fonts/semantic-ui/brand-icons.woff +0 -0
  7. data/app/assets/fonts/semantic-ui/brand-icons.woff2 +0 -0
  8. data/app/assets/fonts/semantic-ui/icons.eot +0 -0
  9. data/app/assets/fonts/semantic-ui/icons.svg +245 -7
  10. data/app/assets/fonts/semantic-ui/icons.ttf +0 -0
  11. data/app/assets/fonts/semantic-ui/icons.woff +0 -0
  12. data/app/assets/fonts/semantic-ui/icons.woff2 +0 -0
  13. data/app/assets/fonts/semantic-ui/outline-icons.eot +0 -0
  14. data/app/assets/fonts/semantic-ui/outline-icons.svg +2 -2
  15. data/app/assets/fonts/semantic-ui/outline-icons.ttf +0 -0
  16. data/app/assets/fonts/semantic-ui/outline-icons.woff +0 -0
  17. data/app/assets/fonts/semantic-ui/outline-icons.woff2 +0 -0
  18. data/app/assets/javascripts/semantic-ui/accordion.js +9 -3
  19. data/app/assets/javascripts/semantic-ui/api.js +92 -33
  20. data/app/assets/javascripts/semantic-ui/calendar.js +200 -82
  21. data/app/assets/javascripts/semantic-ui/checkbox.js +20 -13
  22. data/app/assets/javascripts/semantic-ui/dimmer.js +24 -9
  23. data/app/assets/javascripts/semantic-ui/dropdown.js +250 -205
  24. data/app/assets/javascripts/semantic-ui/embed.js +13 -9
  25. data/app/assets/javascripts/semantic-ui/flyout.js +1530 -0
  26. data/app/assets/javascripts/semantic-ui/form.js +47 -41
  27. data/app/assets/javascripts/semantic-ui/modal.js +187 -83
  28. data/app/assets/javascripts/semantic-ui/nag.js +2 -2
  29. data/app/assets/javascripts/semantic-ui/popup.js +16 -22
  30. data/app/assets/javascripts/semantic-ui/progress.js +7 -4
  31. data/app/assets/javascripts/semantic-ui/rating.js +7 -3
  32. data/app/assets/javascripts/semantic-ui/search.js +47 -20
  33. data/app/assets/javascripts/semantic-ui/shape.js +3 -3
  34. data/app/assets/javascripts/semantic-ui/sidebar.js +140 -43
  35. data/app/assets/javascripts/semantic-ui/site.js +1 -1
  36. data/app/assets/javascripts/semantic-ui/slider.js +78 -63
  37. data/app/assets/javascripts/semantic-ui/state.js +2 -2
  38. data/app/assets/javascripts/semantic-ui/sticky.js +30 -19
  39. data/app/assets/javascripts/semantic-ui/tab.js +24 -6
  40. data/app/assets/javascripts/semantic-ui/toast.js +67 -33
  41. data/app/assets/javascripts/semantic-ui/transition.js +27 -22
  42. data/app/assets/javascripts/semantic-ui/visibility.js +5 -5
  43. data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +1 -1
  44. data/app/assets/stylesheets/semantic-ui/collections/_form.scss +160 -83
  45. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +25 -21
  46. data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +110 -78
  47. data/app/assets/stylesheets/semantic-ui/collections/_message.scss +43 -43
  48. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +1684 -272
  49. data/app/assets/stylesheets/semantic-ui/elements/_button.scss +204 -157
  50. data/app/assets/stylesheets/semantic-ui/elements/_container.scss +98 -4
  51. data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +31 -31
  52. data/app/assets/stylesheets/semantic-ui/elements/_emoji.scss +10799 -8841
  53. data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +1021 -915
  54. data/app/assets/stylesheets/semantic-ui/elements/_header.scss +6 -4
  55. data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +2110 -2061
  56. data/app/assets/stylesheets/semantic-ui/elements/_image.scss +1 -1
  57. data/app/assets/stylesheets/semantic-ui/elements/_input.scss +759 -22
  58. data/app/assets/stylesheets/semantic-ui/elements/_label.scss +72 -68
  59. data/app/assets/stylesheets/semantic-ui/elements/_list.scss +31 -31
  60. data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +352 -352
  61. data/app/assets/stylesheets/semantic-ui/elements/_placeholder.scss +33 -33
  62. data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +1 -1
  63. data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +1 -1
  64. data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +118 -34
  65. data/app/assets/stylesheets/semantic-ui/elements/_step.scss +32 -32
  66. data/app/assets/stylesheets/semantic-ui/elements/_text.scss +1 -1
  67. data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +5 -4
  68. data/app/assets/stylesheets/semantic-ui/globals/_site.scss +139 -42
  69. data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +177 -37
  70. data/app/assets/stylesheets/semantic-ui/modules/_calendar.scss +18 -1
  71. data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +93 -92
  72. data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +33 -18
  73. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +101 -51
  74. data/app/assets/stylesheets/semantic-ui/modules/_embed.scss +5 -5
  75. data/app/assets/stylesheets/semantic-ui/modules/_flyout.scss +592 -0
  76. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +37 -6
  77. data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +1 -1
  78. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +103 -105
  79. data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +1 -1
  80. data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +7 -46
  81. data/app/assets/stylesheets/semantic-ui/modules/_search.scss +6 -6
  82. data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +1 -1
  83. data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +23 -9
  84. data/app/assets/stylesheets/semantic-ui/modules/_slider.scss +17 -17
  85. data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +1 -1
  86. data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +5 -5
  87. data/app/assets/stylesheets/semantic-ui/modules/_toast.scss +49 -1
  88. data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1 -1
  89. data/app/assets/stylesheets/semantic-ui/views/_ad.scss +4 -4
  90. data/app/assets/stylesheets/semantic-ui/views/_card.scss +754 -117
  91. data/app/assets/stylesheets/semantic-ui/views/_comment.scss +12 -12
  92. data/app/assets/stylesheets/semantic-ui/views/_feed.scss +29 -29
  93. data/app/assets/stylesheets/semantic-ui/views/_item.scss +17 -17
  94. data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +4 -4
  95. data/fomantic-ui-sass.gemspec +1 -1
  96. data/lib/fomantic/ui/sass/version.rb +2 -2
  97. metadata +9 -7
@@ -192,11 +192,14 @@ $.fn.dimmer = function(parameters) {
192
192
  ? callback
193
193
  : function(){}
194
194
  ;
195
- module.debug('Showing dimmer', $dimmer, settings);
196
- module.set.variation();
197
195
  if( (!module.is.dimmed() || module.is.animating()) && module.is.enabled() ) {
196
+ if(settings.onShow.call(element) === false) {
197
+ module.verbose('Show callback returned false cancelling dimmer show');
198
+ return;
199
+ }
200
+ module.debug('Showing dimmer', $dimmer, settings);
201
+ module.set.variation();
198
202
  module.animate.show(callback);
199
- settings.onShow.call(element);
200
203
  settings.onChange.call(element);
201
204
  }
202
205
  else {
@@ -210,9 +213,12 @@ $.fn.dimmer = function(parameters) {
210
213
  : function(){}
211
214
  ;
212
215
  if( module.is.dimmed() || module.is.animating() ) {
216
+ if(settings.onHide.call(element) === false) {
217
+ module.verbose('Hide callback returned false cancelling dimmer hide');
218
+ return;
219
+ }
213
220
  module.debug('Hiding dimmer', $dimmer);
214
221
  module.animate.hide(callback);
215
- settings.onHide.call(element);
216
222
  settings.onChange.call(element);
217
223
  }
218
224
  else {
@@ -252,6 +258,9 @@ $.fn.dimmer = function(parameters) {
252
258
  }
253
259
  $dimmer
254
260
  .transition({
261
+ debug : settings.debug,
262
+ verbose : settings.verbose,
263
+ silent : settings.silent,
255
264
  displayType : settings.useFlex
256
265
  ? 'flex'
257
266
  : 'block',
@@ -264,6 +273,7 @@ $.fn.dimmer = function(parameters) {
264
273
  },
265
274
  onComplete : function() {
266
275
  module.set.active();
276
+ settings.onVisible.call($dimmer);
267
277
  callback();
268
278
  }
269
279
  })
@@ -285,6 +295,7 @@ $.fn.dimmer = function(parameters) {
285
295
  .fadeTo(module.get.duration(), settings.opacity, function() {
286
296
  $dimmer.removeAttr('style');
287
297
  module.set.active();
298
+ settings.onVisible.call($dimmer);
288
299
  callback();
289
300
  })
290
301
  ;
@@ -299,6 +310,9 @@ $.fn.dimmer = function(parameters) {
299
310
  module.verbose('Hiding dimmer with css');
300
311
  $dimmer
301
312
  .transition({
313
+ debug : settings.debug,
314
+ verbose : settings.verbose,
315
+ silent : settings.silent,
302
316
  displayType : settings.useFlex
303
317
  ? 'flex'
304
318
  : 'block',
@@ -310,6 +324,7 @@ $.fn.dimmer = function(parameters) {
310
324
  module.remove.dimmed();
311
325
  module.remove.variation();
312
326
  module.remove.active();
327
+ settings.onHidden.call($dimmer);
313
328
  callback();
314
329
  }
315
330
  })
@@ -323,6 +338,7 @@ $.fn.dimmer = function(parameters) {
323
338
  module.remove.dimmed();
324
339
  module.remove.active();
325
340
  $dimmer.removeAttr('style');
341
+ settings.onHidden.call($dimmer);
326
342
  callback();
327
343
  })
328
344
  ;
@@ -364,10 +380,7 @@ $.fn.dimmer = function(parameters) {
364
380
  },
365
381
  closable: function() {
366
382
  if(settings.closable == 'auto') {
367
- if(settings.on == 'hover') {
368
- return false;
369
- }
370
- return true;
383
+ return settings.on != 'hover';
371
384
  }
372
385
  return settings.closable;
373
386
  },
@@ -586,7 +599,7 @@ $.fn.dimmer = function(parameters) {
586
599
  response
587
600
  ;
588
601
  passedArguments = passedArguments || queryArguments;
589
- context = element || context;
602
+ context = context || element;
590
603
  if(typeof query == 'string' && object !== undefined) {
591
604
  query = query.split(/[\. ]/);
592
605
  maxDepth = query.length - 1;
@@ -704,6 +717,8 @@ $.fn.dimmer.settings = {
704
717
  onChange : function(){},
705
718
  onShow : function(){},
706
719
  onHide : function(){},
720
+ onVisible : function(){},
721
+ onHidden : function(){},
707
722
 
708
723
  error : {
709
724
  method : 'The method you called is not defined.'