singularitygs 0.1.alpha → 1.0.alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/lib/singularitygs.rb +2 -2
  2. data/stylesheets/_singularitygs.scss +68 -0
  3. data/stylesheets/singularitygs/_background-grid.scss +49 -0
  4. data/stylesheets/singularitygs/_column.scss +51 -0
  5. data/stylesheets/singularitygs/_grid-plugins.scss +3 -0
  6. data/stylesheets/singularitygs/{_grid-test.sass → _grid-test.scss} +22 -13
  7. data/stylesheets/singularitygs/_grid.scss +6 -0
  8. data/stylesheets/singularitygs/_gutter.scss +45 -0
  9. data/stylesheets/singularitygs/_helpers.scss +3 -0
  10. data/stylesheets/singularitygs/_mixins.scss +7 -0
  11. data/stylesheets/singularitygs/grid-plugins/_compound.scss +49 -0
  12. data/stylesheets/singularitygs/grid-plugins/_ratio-spiral.scss +42 -0
  13. data/stylesheets/singularitygs/grid-plugins/_ratio.scss +4 -0
  14. data/stylesheets/singularitygs/grid-structure/_display-table.scss +1 -0
  15. data/stylesheets/singularitygs/grid-structure/_flexbox.scss +0 -0
  16. data/stylesheets/singularitygs/grid-structure/_float.scss +94 -0
  17. data/stylesheets/singularitygs/grid-structure/_grid-layout.scss +1 -0
  18. data/stylesheets/singularitygs/grid-structure/_isolation.scss +145 -0
  19. data/stylesheets/singularitygs/helpers/_grids.scss +34 -0
  20. data/stylesheets/singularitygs/helpers/_gridsets.scss +362 -0
  21. data/stylesheets/singularitygs/helpers/_lists.scss +29 -0
  22. data/stylesheets/singularitygs/mixins/_base-font-size.scss +63 -0
  23. data/stylesheets/singularitygs/mixins/_container.scss +63 -0
  24. data/stylesheets/singularitygs/mixins/_grid-build.scss +16 -0
  25. data/stylesheets/singularitygs/mixins/_grid-objects.scss +26 -0
  26. data/stylesheets/singularitygs/mixins/_grid-padding.scss +8 -0
  27. data/stylesheets/singularitygs/mixins/_grid-span.scss +9 -0
  28. data/stylesheets/singularitygs/mixins/_push-pull.scss +41 -0
  29. data/templates/project/behaviors/box-sizing/boxsizing.htc +399 -0
  30. data/templates/project/behaviors/box-sizing/boxsizing.php +23 -0
  31. data/templates/project/manifest.rb +4 -0
  32. metadata +39 -22
  33. data/stylesheets/singularitygs.sass +0 -40
  34. data/stylesheets/singularitygs/_background-grid.sass +0 -19
  35. data/stylesheets/singularitygs/_column.sass +0 -25
  36. data/stylesheets/singularitygs/_grid-plugins.sass +0 -2
  37. data/stylesheets/singularitygs/_grid.sass +0 -2
  38. data/stylesheets/singularitygs/_gridsets.scss +0 -242
  39. data/stylesheets/singularitygs/_gutter.sass +0 -4
  40. data/stylesheets/singularitygs/_helpers.sass +0 -37
  41. data/stylesheets/singularitygs/_mixins.sass +0 -75
  42. data/stylesheets/singularitygs/grid-plugins/_compound.sass +0 -30
@@ -0,0 +1,23 @@
1
+ <?php
2
+ /*
3
+ This file is a wrapper, for use in PHP environments, which serves boxsizing.htc using the
4
+ correct content-type, so that IE will recognize it as a behavior. Simply specify the
5
+ behavior property to fetch this .php file instead of the .htc directly:
6
+
7
+ //
8
+ // Reset box sizing
9
+ //
10
+ * {
11
+ margin: 0;
12
+ @include box-sizing(border-box);
13
+ *behavior: url(/sites/all/libraries/boxsizing/boxsizing.php);
14
+ }
15
+
16
+ This is only necessary when the web server is not configured to serve .htc files with
17
+ the text/x-component content-type, and cannot easily be configured to do so (as is the
18
+ case with some shared hosting providers).
19
+ */
20
+
21
+ header( 'Content-type: text/x-component' );
22
+ include( 'boxsizing.htc' );
23
+ ?>
@@ -0,0 +1,4 @@
1
+ description "Singularity Install"
2
+
3
+ file 'behaviors/box-sizing/boxsizing.htc'
4
+ file 'behaviors/box-sizing/boxsizing.php'
metadata CHANGED
@@ -3,10 +3,11 @@ name: singularitygs
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: true
5
5
  segments:
6
- - 0
7
6
  - 1
7
+ - 0
8
8
  - alpha
9
- version: 0.1.alpha
9
+ - 0
10
+ version: 1.0.alpha.0
10
11
  platform: ruby
11
12
  authors:
12
13
  - Scott Kellum
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2012-08-06 00:00:00 -04:00
19
+ date: 2012-11-06 00:00:00 -08:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
@@ -28,10 +29,8 @@ dependencies:
28
29
  segments:
29
30
  - 3
30
31
  - 2
31
- - 0
32
- - alpha
33
- - 269
34
- version: 3.2.0.alpha.269
32
+ - 1
33
+ version: 3.2.1
35
34
  type: :runtime
36
35
  version_requirements: *id001
37
36
  - !ruby/object:Gem::Dependency
@@ -44,8 +43,8 @@ dependencies:
44
43
  segments:
45
44
  - 0
46
45
  - 12
47
- - 1
48
- version: 0.12.1
46
+ - 2
47
+ version: 0.12.2
49
48
  type: :runtime
50
49
  version_requirements: *id002
51
50
  - !ruby/object:Gem::Dependency
@@ -58,8 +57,8 @@ dependencies:
58
57
  segments:
59
58
  - 1
60
59
  - 0
61
- - 0
62
- version: 1.0.0
60
+ - 2
61
+ version: 1.0.2
63
62
  type: :runtime
64
63
  version_requirements: *id003
65
64
  - !ruby/object:Gem::Dependency
@@ -88,18 +87,36 @@ extra_rdoc_files: []
88
87
 
89
88
  files:
90
89
  - lib/singularitygs.rb
91
- - stylesheets/singularitygs.sass
92
- - stylesheets/singularitygs/_background-grid.sass
93
- - stylesheets/singularitygs/_column.sass
94
- - stylesheets/singularitygs/_grid-plugins.sass
95
- - stylesheets/singularitygs/_grid-test.sass
96
- - stylesheets/singularitygs/_grid.sass
97
- - stylesheets/singularitygs/_gridsets.scss
98
- - stylesheets/singularitygs/_gutter.sass
99
- - stylesheets/singularitygs/_helpers.sass
100
- - stylesheets/singularitygs/_mixins.sass
101
- - stylesheets/singularitygs/grid-plugins/_compound.sass
90
+ - stylesheets/_singularitygs.scss
91
+ - stylesheets/singularitygs/_background-grid.scss
92
+ - stylesheets/singularitygs/_column.scss
93
+ - stylesheets/singularitygs/_grid-plugins.scss
94
+ - stylesheets/singularitygs/_grid-test.scss
95
+ - stylesheets/singularitygs/_grid.scss
96
+ - stylesheets/singularitygs/_gutter.scss
97
+ - stylesheets/singularitygs/_helpers.scss
98
+ - stylesheets/singularitygs/_mixins.scss
99
+ - stylesheets/singularitygs/grid-plugins/_compound.scss
100
+ - stylesheets/singularitygs/grid-plugins/_ratio-spiral.scss
102
101
  - stylesheets/singularitygs/grid-plugins/_ratio.scss
102
+ - stylesheets/singularitygs/grid-structure/_display-table.scss
103
+ - stylesheets/singularitygs/grid-structure/_flexbox.scss
104
+ - stylesheets/singularitygs/grid-structure/_float.scss
105
+ - stylesheets/singularitygs/grid-structure/_grid-layout.scss
106
+ - stylesheets/singularitygs/grid-structure/_isolation.scss
107
+ - stylesheets/singularitygs/helpers/_grids.scss
108
+ - stylesheets/singularitygs/helpers/_gridsets.scss
109
+ - stylesheets/singularitygs/helpers/_lists.scss
110
+ - stylesheets/singularitygs/mixins/_base-font-size.scss
111
+ - stylesheets/singularitygs/mixins/_container.scss
112
+ - stylesheets/singularitygs/mixins/_grid-build.scss
113
+ - stylesheets/singularitygs/mixins/_grid-objects.scss
114
+ - stylesheets/singularitygs/mixins/_grid-padding.scss
115
+ - stylesheets/singularitygs/mixins/_grid-span.scss
116
+ - stylesheets/singularitygs/mixins/_push-pull.scss
117
+ - templates/project/behaviors/box-sizing/boxsizing.htc
118
+ - templates/project/behaviors/box-sizing/boxsizing.php
119
+ - templates/project/manifest.rb
103
120
  has_rdoc: true
104
121
  homepage: http://singularity.gs
105
122
  licenses: []
@@ -1,40 +0,0 @@
1
- /*! SINGULARITY -- http://singularity.gs/ */
2
- @import compass
3
- @import modular-scale
4
- @import breakpoint
5
-
6
- // Can be a number or a list of non-uniform column widths
7
- $columns: 12 !default
8
-
9
- // Must be % or 0
10
- $gutter: 2% !default
11
-
12
- // Grid padding can be any type of unit
13
- $padding: 0 !default
14
-
15
- // Helpers return think like list sums and column counts
16
- @import singularitygs/helpers
17
-
18
- // Compound grid calculation function
19
- @import singularitygs/grid-plugins
20
-
21
- // Column math is isolated
22
- @import singularitygs/column
23
-
24
- // Gutter math is isolated
25
- @import singularitygs/gutter
26
-
27
- // Grid math combines column and gutter math
28
- @import singularitygs/grid
29
-
30
- // Mixins to write
31
- @import singularitygs/mixins
32
-
33
- // Mixins to write
34
- @import singularitygs/grid-test
35
-
36
- // Mixins to write
37
- @import singularitygs/background-grid
38
-
39
- // Gridsets
40
- @import singularitygs/gridsets
@@ -1,19 +0,0 @@
1
- // Write stops for single columns
2
- @function grid-gradient-stop($location, $columns, $gutter, $color)
3
- @if $location == 1
4
- @return ($color 0%, $color grid-span(1, 1, $columns, $gutter), transparentize($color, 1) grid-span(1, 1, $columns, $gutter))
5
- @if $location == column-count($columns)
6
- @return (transparentize($color, 1) grid-span($location - 1, 1, $columns, $gutter) + $gutter, $color grid-span($location - 1, 1, $columns, $gutter) + $gutter, $color 100%)
7
- @if $location > 1
8
- @return (transparentize($color, 1) grid-span($location - 1, 1, $columns, $gutter) + $gutter, $color grid-span($location - 1, 1, $columns, $gutter) + $gutter, $color grid-span($location, 1, $columns, $gutter), transparentize($color, 1) grid-span($location, 1, $columns, $gutter))
9
-
10
- // Compiling grid stops
11
- @function grid-gradient-stops($columns, $gutter, $color)
12
- $list: ()
13
- @for $i from 1 through column-count($columns)
14
- $list: join($list, grid-gradient-stop($i, $columns, $gutter, $color), comma)
15
- @return $list
16
-
17
- // Pull in grid stops to make a background gradient
18
- =background-grid($columns, $gutter, $color: rgba(#69AEDB, .5))
19
- +background(linear-gradient(left, grid-gradient-stops($columns, $gutter, $color)))
@@ -1,25 +0,0 @@
1
- // calculate the width of individual columns
2
- @function list-column-width($location, $columns)
3
- // send a warning if this is used when $columns is not a list
4
- @if type-of($columns) != list
5
- @warn "The column-list-sum function requires the variable $columns to be a list."
6
- @else
7
- // divide the column from its context
8
- @return nth(nth($columns, $location), 1) / list-sum($columns)
9
-
10
-
11
- // Calculate the width spanning multiple columns
12
- @function column-span($span, $location: 1, $columns: $columns)
13
-
14
- // Equal width columns
15
- @if type-of($columns) == number
16
- @return $span * (100% / $columns)
17
-
18
- // Variable width columns
19
- @if type-of($columns) == list
20
- // zero out initial sum
21
- $sum: 0
22
- // from start point to end point
23
- @for $i from $location to ($location + $span)
24
- $sum: $sum + list-column-width($i, $columns)
25
- @return percentage($sum)
@@ -1,2 +0,0 @@
1
- @import grid-plugins/compound
2
- @import grid-plugins/ratio
@@ -1,2 +0,0 @@
1
- @function grid-span($span, $location: 1, $columns: $columns, $gutter: $gutter)
2
- @return column-span($span, $location, $columns) - gutter-offset($gutter, $columns)
@@ -1,242 +0,0 @@
1
- $gridset: () !default;
2
- $gutterset: () !default;
3
- $paddingset: () !default;
4
-
5
- $gridset-mobile-first: true;
6
-
7
- @mixin gridset-span($span, $location, $gutters: false, $paddings: false) {
8
- $length: length($gridset);
9
-
10
- $query-min: breakpoint-get-context('min-width');
11
- $query-max: breakpoint-get-context('max-width');
12
-
13
- @if $query-min {
14
- $query-min: breakpoint-to-base-em($query-min);
15
- }
16
- @if $query-max {
17
- $query-max: breakpoint-to-base-em($query-max);
18
- }
19
-
20
- $written: false;
21
-
22
- $gutter-length: length($gutterset);
23
- $padding-length: length($paddingset);
24
-
25
- $ghr: () !default;
26
- $ghs: () !default;
27
- $phs: () !default;
28
-
29
- @if $query-min or $query-max {
30
- @for $j from 2 through $length {
31
- $ghr: append($ghr, nth($gridset, $j), comma);
32
- }
33
-
34
- @for $j from 2 through $length {
35
- @if $j > $gutter-length {
36
- $ghs: append($ghs, nth($gutterset, $gutter-length));
37
- }
38
- @else {
39
- $ghs: append($ghs, nth($gutterset, $j));
40
- }
41
- }
42
-
43
- @for $j from 2 through $length {
44
- @if $j > $padding-length {
45
- $phs: append($phs, nth($paddingset, $padding-length));
46
- }
47
- @else {
48
- $phs: append($phs, nth($paddingset, $j));
49
- }
50
- }
51
-
52
- $ghr: reverse($ghr);
53
-
54
- $gthr: reverse($ghs);
55
- $phr: reverse($phs);
56
-
57
- $holder-length: length($ghr);
58
-
59
- @for $i from 1 through $holder-length {
60
- $gridholder: nth($ghr, $i);
61
-
62
- $grid-columns: nth($gridholder, 1);
63
- $grid-query: nth($gridholder, 2);
64
-
65
- $grid-query: breakpoint-to-base-em($grid-query);
66
-
67
- @if length($gridholder) < 2 {
68
- @warn 'Grid #{$gridholder} needs a breakpoint value!';
69
- }
70
- @else if not $written {
71
- @if $gridset-mobile-first {
72
- @if $query-min and not $query-max {
73
- @if $query-min and $query-max {
74
- @if $query-min >= $grid-query and $query-max < $grid-query {
75
- @if $gutters == false {
76
- @if $gutter-length > 0 {
77
- $gutters: nth($gthr, $i);
78
- }
79
- @else {
80
- $gutters: $gutter;
81
- }
82
- }
83
- @if $paddings == false {
84
- @if $padding-length > 0 {
85
- $paddings: nth($phr, $i);
86
- }
87
- @else {
88
- $paddings: $padding;
89
- }
90
- }
91
- @include grid-span($span, $location, $grid-columns, $gutters, $paddings);
92
- $written: true;
93
- $gutters: false;
94
- $paddings: false;
95
- }
96
- }
97
- @else if $query-min >= $grid-query {
98
- @if $gutters == false {
99
- @if $gutter-length > 0 {
100
- $gutters: nth($gthr, $i);
101
- }
102
- @else {
103
- $gutters: $gutter;
104
- }
105
- }
106
- @if $paddings == false {
107
- @if $padding-length > 0 {
108
- $paddings: nth($phr, $i);
109
- }
110
- @else {
111
- $paddings: $padding;
112
- }
113
- }
114
- @include grid-span($span, $location, $grid-columns, $gutters, $paddings);
115
- $written: true;
116
- $gutters: false;
117
- $paddings: false;
118
- }
119
- }
120
- @else {
121
- @if $query-max < $grid-query {
122
- @if $gutters == false {
123
- @if $gutter-length > 0 {
124
- $gutters: nth($gthr, $i);
125
- }
126
- @else {
127
- $gutters: $gutter;
128
- }
129
- }
130
- @if $paddings == false {
131
- @if $padding-length > 0 {
132
- $paddings: nth($phr, $i);
133
- }
134
- @else {
135
- $paddings: $padding;
136
- }
137
- }
138
- @include grid-span($span, $location, $grid-columns, $gutters, $paddings);
139
- $written: true;
140
- $gutters: false;
141
- $paddings: false;
142
- }
143
- }
144
- }
145
- @else {
146
- @if $query-min and $query-max {
147
- @if $gutters == false {
148
- @if $gutter-length > 0 {
149
- $gutters: nth($gthr, $i);
150
- }
151
- @else {
152
- $gutters: $gutter;
153
- }
154
- }
155
- @if $paddings == false {
156
- @if $padding-length > 0 {
157
- $paddings: nth($phr, $i);
158
- }
159
- @else {
160
- $paddings: $padding;
161
- }
162
- }
163
- @if $query-min > $grid-query and $query-max <= $grid-query {
164
- @include grid-span($span, $location, $grid-columns, $gutters, $paddings);
165
- $written: true;
166
- $gutters: false;
167
- $paddings: false;
168
- }
169
- }
170
- @else if $query-min and not $query-max {
171
- @if $query-min > $grid-query {
172
- @if $gutters == false {
173
- @if $gutter-length > 0 {
174
- $gutters: nth($gthr, $i);
175
- }
176
- @else {
177
- $gutters: $gutter;
178
- }
179
- }
180
- @if $paddings == false {
181
- @if $padding-length > 0 {
182
- $paddings: nth($phr, $i);
183
- }
184
- @else {
185
- $paddings: $padding;
186
- }
187
- }
188
- @include grid-span($span, $location, $grid-columns, $gutters, $paddings);
189
- $written: true;
190
- $gutters: false;
191
- $paddings: false;
192
- }
193
- }
194
- @else {
195
- @if $query-max <= $grid-query {
196
- @if $gutters == false {
197
- @if $gutter-length > 0 {
198
- $gutters: nth($gthr, $i);
199
- }
200
- @else {
201
- $gutters: $gutter;
202
- }
203
- }
204
- @if $paddings == false {
205
- @if $padding-length > 0 {
206
- $paddings: nth($phr, $i);
207
- }
208
- @else {
209
- $paddings: $padding;
210
- }
211
- }
212
- @include grid-span($span, $location, $grid-columns, $gutters, $paddings);
213
- $written: true;
214
- $gutters: false;
215
- $paddings: false;
216
- }
217
- }
218
- }
219
- }
220
- }
221
- }
222
- @else {
223
- @if $gutters == false {
224
- @if $gutter-length > 0 {
225
- $gutters: nth($gutterset, 1);
226
- }
227
- @else {
228
- $gutters: $gutter;
229
- }
230
- }
231
-
232
- @if $paddings == false {
233
- @if $padding-length > 0 {
234
- $paddings: nth($paddingset, 1);
235
- }
236
- @else {
237
- $paddings: $padding;
238
- }
239
- }
240
- @include grid-span($span, $location, nth($gridset, 1), $gutters, $paddings);
241
- }
242
- }