semantic-ui-sass 2.2.4.0 → 2.2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/README.md +6 -0
  4. data/app/assets/javascripts/semantic-ui/progress.js +26 -5
  5. data/app/assets/javascripts/semantic-ui/search.js +18 -9
  6. data/app/assets/javascripts/semantic-ui/sticky.js +7 -1
  7. data/app/assets/javascripts/semantic-ui/tab.js +24 -6
  8. data/app/assets/javascripts/semantic-ui/transition.js +20 -14
  9. data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +1 -1
  10. data/app/assets/stylesheets/semantic-ui/collections/_form.scss +2 -1
  11. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +1 -2
  12. data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +0 -2
  13. data/app/assets/stylesheets/semantic-ui/collections/_message.scss +2 -2
  14. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +1 -1
  15. data/app/assets/stylesheets/semantic-ui/elements/_button.scss +1 -8
  16. data/app/assets/stylesheets/semantic-ui/elements/_container.scss +1 -2
  17. data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +1 -3
  18. data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +1 -1
  19. data/app/assets/stylesheets/semantic-ui/elements/_header.scss +1 -1
  20. data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +1 -8
  21. data/app/assets/stylesheets/semantic-ui/elements/_image.scss +1 -1
  22. data/app/assets/stylesheets/semantic-ui/elements/_input.scss +1 -1
  23. data/app/assets/stylesheets/semantic-ui/elements/_label.scss +1 -8
  24. data/app/assets/stylesheets/semantic-ui/elements/_list.scss +1 -1
  25. data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +1 -3
  26. data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +1 -1
  27. data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +1 -24
  28. data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +1 -3
  29. data/app/assets/stylesheets/semantic-ui/elements/_step.scss +1 -2
  30. data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +1 -1
  31. data/app/assets/stylesheets/semantic-ui/globals/_site.scss +4 -2
  32. data/app/assets/stylesheets/semantic-ui/globals/_variables.scss +1 -0
  33. data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +1 -5
  34. data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +4 -6
  35. data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +1 -2
  36. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +1 -8
  37. data/app/assets/stylesheets/semantic-ui/modules/_embed.scss +1 -2
  38. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +1 -2
  39. data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +1 -1
  40. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +1 -32
  41. data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +1 -1
  42. data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +1 -1
  43. data/app/assets/stylesheets/semantic-ui/modules/_search.scss +1 -2
  44. data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +1 -1
  45. data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +1 -7
  46. data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +1 -1
  47. data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +1 -1
  48. data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1 -18
  49. data/app/assets/stylesheets/semantic-ui/views/_ad.scss +1 -2
  50. data/app/assets/stylesheets/semantic-ui/views/_card.scss +1 -3
  51. data/app/assets/stylesheets/semantic-ui/views/_comment.scss +1 -1
  52. data/app/assets/stylesheets/semantic-ui/views/_feed.scss +1 -1
  53. data/app/assets/stylesheets/semantic-ui/views/_item.scss +1 -1
  54. data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +3 -1
  55. data/lib/semantic/ui/sass/version.rb +2 -2
  56. data/tasks/converter.rb +3 -1
  57. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f161d2b9fa4f6885351f51fe46be99ebd5de9c1a
4
- data.tar.gz: 308256fa19b124270b4bfc9f57c1c024701c332b
3
+ metadata.gz: b31610a658b63655e8ebb0158e3183faf3c5a72e
4
+ data.tar.gz: 003aeb2853cd2d55fed773c5b25626ffa2e36120
5
5
  SHA512:
