groundworkcss 0.2.2 → 0.2.3

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 (58) hide show
  1. data/README.md +11 -33
  2. data/lib/groundworkcss/generators/install_generator.rb +1 -1
  3. data/lib/groundworkcss/version.rb +1 -1
  4. data/vendor/assets/fonts/groundworkcss/FontAwesome.otf +0 -0
  5. data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.eot +0 -0
  6. data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.svg +153 -38
  7. data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.ttf +0 -0
  8. data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.woff +0 -0
  9. data/vendor/assets/stylesheets/groundworkcss/_settings.scss +301 -1
  10. data/vendor/assets/stylesheets/groundworkcss/base/{_all.scss → _all-base.scss} +2 -3
  11. data/vendor/assets/stylesheets/groundworkcss/base/_animations.scss +1 -1
  12. data/vendor/assets/stylesheets/groundworkcss/base/_global.scss +4 -23
  13. data/vendor/assets/stylesheets/groundworkcss/base/_grid.scss +53 -26
  14. data/vendor/assets/stylesheets/groundworkcss/base/_helpers.scss +105 -56
  15. data/vendor/assets/stylesheets/groundworkcss/base/_reset.scss +34 -34
  16. data/vendor/assets/stylesheets/groundworkcss/core/{_all.scss → _all-core.scss} +1 -1
  17. data/vendor/assets/stylesheets/groundworkcss/core/_breakpoints.scss +22 -0
  18. data/vendor/assets/stylesheets/groundworkcss/core/_defaults.scss +196 -93
  19. data/vendor/assets/stylesheets/groundworkcss/core/_mixins.scss +132 -131
  20. data/vendor/assets/stylesheets/groundworkcss/form/_all-form.scss +11 -0
  21. data/vendor/assets/stylesheets/groundworkcss/form/_forms.scss +57 -112
  22. data/vendor/assets/stylesheets/groundworkcss/form/_tiles.scss +9 -11
  23. data/vendor/assets/stylesheets/groundworkcss/groundwork-ie.scss +7 -8
  24. data/vendor/assets/stylesheets/groundworkcss/groundwork.scss +11 -14
  25. data/vendor/assets/stylesheets/groundworkcss/nav/_all-nav.scss +12 -0
  26. data/vendor/assets/stylesheets/groundworkcss/nav/_buttons.scss +22 -15
  27. data/vendor/assets/stylesheets/groundworkcss/nav/_navigation.scss +26 -29
  28. data/vendor/assets/stylesheets/groundworkcss/nav/_tabs.scss +39 -37
  29. data/vendor/assets/stylesheets/groundworkcss/responsive/_all-responsive.scss +14 -0
  30. data/vendor/assets/stylesheets/groundworkcss/responsive/_desktop.scss +5 -3
  31. data/vendor/assets/stylesheets/groundworkcss/responsive/_ipad.scss +5 -3
  32. data/vendor/assets/stylesheets/groundworkcss/responsive/_mobile.scss +6 -4
  33. data/vendor/assets/stylesheets/groundworkcss/responsive/_small-tablet.scss +20 -16
  34. data/vendor/assets/stylesheets/groundworkcss/social-icons-png.scss +295 -0
  35. data/vendor/assets/stylesheets/groundworkcss/{misc/_social-icons.scss → social-icons-svg.scss} +8 -5
  36. data/vendor/assets/stylesheets/groundworkcss/type/{_all.scss → _all-type.scss} +0 -1
  37. data/vendor/assets/stylesheets/groundworkcss/type/_typography.scss +168 -161
  38. data/vendor/assets/stylesheets/groundworkcss/type/_webfonts.scss +1 -1
  39. data/vendor/assets/stylesheets/groundworkcss/ui/_all-ui.scss +14 -0
  40. data/vendor/assets/stylesheets/groundworkcss/ui/_callouts.scss +31 -18
  41. data/vendor/assets/stylesheets/groundworkcss/ui/_messages.scss +31 -18
  42. data/vendor/assets/stylesheets/groundworkcss/ui/_modals.scss +6 -8
  43. data/vendor/assets/stylesheets/groundworkcss/ui/_tables.scss +6 -5
  44. data/vendor/assets/stylesheets/groundworkcss/ui/_tooltips.scss +15 -14
  45. metadata +28 -25
  46. checksums.yaml +0 -7
  47. data/vendor/assets/stylesheets/groundworkcss/_rails-settings.scss +0 -202
  48. data/vendor/assets/stylesheets/groundworkcss/font-awesome-ie7.min.css +0 -22
  49. data/vendor/assets/stylesheets/groundworkcss/form/_all.scss +0 -10
  50. data/vendor/assets/stylesheets/groundworkcss/index.scss +0 -3
  51. data/vendor/assets/stylesheets/groundworkcss/magnific-popup.css +0 -393
  52. data/vendor/assets/stylesheets/groundworkcss/misc/_all.scss +0 -9
  53. data/vendor/assets/stylesheets/groundworkcss/nav/_all.scss +0 -11
  54. data/vendor/assets/stylesheets/groundworkcss/no-svg.scss +0 -355
  55. data/vendor/assets/stylesheets/groundworkcss/placeholder_polyfill.css +0 -32
  56. data/vendor/assets/stylesheets/groundworkcss/responsive/_all.scss +0 -13
  57. data/vendor/assets/stylesheets/groundworkcss/type/_font-awesome.scss +0 -542
  58. data/vendor/assets/stylesheets/groundworkcss/ui/_all.scss +0 -13
