semantic-ui-sass 2.2.7.1 → 2.2.9.0

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 (56) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -1
  3. data/README.md +14 -0
  4. data/app/assets/javascripts/semantic-ui/dropdown.js +43 -17
  5. data/app/assets/javascripts/semantic-ui/form.js +64 -19
  6. data/app/assets/javascripts/semantic-ui/search.js +88 -53
  7. data/app/assets/javascripts/semantic-ui/tab.js +12 -6
  8. data/app/assets/javascripts/semantic-ui/visibility.js +7 -2
  9. data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +1 -1
  10. data/app/assets/stylesheets/semantic-ui/collections/_form.scss +4 -4
  11. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +1 -1
  12. data/app/assets/stylesheets/semantic-ui/collections/_message.scss +2 -2
  13. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +1 -1
  14. data/app/assets/stylesheets/semantic-ui/elements/_button.scss +2 -2
  15. data/app/assets/stylesheets/semantic-ui/elements/_container.scss +1 -1
  16. data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +1 -1
  17. data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +2 -2
  18. data/app/assets/stylesheets/semantic-ui/elements/_header.scss +15 -15
  19. data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +155 -5
  20. data/app/assets/stylesheets/semantic-ui/elements/_image.scss +1 -1
  21. data/app/assets/stylesheets/semantic-ui/elements/_input.scss +3 -3
  22. data/app/assets/stylesheets/semantic-ui/elements/_label.scss +1 -1
  23. data/app/assets/stylesheets/semantic-ui/elements/_list.scss +1 -1
  24. data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +1 -1
  25. data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +1 -1
  26. data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +1 -1
  27. data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +8 -1
  28. data/app/assets/stylesheets/semantic-ui/elements/_step.scss +1 -1
  29. data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +1 -1
  30. data/app/assets/stylesheets/semantic-ui/globals/_site.scss +6 -6
  31. data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +1 -1
  32. data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +1 -1
  33. data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +1 -1
  34. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +37 -12
  35. data/app/assets/stylesheets/semantic-ui/modules/_embed.scss +1 -1
  36. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +2 -2
  37. data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +1 -1
  38. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +1 -1
  39. data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +1 -1
  40. data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +1 -1
  41. data/app/assets/stylesheets/semantic-ui/modules/_search.scss +4 -4
  42. data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +1 -1
  43. data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +1 -5
  44. data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +1 -1
  45. data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +1 -1
  46. data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1 -1
  47. data/app/assets/stylesheets/semantic-ui/views/_ad.scss +1 -1
  48. data/app/assets/stylesheets/semantic-ui/views/_card.scss +2 -2
  49. data/app/assets/stylesheets/semantic-ui/views/_comment.scss +5 -5
  50. data/app/assets/stylesheets/semantic-ui/views/_feed.scss +1 -1
  51. data/app/assets/stylesheets/semantic-ui/views/_item.scss +17 -6
  52. data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +1 -1
  53. data/lib/semantic/ui/sass/breadcrumbs.rb +1 -1
  54. data/lib/semantic/ui/sass/version.rb +2 -2
  55. data/spec/dummy/config/environments/test.rb +1 -1
  56. metadata +2 -2
@@ -476,7 +476,10 @@ $.fn.tab = function(parameters) {
476
476
  settings.onFirstLoad.call($tab[0], tabPath, parameterArray, historyEvent);
477
477
  settings.onLoad.call($tab[0], tabPath, parameterArray, historyEvent);
478
478
 
479
- if(typeof settings.cacheType == 'string' && settings.cacheType.toLowerCase() == 'dom' && $tab.children().length > 0) {
479
+ if(settings.loadOnce) {
480
+ module.cache.add(fullTabPath, true);
481
+ }
482
+ else if(typeof settings.cacheType == 'string' && settings.cacheType.toLowerCase() == 'dom' && $tab.children().length > 0) {
480
483
  setTimeout(function() {
481
484
  var
482
485
  $clone = $tab.children().clone(true)
@@ -506,11 +509,13 @@ $.fn.tab = function(parameters) {
506
509
  if(settings.cache && cachedContent) {
507
510
  module.activate.tab(tabPath);
508
511
  module.debug('Adding cached content', fullTabPath);
509
- if(settings.evaluateScripts == 'once') {
510
- module.update.content(tabPath, cachedContent, false);
511
- }
512
- else {
513
- module.update.content(tabPath, cachedContent);
512
+ if(!settings.loadOnce) {
513
+ if(settings.evaluateScripts == 'once') {
514
+ module.update.content(tabPath, cachedContent, false);
515
+ }
516
+ else {
517
+ module.update.content(tabPath, cachedContent);
518
+ }
514
519
  }
515
520
  settings.onLoad.call($tab[0], tabPath, parameterArray, historyEvent);
516
521
  }
@@ -898,6 +903,7 @@ $.fn.tab.settings = {
898
903
 
899
904
  alwaysRefresh : false, // load tab content new every tab click
900
905
  cache : true, // cache the content requests to pull locally
906
+ loadOnce : false, // Whether tab data should only be loaded once when using remote content
901
907
  cacheType : 'response', // Whether to cache exact response, or to html cache contents after scripts execute
902
908
  ignoreFirstLoad : false, // don't load remote content on first load
903
909
 
@@ -387,7 +387,11 @@ $.fn.visibility = function(parameters) {
387
387
  .attr('src', src)
388
388
  ;
389
389
  if(settings.transition) {
390
- if( $.fn.transition !== undefined ) {
390
+ if( $.fn.transition !== undefined) {
391
+ if($module.hasClass(className.visible)) {
392
+ module.debug('Transition already occurred on this image, skipping animation');
393
+ return;
394
+ }
391
395
  $module.transition(settings.transition, settings.duration, callback);
392
396
  }
393
397
  else {
@@ -1270,7 +1274,8 @@ $.fn.visibility.settings = {
1270
1274
 
1271
1275
  className: {
1272
1276
  fixed : 'fixed',
1273
- placeholder : 'placeholder'
1277
+ placeholder : 'placeholder',
1278
+ visible : 'visible'
1274
1279
  },
1275
1280
 
1276
1281
  error : {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.7 - Breadcrumb
2
+ * # Semantic UI 2.2.9 - 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.7 - Form
2
+ * # Semantic UI 2.2.9 - Form
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -85,7 +85,7 @@
85
85
  /* Set max height on unusual input */
86
86
  .ui.form ::-webkit-datetime-edit,
87
87
  .ui.form ::-webkit-inner-spin-button {
88
- height: 1.2142em;
88
+ height: 1.21428571em;
89
89
  }
90
90
  .ui.form input:not([type]),
91
91
  .ui.form input[type="date"],
@@ -104,8 +104,8 @@
104
104
  outline: none;
105
105
  -webkit-appearance: none;
106
106
  tap-highlight-color: rgba(255, 255, 255, 0);
107
- line-height: 1.2142em;
108
- padding: 0.67861429em 1em;
107
+ line-height: 1.21428571em;
108
+ padding: 0.67857143em 1em;
109
109
  font-size: 1em;
110
110
  background: #FFFFFF;
111
111
  border: 1px solid rgba(34, 36, 38, 0.15);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.7 - Grid
2
+ * # Semantic UI 2.2.9 - Grid
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.7 - Message
2
+ * # Semantic UI 2.2.9 - Message
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -43,7 +43,7 @@
43
43
  display: block;
44
44
  font-family: $font-family;
45
45
  font-weight: bold;
46
- margin: -0.14285em 0em 0rem 0em;
46
+ margin: -0.14285714em 0em 0rem 0em;
47
47
  }
48
48
 
49
49
  /* Default font size */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.7 - Table
2
+ * # Semantic UI 2.2.9 - 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.7 - Button
2
+ * # Semantic UI 2.2.9 - Button
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -708,7 +708,7 @@
708
708
  .ui.icon.buttons .button > .icon,
709
709
  .ui.icon.button > .icon {
710
710
  opacity: 0.9;
711
- margin: 0em;
711
+ margin: 0em !important;
712
712
  vertical-align: top;
713
713
  }
714
714
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.7 - Container
2
+ * # Semantic UI 2.2.9 - Container
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.7 - Divider
2
+ * # Semantic UI 2.2.9 - Divider
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.7 - Flag
2
+ * # Semantic UI 2.2.9 - Flag
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -607,7 +607,7 @@ i.flag.mali:before {
607
607
  i.flag.mm:before,
608
608
  i.flag.myanmar:before,
609
609
  i.flag.burma:before {
610
- background-position: -36px -1717px;
610
+ background-position: -73px -1821px;
611
611
  }
612
612
  i.flag.mn:before,
613
613
  i.flag.mongolia:before {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.7 - Header
2
+ * # Semantic UI 2.2.9 - Header
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -17,16 +17,16 @@
17
17
  /* Standard */
18
18
  .ui.header {
19
19
  border: none;
20
- margin: calc(2rem - 0.14285em ) 0em 1rem;
20
+ margin: calc(2rem - 0.14285714em ) 0em 1rem;
21
21
  padding: 0em 0em;
22
22
  font-family: $font-family;
23
23
  font-weight: bold;
24
- line-height: 1.2857em;
24
+ line-height: 1.28571429em;
25
25
  text-transform: none;
26
26
  color: rgba(0, 0, 0, 0.87);
27
27
  }
28
28
  .ui.header:first-child {
29
- margin-top: -0.14285em;
29
+ margin-top: -0.14285714em;
30
30
  }
31
31
  .ui.header:last-child {
32
32
  margin-bottom: 0em;
@@ -54,7 +54,7 @@
54
54
  display: table-cell;
55
55
  opacity: 1;
56
56
  font-size: 1.5em;
57
- padding-top: 0.14285em;
57
+ padding-top: 0.14285714em;
58
58
  vertical-align: middle;
59
59
  }
60
60
 
@@ -69,15 +69,15 @@
69
69
  Image
70
70
  --------------------*/
71
71
 
72
- .ui.header > .image,
72
+ .ui.header > .image:not(.icon),
73
73
  .ui.header > img {
74
74
  display: inline-block;
75
- margin-top: 0.14285em;
75
+ margin-top: 0.14285714em;
76
76
  width: 2.5em;
77
77
  height: auto;
78
78
  vertical-align: middle;
79
79
  }
80
- .ui.header > .image:only-child,
80
+ .ui.header > .image:not(.icon):only-child,
81
81
  .ui.header > img:only-child {
82
82
  margin-right: 0.75rem;
83
83
  }
@@ -134,13 +134,13 @@ h1.ui.header {
134
134
  font-size: 2rem;
135
135
  }
136
136
  h2.ui.header {
137
- font-size: 1.714rem;
137
+ font-size: 1.71428571rem;
138
138
  }
139
139
  h3.ui.header {
140
- font-size: 1.28rem;
140
+ font-size: 1.28571429rem;
141
141
  }
142
142
  h4.ui.header {
143
- font-size: 1.071rem;
143
+ font-size: 1.07142857rem;
144
144
  }
145
145
  h5.ui.header {
146
146
  font-size: 1rem;
@@ -172,13 +172,13 @@ h5.ui.header .sub.header {
172
172
  font-size: 2em;
173
173
  }
174
174
  .ui.large.header {
175
- font-size: 1.714em;
175
+ font-size: 1.71428571em;
176
176
  }
177
177
  .ui.medium.header {
178
- font-size: 1.28em;
178
+ font-size: 1.28571429em;
179
179
  }
180
180
  .ui.small.header {
181
- font-size: 1.071em;
181
+ font-size: 1.07142857em;
182
182
  }
183
183
  .ui.tiny.header {
184
184
  font-size: 1em;
@@ -705,7 +705,7 @@ a.ui.inverted.grey.header:hover {
705
705
  --------------------*/
706
706
 
707
707
  .ui.header:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
708
- font-size: 1.28em;
708
+ font-size: 1.28571429em;
709
709
  }
710
710
 
711
711
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.7 - Icon
2
+ * # Semantic UI 2.2.9 - Icon
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -476,7 +476,7 @@ i.icons .inverted.corner.icon {
476
476
  text-shadow: -1px -1px 0 #1B1C1D, 1px -1px 0 #1B1C1D, -1px 1px 0 #1B1C1D, 1px 1px 0 #1B1C1D;
477
477
  }
478
478
  /*
479
- * Font Awesome 4.6.3 by @davegandy - http://fontawesome.io - @fontawesome
479
+ * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome
480
480
  * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
481
481
  */
482
482
 
@@ -647,9 +647,6 @@ i.icon.text.telephone:before {
647
647
  i.icon.find:before {
648
648
  content: "\f1e5";
649
649
  }
650
- i.icon.wifi:before {
651
- content: "\f1eb";
652
- }
653
650
  i.icon.alarm.mute:before {
654
651
  content: "\f1f6";
655
652
  }
@@ -728,6 +725,54 @@ i.icon.hashtag:before {
728
725
  i.icon.percent:before {
729
726
  content: "\f295";
730
727
  }
728
+ i.icon.handshake:before {
729
+ content: "\f2b5";
730
+ }
731
+ i.icon.open.envelope:before {
732
+ content: "\f2b6";
733
+ }
734
+ i.icon.open.envelope.outline:before {
735
+ content: "\f2b7";
736
+ }
737
+ i.icon.address.book:before {
738
+ content: "\f2b9";
739
+ }
740
+ i.icon.address.book.outline:before {
741
+ content: "\f2ba";
742
+ }
743
+ i.icon.address.card:before {
744
+ content: "\f2bb";
745
+ }
746
+ i.icon.address.card.outline:before {
747
+ content: "\f2bc";
748
+ }
749
+ i.icon.id.badge:before {
750
+ content: "\f2c1";
751
+ }
752
+ i.icon.id.card:before {
753
+ content: "\f2c2";
754
+ }
755
+ i.icon.id.card.outline:before {
756
+ content: "\f2c3";
757
+ }
758
+ i.icon.podcast:before {
759
+ content: "\f2ce";
760
+ }
761
+ i.icon.window.maximize:before {
762
+ content: "\f2d0";
763
+ }
764
+ i.icon.window.minimize:before {
765
+ content: "\f2d1";
766
+ }
767
+ i.icon.window.restore:before {
768
+ content: "\f2d2";
769
+ }
770
+ i.icon.window.close:before {
771
+ content: "\f2d3";
772
+ }
773
+ i.icon.window.close.outline:before {
774
+ content: "\f2d4";
775
+ }
731
776
 
732
777
  /* User Actions */
733
778
  i.icon.wait:before {
@@ -959,6 +1004,15 @@ i.icon.child:before {
959
1004
  i.icon.spy:before {
960
1005
  content: "\f21b";
961
1006
  }
1007
+ i.icon.user.circle:before {
1008
+ content: "\f2bd";
1009
+ }
1010
+ i.icon.user.circle.outline:before {
1011
+ content: "\f2be";
1012
+ }
1013
+ i.icon.user.outline:before {
1014
+ content: "\f2c0";
1015
+ }
962
1016
 
963
1017
  /* Gender & Sexuality */
964
1018
  i.icon.female:before {
@@ -1207,6 +1261,30 @@ i.icon.hand.spock:before {
1207
1261
  i.icon.tv:before {
1208
1262
  content: "\f26c";
1209
1263
  }
1264
+ i.icon.thermometer.full:before {
1265
+ content: "\f2c7";
1266
+ }
1267
+ i.icon.thermometer.three.quarters:before {
1268
+ content: "\f2c8";
1269
+ }
1270
+ i.icon.thermometer.half:before {
1271
+ content: "\f2c9";
1272
+ }
1273
+ i.icon.thermometer.quarter:before {
1274
+ content: "\f2ca";
1275
+ }
1276
+ i.icon.thermometer.empty:before {
1277
+ content: "\f2cb";
1278
+ }
1279
+ i.icon.shower:before {
1280
+ content: "\f2cc";
1281
+ }
1282
+ i.icon.bathtub:before {
1283
+ content: "\f2cd";
1284
+ }
1285
+ i.icon.snowflake:before {
1286
+ content: "\f2dc";
1287
+ }
1210
1288
 
1211
1289
  /* Shapes */
1212
1290
  i.icon.crosshairs:before {
@@ -1622,6 +1700,9 @@ i.icon.openid:before {
1622
1700
  i.icon.database:before {
1623
1701
  content: "\f1c0";
1624
1702
  }
1703
+ i.icon.wifi:before {
1704
+ content: "\f1eb";
1705
+ }
1625
1706
  i.icon.server:before {
1626
1707
  content: "\f233";
1627
1708
  }
@@ -1634,6 +1715,9 @@ i.icon.bluetooth:before {
1634
1715
  i.icon.bluetooth.alternative:before {
1635
1716
  content: "\f294";
1636
1717
  }
1718
+ i.icon.microchip:before {
1719
+ content: "\f2db";
1720
+ }
1637
1721
 
1638
1722
  /* Rating */
1639
1723
  i.icon.heart:before {
@@ -2471,6 +2555,45 @@ i.icon.google.plus.circle:before {
2471
2555
  i.icon.font.awesome:before {
2472
2556
  content: "\f2b4";
2473
2557
  }
2558
+ i.icon.linode:before {
2559
+ content: "\f2b8";
2560
+ }
2561
+ i.icon.quora:before {
2562
+ content: "\f2c4";
2563
+ }
2564
+ i.icon.free.code.camp:before {
2565
+ content: "\f2c5";
2566
+ }
2567
+ i.icon.telegram:before {
2568
+ content: "\f2c6";
2569
+ }
2570
+ i.icon.bandcamp:before {
2571
+ content: "\f2d5";
2572
+ }
2573
+ i.icon.grav:before {
2574
+ content: "\f2d6";
2575
+ }
2576
+ i.icon.etsy:before {
2577
+ content: "\f2d7";
2578
+ }
2579
+ i.icon.imdb:before {
2580
+ content: "\f2d8";
2581
+ }
2582
+ i.icon.ravelry:before {
2583
+ content: "\f2d9";
2584
+ }
2585
+ i.icon.eercast:before {
2586
+ content: "\f2da";
2587
+ }
2588
+ i.icon.superpowers:before {
2589
+ content: "\f2dd";
2590
+ }
2591
+ i.icon.wpexplorer:before {
2592
+ content: "\f2de";
2593
+ }
2594
+ i.icon.meetup:before {
2595
+ content: "\f2e0";
2596
+ }
2474
2597
 
2475
2598
 
2476
2599
  /*******************************
@@ -3134,6 +3257,33 @@ i.icon.google.plus.official:before {
3134
3257
  i.icon.fa:before {
3135
3258
  content: "\f2b4";
3136
3259
  }
3260
+ i.icon.vcard:before {
3261
+ content: "\f2bb";
3262
+ }
3263
+ i.icon.vcard.outline:before {
3264
+ content: "\f2bc";
3265
+ }
3266
+ i.icon.drivers.license:before {
3267
+ content: "\f2c2";
3268
+ }
3269
+ i.icon.drivers.license.outline:before {
3270
+ content: "\f2c3";
3271
+ }
3272
+ i.icon.thermometer:before {
3273
+ content: "\f2c7";
3274
+ }
3275
+ i.icon.s15:before {
3276
+ content: "\f2cd";
3277
+ }
3278
+ i.icon.bath:before {
3279
+ content: "\f2cd";
3280
+ }
3281
+ i.icon.times.rectangle:before {
3282
+ content: "\f2d3";
3283
+ }
3284
+ i.icon.times.rectangle.outline:before {
3285
+ content: "\f2d4";
3286
+ }
3137
3287
 
3138
3288
 
3139
3289
  /*******************************