6
- metadata.gz: 63012d4db5828c0d2669b9e49252391def444feeb066b19dd1b6c396e82a8496fb493e2f497a7a5f692bb38bae777e54136a5d1b6b1ecd75649904260321b60f
7
- data.tar.gz: 9eb06c8635a05286c8ee7a076fc0c498a4d1593bc193927535f52aed83b46efb48a6201755a4f217aed94356c3b3cb570f2dcc952a90f28394e76caef5589c74
6
+ metadata.gz: 63523d62cbcbb6c0421a9f24368d560902a872ce293399cc221297a16281d01cca6a7086c3ba1d440edea2bf713c17b8b7b48582018de6a6fd8bdbb2e1b7e608
7
+ data.tar.gz: bb86d1ebb05022a4a2858e3d834690528265662fcbcb3d2b2d3844fed49cec9cc34ec90f950a53742e21b3b212464f5797eb7667bef91c87c5e746d829a3bd80
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 2.2.6.0
2
+
3
+ * Add import-google-fonts variable
4
+
5
+ * Update Semantic UI to 2.2.6
6
+
1
7
  ## 2.2.4.0
2
8
 
3
9
  * Update Semantic UI to 2.2.4
data/README.md CHANGED
@@ -39,6 +39,12 @@ $font-url: 'http://fonts.useso.com/css?family=Lato:400,700,400italic,700italic&s
39
39
  @import 'semantic-ui';
