groundworkcss-rails 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/lib/groundworkcss/rails/version.rb +1 -1
  2. data/lib/groundworkcss/rails/version.rb~ +1 -1
  3. data/vendor/assets/javascripts/groundworkcss/components/disabled.js +13 -12
  4. data/vendor/assets/javascripts/groundworkcss/components/equalizeColumns.js +31 -28
  5. data/vendor/assets/javascripts/groundworkcss/components/forms.js +21 -20
  6. data/vendor/assets/javascripts/groundworkcss/components/menus.js +88 -78
  7. data/vendor/assets/javascripts/groundworkcss/components/modals.js +7 -4
  8. data/vendor/assets/javascripts/groundworkcss/components/pagination.js +87 -82
  9. data/vendor/assets/javascripts/groundworkcss/components/responsiveTables.js +22 -18
  10. data/vendor/assets/javascripts/groundworkcss/components/responsiveText.js +38 -31
  11. data/vendor/assets/javascripts/groundworkcss/components/tabs.js +19 -17
  12. data/vendor/assets/javascripts/groundworkcss/components/tiles.js +24 -21
  13. data/vendor/assets/javascripts/groundworkcss/components/tooltips.js +7 -4
  14. data/vendor/assets/javascripts/groundworkcss/groundwork.all.js +974 -821
  15. data/vendor/assets/javascripts/groundworkcss/plugins/jquery-modals.js +193 -0
  16. data/vendor/assets/javascripts/groundworkcss/plugins/jquery-popover.js +208 -0
  17. data/vendor/assets/javascripts/groundworkcss/plugins/jquery-responsiveTables.js +64 -0
  18. data/vendor/assets/javascripts/groundworkcss/plugins/jquery-responsiveText.js +46 -0
  19. data/vendor/assets/javascripts/groundworkcss/plugins/jquery-tooltip.js +137 -0
  20. data/vendor/assets/stylesheets/groundworkcss-scss/_settings.scss +149 -0
  21. data/vendor/assets/stylesheets/groundworkcss-scss/base/_all.scss +11 -0
  22. data/vendor/assets/stylesheets/groundworkcss-scss/{_animations.scss → base/_animations.scss} +7 -3
  23. data/vendor/assets/stylesheets/groundworkcss-scss/{_global.scss → base/_global.scss} +27 -10
  24. data/vendor/assets/stylesheets/groundworkcss-scss/{_grid.scss → base/_grid.scss} +5 -3
  25. data/vendor/assets/stylesheets/groundworkcss-scss/{_helpers.scss → base/_helpers.scss} +61 -18
  26. data/vendor/assets/stylesheets/groundworkcss-scss/{_reset.scss → base/_reset.scss} +36 -31
  27. data/vendor/assets/stylesheets/groundworkcss-scss/core/_all.scss +11 -0
  28. data/vendor/assets/stylesheets/groundworkcss-scss/{_variables.scss → core/_constants.scss} +7 -58
  29. data/vendor/assets/stylesheets/groundworkcss-scss/core/_defaults.scss +150 -0
  30. data/vendor/assets/stylesheets/groundworkcss-scss/{_mixins.scss → core/_mixins.scss} +6 -97
  31. data/vendor/assets/stylesheets/groundworkcss-scss/form/_all.scss +10 -0
  32. data/vendor/assets/stylesheets/groundworkcss-scss/{_forms.scss → form/_forms.scss} +96 -80
  33. data/vendor/assets/stylesheets/groundworkcss-scss/form/_tiles.scss +100 -0
  34. data/vendor/assets/stylesheets/groundworkcss-scss/groundwork-ie.scss +10 -8
  35. data/vendor/assets/stylesheets/groundworkcss-scss/groundwork.scss +12 -32
  36. data/vendor/assets/stylesheets/groundworkcss-scss/{_popovers.scss → misc/_all.scss} +3 -4
  37. data/vendor/assets/stylesheets/groundworkcss-scss/{_social-icons.scss → misc/_social-icons.scss} +4 -0
  38. data/vendor/assets/stylesheets/groundworkcss-scss/nav/_all.scss +11 -0
  39. data/vendor/assets/stylesheets/groundworkcss-scss/nav/_buttons.scss +328 -0
  40. data/vendor/assets/stylesheets/groundworkcss-scss/{_navigation.scss → nav/_navigation.scss} +8 -5
  41. data/vendor/assets/stylesheets/groundworkcss-scss/nav/_tabs.scss +230 -0
  42. data/vendor/assets/stylesheets/groundworkcss-scss/no-svg.scss +9 -7
  43. data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_all.scss +13 -0
  44. data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_desktop.scss +26 -0
  45. data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_helpers.scss +16 -0
  46. data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_ipad.scss +28 -0
  47. data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_mobile.scss +44 -0
  48. data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_small-tablet.scss +196 -0
  49. data/vendor/assets/stylesheets/groundworkcss-scss/type/_all.scss +9 -0
  50. data/vendor/assets/stylesheets/groundworkcss-scss/{_font-awesome.scss → type/_font-awesome.scss} +10 -2
  51. data/vendor/assets/stylesheets/groundworkcss-scss/{_typography.scss → type/_typography.scss} +172 -60
  52. data/vendor/assets/stylesheets/groundworkcss-scss/type/_webfonts.scss +28 -0
  53. data/vendor/assets/stylesheets/groundworkcss-scss/{_ui-elements.scss → ui/_all.scss} +4 -0
  54. data/vendor/assets/stylesheets/groundworkcss-scss/ui/_callouts.scss +117 -0
  55. data/vendor/assets/stylesheets/groundworkcss-scss/ui/_messages.scss +111 -0
  56. data/vendor/assets/stylesheets/groundworkcss-scss/{_modals.scss → ui/_modals.scss} +2 -0
  57. data/vendor/assets/stylesheets/groundworkcss-scss/ui/_popovers.scss +81 -0
  58. data/vendor/assets/stylesheets/groundworkcss-scss/ui/_tables.scss +142 -0
  59. data/vendor/assets/stylesheets/groundworkcss-scss/{_tooltips.scss → ui/_tooltips.scss} +35 -0
  60. metadata +56 -40
  61. data/vendor/assets/stylesheets/groundworkcss-scss/_buttons.scss +0 -231
  62. data/vendor/assets/stylesheets/groundworkcss-scss/_callouts.scss +0 -74
  63. data/vendor/assets/stylesheets/groundworkcss-scss/_cycle.scss +0 -20
  64. data/vendor/assets/stylesheets/groundworkcss-scss/_messages.scss +0 -69
  65. data/vendor/assets/stylesheets/groundworkcss-scss/_mobile-reset.scss +0 -11
  66. data/vendor/assets/stylesheets/groundworkcss-scss/_responsive.scss +0 -246
  67. data/vendor/assets/stylesheets/groundworkcss-scss/_tables.scss +0 -85
  68. data/vendor/assets/stylesheets/groundworkcss-scss/_tabs.scss +0 -172
  69. data/vendor/assets/stylesheets/groundworkcss-scss/_tiles.scss +0 -198
  70. data/vendor/assets/stylesheets/groundworkcss-scss/_webfonts.scss +0 -19
@@ -1,98 +1,23 @@
1
1
  // =============================================
2
- // SCSS mixins by Gary Hepting
3
- // Last Updated:2013-1-21
2
+ // Global Mixins
3
+ // Last Updated:2013-4-24
4
4
  // =============================================
5
5
 
6
6
 
7
-
8
-
9
- // ====================
10
- // media query helpers
11
- // ====================
12
-
13
- @mixin large-desktop {
14
- @media only screen and (min-width:1201px) {
15
- @content;
16
- }
17
- }
18
-
19
- @mixin desktop {
20
- @media only screen and (min-width:1025px) {
21
- .hide-on-desktop { display:none; }
22
- // helper overrides
23
- .no-padding-desktop { padding:0; }
24
- .no-margin-desktop { margin:0; }
25
- .zero-desktop { @include _zero; }
26
- @content;
27
- }
28
- }
29
-
30
- @mixin ipad {
31
- @media only screen and (min-width:768px) and (max-width:1024px) {
32
- .ipad-only { display:inline-block; }
33
- .hide-on-ipad { display:none; }
34
- .desktop-only { display:none; }
35
- // helper overrides
36
- .no-padding-ipad { padding:0; }
37
- .no-margin-ipad { margin:0; }
38
- .zero-ipad { @include _zero; }
39
- @content;
40
- }
41
- }
42
-
43
- @mixin ipad-above {
44
- @media only screen and (min-width: 768px) {
45
- @content;
46
- }
47
- }
48
-
49
- @mixin small-tablet {
50
- @media only screen and (max-width:767px) {
51
- .small-tablet-only { display:inline-block; }
52
- .hide-on-small-tablet { display:none; }
53
- .desktop-only { display:none; }
54
- // helper overrides
55
- .no-padding-small-tablet { padding:0; }
56
- .no-margin-small-tablet { margin:0; }
57
- .zero-small-tablet { @include _zero; }
58
- @content;
59
- }
60
- }
61
-
62
- @mixin mobile {
63
- @media only screen and (max-width:480px) {
64
- .mobile-only { display:inline-block; }
65
- .hide-on-mobile { display:none; }
66
- .desktop-only { display:none; }
67
- // helper overrides
68
- .no-padding-mobile { padding:0; }
69
- .no-margin-mobile { margin:0; }
70
- .zero-mobile { @include _zero; }
71
- @content;
72
- }
73
- }
74
-
75
- @mixin small-mobile {
76
- @media only screen and (max-width:319px) {
77
- @content;
78
- }
79
- }
80
-
81
7
  // ====================
82
- // helpers
8
+ // helper reset
83
9
  // ====================
84
10
 
85
11
  @mixin helper_reset($properties: padding margin, $spacers: padded pad-top pad-right pad-bottom pad-left gapped gap-top gap-right gap-bottom gap-left) {
86
12
  @for $i from 1 through length($spacers) {
87
13
  &.#{nth($spacers, $i)}, &.#{nth($spacers, $i)}.double, &.#{nth($spacers, $i)}.triple {
88
14
  @for $i from 1 through length($properties) {
89
- #{nth($properties, $i)}:0;
15
+ #{nth($properties, $i)}:0 !important;
90
16
  }
91
17
  }
92
18
  }
93
19
  }
94
20
 
95
- @mixin _zero { margin:0; padding:0; }
96
21
 
97
22
  // ====================
98
23
  // functions
@@ -112,24 +37,10 @@
112
37
  // inline image with fallback support for IE 7-
113
38
  @mixin data-image($file) {
114
39
  background-image:url("#{$root_path}#{$images_path}#{$file}"); // fallback
115
- background-image:inline-image($file); // data URI
40
+ background-image:inline-image($file); // data URI
116
41
  *background-image:url("#{$root_path}#{$images_path}#{$file}"); // IE7- hack
117
42
  }
118
43
 
119
- // // vertical gradient with support for IE 6-8 & 10
120
- // @mixin vertical-gradient($startColor, $endColor) {
121
- // background:$endColor;
122
- // @include background-image(linear-gradient($startColor, $endColor));
123
- // @include filter-gradient($startColor, $endColor);
124
- // }
125
-
126
- // // horizontal gradient with support for IE 6-8 & 10
127
- // @mixin horizontal-gradient($startColor, $endColor) {
128
- // background:$endColor;
129
- // @include background-image(linear-gradient(left, $startColor, $endColor));
130
- // @include filter-gradient($startColor, $endColor, 1);
131
- // }
132
-
133
44
  // vertical gradient
134
45
  @mixin gradient($startColor:$white, $endColor:$gray-2) {
135
46
  background:$startColor; // fallback
@@ -288,10 +199,8 @@
288
199
  }
289
200
 
290
201
 
291
-
292
-
293
202
  // ====================
294
- // fonts
203
+ // fonts
295
204
  // ====================
296
205
 
297
206
  // font stacks
@@ -0,0 +1,10 @@
1
+ // ===================================
2
+ // Forms
3
+ // ===================================
4
+
5
+
6
+
7
+
8
+ // form components
9
+ @import "forms"; // optional
10
+ @import "tiles"; // optional
@@ -1,6 +1,8 @@
1
- // ===================================
2
- // GroundworkCSS Forms
3
- // ===================================
1
+ // =============================================
2
+ // Forms
3
+ // Last Updated:2013-4-24
4
+ // =============================================
5
+
4
6
 
5
7
 
6
8
 
@@ -8,39 +10,36 @@
8
10
  border:1px solid $border-color;
9
11
  padding:$gutter;
10
12
  }
13
+
11
14
  %legend {
12
15
  font-weight:900;
13
- font-size:0.8em;
16
+ // font-size:0.8em;
14
17
  color:darken($background-color, 35%);
15
18
  margin-bottom:0;
16
19
  }
20
+
17
21
  %label {
18
22
  display:block;
19
23
  padding:0.4em 0.2em;
20
24
  }