@@ -1,15 +1,15 @@
1
1
  // =============================================
2
2
  // Layout Helpers
3
- // Last Updated:2013-4-24
3
+ // Last Updated:2013-6-23
4
4
  // =============================================
5
5
 
6
6
 
7
- @import "animations"; // required
7
+ @import "animations"; // required for spin helpers
8
8
 
9
9
 
10
- // ================================
11
- // mixins
12
- // ================================
10
+ ///////////////////////
11
+ // mixins //
12
+ ///////////////////////
13
13
 
14
14
  @mixin _clear { clear: both;
15
15
  &:after { content:''; display:block; clear:both; }
@@ -28,9 +28,8 @@
28
28
  @mixin _gap-bottom($multiple: 1) { margin-bottom: $gutter * $multiple; }
29
29
  @mixin _gap-left($multiple: 1) { margin-left: $gutter * $multiple; }
30
30
 
31
- @mixin _stick($position: null) {
31
+ @mixin _fixed($position: null) {
32
32
  position: fixed;
33
- z-index: 1;
34
33
  @each $anchor in top, right, bottom, left {
35
34
  @if $position == $anchor {#{$position}: 0;}
36
35
  }
@@ -38,6 +37,17 @@
38
37
  @if $position == center {left: 50%;}
39
38
  }
40
39
 
40
+ @mixin _absolute($position: null) {
41
+ position: absolute;
42
+ @each $anchor in top, right, bottom, left {
43
+ @if $position == $anchor {#{$position}: 0;}
44
+ }
45
+ @if $position == middle {top: 50%;}
46
+ @if $position == center {left: 50%;}
47
+ }
48
+
49
+ @mixin _static { position: static; }
50
+
41
51
  @mixin _inline { display:inline-block; width:auto; }
42
52
  @mixin _block { display:block; }
43
53
  @mixin _hidden { display:none !important; }
@@ -67,10 +77,8 @@
67
77
 
68
78
  @mixin _center { @include _block; margin:0 auto; }
69
79
 
70
- @mixin _spacer { height:$gutter; }
71
-
72
- @mixin _square { @include rounded(0); }
73
- @mixin _round { @include rounded(9999px); }
80
+ @mixin _square { @include border-radius(0); }
81
+ @mixin _round { @include rounded(9999em); }
74
82
 
75
83
  @mixin _disabled { @include state(disabled,textOnly); }
76
84
 
@@ -97,9 +105,9 @@
97
105
 
98
106
 
99
107
 
100
- // ================================
101
- // placeholders
102
- // ================================
108
+ ///////////////////////
109
+ // placeholders //
110
+ ///////////////////////
103
111
 
104
112
  %clear, %clearfix { @include _clear;}
105
113
 
@@ -145,14 +153,23 @@
145
153
  &%triple { @include _gap-left(3); }
146
154
  }
147
155
 
148
- %stick { @include _stick;
149
- &%top { @include _stick(top); }
150
- &%right { @include _stick(right); }
151
- &%bottom { @include _stick(bottom); }
152
- &%left { @include _stick(left); }
153
- &%middle { @include _stick(middle); }
154
- &%center { @include _stick(center); }
155
- }
156
+ %fixed { @include _fixed; }
157
+ %fixed-top { @include _fixed(top); }
158
+ %fixed-right { @include _fixed(right); }
159
+ %fixed-bottom { @include _fixed(bottom); }
160
+ %fixed-left { @include _fixed(left); }
161
+ %fixed-middle { @include _fixed(middle); }
162
+ %fixed-center { @include _fixed(center); }
163
+
164
+ %absolute { @include _absolute; }
165
+ %absolute-top { @include _absolute(top); }
166
+ %absolute-right { @include _absolute(right); }
167
+ %absolute-bottom { @include _absolute(bottom); }
168
+ %absolute-left { @include _absolute(left); }
169
+ %absolute-middle { @include _absolute(middle); }
170
+ %absolute-center { @include _absolute(center); }
171
+
172
+ %static { @include _static; }
156
173
 
157
174
  %inline { @include _inline; }
158
175
  %block { @include _block; }
@@ -183,8 +200,6 @@
183
200
 
184
201
  %center { @include _center; }
185
202
 
186
- %spacer { @include _spacer; }
187
-
188
203
  %square { @include _square; }
189
204
  %round { @include _round; }
190
205
 
@@ -213,42 +228,76 @@
213
228
 
214
229
 
215
230
 
216
- // ================================
217
- // classes
218
- // ================================
231
+ ///////////////////////
232
+ // classes //
233
+ ///////////////////////
219
234
 
220
- @if $classes {
221
-
222
- // function to generate the simple helpers
223
- $helpers: inline block hidden small large zero pull-right pull-left bordered border-right border-left border-top border-bottom align-top align-right align-bottom align-left align-center justify truncate center spacer square round rotate-90 rotate-180 rotate-270 rotate-90-ctr rotate-180-ctr rotate-270-ctr spin spin-once spin-twice spin-thrice spin-fast spin-fast-once spin-fast-twice spin-fast-thrice spin-slow spin-slow-once spin-slow-twice spin-slow-thrice;
224
- @for $i from 1 through length($helpers) {
225
- .#{nth($helpers, $i)} { @extend %#{nth($helpers, $i)}; }
235
+ @if $layout-classes {
236
+ @for $i from 1 through length($layout-helpers) {
237
+ .#{nth($layout-helpers, $i)} { @extend %#{nth($layout-helpers, $i)}; }
226
238
  }
227
-
228
- // function to generate the spacers (with nested modifiers)
229
- $spacers: padded pad-top pad-right pad-bottom pad-left gapped gap-top gap-right gap-bottom gap-left;
230
- $modifiers: double triple;
231
- @for $i from 1 through length($spacers) {
232
- .#{nth($spacers, $i)} {
233
- @extend %#{nth($spacers, $i)};
234
- @for $i from 1 through length($modifiers) {
235
- &.#{nth($modifiers, $i)} { @extend %#{nth($modifiers, $i)}; }
236
- }
237
- }
238
- }
239
-
240
- // manual declaration of the more complex helpers
241
239
  .clear, .clearfix { @extend %clear;
242
240
  &:after { content:''; display:block; clear:both; }
243
241
  }
244
- .disabled { @extend %disabled; }
245
- .stick { @extend %stick;
246
- &.top { @extend %top; }
247
- &.right { @extend %right; }
248
- &.bottom { @extend %bottom; }
249
- &.left { @extend %left; }
250
- &.middle { @extend %middle; }
251
- &.center { @extend %center; }
242
+ }
243
+ @if $positioning-classes {
244
+ .stick, .fixed { @extend %fixed;
245
+ &.top { @extend %fixed-top; }
246
+ &.right { @extend %fixed-right; }
247
+ &.bottom { @extend %fixed-bottom; }
248
+ &.left { @extend %fixed-left; }
249
+ &.middle { @extend %fixed-middle; }
250
+ &.center { @extend %fixed-center; }
251
+ }
252
+ .absolute { @extend %absolute;
253
+ &.top { @extend %absolute-top; }
254
+ &.right { @extend %absolute-right; }
255
+ &.bottom { @extend %absolute-bottom; }
256
+ &.left { @extend %absolute-left; }
257
+ &.middle { @extend %absolute-middle; }
258
+ &.center { @extend %absolute-center; }
259
+ }
260
+ .static { @extend %static; }
261
+ }
262
+ @if $typography-classes {
263
+ @for $i from 1 through length($typography-helpers) {
264
+ .#{nth($typography-helpers, $i)} { @extend %#{nth($typography-helpers, $i)}; }
265
+ }
266
+ }
267
+ @if $size-classes {
268
+ @for $i from 1 through length($size-helpers) {
269
+ .#{nth($size-helpers, $i)} { @extend %#{nth($size-helpers, $i)}; }
270
+ }
271
+ }
272
+ @if $border-classes {
273
+ @for $i from 1 through length($border-helpers) {
274
+ .#{nth($border-helpers, $i)} { @extend %#{nth($border-helpers, $i)}; }
275
+ }
276
+ }
277
+ @if $radius-classes {
278
+ @for $i from 1 through length($radius-helpers) {
279
+ .#{nth($radius-helpers, $i)} { @extend %#{nth($radius-helpers, $i)}; }
280
+ }
281
+ }
282
+ @if $rotation-classes {
283
+ @for $i from 1 through length($rotation-helpers) {
284
+ .#{nth($rotation-helpers, $i)} { @extend %#{nth($rotation-helpers, $i)}; }
285
+ }
286
+ }
287
+ @if $spin-classes {
288
+ @for $i from 1 through length($spin-helpers) {
289
+ .#{nth($spin-helpers, $i)} { @extend %#{nth($spin-helpers, $i)}; }
290
+ }
291
+ }
292
+ @if $spacer-classes {
293
+ @for $i from 1 through length($spacer-helpers) {
294
+ .#{nth($spacer-helpers, $i)} {
295
+ @extend %#{nth($spacer-helpers, $i)};
296
+ @if $spacer-mod-classes {
297
+ @for $i from 1 through length($spacer-modifiers) {
298
+ &.#{nth($spacer-modifiers, $i)} { @extend %#{nth($spacer-modifiers, $i)}; }
299
+ }
300
+ }
301
+ }
252
302
  }
253
-
254
303
  }
@@ -1,46 +1,46 @@
1
1
  // =============================================
2
- // CSS Reset
3
- // Last Updated:2013-4-24
2
+ // GroundworkCSS Reset
3
+ // Last Updated:2013-6-25
4
4
  // =============================================
5
5
 
6
6
 
7
7
 
8
8
 
9
- // =======================================================
10
- // the better box model
11
- // =======================================================
12
- //
13
- //
14
- // E L E M E N T W I D T H
15
- // |----------------------------------------------------|
16
- // | B O R D E R |
17
- // | |--------------------------------------------| |
18
- // | B | P A D D I N G | B |
19
- // | | |------------------------------------| | |
20
- // | O | P | | P | O |
21
- // | | A | | A | |
22
- // | R | D | | D | R |
23
- // | | D | C O N T E N T | D | |
24
- // | D | I | | I | D |
25
- // | | N | | N | |
26
- // | E | G | | G | E |
27
- // | | |------------------------------------| | |
28
- // | R | P A D D I N G | R |
29
- // | |--------------------------------------------| |
30
- // | B O R D E R |
31
- // | ---------------------------------------------------|
32
- //
33
- // NOTE: Padding and border are calculated within an
34
- // element's specified width instead of its total
35
- // width being increased by these properties
36
- //
37
- //
38
- // =======================================================
39
-
40
-
41
9
  %everything {
42
10
  @include box-sizing(border-box);
43
11
  *behavior: url($boxsizing_path); // IE 6-7 -- Thank Schepp for the polyfill for legacy IE browsers: https://github.com/Schepp/box-sizing-polyfill
12
+ //
13
+ // =======================================================
14
+ // the better box model
15
+ // =======================================================
16
+ //
17
+ //
18
+ // E L E M E N T W I D T H
19
+ // |----------------------------------------------------|
20
+ // | B O R D E R |
21
+ // | |--------------------------------------------| |
22
+ // | B | P A D D I N G | B |
23
+ // | | |------------------------------------| | |
24
+ // | O | P | | P | O |
25
+ // | | A | | A | |
26
+ // | R | D | | D | R |
27
+ // | | D | C O N T E N T | D | |
28
+ // | D | I | | I | D |
29
+ // | | N | | N | |
30
+ // | E | G | | G | E |
31
+ // | | |------------------------------------| | |
32
+ // | R | P A D D I N G | R |
33
+ // | |--------------------------------------------| |
34
+ // | B O R D E R |
35
+ // | ---------------------------------------------------|
36
+ //
37
+ // NOTE: Padding and border are calculated within an
38
+ // element's specified width instead of its total
39
+ // width being increased by these properties
40
+ //
41
+ //
42
+ // =======================================================
43
+ //
44
44
  }
45
45
 
46
46
  %document {
@@ -4,8 +4,8 @@
4
4
  // =============================================
5
5
 
6
6
 
7
- // core
8
7
  @import "compass"; // required (http://compass-style.org/install/)
9
8
  @import "constants"; // required
9
+ @import "breakpoints"; // required
10
10
  @import "defaults"; // required
11
11
  @import "mixins"; // required
@@ -0,0 +1,22 @@
1
+ // =============================================
2
+ // Breakpoints
3
+ // Last Updated:2013-6-25
4
+ // =============================================
5
+
6
+
7
+
8
+ ///////////////////////
9
+ // breakpoints //
10
+ ///////////////////////
11
+
12
+ $small-mobile: "(max-width: 319px)" !default;
13
+ $iphone: "(min-device-width: 320px) and (max-device-width: 480px)" !default;
14
+ $iphone5: "(min-device-width: 320px) and (max-device-width: 568px)" !default;
15
+ $mobile: "(max-width:480px)" !default;
16
+ $not-mobile: "(min-width:481px)" !default;
17
+ $small-tablet: "(max-width:767px)" !default;
18
+ $tablet: "(min-width: 768px)" !default;
19
+ $ipad: "(min-width:768px) and (max-width:1024px)" !default;
20
+ $not-desktop: "(max-width:1024px)" !default;
21
+ $desktop: "(min-width:1025px)" !default;
22
+ $retina: "(-webkit-min-device-pixel-ratio: 2)" !default;