singularitygs 0.0.11 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/singularitygs.rb +2 -2
- data/stylesheets/{singularitygs.scss → _singularitygs.scss} +9 -2
- data/templates/project/behaviors/box-sizing/boxsizing.htc +399 -0
- data/templates/project/behaviors/box-sizing/boxsizing.php +23 -0
- data/templates/project/manifest.rb +4 -0
- metadata +89 -95
- data/stylesheets/singularitygs/_background-grid.scss +0 -26
- data/stylesheets/singularitygs/_column.scss +0 -50
- data/stylesheets/singularitygs/_grid-plugins.scss +0 -2
- data/stylesheets/singularitygs/_grid-structure.scss +0 -4
- data/stylesheets/singularitygs/_grid-test.scss +0 -54
- data/stylesheets/singularitygs/_grid.scss +0 -3
- data/stylesheets/singularitygs/_gridsets.scss +0 -242
- data/stylesheets/singularitygs/_gutter.scss +0 -11
- data/stylesheets/singularitygs/_helpers.scss +0 -43
- data/stylesheets/singularitygs/_mixins.scss +0 -77
- data/stylesheets/singularitygs/grid-plugins/_compound.scss +0 -46
- data/stylesheets/singularitygs/grid-plugins/_ratio.scss +0 -20
- data/stylesheets/singularitygs/grid-structure/_structure-clear.scss +0 -32
- data/stylesheets/singularitygs/grid-structure/_structure-display-table.scss +0 -1
- data/stylesheets/singularitygs/grid-structure/_structure-float.scss +0 -103
- data/stylesheets/singularitygs/grid-structure/_structure-grid-layout.scss +0 -1
metadata
CHANGED
@@ -1,131 +1,125 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: singularitygs
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 13
|
9
|
+
version: 0.0.13
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- Scott Kellum
|
9
13
|
- Sam Richard
|
10
14
|
autorequire:
|
11
15
|
bindir: bin
|
12
16
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
17
|
+
|
18
|
+
date: 2012-09-28 00:00:00 -04:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
16
22
|
name: sass
|
17
|
-
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
|
-
requirements:
|
20
|
-
- - ! '>='
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 3.2.1
|
23
|
-
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 3
|
30
|
+
- 2
|
31
|
+
- 1
|
30
32
|
version: 3.2.1
|
31
|
-
- !ruby/object:Gem::Dependency
|
32
|
-
name: compass
|
33
|
-
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
|
-
requirements:
|
36
|
-
- - ! '>='
|
37
|
-
- !ruby/object:Gem::Version
|
38
|
-
version: 0.12.2
|
39
33
|
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: compass
|
40
37
|
prerelease: false
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
segments:
|
43
|
+
- 0
|
44
|
+
- 12
|
45
|
+
- 2
|
46
46
|
version: 0.12.2
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: modular-scale
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
|
-
requirements:
|
52
|
-
- - ! '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 1.0.2
|
55
47
|
type: :runtime
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: modular-scale
|
56
51
|
prerelease: false
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
segments:
|
57
|
+
- 1
|
58
|
+
- 0
|
59
|
+
- 2
|
62
60
|
version: 1.0.2
|
63
|
-
- !ruby/object:Gem::Dependency
|
64
|
-
name: breakpoint
|
65
|
-
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
|
-
requirements:
|
68
|
-
- - ! '>='
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: 1.1.1
|
71
61
|
type: :runtime
|
62
|
+
version_requirements: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: breakpoint
|
72
65
|
prerelease: false
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
segments:
|
71
|
+
- 1
|
72
|
+
- 1
|
73
|
+
- 1
|
78
74
|
version: 1.1.1
|
75
|
+
type: :runtime
|
76
|
+
version_requirements: *id004
|
79
77
|
description: Advanced responsive grid system for Sass and Compass
|
80
|
-
email:
|
78
|
+
email:
|
81
79
|
- scott@scottkellum.com
|
82
80
|
- snugug@gmail.com
|
83
81
|
executables: []
|
82
|
+
|
84
83
|
extensions: []
|
84
|
+
|
85
85
|
extra_rdoc_files: []
|
86
|
-
|
86
|
+
|
87
|
+
files:
|
87
88
|
- lib/singularitygs.rb
|
88
|
-
- stylesheets/
|
89
|
-
-
|
90
|
-
-
|
91
|
-
-
|
92
|
-
|
93
|
-
- stylesheets/singularitygs/_grid-test.scss
|
94
|
-
- stylesheets/singularitygs/_grid.scss
|
95
|
-
- stylesheets/singularitygs/_gridsets.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.scss
|
101
|
-
- stylesheets/singularitygs/grid-structure/_structure-clear.scss
|
102
|
-
- stylesheets/singularitygs/grid-structure/_structure-display-table.scss
|
103
|
-
- stylesheets/singularitygs/grid-structure/_structure-float.scss
|
104
|
-
- stylesheets/singularitygs/grid-structure/_structure-grid-layout.scss
|
89
|
+
- stylesheets/_singularitygs.scss
|
90
|
+
- templates/project/behaviors/box-sizing/boxsizing.htc
|
91
|
+
- templates/project/behaviors/box-sizing/boxsizing.php
|
92
|
+
- templates/project/manifest.rb
|
93
|
+
has_rdoc: true
|
105
94
|
homepage: http://singularity.gs
|
106
95
|
licenses: []
|
96
|
+
|
107
97
|
post_install_message:
|
108
98
|
rdoc_options: []
|
109
|
-
|
99
|
+
|
100
|
+
require_paths:
|
110
101
|
- lib
|
111
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
requirements:
|
120
|
-
- -
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
|
102
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
segments:
|
107
|
+
- 0
|
108
|
+
version: "0"
|
109
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
segments:
|
114
|
+
- 1
|
115
|
+
- 2
|
116
|
+
version: "1.2"
|
123
117
|
requirements: []
|
118
|
+
|
124
119
|
rubyforge_project: singularitygs
|
125
|
-
rubygems_version: 1.
|
120
|
+
rubygems_version: 1.3.6
|
126
121
|
signing_key:
|
127
122
|
specification_version: 3
|
128
|
-
summary: Singularity is a fluid grid system that can generate uniform columns as well
|
129
|
-
as asymmetric and compound grids with tools to write grids as functions, mixins,
|
130
|
-
or class based objects.
|
123
|
+
summary: Singularity is a fluid grid system that can generate uniform columns as well as asymmetric and compound grids with tools to write grids as functions, mixins, or class based objects.
|
131
124
|
test_files: []
|
125
|
+
|
@@ -1,26 +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
|
-
}
|
6
|
-
@if $location == column-count($columns) {
|
7
|
-
@return transparentize($color, 1) grid-span($location - 1, 1, $columns, $gutter) + $gutter, $color grid-span($location - 1, 1, $columns, $gutter) + $gutter, $color 100%;
|
8
|
-
}
|
9
|
-
@if $location > 1 {
|
10
|
-
@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);
|
11
|
-
}
|
12
|
-
}
|
13
|
-
|
14
|
-
// Compiling grid stops
|
15
|
-
@function grid-gradient-stops($columns, $gutter, $color) {
|
16
|
-
$list: ();
|
17
|
-
@for $i from 1 through column-count($columns) {
|
18
|
-
$list: join($list, grid-gradient-stop($i, $columns, $gutter, $color), comma);
|
19
|
-
}
|
20
|
-
@return $list;
|
21
|
-
}
|
22
|
-
|
23
|
-
// Pull in grid stops to make a background gradient
|
24
|
-
@mixin background-grid($columns, $gutter, $color: rgba(#69aedb, 0.5)) {
|
25
|
-
@include background(linear-gradient(left, grid-gradient-stops($columns, $gutter, $color)));
|
26
|
-
}
|
@@ -1,50 +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
|
-
// }
|
7
|
-
// @else {
|
8
|
-
// // divide the column from its context
|
9
|
-
// @return nth(nth($columns, $location), 1) / list-sum($columns);
|
10
|
-
// }
|
11
|
-
//}
|
12
|
-
|
13
|
-
// Calculate the width spanning multiple columns
|
14
|
-
@function column-span($span, $location: 1, $columns: $columns) {
|
15
|
-
$columns-and-gutters: column-sum($columns, $gutter);
|
16
|
-
|
17
|
-
// Equal width columns
|
18
|
-
@if type-of($columns) == number {
|
19
|
-
$span-and-gutter: $span + (($span - 1) * $gutter);
|
20
|
-
@return $span-and-gutter / $columns-and-gutters * 100%;
|
21
|
-
}
|
22
|
-
// Variable width columns
|
23
|
-
@if type-of($columns) == list {
|
24
|
-
// zero out initial sum
|
25
|
-
$sum: 0;
|
26
|
-
$holder: ();
|
27
|
-
// from start point to end point
|
28
|
-
@for $i from $location to $location + $span {
|
29
|
-
$holder: append($holder, nth(nth($columns, $i), 1), comma);
|
30
|
-
}
|
31
|
-
|
32
|
-
@return column-sum($holder, $gutter) / $columns-and-gutters * 100%;
|
33
|
-
}
|
34
|
-
|
35
|
-
@return 10%;
|
36
|
-
}
|
37
|
-
|
38
|
-
@function column-sum($columns: $columns, $gutter: $gutter) {
|
39
|
-
@if type-of($columns) == 'number' {
|
40
|
-
@return $columns + ((column-count($columns) - 1) * $gutter);
|
41
|
-
}
|
42
|
-
@else if type-of($columns) == 'list' {
|
43
|
-
$sum: 0;
|
44
|
-
@each $column in $columns {
|
45
|
-
$sum: $sum + nth($column, 1);
|
46
|
-
}
|
47
|
-
$sum: $sum + (column-count($columns) - 1) * $gutter;
|
48
|
-
@return $sum;
|
49
|
-
}
|
50
|
-
}
|
@@ -1,54 +0,0 @@
|
|
1
|
-
@mixin test-grid($columns: $columns, $gutter: $gutter, $padding: $padding, $prefix: a, $color: #66bbbb) {
|
2
|
-
.test-grid {
|
3
|
-
height: 200px;
|
4
|
-
width: 100%;
|
5
|
-
}
|
6
|
-
$grid-counter: 1;
|
7
|
-
@for $i from 1 through column-count($columns) {
|
8
|
-
.test.#{$prefix}#{$i} {
|
9
|
-
height: 100%;
|
10
|
-
@include grid-span(1, $i, $columns: $columns, $gutter: $gutter, $padding: $padding);
|
11
|
-
background-color: transparentize($color, 0.5);
|
12
|
-
.inner {
|
13
|
-
height: 100%;
|
14
|
-
background-color: transparentize($color, 0.5);
|
15
|
-
}
|
16
|
-
}
|
17
|
-
}
|
18
|
-
}
|
19
|
-
|
20
|
-
// Need this markup to test
|
21
|
-
//<div class="test-grid">
|
22
|
-
//<div class="test a1"><div class="inner"></div></div>
|
23
|
-
//<div class="test a2"><div class="inner"></div></div>
|
24
|
-
//<div class="test a3"><div class="inner"></div></div>
|
25
|
-
//<div class="test a4"><div class="inner"></div></div>
|
26
|
-
//<div class="test a5"><div class="inner"></div></div>
|
27
|
-
//<div class="test a6"><div class="inner"></div></div>
|
28
|
-
//<div class="test a7"><div class="inner"></div></div>
|
29
|
-
//<div class="test a8"><div class="inner"></div></div>
|
30
|
-
//<div class="test a9"><div class="inner"></div></div>
|
31
|
-
//<div class="test a10"><div class="inner"></div></div>
|
32
|
-
//<div class="test a11"><div class="inner"></div></div>
|
33
|
-
//<div class="test a12"><div class="inner"></div></div>
|
34
|
-
//<div class="test a13"><div class="inner"></div></div>
|
35
|
-
//<div class="test a14"><div class="inner"></div></div>
|
36
|
-
//<div class="test a15"><div class="inner"></div></div>
|
37
|
-
//<div class="test a16"><div class="inner"></div></div>
|
38
|
-
//<div class="test a17"><div class="inner"></div></div>
|
39
|
-
//<div class="test a18"><div class="inner"></div></div>
|
40
|
-
//<div class="test a19"><div class="inner"></div></div>
|
41
|
-
//<div class="test a20"><div class="inner"></div></div>
|
42
|
-
//<div class="test a21"><div class="inner"></div></div>
|
43
|
-
//<div class="test a22"><div class="inner"></div></div>
|
44
|
-
//<div class="test a23"><div class="inner"></div></div>
|
45
|
-
//<div class="test a24"><div class="inner"></div></div>
|
46
|
-
//<div class="test a25"><div class="inner"></div></div>
|
47
|
-
//<div class="test a26"><div class="inner"></div></div>
|
48
|
-
//<div class="test a27"><div class="inner"></div></div>
|
49
|
-
//<div class="test a28"><div class="inner"></div></div>
|
50
|
-
//<div class="test a29"><div class="inner"></div></div>
|
51
|
-
//<div class="test a30"><div class="inner"></div></div>
|
52
|
-
//<div class="test a31"><div class="inner"></div></div>
|
53
|
-
//<div class="test a32"><div class="inner"></div></div>
|
54
|
-
//</div>
|
@@ -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
|
-
}
|