40
40
  ```
41
41
 
42
+ ## Skip font loading
43
+ ```css
44
+ $import-google-fonts: false;
45
+ @import 'semantic-ui';
46
+ ```
47
+
42
48
  ## Javascripts
43
49
 
44
50
  We have a helper that includes all Semantic javascripts. Put this in your Javascript manifest (usually in `application.js`) to
@@ -153,6 +153,24 @@ $.fn.progress = function(parameters) {
153
153
  }
154
154
  },
155
155
 
156
+ bind: {
157
+ transitionEnd: function(callback) {
158
+ var
159
+ transitionEnd = module.get.transitionEnd()
160
+ ;
161
+ $bar
162
+ .one(transitionEnd + eventNamespace, function(event) {
163
+ clearTimeout(module.failSafeTimer);
164
+ callback.call(this, event);
165
+ })
166
+ ;
167
+ module.failSafeTimer = setTimeout(function() {
168
+ $bar.triggerHandler(transitionEnd);
169
+ }, settings.duration + settings.failSafeDelay);
170
+ module.verbose('Adding fail safe timer', module.timer);
171
+ }
172
+ },
173
+
156
174
  increment: function(incrementValue) {
157
175
  var
158
176
  maxValue,
@@ -449,7 +467,7 @@ $.fn.progress = function(parameters) {
449
467
  }
450
468
  ;
451
469
  clearInterval(module.interval);
452
- $bar.one(transitionEnd + eventNamespace, animationCallback);
470
+ module.bind.transitionEnd(animationCallback);
453
471
  animating = true;
454
472
  module.interval = setInterval(function() {
455
473
  var
@@ -526,7 +544,7 @@ $.fn.progress = function(parameters) {
526
544
  if(text) {
527
545
  module.set.label(text);
528
546
  }
529
- $bar.one(transitionEnd + eventNamespace, function() {
547
+ module.bind.transitionEnd(function() {
530
548
  settings.onActive.call(element, module.value, module.total);
531
549
  });
532
550
  },
@@ -546,7 +564,7 @@ $.fn.progress = function(parameters) {
546
564
  text = settings.onLabelUpdate('active', text, module.value, module.total);
547
565
  module.set.label(text);
548
566
  }
549
- $bar.one(transitionEnd + eventNamespace, function() {
567
+ module.bind.transitionEnd(function() {
550
568
  settings.onSuccess.call(element, module.total);
551
569
  });
552
570
  },
@@ -562,7 +580,7 @@ $.fn.progress = function(parameters) {
562
580
  if(text) {
563
581
  module.set.label(text);
564
582
  }
565
- $bar.one(transitionEnd + eventNamespace, function() {
583
+ module.bind.transitionEnd(function() {
566
584
  settings.onWarning.call(element, module.value, module.total);
567
585
  });
568
586
  },
@@ -578,7 +596,7 @@ $.fn.progress = function(parameters) {
578
596
  if(text) {
579
597
  module.set.label(text);
580
598
  }
581
- $bar.one(transitionEnd + eventNamespace, function() {
599
+ module.bind.transitionEnd(function() {
582
600
  settings.onError.call(element, module.value, module.total);
583
601
  });
584
602
  },
@@ -856,6 +874,9 @@ $.fn.progress.settings = {
856
874
  total : false,
857
875
  value : false,
858
876
 
877
+ // delay in ms for fail safe animation callback
878
+ failSafeDelay : 100,
879
+
859
880
  onLabelUpdate : function(state, text, value, total){
860
881
  return text;
861
882
  },
@@ -238,13 +238,15 @@ $.fn.search = function(parameters) {
238
238
  handleKeyboard: function(event) {
239
239
  var
240
240
  // force selector refresh
241
- $result = $module.find(selector.result),
242
- $category = $module.find(selector.category),
243
- currentIndex = $result.index( $result.filter('.' + className.active) ),
244
- resultSize = $result.length,
245
-
246
- keyCode = event.which,
247
- keys = {
241
+ $result = $module.find(selector.result),
242
+ $category = $module.find(selector.category),
243
+ $activeResult = $result.filter('.' + className.active),
244
+ currentIndex = $result.index( $activeResult ),
245
+ resultSize = $result.length,
246
+ hasActiveResult = $activeResult.length > 0,
247
+
248
+ keyCode = event.which,
249
+ keys = {
248
250
  backspace : 8,
249
251
  enter : 13,
250
252
  escape : 27,
@@ -267,7 +269,7 @@ $.fn.search = function(parameters) {
267
269
  return false;
268
270
  }
269
271
  }
270
- else if(keyCode == keys.upArrow) {
272
+ else if(keyCode == keys.upArrow && hasActiveResult) {
271
273
  module.verbose('Up key pressed, changing active result');
272
274
  newIndex = (currentIndex - 1 < 0)
273
275
  ? currentIndex
@@ -364,7 +366,14 @@ $.fn.search = function(parameters) {
364
366
  return $results.hasClass(className.hidden);
365
367
  },
366
368
  inMessage: function(event) {
367
- return (event.target && $(event.target).closest(selector.message).length > 0);
369
+ if(!event.target) {
370
+ return;
371
+ }
372
+ var
373
+ $target = $(event.target),
374
+ isInDOM = $.contains(document.documentElement, event.target)
375
+ ;
376
+ return (isInDOM && $target.closest(selector.message).length > 0);
368
377
  },
369
378
  empty: function() {
370
379
  return ($results.html() === '');
@@ -135,7 +135,12 @@ $.fn.sticky = function(parameters) {
135
135
  },
136
136
 
137
137
  determineContainer: function() {
138
- $container = $module.offsetParent();
138
+ if(settings.container) {
139
+ $container = $(settings.container);
140
+ }
141
+ else {
142
+ $container = $module.offsetParent();
143
+ }
139
144
  },
140
145
 
141
146
  determineContext: function() {
@@ -882,6 +887,7 @@ $.fn.sticky.settings = {
882
887
  pushing : false,
883
888
 
884
889
  context : false,
890
+ container : false,
885
891
 
886
892
  // Context to watch scroll events
887
893
  scrollContext : window,
@@ -429,13 +429,21 @@ $.fn.tab = function(parameters) {
429
429
  ? evaluateScripts
430
430
  : settings.evaluateScripts
431
431
  ;
432
- if(evaluateScripts) {
433
- module.debug('Updating HTML and evaluating inline scripts', tabPath, html);
434
- $tab.html(html);
432
+ if(typeof settings.cacheType == 'string' && settings.cacheType.toLowerCase() == 'dom' && typeof html !== 'string') {
433
+ $tab
434
+ .empty()
435
+ .append($(html).clone(true))
436
+ ;
435
437
  }
436
438
  else {
437
- module.debug('Updating HTML', tabPath, html);
438
- tab.innerHTML = html;
439
+ if(evaluateScripts) {
440
+ module.debug('Updating HTML and evaluating inline scripts', tabPath, html);
441
+ $tab.html(html);
442
+ }
443
+ else {
444
+ module.debug('Updating HTML', tabPath, html);
445
+ tab.innerHTML = html;
446
+ }
439
447
  }
440
448
  }
441
449
  },
@@ -467,7 +475,17 @@ $.fn.tab = function(parameters) {
467
475
  }
468
476
  settings.onFirstLoad.call($tab[0], tabPath, parameterArray, historyEvent);
469
477
  settings.onLoad.call($tab[0], tabPath, parameterArray, historyEvent);
470
- if(settings.cacheType != 'response') {
478
+
479
+ if(typeof settings.cacheType == 'string' && settings.cacheType.toLowerCase() == 'dom' && $tab.children().length > 0) {
480
+ setTimeout(function() {
481
+ var
482
+ $clone = $tab.children().clone(true)
483
+ ;
484
+ $clone = $clone.not('script');
485
+ module.cache.add(fullTabPath, $clone);
486
+ }, 0);
487
+ }
488
+ else {
471
489
  module.cache.add(fullTabPath, $tab.html());
472
490
  }
473
491
  },
@@ -612,11 +612,15 @@ $.fn.transition = function() {
612
612
  : duration
613
613
  ;
614
614
  },
615
- displayType: function() {
615
+ displayType: function(shouldDetermine) {
616
+ shouldDetermine = (shouldDetermine !== undefined)
617
+ ? shouldDetermine
618
+ : true
619
+ ;
616
620
  if(settings.displayType) {
617
621
  return settings.displayType;
618
622
  }
619
- if($module.data(metadata.displayType) === undefined) {
623
+ if(shouldDetermine && $module.data(metadata.displayType) === undefined) {
620
624
  // create fake element to determine display state
621
625
  module.can.transition(true);
622
626
  }
@@ -673,13 +677,13 @@ $.fn.transition = function() {
673
677
  var
674
678
  animation = settings.animation,
675
679
  transitionExists = module.get.transitionExists(animation),
680
+ displayType = module.get.displayType(false),
676
681
  elementClass,
677
682
  tagName,
678
683
  $clone,
679
684
  currentAnimation,
680
685
  inAnimation,
681
- directionExists,
682
- displayType
686
+ directionExists
683
687
  ;
684
688
  if( transitionExists === undefined || forced) {
685
689
  module.verbose('Determining whether animation exists');
@@ -699,16 +703,18 @@ $.fn.transition = function() {
699
703
  .addClass(className.inward)
700
704
  .css('animationName')
701
705
  ;
702
- displayType = $clone
703
- .attr('class', elementClass)
704
- .removeAttr('style')
705
- .removeClass(className.hidden)
706
- .removeClass(className.visible)
707
- .show()
708
- .css('display')
709
- ;
710
- module.verbose('Determining final display state', displayType);
711
- module.save.displayType(displayType);
706
+ if(!displayType) {
707
+ displayType = $clone
708
+ .attr('class', elementClass)
709
+ .removeAttr('style')
710
+ .removeClass(className.hidden)
711
+ .removeClass(className.visible)
712
+ .show()
713
+ .css('display')
714
+ ;
715
+ module.verbose('Determining final display state', displayType);
716
+ module.save.displayType(displayType);
717
+ }
712
718
 
713
719
  $clone.remove();
714
720
  if(currentAnimation != inAnimation) {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.4 - Breadcrumb
2
+ * # Semantic UI 2.2.6 - Breadcrumb
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.4 - Form
2
+ * # Semantic UI 2.2.6 - Form
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -969,6 +969,7 @@
969
969
  -webkit-box-align: center;
970
970
  -webkit-align-items: center;
971
971
  -ms-flex-align: center;
972
+ -ms-grid-row-align: center;
972
973
  align-items: center;
973
974
  }
974
975
  .ui.form .inline.fields .field {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.4 - Grid
2
+ * # Semantic UI 2.2.6 - Grid
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1328,7 +1328,6 @@
1328
1328
  .ui.grid > .row > .justified.column.column {
1329
1329
  text-align: justify;
1330
1330
  -webkit-hyphens: auto;
1331
- -moz-hyphens: auto;
1332
1331
  -ms-hyphens: auto;
1333
1332
  hyphens: auto;
1334
1333
  }
@@ -1813,7 +1813,6 @@ Floated Menu / Item
1813
1813
  top: 100%;
1814
1814
  left: 50%;
1815
1815
  -webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
1816
- -ms-transform: translateX(-50%) translateY(-50%) rotate(45deg);
1817
1816
  transform: translateX(-50%) translateY(-50%) rotate(45deg);
1818
1817
  background: none;
1819
1818
  margin: 0.5px 0em 0em;
@@ -1833,7 +1832,6 @@ Floated Menu / Item
1833
1832
  bottom: auto;
1834
1833
  left: auto;
1835
1834
  -webkit-transform: translateX(50%) translateY(-50%) rotate(45deg);
1836
- -ms-transform: translateX(50%) translateY(-50%) rotate(45deg);
1837
1835
  transform: translateX(50%) translateY(-50%) rotate(45deg);
1838
1836
  margin: 0em -0.5px 0em 0em;
1839
1837
  border: none;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.4 - Message
2
+ * # Semantic UI 2.2.6 - Message
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -477,6 +477,6 @@
477
477
 
478
478
 
479
479
  /*******************************
480
- User Variable Overrides
480
+ Site Overrides
481
481
  *******************************/
482
482
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.4 - Table
2
+ * # Semantic UI 2.2.6 - Table
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.4 - Button
2
+ * # Semantic UI 2.2.6 - Button
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -273,7 +273,6 @@
273
273
  }
274
274
  .ui.vertical.animated.button .visible.content {
275
275
  -webkit-transform: translateY(0%);
276
- -ms-transform: translateY(0%);
277
276
  transform: translateY(0%);
278
277
  right: auto;
279
278
  }
@@ -285,7 +284,6 @@
285
284
  .ui.vertical.animated.button:focus .visible.content,
286
285
  .ui.vertical.animated.button:hover .visible.content {
287
286
  -webkit-transform: translateY(200%);
288
- -ms-transform: translateY(200%);
289
287
  transform: translateY(200%);
290
288
  right: auto;
291
289
  }
@@ -308,7 +306,6 @@
308
306
  right: auto;
309
307
  opacity: 1;
310
308
  -webkit-transform: scale(1);
311
- -ms-transform: scale(1);
312
309
  transform: scale(1);
313
310
  }
314
311
  .ui.fade.animated.button .hidden.content {
@@ -316,7 +313,6 @@
316
313
  left: 0%;
317
314
  right: auto;
318
315
  -webkit-transform: scale(1.5);
319
- -ms-transform: scale(1.5);
320
316
  transform: scale(1.5);
321
317
  }
322
318
  .ui.fade.animated.button:focus .visible.content,
@@ -325,7 +321,6 @@
325
321
  right: auto;
326
322
  opacity: 0;
327
323
  -webkit-transform: scale(0.75);
328
- -ms-transform: scale(0.75);
329
324
  transform: scale(0.75);
330
325
  }
331
326
  .ui.fade.animated.button:focus .hidden.content,
@@ -334,7 +329,6 @@
334
329
  right: auto;
335
330
  opacity: 1;
336
331
  -webkit-transform: scale(1);
337
- -ms-transform: scale(1);
338
332
  transform: scale(1);
339
333
  }
340
334
 
@@ -895,7 +889,6 @@
895
889
  top: 50%;
896
890
  text-align: center;
897
891
  -webkit-transform: translateY(-50%);
898
- -ms-transform: translateY(-50%);
899
892
  transform: translateY(-50%);
900
893
  }
901
894
  .ui.labeled.icon.buttons .button > .icon {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.4 - Container
2
+ * # Semantic UI 2.2.6 - Container
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -130,7 +130,6 @@
130
130
  .ui.justified.container {
131
131
  text-align: justify;
132
132
  -webkit-hyphens: auto;
133
- -moz-hyphens: auto;
134
133
  -ms-hyphens: auto;
135
134
  hyphens: auto;
136
135
  }