-
Notifications
You must be signed in to change notification settings - Fork 3
/
gridilydidily.scss
226 lines (179 loc) · 6.25 KB
/
gridilydidily.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
// Gridilydidily v3.0.1
// http://philippkuehn.github.io/gridilydidily/
@import "gridilydidily/defaults";
@import "gridilydidily/helper";
@import "gridilydidily/layout";
@import "gridilydidily/grid-modifiers";
@import "gridilydidily/item-modifiers";
// merge settings with default settings
$grid-settings: () !default;
$grid-settings: map-merge($grid-default-settings, $grid-settings);
// create default styles
@include grid-base();
// create default widths
@include grid-width();
// create grid gutters
@include grid-gutter();
// create vertical grid gutters
@if grid-option('vertical-gutters') {
@include grid-vertical-gutter();
}
// create left modifier
@if grid-option-contain('grid-modifiers', 'left') {
@include grid-left();
}
// create center grid-modifier
@if grid-option-contain('grid-modifiers', 'center') {
@include grid-center();
}
// create right grid-modifier
@if grid-option-contain('grid-modifiers', 'right') {
@include grid-right();
}
// create top grid-modifier
@if grid-option-contain('grid-modifiers', 'top') {
@include grid-top();
}
// create middle grid-modifier
@if grid-option-contain('grid-modifiers', 'middle') {
@include grid-middle();
}
// create bottom grid-modifier
@if grid-option-contain('grid-modifiers', 'bottom') {
@include grid-bottom();
}
// create forwards grid-modifier
@if grid-option-contain('grid-modifiers', 'forwards') {
@include grid-forwards();
}
// create backwards grid-modifier
@if grid-option-contain('grid-modifiers', 'backwards') {
@include grid-backwards();
}
// create between grid-modifier
@if grid-option-contain('grid-modifiers', 'between') {
@include grid-between();
}
// create around grid-modifier
@if grid-option-contain('grid-modifiers', 'around') {
@include grid-around();
}
// create equal grid-modifier
@if grid-option-contain('grid-modifiers', 'equal') {
@include grid-equal();
}
// create first item-modifier
@if grid-option-contain('item-modifiers', 'first') {
@include grid-first();
}
// create last item-modifier
@if grid-option-contain('item-modifiers', 'last') {
@include grid-last();
}
// create reset-order item-modifier
@if grid-option-contain('item-modifiers', 'reset-order') {
@include grid-reset-order();
}
// create push item-modifier
@if grid-option-contain('item-modifiers', 'push') {
@include grid-push();
}
// create pull item-modifier
@if grid-option-contain('item-modifiers', 'pull') {
@include grid-pull();
}
// create auto item-modifier
@if grid-option-contain('item-modifiers', 'auto') {
@include grid-auto();
}
// create fill item-modifier
@if grid-option-contain('item-modifiers', 'fill') {
@include grid-fill();
}
// create stuff based on breakpoints
@each $breakpoint-name, $breakpoint-condition in grid-option('breakpoints') {
@media #{$breakpoint-condition} {
// create widths
@include grid-width($breakpoint-name);
// create grid gutters
@if grid-option('gutter-breakpoints') {
@include grid-gutter($breakpoint-name);
}
// create vertical grid gutters
@if grid-option('gutter-breakpoints') and grid-option('vertical-gutters') {
@include grid-vertical-gutter($breakpoint-name);
}
// create left grid-modifier
@if grid-option-contain('grid-modifiers', 'left') and grid-option('grid-modifier-breakpoints') {
@include grid-left($breakpoint-name);
}
// create center grid-modifier
@if grid-option-contain('grid-modifiers', 'center') and grid-option('grid-modifier-breakpoints') {
@include grid-center($breakpoint-name);
}
// create right grid-modifier
@if grid-option-contain('grid-modifiers', 'right') and grid-option('grid-modifier-breakpoints') {
@include grid-right($breakpoint-name);
}
// create top grid-modifier
@if grid-option-contain('grid-modifiers', 'top') and grid-option('grid-modifier-breakpoints') {
@include grid-top($breakpoint-name);
}
// create middle grid-modifier
@if grid-option-contain('grid-modifiers', 'middle') and grid-option('grid-modifier-breakpoints') {
@include grid-middle($breakpoint-name);
}
// create bottom grid-modifier
@if grid-option-contain('grid-modifiers', 'bottom') and grid-option('grid-modifier-breakpoints') {
@include grid-bottom($breakpoint-name);
}
// create forwards grid-modifier
@if grid-option-contain('grid-modifiers', 'forwards') and grid-option('grid-modifier-breakpoints') {
@include grid-forwards($breakpoint-name);
}
// create backwards grid-modifier
@if grid-option-contain('grid-modifiers', 'backwards') and grid-option('grid-modifier-breakpoints') {
@include grid-backwards($breakpoint-name);
}
// create between grid-modifier
@if grid-option-contain('grid-modifiers', 'between') and grid-option('grid-modifier-breakpoints') {
@include grid-between($breakpoint-name);
}
// create around grid-modifier
@if grid-option-contain('grid-modifiers', 'around') and grid-option('grid-modifier-breakpoints') {
@include grid-around($breakpoint-name);
}
// create equal grid-modifier
@if grid-option-contain('grid-modifiers', 'equal') and grid-option('grid-modifier-breakpoints') {
@include grid-equal($breakpoint-name);
}
// create first grid-modifier
@if grid-option-contain('item-modifiers', 'first') and grid-option('item-modifier-breakpoints') {
@include grid-first($breakpoint-name);
}
// create last grid-modifier
@if grid-option-contain('item-modifiers', 'last') and grid-option('item-modifier-breakpoints') {
@include grid-last($breakpoint-name);
}
// create reset-order grid-modifier
@if grid-option-contain('item-modifiers', 'reset-order') and grid-option('item-modifier-breakpoints') {
@include grid-reset-order($breakpoint-name);
}
// create push item-modifier
@if grid-option-contain('item-modifiers', 'push') and grid-option('item-modifier-breakpoints') {
@include grid-push($breakpoint-name);
}
// create pull item-modifier
@if grid-option-contain('item-modifiers', 'pull') and grid-option('item-modifier-breakpoints') {
@include grid-pull($breakpoint-name);
}
// create auto item-modifier
@if grid-option-contain('item-modifiers', 'auto') and grid-option('item-modifier-breakpoints') {
@include grid-auto($breakpoint-name);
}
// create fill item-modifier
@if grid-option-contain('item-modifiers', 'fill') and grid-option('item-modifier-breakpoints') {
@include grid-fill($breakpoint-name);
}
}
}