25
+
21
26
  %field {
22
27
  display:block;
23
28
  width:100%;
24
29
  margin:0;
25
30
  padding:0.4em;
26
31
  font-family:monospace;
27
- font-size:1em;
32
+ // font-size:1em;
28
33
  line-height:1.5;
29
34
  height:2.25em;
30
35
  background:white;
31
36
  border:1px solid $border-color;
32
37
  @include rounded($radius);
33
- &%error, &%invalid {
34
- color:$error-color;
35
- background:lighten($error-color, 62%);
36
- border-color:$error-color;
37
- }
38
- &%success, &%valid {
39
- color:$success-color;
40
- background:lighten($success-color, 62%);
41
- border-color:$success-color;
38
+ &[size] {
39
+ height:auto;
42
40
  }
43
41
  }
42
+
44
43
  %input {
45
44
  @extend %field;
46
45
  &[size] {
@@ -56,33 +55,35 @@
56
55
  @include rounded($radius);
57
56
  }
58
57
  }
58
+
59
59
  %textarea {
60
60
  height:10em;
61
61
  }
62
- %error {
63
- %field {
64
- background:$error-background;
65
- color:$error-color;
66
- border-color:$error-border;
67
- }
68
- %prefix, %suffix {
69
- color:lighten($error-color, 62%);;
70
- background:$error-color;
71
- border-color:$error-color;
72
- }
62
+
63
+ %error-block {
64
+ background:$error-background;
65
+ color:$error-color;
66
+ border-color:$error-border;
73
67
  }
74
- %success {
75
- %field {
76
- background:$success-background;
77
- color:$success-color;
78
- border-color:$success-border;
79
- }
80
- %prefix, %suffix {
81
- color:lighten($success-color, 62%);;
82
- background:$success-color;
83
- border-color:$success-color;
84
- }
68
+
69
+ %error-block-prefix, %error-block-suffix {
70
+ color:lighten($error-color, 62%);;
71
+ background:$error-color;
72
+ border-color:$error-color;
85
73
  }
74
+
75
+ %success-block {
76
+ background:$success-background;
77
+ color:$success-color;
78
+ border-color:$success-border;
79
+ }
80
+
81
+ %success-block-prefix, %success-block-suffix {
82
+ color:lighten($success-color, 62%);;
83
+ background:$success-color;
84
+ border-color:$success-color;
85
+ }
86
+
86
87
  %select-wrap {
87
88
  display:block;
88
89
  color:gray;
@@ -104,32 +105,35 @@
104
105
  right:0;
105
106
  background:darken(white, 12.5%);
106
107
  }
107
- %select {
108
- -ms-appearance:none;
109
- -o-appearance:none;
110
- -moz-appearance:none;
111
- -webkit-appearance:none;
112
- appearance:none;
113
- border:none;
114
- background:none;
115
- padding:0.4em;
116
- font-family:monospace;
117
- font-size:1em;
118
- line-height:1.5;
119
- height:2.25em;
120
- padding-right:2.5em;
121
- position:relative;
122
- z-index:2;
123
- &.unselected {
124
- color:#999;
125
- }
108
+ }
109
+
110
+ %select {
111
+ -ms-appearance:none;
112
+ -o-appearance:none;
113
+ -moz-appearance:none;
114
+ -webkit-appearance:none;
115
+ appearance:none;
116
+ border:none;
117
+ background:none;
118
+ padding:0.4em;
119
+ font-family:monospace;
120
+ // font-size:1em;
121
+ line-height:1.5;
122
+ height:2.25em;
123
+ padding-right:2.5em;
124
+ position:relative;
125
+ z-index:2;
126
+ &.unselected {
127
+ color:#999;
126
128
  }
127
129
  }
130
+
128
131
  %radio-list {
129
132
  list-style:none;
130
133
  margin:0;
131
134
  padding:0;
132
135
  }
136
+
133
137
  %prefix, %suffix {
134
138
  display:block;
135
139
  position:relative;
@@ -141,7 +145,7 @@
141
145
  margin:0;
142
146
  padding:0.4em;
143
147
  font-family:monospace;
144
- font-size:1em;
148
+ // font-size:1em;
145
149
  line-height:1.25;
146
150
  height:2.25em;
147
151
  text-align:center;
@@ -149,33 +153,34 @@
149
153
  background:darken(white, 12.5%);
150
154
  border:1px solid darken(white, 17.5%);
151
155
  }
156
+
152
157
  %prefix {
153
158
  left:2px;
154
159
  @include rounded($radius 0 0 $radius);
155
160
  }
161
+
156
162
  %suffix {
157
163
  left:-2px;
158
164
  @include rounded(0 $radius $radius 0);
159
165
  }
166
+
160
167
  @if $tags {
161
- fieldset {
162
- @extend %fieldset;
163
- }
164
- legend {
165
- @extend %legend;
166
- }
167
- label {
168
- @extend %label;
169
- }
170
- input, select, textarea {
171
- @extend %field;
172
- }
173
- input {
174
- @extend %input;
175
- }
176
- textarea {
177
- @extend %textarea;
178
- }
168
+ $elements: fieldset legend label input select textarea;
169
+ @for $i from 1 through length($elements) {
170
+ $element: nth($elements, $i);
171
+ @if not index($tag-elements, $element) == false {
172
+ #{$element} {
173
+ @extend %#{$element};
174
+ @if $element == input or $element == select or $element == textarea {
175
+ @extend %field;
176
+ }
177
+ @if $element == textarea {
178
+ @extend %textarea;
179
+ }
180
+ }
181
+ }
182
+ }
183
+
179
184
  @if $classes {
180
185
  .select-wrap {
181
186
  @extend %select-wrap;
@@ -185,7 +190,24 @@
185
190
  }
186
191
  }
187
192
  }
193
+
188
194
  @if $classes {
195
+ .error, .invalid {
196
+ input, select, textarea {
197
+ @extend %error-block;
198
+ }
199
+ .prefix, .suffix {
200
+ @extend %error-block-prefix;
201
+ }
202
+ }
203
+ .success, .valid {
204
+ input, select, textarea {
205
+ @extend %success-block;
206
+ }
207
+ .prefix, .suffix {
208
+ @extend %success-block-prefix;
209
+ }
210
+ }
189
211
  .fieldset {
190
212
  @extend %fieldset;
191
213
  }
@@ -213,12 +235,6 @@
213
235
  .radio-list {
214
236
  @extend %radio-list;
215
237
  }
216
- .error, .invalid {
217
- @extend %error;
218
- }
219
- .success, .valid {
220
- @extend %success;
221
- }
222
238
  .prefix {
223
239
  @extend %prefix;
224
240
  }
@@ -0,0 +1,100 @@
1
+ // ===================================
2
+ // GroundworkCSS Squares
3
+ // ===================================
4
+
5
+
6
+
7
+
8
+ %tiles {
9
+ position:relative;
10
+ }
11
+
12
+ %tile {
13
+ display:inline-block;
14
+ background-color:darken($background-color,20%);
15
+ border:6px solid $border-color;
16
+ color:$font-color;
17
+ display:inline-block;
18
+ word-wrap:break-word;
19
+ padding:0.25em;
20
+ margin-bottom:0.25em;
21
+ text-align:center;
22
+ font-size:1em;
23
+ overflow:hidden;
24
+ text-overflow:ellipsis;
25
+ white-space:nowrap;
26
+ @include transition(background-color 0.25s ease-out);
27
+ @include rounded($radius);
28
+ cursor:pointer;
29
+ &:hover, &:focus {
30
+ text-decoration:none;
31
+ background-color:darken($background-color,25%);
32
+ color:darken($font-color,10%);
33
+ border-color:darken($border-color,5%);
34
+ }
35
+ }
36
+
37
+ %tile-icon {
38
+ font-size:2em;
39
+ display:block;
40
+ margin:0.15em 1em;
41
+ }
42
+
43
+ %tile-on {
44
+ text-decoration:none;
45
+ background-color:darken($background-color,25%);
46
+ color:darken($font-color,10%);
47
+ border-color:darken($border-color,5%);
48
+ }
49
+
50
+ %tile-active, %tile-active:hover, %tile-active:focus {
51
+ background-color:darken($background-color,30%);
52
+ color:darken($font-color,20%);
53
+ border-color:darken($border-color,20%);
54
+ }
55
+
56
+ %tile-small { @include _small; }
57
+ %tile-large { @include _large; }
58
+ %tile-square { @include _square; }
59
+ %tile-round { @include _round; }
60
+ %tile-disabled { @include state(disabled,normal,lighten(gray,20%)); }
61
+
62
+ @for $i from 1 through length($modifier-name) {
63
+ %tile-#{nth($modifier-name, $i)} {
64
+ color:#{nth($modifier-code, $i)};
65
+ &%on, &:hover, &:focus {
66
+ background-color:lighten(nth($modifier-code, $i),10%);
67
+ border-color:#{nth($modifier-code, $i)};
68
+ color:#{nth($modifier-text, $i)};
69
+ }
70
+ &.active, &.active:hover, &.active:focus {
71
+ background-color:#{nth($modifier-code, $i)};
72
+ color:#{nth($modifier-text, $i)};
73
+ border-color:darken(nth($modifier-code, $i),10%);
74
+ }
75
+ }
76
+ }
77
+
78
+ @if $classes {
79
+ .tiles {
80
+ @extend %tiles;
81
+ .tile {
82
+ @extend %tile;
83
+ i {
84
+ @extend %tile-icon;
85
+ }
86
+ $modifiers: on active small large square round disabled;
87
+ @for $i from 1 through length($modifiers) {
88
+ &.#{nth($modifiers, $i)} {
89
+ @extend %tile-#{nth($modifiers, $i)};
90
+ }
91
+ }
92
+ // modifier colors
93
+ @for $i from 1 through length($modifier-name) {
94
+ &.#{nth($modifier-name, $i)} {
95
+ @extend %tile-#{nth($modifier-name, $i)};
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }