semantic-ui-sass 0.9.6.0 → 0.10.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4fdae4fa8333afa8df1be0f5d98174fda1ad372
4
- data.tar.gz: 1ad73c7e0cba62b1784762570af94e047a5cb6ae
3
+ metadata.gz: e8d5c3eff9565c4d5ea64acc9ae1bfb397387616
4
+ data.tar.gz: c0f3e1ba3cced91526b499fffad898a94c4657e9
5
5
  SHA512:
6
- metadata.gz: 7dcccefbd853e1c63fdc2e5b81162df46e4ba004bfff85b0aa7cc23d7c78c29c79111cf45fedaca6377549fc20c5ec338942d1172efed4a88ad963ae58b30f1a
7
- data.tar.gz: 70dfe332a254093c8564e0287a8b9639ea3aea29c8bd6889b00793014440304baad436cbf1918fc5f318058e9c4a7c8eff6f1dd28b4ec65b12f6e1580399e2f3
6
+ metadata.gz: 5a9f510079e4a1e9dae7bfdb5e78b12e994fa49649cff81ffcc4c8bc1d25fd7986b507aec53955f891cb5e2bd4368bf7f63483d9958b1344f4ad9e435ef6cd00
7
+ data.tar.gz: 2c69dd044b600c5bc9834f44daeda9bc75e7fcfa8db4a14da0fc234fe054c915be50828e4d9f059f7a855aaff9a6b2d615f83b9c19226f845031594da7ff0e0a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.10.0.0
2
+
3
+ * Update Semantic UI to 0.10.0
4
+
1
5
  ## 0.9.6.0
2
6
 
3
7
  * Update Semantic UI to 0.9.6
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ## Installation and Usage
6
6
 
7
7
  ```ruby
8
- gem 'semantic-ui-sass', '~> 0.9.6.0'
8
+ gem 'semantic-ui-sass', '~> 0.10.0.0'
9
9
  ```
10
10
  or
11
11
 
@@ -158,12 +158,12 @@ $.fn.form = function(fields, parameters) {
158
158
  $field = $(this),
159
159
  $fieldGroup = $field.closest($group)
160
160
  ;
161
- if( $fieldGroup.hasClass(className.error) ) {
162
- module.debug('Revalidating field', $field, module.get.validation($field));
163
- module.validate.field( module.get.validation($field) );
164
- }
165
- else if(settings.on == 'change') {
166
- module.validate.field( module.get.validation($field) );
161
+ if(settings.on == 'change' || ( $fieldGroup.hasClass(className.error) && settings.revalidate) ) {
162
+ clearTimeout(module.timer);
163
+ module.timer = setTimeout(function() {
164
+ module.debug('Revalidating field', $field, module.get.validation($field));
165
+ module.validate.field( module.get.validation($field) );
166
+ }, settings.delay);
167
167
  }
168
168
  }
169
169
  }
@@ -574,6 +574,9 @@ $.fn.form.settings = {
574
574
  on : 'submit',
575
575
  inline : false,
576
576
 
577
+ delay : 200,
578
+ revalidate : true,
579
+
577
580
  transition : 'scale',
578
581
  duration : 150,
579
582
 
@@ -609,7 +612,6 @@ $.fn.form.settings = {
609
612
  },
610
613
 
611
614
 
612
-
613
615
  templates: {
614
616
  error: function(errors) {
615
617
  var
@@ -318,7 +318,10 @@ $.fn.dropdown = function(parameters) {
318
318
  return $text.text();
319
319
  },
320
320
  value: function() {
321
- return $input.val();
321
+ return ($input.size() > 0)
322
+ ? $input.val()
323
+ : $module.data(metadata.value)
324
+ ;
322
325
  },
323
326
  item: function(value) {
324
327
  var
@@ -364,7 +367,12 @@ $.fn.dropdown = function(parameters) {
364
367
  },
365
368
  value: function(value) {
366
369
  module.debug('Adding selected value to hidden input', value, $input);
367
- $input.val(value);
370
+ if($input.size() > 0) {
371
+ $input.val(value);
372
+ }
373
+ else {
374
+ $module.data(metadata.value, value);
375
+ }
368
376
  },
369
377
  active: function() {
370
378
  $module.addClass(className.active);
@@ -43,11 +43,14 @@ body > .ui.grid {
43
43
  Columns
44
44
  --------------------*/
45
45
 
46
+ /* Standard 16 column */
47
+
46
48
  .ui.grid > .column,
47
49
  .ui.grid > .row > .column {
48
50
  display: inline-block;
49
51
  text-align: left;
50
52
  font-size: 1rem;
53
+ width: 6.25%;
51
54
  padding-left: 1.5%;
52
55
  padding-right: 1.5%;
53
56
  -webkit-box-sizing: border-box;
@@ -57,6 +60,13 @@ body > .ui.grid {
57
60
  vertical-align: top;
58
61
  }
59
62
 
63
+ /* Vertical padding when no rows */
64
+
65
+ .ui.grid > .column {
66
+ margin-top: 1rem;
67
+ margin-bottom: 1rem;
68
+ }
69
+
60
70
  /*-------------------
61
71
  Rows
62
72
  --------------------*/
@@ -65,7 +75,7 @@ body > .ui.grid {
65
75
  display: block;
66
76
  width: 100% !important;
67
77
  margin-top: 1.5%;
68
- padding: 1.5% 0% 0%;
78
+ padding: 1rem 0% 0%;
69
79
  font-size: 0rem;
70
80
  }
71
81
 
@@ -221,13 +231,6 @@ body > .ui.grid {
221
231
  Column Count
222
232
  --------------------*/
223
233
 
224
- /* Standard */
225
-
226
- .ui.grid > .column,
227
- .ui.grid > .row > .column {
228
- width: 6.25%;
229
- }
230
-
231
234
  /* Assume full width with one column */
232
235
 
233
236
  .ui.one.column.grid > .row > .column,
@@ -664,6 +667,162 @@ body > .ui.grid {
664
667
  }
665
668
  }
666
669
 
670
+ /*-------------------
671
+ Doubling
672
+ --------------------*/
673
+
674
+ /* Mobily Only */
675
+
676
+ @media only screen and (max-width : 768px) {
677
+ .ui.two.column.doubling.grid > .row > .column,
678
+ .ui.two.column.doubling.grid > .column,
679
+ .ui.grid > .two.column.doubling.row > .column {
680
+ width: 100%;
681
+ }
682
+
683
+ .ui.three.column.doubling.grid > .row > .column,
684
+ .ui.three.column.doubling.grid > .column,
685
+ .ui.grid > .three.column.doubling.row > .column {
686
+ width: 100%;
687
+ }
688
+
689
+ .ui.four.column.doubling.grid > .row > .column,
690
+ .ui.four.column.doubling.grid > .column,
691
+ .ui.grid > .four.column.doubling.row > .column {
692
+ width: 100%;
693
+ }
694
+
695
+ .ui.five.column.doubling.grid > .row > .column,
696
+ .ui.five.column.doubling.grid > .column,
697
+ .ui.grid > .five.column.doubling.row > .column {
698
+ width: 100%;
699
+ }
700
+
701
+ .ui.six.column.doubling.grid > .row > .column,
702
+ .ui.six.column.doubling.grid > .column,
703
+ .ui.grid > .six.column.doubling.row > .column {
704
+ width: 50%;
705
+ }
706
+
707
+ .ui.seven.column.doubling.grid > .row > .column,
708
+ .ui.seven.column.doubling.grid > .column,
709
+ .ui.grid > .seven.column.doubling.row > .column {
710
+ width: 50%;
711
+ }
712
+
713
+ .ui.eight.column.doubling.grid > .row > .column,
714
+ .ui.eight.column.doubling.grid > .column,
715
+ .ui.grid > .eight.column.doubling.row > .column {
716
+ width: 50%;
717
+ }
718
+
719
+ .ui.nine.column.doubling.grid > .row > .column,
720
+ .ui.nine.column.doubling.grid > .column,
721
+ .ui.grid > .nine.column.doubling.row > .column {
722
+ width: 50%;
723
+ }
724
+
725
+ .ui.ten.column.doubling.grid > .row > .column,
726
+ .ui.ten.column.doubling.grid > .column,
727
+ .ui.grid > .ten.column.doubling.row > .column {
728
+ width: 50%;
729
+ }
730
+
731
+ .ui.twelve.column.doubling.grid > .row > .column,
732
+ .ui.twelve.column.doubling.grid > .column,
733
+ .ui.grid > .twelve.column.doubling.row > .column {
734
+ width: 33.3333333333333%;
735
+ }
736
+
737
+ .ui.fourteen.column.doubling.grid > .row > .column,
738
+ .ui.fourteen.column.doubling.grid > .column,
739
+ .ui.grid > .fourteen.column.doubling.row > .column {
740
+ width: 33.3333333333333%;
741
+ }
742
+
743
+ .ui.sixteen.column.doubling.grid > .row > .column,
744
+ .ui.sixteen.column.doubling.grid > .column,
745
+ .ui.grid > .sixteen.column.doubling.row > .column {
746
+ width: 25%;
747
+ }
748
+ }
749
+
750
+ /* Tablet Only */
751
+
752
+ @media only screen and (min-width : 768px) and (max-width : 998px) {
753
+ .ui.two.column.doubling.grid > .row > .column,
754
+ .ui.two.column.doubling.grid > .column,
755
+ .ui.grid > .two.column.doubling.row > .column {
756
+ width: 100%;
757
+ }
758
+
759
+ .ui.three.column.doubling.grid > .row > .column,
760
+ .ui.three.column.doubling.grid > .column,
761
+ .ui.grid > .three.column.doubling.row > .column {
762
+ width: 50%;
763
+ }
764
+
765
+ .ui.four.column.doubling.grid > .row > .column,
766
+ .ui.four.column.doubling.grid > .column,
767
+ .ui.grid > .four.column.doubling.row > .column {
768
+ width: 50%;
769
+ }
770
+
771
+ .ui.five.column.doubling.grid > .row > .column,
772
+ .ui.five.column.doubling.grid > .column,
773
+ .ui.grid > .five.column.doubling.row > .column {
774
+ width: 33.3333333%;
775
+ }
776
+
777
+ .ui.six.column.doubling.grid > .row > .column,
778
+ .ui.six.column.doubling.grid > .column,
779
+ .ui.grid > .six.column.doubling.row > .column {
780
+ width: 33.3333333%;
781
+ }
782
+
783
+ .ui.eight.column.doubling.grid > .row > .column,
784
+ .ui.eight.column.doubling.grid > .column,
785
+ .ui.grid > .eight.column.doubling.row > .column {
786
+ width: 33.3333333%;
787
+ }
788
+
789
+ .ui.eight.column.doubling.grid > .row > .column,
790
+ .ui.eight.column.doubling.grid > .column,
791
+ .ui.grid > .eight.column.doubling.row > .column {
792
+ width: 25%;
793
+ }
794
+
795
+ .ui.nine.column.doubling.grid > .row > .column,
796
+ .ui.nine.column.doubling.grid > .column,
797
+ .ui.grid > .nine.column.doubling.row > .column {
798
+ width: 25%;
799
+ }
800
+
801
+ .ui.ten.column.doubling.grid > .row > .column,
802
+ .ui.ten.column.doubling.grid > .column,
803
+ .ui.grid > .ten.column.doubling.row > .column {
804
+ width: 20%;
805
+ }
806
+
807
+ .ui.twelve.column.doubling.grid > .row > .column,
808
+ .ui.twelve.column.doubling.grid > .column,
809
+ .ui.grid > .twelve.column.doubling.row > .column {
810
+ width: 16.6666666%;
811
+ }
812
+
813
+ .ui.fourteen.column.doubling.grid > .row > .column,
814
+ .ui.fourteen.column.doubling.grid > .column,
815
+ .ui.grid > .fourteen.column.doubling.row > .column {
816
+ width: 14.28571428571429%;
817
+ }
818
+
819
+ .ui.sixteen.column.doubling.grid > .row > .column,
820
+ .ui.sixteen.column.doubling.grid > .column,
821
+ .ui.grid > .sixteen.column.doubling.row > .column {
822
+ width: 12.5%;
823
+ }
824
+ }
825
+
667
826
  /*-------------------
668
827
  Stackable
669
828
  --------------------*/
@@ -672,14 +831,15 @@ body > .ui.grid {
672
831
  .ui.stackable.grid {
673
832
  display: block !important;
674
833
  padding: 0em;
834
+ margin: 0em;
675
835
  }
676
836
 
677
837
  .ui.stackable.grid > .row > .column,
678
838
  .ui.stackable.grid > .column {
679
839
  display: block !important;
680
840
  width: auto !important;
681
- margin: 1.5em 5% 0em !important;
682
- padding: 1.5em 0em 0em !important;
841
+ margin: 1em 0em 0em !important;
842
+ padding: 1em 0em 0em !important;
683
843
  -webkit-box-shadow: none !important;
684
844
  box-shadow: none !important;
685
845
  }
@@ -702,6 +862,12 @@ body > .ui.grid {
702
862
  border-top: none !important;
703
863
  }
704
864
 
865
+ .ui.stackable.page.grid > .row > .column,
866
+ .ui.stackable.page.grid > .column {
867
+ padding-left: 1em !important;
868
+ padding-right: 1em !important;
869
+ }
870
+
705
871
  /* Remove pointers from vertical menus */
706
872
 
707
873
  .ui.stackable.grid .vertical.pointing.menu .item:after {
@@ -86,7 +86,7 @@
86
86
  overflow: hidden;
87
87
  }
88
88
 
89
- .ui.dimmed.dimmable > .ui.dimmer,
89
+ .ui.dimmed.dimmable > .ui.active.dimmer,
90
90
  .ui.active.dimmer {
91
91
  display: block;
92
92
  width: 100%;
@@ -1,8 +1,8 @@
1
1
  module Semantic
2
2
  module Ui
3
3
  module Sass
4
- VERSION = "0.9.6.0"
5
- SEMANTIC_UI_SHA = '7fc7e122174a5f341ec59b1f6988fb39ab9136f0'
4
+ VERSION = "0.10.0.0"
5
+ SEMANTIC_UI_SHA = '60506fd7740e1e372f4ab2fdd83866d24f81bdf7'
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semantic-ui-sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6.0
4
+ version: 0.10.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - doabit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-04 00:00:00.000000000 Z
11
+ date: 2013-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler