gridle 1.1.0 → 1.2.0

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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gridle.rb +4 -5
  3. data/stylesheets/gridle/_common-mixins.scss +84 -0
  4. data/stylesheets/gridle/_functions.scss +291 -0
  5. data/stylesheets/gridle/_generate-mixins.scss +515 -0
  6. data/stylesheets/gridle/_gridle.scss +28 -1653
  7. data/stylesheets/gridle/_mixins.scss +670 -0
  8. data/stylesheets/gridle/_settings-mixins.scss +143 -0
  9. data/stylesheets/gridle/_settings.scss +84 -0
  10. data/stylesheets/gridle/_silent-classes.scss +102 -0
  11. metadata +12 -39
  12. data/stylesheets/gridle/_12-columns-classes.scss +0 -9
  13. data/stylesheets/gridle/_12-columns-responsive-classes.scss +0 -9
  14. data/stylesheets/gridle/_12-columns-responsive.scss +0 -14
  15. data/stylesheets/gridle/_12-columns.scss +0 -9
  16. data/stylesheets/gridle/_16-columns-classes.scss +0 -9
  17. data/stylesheets/gridle/_16-columns-responsive-classes.scss +0 -9
  18. data/stylesheets/gridle/_16-columns-responsive.scss +0 -14
  19. data/stylesheets/gridle/_16-columns.scss +0 -9
  20. data/stylesheets/gridle/_24-columns-classes.scss +0 -9
  21. data/stylesheets/gridle/_24-columns-responsive-classes.scss +0 -9
  22. data/stylesheets/gridle/_24-columns-responsive.scss +0 -14
  23. data/stylesheets/gridle/_24-columns.scss +0 -9
  24. data/stylesheets/gridle/_960gs-classes.scss +0 -9
  25. data/stylesheets/gridle/_960gs-responsive-classes.scss +0 -9
  26. data/stylesheets/gridle/_960gs-responsive.scss +0 -23
  27. data/stylesheets/gridle/_960gs.scss +0 -18
  28. data/stylesheets/gridle/_unsementic-classes.scss +0 -9
  29. data/stylesheets/gridle/_unsementic-responsive-classes.scss +0 -9
  30. data/stylesheets/gridle/_unsementic-responsive.scss +0 -23
  31. data/stylesheets/gridle/_unsementic.scss +0 -18
@@ -29,147 +29,38 @@
29
29
  // |------------------------------------------------------
30
30
  // |------------------------------------------------------
31
31
  // @created 25.03.13
32
- // @updated 06.12.13
33
- // @author Olivier Bossel <olivier.bossel@gmail.com>
34
- // @version 1.1.0
32
+ // @updated 08.05.14
33
+ // @author Olivier Bossel <olivier.bossel@gmail.com>
34
+ // @version 1.2.0
35
35
  // |------------------------------------------------------
36
36
  // |------------------------------------------------------
37
37
 
38
+ $_gridle-version : "1.2.0";
39
+
38
40
 
39
41
 
40
42
 
41
43
  // |------------------------------------------------------
42
44
  // |------------------------------------------------------
43
- // | Settings
45
+ // | Variables
44
46
  // |------------------------------------------------------
45
47
  // |------------------------------------------------------
46
48
 
47
- // gridle configuration vars :
48
- $gridle-columns-count : 12 !default;
49
- $gridle-gutter-width : 20px !default;
50
- $gridle-name-multiplicator : 1 !default;
51
-
52
- $gridle-direction : ltr !default;
53
-
54
- $gridle-debug : false !default;
55
- $gridle-debug-show-class-names : true !default;
56
-
57
- $gridle-ie7-support : true !default;
58
-
59
- $gridle-class-prefix : '' !default;
60
-
61
- $gridle-html-states-classes : false !default;
62
-
63
- $gridle-generate-helpers-classes : true !default;
64
- $gridle-generate-push-classes : true !default;
65
- $gridle-generate-pull-classes : true !default;
66
- $gridle-generate-prefix-classes : true !default;
67
- $gridle-generate-suffix-classes : true !default;
68
-
69
- $gridle-generate-useful-states-classes : () !default;// retina | landscape | portrait | print | tv
70
-
71
- $gridle-debug-selector : ".gridle-debug &, &.gridle-debug";
49
+ $_gridle_states : (); // the variable map for each states
50
+ $_gridle_clear_classes :(); // store each automatic clear count
51
+ $_gridle_columns : (); // store the registered special columns
52
+ $_gridle_states_debug_devices : (); // save the debug states devices
72
53
 
73
54
 
74
55
 
75
56
 
76
57
  // |------------------------------------------------------
77
58
  // |------------------------------------------------------
78
- // | Variables
59
+ // | Settings
79
60
  // |------------------------------------------------------
80
61
  // |------------------------------------------------------
81
62
 
82
-
83
-
84
- $_gridle-state-01-min-width : null !default;
85
- $_gridle-state-01-max-width : null !default;
86
- $_gridle-state-01-name : null !default;
87
- $_gridle-state-01-query : null !default;
88
- $_gridle-state-01-classes : true !default;
89
-
90
- $_gridle-state-02-min-width : null !default;
91
- $_gridle-state-02-max-width : null !default;
92
- $_gridle-state-02-name : null !default;
93
- $_gridle-state-02-query : null !default;
94
- $_gridle-state-02-classes : true !default;
95
-
96
- $_gridle-state-03-min-width : null !default;
97
- $_gridle-state-03-max-width : null !default;
98
- $_gridle-state-03-name : null !default;
99
- $_gridle-state-03-query : null !default;
100
- $_gridle-state-03-classes : true !default;
101
-
102
- $_gridle-state-04-min-width : null !default;
103
- $_gridle-state-04-max-width : null !default;
104
- $_gridle-state-04-name : null !default;
105
- $_gridle-state-04-query : null !default;
106
- $_gridle-state-04-classes : true !default;
107
-
108
- $_gridle-state-05-min-width : null !default;
109
- $_gridle-state-05-max-width : null !default;
110
- $_gridle-state-05-name : null !default;
111
- $_gridle-state-05-query : null !default;
112
- $_gridle-state-05-classes : true !default;
113
-
114
- $_gridle-state-06-min-width : null !default;
115
- $_gridle-state-06-max-width : null !default;
116
- $_gridle-state-06-name : null !default;
117
- $_gridle-state-06-query : null !default;
118
- $_gridle-state-06-classes : true !default;
119
-
120
- $_gridle-state-07-min-width : null !default;
121
- $_gridle-state-07-max-width : null !default;
122
- $_gridle-state-07-name : null !default;
123
- $_gridle-state-07-query : null !default;
124
- $_gridle-state-07-classes : true !default;
125
-
126
- $_gridle-state-08-min-width : null !default;
127
- $_gridle-state-08-max-width : null !default;
128
- $_gridle-state-08-name : null !default;
129
- $_gridle-state-08-query : null !default;
130
- $_gridle-state-08-classes : true !default;
131
-
132
- $_gridle-state-09-min-width : null !default;
133
- $_gridle-state-09-max-width : null !default;
134
- $_gridle-state-09-name : null !default;
135
- $_gridle-state-09-query : null !default;
136
- $_gridle-state-09-classes : true !default;
137
-
138
- $_gridle-state-10-min-width : null !default;
139
- $_gridle-state-10-max-width : null !default;
140
- $_gridle-state-10-name : null !default;
141
- $_gridle-state-10-query : null !default;
142
- $_gridle-state-10-classes : true !default;
143
-
144
- $_gridle-state-11-min-width : null !default;
145
- $_gridle-state-11-max-width : null !default;
146
- $_gridle-state-11-name : null !default;
147
- $_gridle-state-11-query : null !default;
148
- $_gridle-state-11-classes : true !default;
149
-
150
- $_gridle-state-12-min-width : null !default;
151
- $_gridle-state-12-max-width : null !default;
152
- $_gridle-state-12-name : null !default;
153
- $_gridle-state-12-query : null !default;
154
- $_gridle-state-12-classes : true !default;
155
-
156
- $_gridle-state-13-min-width : null !default;
157
- $_gridle-state-13-max-width : null !default;
158
- $_gridle-state-13-name : null !default;
159
- $_gridle-state-13-query : null !default;
160
- $_gridle-state-13-classes : true !default;
161
-
162
- $_gridle-state-14-min-width : null !default;
163
- $_gridle-state-14-max-width : null !default;
164
- $_gridle-state-14-name : null !default;
165
- $_gridle-state-14-query : null !default;
166
- $_gridle-state-14-classes : true !default;
167
-
168
- $_gridle-state-15-min-width : null !default;
169
- $_gridle-state-15-max-width : null !default;
170
- $_gridle-state-15-name : null !default;
171
- $_gridle-state-15-query : null !default;
172
- $_gridle-state-15-classes : true !default;
63
+ @import 'settings';
173
64
 
174
65
 
175
66
 
@@ -180,86 +71,7 @@ $_gridle-state-15-classes : true !default;
180
71
  // |------------------------------------------------------
181
72
  // |------------------------------------------------------
182
73
 
183
- // Init gridle
184
- // Creating the silent classes with user configuration :
185
- %gridle-clearfix {
186
- // For modern browser
187
- &:before,
188
- &:after {
189
- content:"";
190
- display:table;
191
- }
192
- &:after {
193
- clear:both;
194
- }
195
- // For IE 6/7 (trigger hasLayout
196
- & {
197
- zoom:1;
198
- }
199
- }
200
- %gridle-push-pull-debug-background-common {
201
- background-size:50px 90%;
202
- background-position:0 50%;
203
- background-repeat:repeat-x;
204
- }
205
- %gridle-push-pull-common {
206
- position:relative;
207
- }
208
- %gridle-container-common {
209
- -webkit-box-sizing: border-box;
210
- -moz-box-sizing: border-box;
211
- box-sizing: border-box;
212
- }
213
- %gridle-parent-common {
214
- -webkit-box-sizing: border-box;
215
- -moz-box-sizing: border-box;
216
- box-sizing: border-box;
217
- }
218
- %gridle-container-debug-common {
219
- background-color:#f5f5f5;
220
-
221
- &:before,
222
- &:after {
223
- content:"";
224
- display:block;
225
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowRkEzNzVFNTg1NjgxMUUyOUI4RjhEMzg4QzM4QjZFOCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowRkEzNzVFNjg1NjgxMUUyOUI4RjhEMzg4QzM4QjZFOCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjBGQTM3NUUzODU2ODExRTI5QjhGOEQzODhDMzhCNkU4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjBGQTM3NUU0ODU2ODExRTI5QjhGOEQzODhDMzhCNkU4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8++5+BhQAAAA9JREFUeNpiYGBgkAIIMAAAHwAbZIBtGgAAAABJRU5ErkJggg==);
226
- height:inherit;
227
- text-align:center;
228
- color:white;
229
- font-size:11px;
230
- }
231
- }
232
- %gridle-grid-debug-common {
233
- &:before,
234
- &:after {
235
- content:"";
236
- display:block;
237
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowRkEzNzVFNTg1NjgxMUUyOUI4RjhEMzg4QzM4QjZFOCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowRkEzNzVFNjg1NjgxMUUyOUI4RjhEMzg4QzM4QjZFOCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjBGQTM3NUUzODU2ODExRTI5QjhGOEQzODhDMzhCNkU4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjBGQTM3NUU0ODU2ODExRTI5QjhGOEQzODhDMzhCNkU4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8++5+BhQAAAA9JREFUeNpiYGBgkAIIMAAAHwAbZIBtGgAAAABJRU5ErkJggg==);
238
- margin:10px 0;
239
- padding:5px 0;
240
- text-align:center;
241
- color:white;
242
- font-size:11px;
243
- -webkit-box-sizing: border-box;
244
- -moz-box-sizing: border-box;
245
- box-sizing: border-box;
246
- display:block !important;
247
- }
248
- background-color:#daeff5;
249
- }
250
- %gridle-grid-common {
251
- display:inline-block;
252
- min-height:1px;
253
- -webkit-box-sizing: border-box;
254
- -moz-box-sizing: border-box;
255
- box-sizing: border-box;
256
- }
257
- %gridle-prefix-debug-common {
258
- background-color:#dae7e9 !important;
259
- }
260
- %gridle-suffix-debug-common {
261
- background-color:#dae7e9 !important;
262
- }
74
+ @import 'silent-classes';
263
75
 
264
76
 
265
77
 
@@ -270,95 +82,7 @@ $_gridle-state-15-classes : true !default;
270
82
  // |------------------------------------------------------
271
83
  // |------------------------------------------------------
272
84
 
273
-
274
- // Common css that cannot be extended cause of variables :
275
- @mixin _gridle_container_common() {
276
- @extend %gridle-clearfix;
277
- @extend %gridle-container-common;
278
- // debug part :
279
- @if ($gridle-debug == true) {
280
- #{$gridle-debug-selector} {
281
- @extend %gridle-container-debug-common;
282
- &:before {
283
- @if $gridle-debug-show-class-names == true {
284
- padding:10px $gridle-gutter-width/2;
285
- content:"container-#{$gridle-columns-count}" !important;
286
- }
287
- }
288
- &:after {
289
- @if $gridle-debug-show-class-names == true {
290
- padding:10px $gridle-gutter-width/2;
291
- content:"end container-#{$gridle-columns-count}" !important;
292
- }
293
- }
294
- }
295
- }
296
- }
297
- @mixin _gridle_grid_common() {
298
- @extend %gridle-grid-common;
299
- @if $gridle-direction == rtl {
300
- float:right;
301
- direction:rtl;
302
- } @else {
303
- float:left;
304
- direction:ltr;
305
- }
306
-
307
- // set padding :
308
- padding:0 $gridle-gutter-width/2;
309
- @if $gridle-debug == true {
310
- #{$gridle-debug-selector} {
311
- @extend %gridle-grid-debug-common;
312
- }
313
- }
314
- }
315
- @mixin _gridle_parent_common() {
316
- @extend %gridle-clearfix;
317
- @extend %gridle-parent-common;
318
- }
319
- @mixin _gridle_push_common() {
320
- // extend common :
321
- @extend %gridle-push-pull-common;
322
- @if $gridle-debug == true {
323
- #{$gridle-debug-selector} {
324
- @extend %gridle-push-pull-debug-background-common;
325
- background-color:#f4efdf !important;
326
- @if $gridle-direction == ltr {
327
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb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KLAQCARIJDckBRjBwgkz5FskAACCSSAQAIJIJBAAggkkGhUIJAIEEggAQQSSACBBBJAIIEEEEggAWTsIBEgkEACCCSQAAIJJIBAAgkgkEACCCSQAJI2SAQIJJAAAgkkgEACCSCQQAIIJJAAAgkkgEACCSALJJAIEEgECCSQAAIJJIBAAgkgkEACCCSQAAIJJIBAAgkggkSAQAIJIJBAAggkkAACCSSAQAIJIJBAAggkkAAiSAARJPMiAQQSSACBBBJAIIEEEEggAQQSSACBBBJAIIEEEP2L5AcSQPQ6SAARJIAIkmmQAAIJJIBAAgkgkEACCCSQAAIJJIAIEkAEydBIAIEEEkCGywFHQPQip4ABESTxkQACCSSAQAIJIJBAAggkkAAiSAARJKdI9khIAIEkYmGQAAJJWCTlL0AESWAkgEACCSCQQAIIJJAAIkgAESRBkAACCSSAQAIJIJoPydbaCCD52xLf26XWCog+wpH1z22O2loHIOlxrHAAIjgAERzfxgEIHHAAAgccgMABByCCAxDBEQQHIHCExbHcj8ksgAiOoDgAgQMOQOCA4/12MwdH564oLhFxeILAAQcgcMABCBxwAAIHHIAIDkAEByCCY2gcgMABByBwwAEIHHAAAgccgMABByBwwAGI4ABEcGTFAQgccAACBxyAwAEHIHDAAQgccATKjza0W9cCByB6rCRe0+lw2GLBAQcgcMABCBxwAAIHHIDAAQcgcMABCBxwAAIHHIAIDkAEhwCBAw5A4IADEDjgAAQOOACBAw5A4IADEDjgAAQOOACBAw5NDwQOAQKHAIEDDkDggAMQOOAABA44AIEDDkDggAMQOOAABA44NAcQOAQIHAIEDjgAgQMOQOCAAxA44AAEDjgAgQMOrXDAoVxA4BAgcAgQOOAABA44AIEDDkDggAMQOOBQeCBwCBA4BAgccAACBxyAwAHHdO1wNMdxGDNPEDjgAAQOOACBAw51BQKHAIFDgMABByBwwAEIHHCoAxA4NHSlVicgpAhf0iVApEz9CjAA65/oofjgOdQAAAAASUVORK5CYII=);
328
- } @else {
329
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA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wkgAgQQSQCCBBBBIIAEEEkgAgQQSQCCBBBBB0gARJEWRAAIJJIBAAgkgkEACCCSQACJIABEk+ZEAAgkkgEACCSCQQAIIJJAAojEkZ0gA0XiQACJIABEkH5G0IUAESWIkgEACCSCQQAKIIAFEkAAiSJIgAQQSSACBBJKJLzLnySPCFM2BRFYQCRBp0W4CDAAOV/Wfo7G12gAAAABJRU5ErkJggg==);
330
- }
331
- }
332
- }
333
- }
334
- @mixin _gridle_pull_common() {
335
- @extend %gridle-push-pull-common;
336
- @if $gridle-debug == true {
337
- #{$gridle-debug-selector} {
338
- @extend %gridle-push-pull-debug-background-common;
339
- background-color:#cfe4d5 !important;
340
- @if $gridle-direction == ltr {
341
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZV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gEACCSCQQAIIJJAAAgkkgEACCSALJJAIEEgECCSQAAIJJIBAAgkgkEACCCSQAAIJJIBAAgkggkSAQAIJIJBAAggkkAACCSSAQAIJIJBAAggkkAAiSAARJPMiAQQSSACBBBJAIIEEEEggAQQSSACBBBJAIIEEEP2L5AcSQPQ6SAARJIAIkmmQAAIJJIBAAgkgkEACCCSQAAIJJIAIEkAEydBIAIEEEkCGywFHQPQip4ABESTxkQACCSSAQAIJIJBAAggkkAAiSAARJKdI9khIAIEkYmGQAAJJWCTlL0AESWAkgEACCSCQQAIIJJAAIkgAESRBkAACCSSAQAIJIJoPydbaCCD52xLf26XWCog+wpH1z22O2loHIOlxrHAAIjgAERzfxgEIHHAAAgccgMABByCCAxDBEQQHIHCExbHcj8ksgAiOoDgAgQMOQOCA4/12MwdH564oLhFxeILAAQcgcMABCBxwAAIHHIAIDkAEByCCY2gcgMABByBwwAEIHHAAAgccgMABByBwwAGI4ABEcGTFAQgccAACBxyAwAEHIHDAAQgccATKjza0W9cCByB6rCRe0+lw2GLBAQcgcMABCBxwAAIHHIDAAQcgcMABCBxwAAIHHIAIDkAEhwCBAw5A4IADEDjgAAQOOACBAw5A4IADEDjgAAQOOACBAw5NDwQOAQKHAIEDDkDggAMQOOAABA44AIEDDkDggAMQOOAABA44NAcQOAQIHAIEDjgAgQMOQOCAAxA44AAEDjgAgQMOrXDAoVxA4BAgcAgQOOAABA44AIEDDkDggAMQOOBQeCBwCBA4BAgccAACBxyAwAHHdO1wNMdxGDNPEDjgAAQOOACBAw51BQKHAIFDgMABByBwwAEIHHCoAxA4NHSlVicgpAhf0iVApEz9CjAA65/oofjgOdQAAAAASUVORK5CYII=);
344
- }
345
- }
346
- }
347
- }
348
- @mixin _gridle_prefix_common() {
349
- @if $gridle-debug == true {
350
- #{$gridle-debug-selector} {
351
- @extend %gridle-prefix-debug-common;
352
- }
353
- }
354
- }
355
- @mixin _gridle_suffix_common() {
356
- @if $gridle-debug == true {
357
- #{$gridle-debug-selector} {
358
- @extend %gridle-suffix-debug-common;
359
- }
360
- }
361
- }
85
+ @import 'common-mixins';
362
86
 
363
87
 
364
88
 
@@ -369,220 +93,18 @@ $_gridle-state-15-classes : true !default;
369
93
  // |------------------------------------------------------
370
94
  // |------------------------------------------------------
371
95
 
372
-
373
- // Get column width :
374
- @function gridle_get_columns_width(
375
- $columns : 1,
376
- $context : $gridle-columns-count
377
- ) {
378
- @return percentage(1 / $context * $columns);
379
- }
380
- @function gridle_get_column_width(
381
- $columns : 1,
382
- $context : $gridle-columns-count
383
- ) {
384
- @return gridle_get_columns_width($columns, $context);
385
- }
386
-
387
- // prefix classname :
388
- @function _gridle_prefixed_class(
389
- $name
390
- ) {
391
- @return ".#{$gridle-class-prefix}#{$name}";
392
- }
96
+ @import 'functions';
393
97
 
394
98
 
395
- // Get media query by state :
396
- // @param String $state The state name
397
- // @return String The query
398
- @function _get_media_query_for_state(
399
- $state-or-min-width : null,
400
- $max-width : null
401
- ) {
402
- // get the index of state :
403
- $idx : _gridle_get_media_query_index_by_name($state-or-min-width);
404
99
 
405
- // if there's an idx, the state requested is a registered one :
406
- @if $idx {
407
- // get vars :
408
- $name : _gridle_get_media_query_vars($idx,"name");
409
- $min-width : _gridle_get_media_query_vars($idx,"min-width");
410
- $max-width : _gridle_get_media_query_vars($idx,"max-width");
411
- $classes : _gridle_get_media_query_vars($idx,"classes");
412
- $query : _gridle_get_media_query_vars($idx,"query");
413
-
414
- // check if exist :
415
- @if $name {
416
- // check if query exist :
417
- @if $query {
418
- @return $query;
419
- } @else {
420
-
421
- // write media query :
422
- @if $min-width and $max-width {
423
- @return "screen and (min-width: #{$min-width}) and (max-width: #{$max-width})";
424
- } @else if $min-width == null and $max-width {
425
- @return "screen and (max-width: #{$max-width})";
426
- } @else if $min-width and $max-width == null {
427
- @return "screen and (min-width: #{$min-width})";
428
- } @else {
429
- @return null;
430
- }
431
- }
432
- }
433
- } @else if $state-or-min-width == 'print' or $state-or-min-width == print {
434
- @return "only print";
435
- } @else if $state-or-min-width == 'tv' or $state-or-min-width == tv {
436
- @return "only tv";
437
- } @else if $state-or-min-width == 'portrait' or $state-or-min-width == portrait {
438
- @return "only screen and (orientation: portrait)";
439
- } @else if $state-or-min-width == 'landscape' or $state-or-min-width == landscape {
440
- @return "only screen and (orientation: landscape)";
441
- } @else if $state-or-min-width == 'retina' or $state-or-min-width == retina {
442
- @return "only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx)";
443
- } @else {
444
- // check for min and max width :
445
- @if $state-or-min-width and $max-width {
446
- @return "screen and (min-width: #{$state-or-min-width}) and (max-width: #{$max-width})";
447
- } @else if $state-or-min-width and $max-width == null {
448
- @return "screen and (min-width: #{$state-or-min-width})";
449
- } @else if $state-or-min-width == null and $max-width {
450
- @return "screen and (max-width: #{$max-width})";
451
- } @else {
452
- @return null;
453
- }
454
- }
455
- }
456
-
457
-
458
- // Get the media queries variables :
459
- // @param int $index The media query indes
460
- // @param String $var The media query variable name
461
- // @return String|int The variable value
462
- @function _gridle_get_media_query_vars(
463
- $index : 1,
464
- $var : "name"
465
- ) {
466
- @if $index == 1 {
467
- @if $var == "name" { @return $_gridle-state-01-name; }
468
- @else if $var == "min-width" { @return $_gridle-state-01-min-width; }
469
- @else if $var == "max-width" { @return $_gridle-state-01-max-width; }
470
- @else if $var == "query" { @return $_gridle-state-01-query; }
471
- @else if $var == "classes" { @return $_gridle-state-01-classes; }
472
- } @else if $index == 2 {
473
- @if $var == "name" { @return $_gridle-state-02-name; }
474
- @else if $var == "min-width" { @return $_gridle-state-02-min-width; }
475
- @else if $var == "max-width" { @return $_gridle-state-02-max-width; }
476
- @else if $var == "query" { @return $_gridle-state-02-query; }
477
- @else if $var == "classes" { @return $_gridle-state-02-classes; }
478
- } @else if $index == 3 {
479
- @if $var == "name" { @return $_gridle-state-03-name; }
480
- @else if $var == "min-width" { @return $_gridle-state-03-min-width; }
481
- @else if $var == "max-width" { @return $_gridle-state-03-max-width; }
482
- @else if $var == "query" { @return $_gridle-state-03-query; }
483
- @else if $var == "classes" { @return $_gridle-state-03-classes; }
484
- } @else if $index == 4 {
485
- @if $var == "name" { @return $_gridle-state-04-name; }
486
- @else if $var == "min-width" { @return $_gridle-state-04-min-width; }
487
- @else if $var == "max-width" { @return $_gridle-state-04-max-width; }
488
- @else if $var == "query" { @return $_gridle-state-04-query; }
489
- @else if $var == "classes" { @return $_gridle-state-04-classes; }
490
- } @else if $index == 5 {
491
- @if $var == "name" { @return $_gridle-state-05-name; }
492
- @else if $var == "min-width" { @return $_gridle-state-05-min-width; }
493
- @else if $var == "max-width" { @return $_gridle-state-05-max-width; }
494
- @else if $var == "query" { @return $_gridle-state-05-query; }
495
- @else if $var == "classes" { @return $_gridle-state-05-classes; }
496
- } @else if $index == 6 {
497
- @if $var == "name" { @return $_gridle-state-06-name; }
498
- @else if $var == "min-width" { @return $_gridle-state-06-min-width; }
499
- @else if $var == "max-width" { @return $_gridle-state-06-max-width; }
500
- @else if $var == "query" { @return $_gridle-state-06-query; }
501
- @else if $var == "classes" { @return $_gridle-state-06-classes; }
502
- } @else if $index == 7 {
503
- @if $var == "name" { @return $_gridle-state-07-name; }
504
- @else if $var == "min-width" { @return $_gridle-state-07-min-width; }
505
- @else if $var == "max-width" { @return $_gridle-state-07-max-width; }
506
- @else if $var == "query" { @return $_gridle-state-07-query; }
507
- @else if $var == "classes" { @return $_gridle-state-07-classes; }
508
- } @else if $index == 8 {
509
- @if $var == "name" { @return $_gridle-state-08-name; }
510
- @else if $var == "min-width" { @return $_gridle-state-08-min-width; }
511
- @else if $var == "max-width" { @return $_gridle-state-08-max-width; }
512
- @else if $var == "query" { @return $_gridle-state-08-query; }
513
- @else if $var == "classes" { @return $_gridle-state-08-classes; }
514
- } @else if $index == 9 {
515
- @if $var == "name" { @return $_gridle-state-09-name; }
516
- @else if $var == "min-width" { @return $_gridle-state-09-min-width; }
517
- @else if $var == "max-width" { @return $_gridle-state-09-max-width; }
518
- @else if $var == "query" { @return $_gridle-state-09-query; }
519
- @else if $var == "classes" { @return $_gridle-state-09-classes; }
520
- } @else if $index == 10 {
521
- @if $var == "name" { @return $_gridle-state-10-name; }
522
- @else if $var == "min-width" { @return $_gridle-state-10-min-width; }
523
- @else if $var == "max-width" { @return $_gridle-state-10-max-width; }
524
- @else if $var == "query" { @return $_gridle-state-10-query; }
525
- @else if $var == "classes" { @return $_gridle-state-10-classes; }
526
- } @else if $index == 11 {
527
- @if $var == "name" { @return $_gridle-state-11-name; }
528
- @else if $var == "min-width" { @return $_gridle-state-11-min-width; }
529
- @else if $var == "max-width" { @return $_gridle-state-11-max-width; }
530
- @else if $var == "query" { @return $_gridle-state-11-query; }
531
- @else if $var == "classes" { @return $_gridle-state-11-classes; }
532
- } @else if $index == 12 {
533
- @if $var == "name" { @return $_gridle-state-12-name; }
534
- @else if $var == "min-width" { @return $_gridle-state-12-min-width; }
535
- @else if $var == "max-width" { @return $_gridle-state-12-max-width; }
536
- @else if $var == "query" { @return $_gridle-state-12-query; }
537
- @else if $var == "classes" { @return $_gridle-state-12-classes; }
538
- } @else if $index == 13 {
539
- @if $var == "name" { @return $_gridle-state-13-name; }
540
- @else if $var == "min-width" { @return $_gridle-state-13-min-width; }
541
- @else if $var == "max-width" { @return $_gridle-state-13-max-width; }
542
- @else if $var == "query" { @return $_gridle-state-13-query; }
543
- @else if $var == "classes" { @return $_gridle-state-13-classes; }
544
- } @else if $index == 14 {
545
- @if $var == "name" { @return $_gridle-state-14-name; }
546
- @else if $var == "min-width" { @return $_gridle-state-14-min-width; }
547
- @else if $var == "max-width" { @return $_gridle-state-14-max-width; }
548
- @else if $var == "query" { @return $_gridle-state-14-query; }
549
- @else if $var == "classes" { @return $_gridle-state-14-classes; }
550
- } @else if $index == 15 {
551
- @if $var == "name" { @return $_gridle-state-15-name; }
552
- @else if $var == "min-width" { @return $_gridle-state-15-min-width; }
553
- @else if $var == "max-width" { @return $_gridle-state-15-max-width; }
554
- @else if $var == "query" { @return $_gridle-state-15-query; }
555
- @else if $var == "classes" { @return $_gridle-state-15-classes; }
556
- }
557
- }
558
100
 
101
+ // |------------------------------------------------------
102
+ // |------------------------------------------------------
103
+ // | Settings mixins
104
+ // |------------------------------------------------------
105
+ // |------------------------------------------------------
559
106
 
560
- // Get the index of an media query by name
561
- // @param String $name The nme of the media query
562
- // @return int The index of the media query
563
- @function _gridle_get_media_query_index_by_name(
564
- $name
565
- ) {
566
- @if $name == null {
567
- @return null;
568
- }
569
- @if $_gridle-state-01-name == $name { @return 1; }
570
- @else if $_gridle-state-02-name == $name { @return 2; }
571
- @else if $_gridle-state-03-name == $name { @return 3; }
572
- @else if $_gridle-state-04-name == $name { @return 4; }
573
- @else if $_gridle-state-05-name == $name { @return 5; }
574
- @else if $_gridle-state-06-name == $name { @return 6; }
575
- @else if $_gridle-state-07-name == $name { @return 7; }
576
- @else if $_gridle-state-08-name == $name { @return 8; }
577
- @else if $_gridle-state-09-name == $name { @return 9; }
578
- @else if $_gridle-state-10-name == $name { @return 10; }
579
- @else if $_gridle-state-11-name == $name { @return 11; }
580
- @else if $_gridle-state-12-name == $name { @return 12; }
581
- @else if $_gridle-state-13-name == $name { @return 13; }
582
- @else if $_gridle-state-14-name == $name { @return 14; }
583
- @else if $_gridle-state-15-name == $name { @return 15; }
584
- @else { @return null; }
585
- }
107
+ @import 'settings-mixins';
586
108
 
587
109
 
588
110
 
@@ -593,1162 +115,15 @@ $_gridle-state-15-classes : true !default;
593
115
  // |------------------------------------------------------
594
116
  // |------------------------------------------------------
595
117
 
596
-
597
- // Register an state :
598
- @mixin gridle_register_state(
599
- $name,
600
- $min-width-or-query : null,
601
- $max-width-or-classes-generation : null,
602
- $classes-generation : true
603
- ) {
604
-
605
- // register new state :
606
- @if $_gridle-state-01-name == null {
607
- $_gridle-state-01-name : $name;
608
- @if type-of($min-width-or-query) != string and type-of($max-width-or-classes-generation) != bool {
609
- $_gridle-state-01-min-width : $min-width-or-query;
610
- $_gridle-state-01-max-width : $max-width-or-classes-generation;
611
- $_gridle-state-01-classes : $classes-generation;
612
- } @else if type-of($min-width-or-query) == string {
613
- $_gridle-state-01-query : $min-width-or-query;
614
- @if type-of($max-width-or-classes-generation) == bool {
615
- $_gridle-state-01-classes : $max-width-or-classes-generation;
616
- }
617
- }
618
- } @else if $_gridle-state-02-name == null {
619
- $_gridle-state-02-name : $name;
620
- @if type-of($min-width-or-query) != string and type-of($max-width-or-classes-generation) != bool {
621
- $_gridle-state-02-min-width : $min-width-or-query;
622
- $_gridle-state-02-max-width : $max-width-or-classes-generation;
623
- $_gridle-state-02-classes : $classes-generation;
624
- } @else if type-of($min-width-or-query) == string {
625
- $_gridle-state-02-query : $min-width-or-query;
626
- @if type-of($max-width-or-classes-generation) == bool {
627
- $_gridle-state-02-classes : $max-width-or-classes-generation;
628
- }
629
- }
630
- } @else if $_gridle-state-03-name == null {
631
- $_gridle-state-03-name : $name;
632
- @if type-of($min-width-or-query) != string and type-of($max-width-or-classes-generation) != bool {
633
- $_gridle-state-03-min-width : $min-width-or-query;
634
- $_gridle-state-03-max-width : $max-width-or-classes-generation;
635
- $_gridle-state-03-classes : $classes-generation;
636
- } @else if type-of($min-width-or-query) == string {
637
- $_gridle-state-03-query : $min-width-or-query;
638
- @if type-of($max-width-or-classes-generation) == bool {
639
- $_gridle-state-03-classes : $max-width-or-classes-generation;
640
- }
641
- }
642
- } @else if $_gridle-state-04-name == null {
643
- $_gridle-state-04-name : $name;
644
- @if type-of($min-width-or-query) != string and type-of($max-width-or-classes-generation) != bool {
645
- $_gridle-state-04-min-width : $min-width-or-query;
646
- $_gridle-state-04-max-width : $max-width-or-classes-generation;
647
- $_gridle-state-04-classes : $classes-generation;
648
- } @else if type-of($min-width-or-query) == string {
649
- $_gridle-state-04-query : $min-width-or-query;
650
- @if type-of($max-width-or-classes-generation) == bool {
651
- $_gridle-state-04-classes : $max-width-or-classes-generation;
652
- }
653
- }
654
- } @else if $_gridle-state-05-name == null {
655
- $_gridle-state-05-name : $name;
656
- @if type-of($min-width-or-query) != string and type-of($max-width-or-classes-generation) != bool {
657
- $_gridle-state-05-min-width : $min-width-or-query;
658
- $_gridle-state-05-max-width : $max-width-or-classes-generation;
659
- $_gridle-state-05-classes : $classes-generation;
660
- } @else if type-of($min-width-or-query) == string {
661
- $_gridle-state-05-query : $min-width-or-query;
662
- @if type-of($max-width-or-classes-generation) == bool {
663
- $_gridle-state-05-classes : $max-width-or-classes-generation;
664
- }
665
- }
666
- } @else if $_gridle-state-06-name == null {
667
- $_gridle-state-06-name : $name;
668
- @if type-of($min-width-or-query) != string and type-of($max-width-or-classes-generation) != bool {
669
- $_gridle-state-06-min-width : $min-width-or-query;
670
- $_gridle-state-06-max-width : $max-width-or-classes-generation;
671
- $_gridle-state-06-classes : $classes-generation;
672
- } @else if type-of($min-width-or-query) == string {
673
- $_gridle-state-06-query : $min-width-or-query;
674
- @if type-of($max-width-or-classes-generation) == bool {
675
- $_gridle-state-06-classes : $max-width-or-classes-generation;
676
- }
677
- }
678
- } @else if $_gridle-state-07-name == null {
679
- $_gridle-state-07-name : $name;
680
- @if type-of($min-width-or-query) != string and type-of($max-width-or-classes-generation) != bool {
681
- $_gridle-state-07-min-width : $min-width-or-query;
682
- $_gridle-state-07-max-width : $max-width-or-classes-generation;
683
- $_gridle-state-07-classes : $classes-generation;
684
- } @else if type-of($min-width-or-query) == string {
685
- $_gridle-state-07-query : $min-width-or-query;
686
- @if type-of($max-width-or-classes-generation) == bool {
687
- $_gridle-state-07-classes : $max-width-or-classes-generation;
688
- }
689
- }
690
- } @else if $_gridle-state-08-name == null {
691
- $_gridle-state-08-name : $name;
692
- @if type-of($min-width-or-query) != string and type-of($max-width-or-classes-generation) != bool {
693
- $_gridle-state-08-min-width : $min-width-or-query;
694
- $_gridle-state-08-max-width : $max-width-or-classes-generation;
695
- $_gridle-state-08-classes : $classes-generation;
696
- } @else if type-of($min-width-or-query) == string {
697
- $_gridle-state-08-query : $min-width-or-query;
698
- @if type-of($max-width-or-classes-generation) == bool {
699
- $_gridle-state-08-classes : $max-width-or-classes-generation;
700
- }
701
- }
702
- } @else if $_gridle-state-09-name == null {
703
- $_gridle-state-09-name : $name;
704
- @if type-of($min-width-or-query) != string and type-of($max-width-or-classes-generation) != bool {
705
- $_gridle-state-09-min-width : $min-width-or-query;
706
- $_gridle-state-09-max-width : $max-width-or-classes-generation;
707
- $_gridle-state-09-classes : $classes-generation;
708
- } @else if type-of($min-width-or-query) == string {
709
- $_gridle-state-09-query : $min-width-or-query;
710
- @if type-of($max-width-or-classes-generation) == bool {
711
- $_gridle-state-09-classes : $max-width-or-classes-generation;
712
- }
713
- }
714
- } @else if $_gridle-state-10-name == null {
715
- $_gridle-state-10-name : $name;
716
- @if type-of($min-width-or-query) != string and type-of($max-width-or-classes-generation) != bool {
717
- $_gridle-state-10-min-width : $min-width-or-query;
718
- $_gridle-state-10-max-width : $max-width-or-classes-generation;
719
- $_gridle-state-10-classes : $classes-generation;
720
- } @else if type-of($min-width-or-query) == string {
721
- $_gridle-state-10-query : $min-width-or-query;
722
- @if type-of($max-width-or-classes-generation) == bool {
723
- $_gridle-state-10-classes : $max-width-or-classes-generation;
724
- }
725
- }
726
- } @else if $_gridle-state-11-name == null {
727
- $_gridle-state-11-name : $name;
728
- @if type-of($min-width-or-query) != string and type-of($max-width-or-classes-generation) != bool {
729
- $_gridle-state-11-min-width : $min-width-or-query;
730
- $_gridle-state-11-max-width : $max-width-or-classes-generation;
731
- $_gridle-state-11-classes : $classes-generation;
732
- } @else if type-of($min-width-or-query) == string {
733
- $_gridle-state-11-query : $min-width-or-query;
734
- @if type-of($max-width-or-classes-generation) == bool {
735
- $_gridle-state-11-classes : $max-width-or-classes-generation;
736
- }
737
- }
738
- } @else if $_gridle-state-12-name == null {
739
- $_gridle-state-12-name : $name;
740
- @if type-of($min-width-or-query) != string and type-of($max-width-or-classes-generation) != bool {
741
- $_gridle-state-12-min-width : $min-width-or-query;
742
- $_gridle-state-12-max-width : $max-width-or-classes-generation;
743
- $_gridle-state-12-classes : $classes-generation;
744
- } @else if type-of($min-width-or-query) == string {
745
- $_gridle-state-12-query : $min-width-or-query;
746
- @if type-of($max-width-or-classes-generation) == bool {
747
- $_gridle-state-12-classes : $max-width-or-classes-generation;
748
- }
749
- }
750
- } @else if $_gridle-state-13-name == null {
751
- $_gridle-state-13-name : $name;
752
- @if type-of($min-width-or-query) != string and type-of($max-width-or-classes-generation) != bool {
753
- $_gridle-state-13-min-width : $min-width-or-query;
754
- $_gridle-state-13-max-width : $max-width-or-classes-generation;
755
- $_gridle-state-13-classes : $classes-generation;
756
- } @else if type-of($min-width-or-query) == string {
757
- $_gridle-state-13-query : $min-width-or-query;
758
- @if type-of($max-width-or-classes-generation) == bool {
759
- $_gridle-state-13-classes : $max-width-or-classes-generation;
760
- }
761
- }
762
- } @else if $_gridle-state-14-name == null {
763
- $_gridle-state-14-name : $name;
764
- @if type-of($min-width-or-query) != string and type-of($max-width-or-classes-generation) != bool {
765
- $_gridle-state-14-min-width : $min-width-or-query;
766
- $_gridle-state-14-max-width : $max-width-or-classes-generation;
767
- $_gridle-state-14-classes : $classes-generation;
768
- } @else if type-of($min-width-or-query) == string {
769
- $_gridle-state-14-query : $min-width-or-query;
770
- @if type-of($max-width-or-classes-generation) == bool {
771
- $_gridle-state-14-classes : $max-width-or-classes-generation;
772
- }
773
- }
774
- } @else if $_gridle-state-15-name == null {
775
- $_gridle-state-15-name : $name;
776
- @if type-of($min-width-or-query) != string and type-of($max-width-or-classes-generation) != bool {
777
- $_gridle-state-15-min-width : $min-width-or-query;
778
- $_gridle-state-15-max-width : $max-width-or-classes-generation;
779
- $_gridle-state-15-classes : $classes-generation;
780
- } @else if type-of($min-width-or-query) == string {
781
- $_gridle-state-15-query : $min-width-or-query;
782
- @if type-of($max-width-or-classes-generation) == bool {
783
- $_gridle-state-15-classes : $max-width-or-classes-generation;
784
- }
785
- }
786
- }
787
- }
788
-
789
-
790
- // Register default states :
791
- @mixin gridle_register_default_states() {
792
- // register mobile and tablet states :
793
- @include gridle_register_state("mobile",null,480px);
794
- @include gridle_register_state("tablet",481px,1024px);
795
- }
796
-
797
-
798
- // Responsive helpers mixins :
799
- @mixin gridle_state(
800
- $state-or-min-width,
801
- $max-width : null,
802
- $has-parent : true
803
- ) {
804
-
805
- // query list :
806
- $query : ();
807
-
808
- // loop on each states :
809
- @each $_state-or-min-width in $state-or-min-width {
810
-
811
- // check if is a state :
812
- @if type-of($_state-or-min-width) == string and $gridle-html-states-classes {
813
- // html class :
814
- @if $has-parent {
815
- html#{_gridle_prefixed_class("#{$_state-or-min-width}")} & { @content; }
816
- } @else {
817
- html#{_gridle_prefixed_class("#{$_state-or-min-width}")} { @content; }
818
- }
819
- }
820
-
821
- // get the media query :
822
- $q : _get_media_query_for_state($_state-or-min-width, $max-width);
823
- @if $q {
824
- $query : append($query, unquote("#{$q}"), comma);
825
- }
826
- }
827
-
828
- // check and print media query :
829
- @if length($query) {
830
- @media #{$query} {
831
- @content;
832
- }
833
- }
834
- }
835
-
118
+ @import 'mixins';
836
119
 
837
120
 
838
- // Container mixin :
839
- @mixin gridle_container(
840
- ) {
841
- @include _gridle_container_common();
842
- }
843
121
 
844
122
 
845
- // Grid mixin :
846
- // Set the width of the specified grid column :
847
- @mixin gridle(
848
- $columns : $gridle-columns-count,
849
- $state-context : null,
850
- $state : null
851
- ) {
852
- // common :
853
- @include _gridle_grid_common();
854
- // variables :
855
- $context : $gridle-columns-count;
856
- @if type-of($state-context) == number {
857
- $state : $state;
858
- $context : $state-context;
859
- } @else {
860
- $state : $state-context;
861
- }
862
- // check if need media query :
863
- @if $state {
864
- @include gridle_state($state) {
865
- @include _gridle($columns, $state, $context);
866
- }
867
- } @else {
868
- @include _gridle($columns,$state,$context);
869
- }
870
- }
871
- @mixin _gridle(
872
- $columns : $gridle-columns-count,
873
- $state : null,
874
- $context : $gridle-columns-count
875
- ) {
876
- // vars :
877
- $width : percentage(1 / $context * $columns);
878
- width:$width;
879
-
880
- // ie7 support :
881
- @if $gridle-ie7-support == true {
882
- *width: expression((this.parentNode.clientWidth/#{$context}*#{$columns} - parseInt(this.currentStyle['paddingLeft']) - parseInt(this.currentStyle['paddingRight'])) + 'px');
883
- }
884
-
885
- // debug :
886
- @if $gridle-debug == true and $gridle-debug-show-class-names == true {
887
- #{$gridle-debug-selector} {
888
- &:before {
889
- content:"grid-#{$state}-#{$columns * $gridle-name-multiplicator}";
890
- }
891
- &.parent:before {
892
- content:"grid-parent-#{$state}-#{$columns * $gridle-name-multiplicator}";
893
- }
894
- }
895
- }
896
- }
897
-
898
-
899
- // push :
900
- // Push the element of the count of column wanted
901
- @mixin gridle_push(
902
- $columns : $gridle-columns-count,
903
- $state-context : null,
904
- $state : null
905
- ) {
906
- // common :
907
- @include _gridle_push_common();
908
- // variables :
909
- $context : $gridle-columns-count;
910
- @if type-of($state-context) == number {
911
- $state : $state;
912
- $context : $state-context;
913
- } @else {
914
- $state : $state-context;
915
- }
916
- // check if need media query :
917
- @if $state {
918
- @include gridle_state($state) {
919
- @include _gridle_push($columns,$state,$context);
920
- }
921
- } @else {
922
- @include _gridle_push($columns,$state,$context);
923
- }
924
- }
925
- @mixin _gridle_push(
926
- $columns : $gridle-columns-count,
927
- $state : null,
928
- $context : $gridle-columns-count
929
- ) {
930
- // vars :
931
- $width : percentage(1 / $context) * $columns;
932
- @if $gridle-direction == rtl { $width : $width*-1; }
933
- left:$width;
934
-
935
- // debug css :
936
- @if $gridle-debug == true and $gridle-debug-show-class-names == true {
937
- #{$gridle-debug-selector} {
938
- &:after {
939
- content:"push-#{$state}-#{$columns * $gridle-name-multiplicator}" !important;
940
- }
941
- }
942
- }
943
- }
944
-
945
-
946
- // pull :
947
- // Pull the element of the count of column wanted
948
- @mixin gridle_pull(
949
- $columns : $gridle-columns-count,
950
- $state-context : null,
951
- $state : null
952
- ) {
953
- // common :
954
- @include _gridle_pull_common();
955
- // variables :
956
- $context : $gridle-columns-count;
957
- @if type-of($state-context) == number {
958
- $state : $state;
959
- $context : $state-context;
960
- } @else {
961
- $state : $state-context;
962
- }
963
- // check if need media query :
964
- @if $state {
965
- @include gridle_state($state) {
966
- @include _gridle_pull($columns,$state,$context);
967
- }
968
- } @else {
969
- @include _gridle_pull($columns,$state,$context);
970
- }
971
- }
972
- @mixin _gridle_pull(
973
- $columns : $gridle-columns-count,
974
- $state : null,
975
- $context : $gridle-columns-count
976
- ) {
977
- // vars :
978
- $width : percentage(1 / $context) * $columns;
979
- @if $gridle-direction == rtl { $width : $width*-1; }
980
- right:$width;
981
-
982
- // debug css :
983
- @if $gridle-debug == true and $gridle-debug-show-class-names == true {
984
- #{$gridle-debug-selector} {
985
- &:after {
986
- content:"pull-#{$state}-#{$columns * $gridle-name-multiplicator}" !important;
987
- }
988
- }
989
- }
990
- }
991
-
992
-
993
- // push :
994
- // Push the element of the count of column wanted
995
- @mixin gridle_prefix(
996
- $columns : $gridle-columns-count,
997
- $state-context : null,
998
- $state : null
999
- ) {
1000
- // common :
1001
- @include _gridle_prefix_common();
1002
- // variables :
1003
- $context : $gridle-columns-count;
1004
- @if type-of($state-context) == number {
1005
- $state : $state;
1006
- $context : $state-context;
1007
- } @else {
1008
- $state : $state-context;
1009
- }
1010
- // check if need media query :
1011
- @if $state {
1012
- @include gridle_state($state) {
1013
- @include _gridle_prefix($columns,$state,$context);
1014
- }
1015
- } @else {
1016
- @include _gridle_prefix($columns,$state,$context);
1017
- }
1018
- }
1019
- @mixin _gridle_prefix(
1020
- $columns : $gridle-columns-count,
1021
- $state : null,
1022
- $context : $gridle-columns-count
1023
- ) {
1024
- // vars :
1025
- $width : percentage(1 / $context) * $columns;
1026
- @if $gridle-direction == rtl { margin-right:$width; }
1027
- @else { margin-left:$width; }
1028
-
1029
- // debug css :
1030
- @if $gridle-debug == true and $gridle-debug-show-class-names == true {
1031
- #{$gridle-debug-selector} {
1032
- &:after {
1033
- content:"prefix-#{$state}-#{$columns * $gridle-name-multiplicator}" !important;
1034
- }
1035
- }
1036
- }
1037
- }
1038
-
1039
-
1040
- // pull :
1041
- // Pull the element of the count of column wanted
1042
- @mixin gridle_suffix(
1043
- $columns : $gridle-columns-count,
1044
- $state-context : null,
1045
- $state : null
1046
- ) {
1047
- // common :
1048
- @include _gridle_suffix_common();
1049
- // variables :
1050
- $context : $gridle-columns-count;
1051
- @if type-of($state-context) == number {
1052
- $state : $state;
1053
- $context : $state-context;
1054
- } @else {
1055
- $state : $state-context;
1056
- }
1057
- // check if need media query :
1058
- @if $state {
1059
- @include gridle_state($state) {
1060
- @include _gridle_suffix($columns,$state,$context);
1061
- }
1062
- } @else {
1063
- @include _gridle_suffix($columns,$state,$context);
1064
- }
1065
- }
1066
- @mixin _gridle_suffix(
1067
- $columns : $gridle-columns-count,
1068
- $state : null,
1069
- $context : $gridle-columns-count
1070
- ) {
1071
- // vars :
1072
- $width : percentage(1 / $context) * $columns;
1073
- @if $gridle-direction == rtl { margin-left:$width; }
1074
- @else { margin-right:$width; }
1075
-
1076
- // debug css :
1077
- @if $gridle-debug == true and $gridle-debug-show-class-names == true {
1078
- #{$gridle-debug-selector} {
1079
- &:after {
1080
- content:"suffix-#{$state}-#{$columns * $gridle-name-multiplicator}" !important;
1081
- }
1082
- }
1083
- }
1084
- }
1085
-
1086
-
1087
- // Grid centered :
1088
- @mixin gridle_centered(
1089
- $state : null
1090
- ) {
1091
- // check if need media query :
1092
- @if $state {
1093
- @include gridle_state($state) {
1094
- @include _gridle_centered();
1095
- }
1096
- } @else {
1097
- @include _gridle_centered();
1098
- }
1099
- }
1100
- @mixin _gridle_centered() {
1101
- display:block !important;
1102
- float:none !important;
1103
- margin-left:auto !important;
1104
- margin-right:auto !important;
1105
- clear:both !important;
1106
- }
1107
-
1108
-
1109
- // Grid parent :
1110
- @mixin gridle_parent(
1111
- $state : null
1112
- ) {
1113
- // common :
1114
- @include _gridle_parent_common();
1115
- // check if need media query :
1116
- @if $state {
1117
- @include gridle_state($state) {
1118
- @include _gridle_parent();
1119
- }
1120
- } @else {
1121
- @include _gridle_parent();
1122
- }
1123
- }
1124
- @mixin _gridle_parent() {
1125
- @include gridle_no_gutter();
1126
- }
1127
-
1128
-
1129
- // Hide on :
1130
- // @param String $media On what state
1131
- @mixin gridle_hide(
1132
- $state : null
1133
- ) {
1134
- // check if need media query :
1135
- @if $state {
1136
- @include gridle_state($state) {
1137
- @include _gridle_hide();
1138
- }
1139
- } @else {
1140
- @include _gridle_hide();
1141
- }
1142
- }
1143
- @mixin _gridle_hide() {
1144
- display:none;
1145
- }
1146
-
1147
-
1148
- // Not visible on :
1149
- // @param String $media What to hide (one of the 3 state classes name)
1150
- @mixin gridle_not_visible(
1151
- $state : null
1152
- ) {
1153
- // check if need media query :
1154
- @if $state {
1155
- @include gridle_state($state) {
1156
- @include _gridle_not_visible();
1157
- }
1158
- } @else {
1159
- @include _gridle_not_visible();
1160
- }
1161
- }
1162
- @mixin _gridle_not_visible() {
1163
- visibility:hidden;
1164
- }
1165
-
1166
-
1167
- // Show on
1168
- // @param String $media What to hide (one of the 3 state classes name)
1169
- @mixin gridle_show(
1170
- $state : null
1171
- ) {
1172
- // check if need media query :
1173
- @if $state {
1174
- @include gridle_state($state) {
1175
- @include _gridle_show();
1176
- }
1177
- } @else {
1178
- @include _gridle_show();
1179
- }
1180
- }
1181
- @mixin _gridle_show() {
1182
- display:block;
1183
- }
1184
-
1185
-
1186
- // Visible on :
1187
- // @param String $media On what state
1188
- @mixin gridle_visible(
1189
- $state : null
1190
- ) {
1191
- // check if need media query :
1192
- @if $state {
1193
- @include gridle_state($state) {
1194
- @include _gridle_visible();
1195
- }
1196
- } @else {
1197
- @include _gridle_visible();
1198
- }
1199
- }
1200
- @mixin _gridle_visible() {
1201
- visibility:visible;
1202
- }
1203
-
1204
-
1205
- // Gridle Right :
1206
- @mixin gridle_float(
1207
- $float-direction : left,
1208
- $state : null
1209
- ) {
1210
- // check if need media query :
1211
- @if $state {
1212
- @include gridle_state($state) {
1213
- @include gridle_float($float-direction);
1214
- }
1215
- } @else {
1216
- @include gridle_float($float-direction);
1217
- }
1218
- }
1219
- @mixin gridle_float(
1220
- $float-direction : left
1221
- ) {
1222
- float:#{$float-direction};
1223
- }
1224
-
1225
-
1226
- // Gridle clear :
1227
- // @param String $clear-direction The direction to clear
1228
- // @param String $state The state
1229
- @mixin gridle_clear(
1230
- $clear-direction : both,
1231
- $state : null
1232
- ) {
1233
- // check if need media query :
1234
- @if $state {
1235
- @include gridle_state($state) {
1236
- @include _gridle_clear($clear-direction);
1237
- }
1238
- } @else {
1239
- @include _gridle_clear($clear-direction);
1240
- }
1241
- }
1242
- @mixin _gridle_clear(
1243
- $clear-direction : both
1244
- ) {
1245
- clear:#{$clear-direction};
1246
- }
1247
-
1248
-
1249
- // Gridle no gutter :
1250
- // @param String $side The side to clear
1251
- // @param String $state The state
1252
- @mixin gridle_no_gutter(
1253
- $side : left right,
1254
- $state : null
1255
- ) {
1256
- // check if need media query :
1257
- @if $state {
1258
- @include gridle_state($state) {
1259
- @include _gridle_no_gutter($side);
1260
- }
1261
- } @else {
1262
- @include _gridle_no_gutter($side);
1263
- }
1264
- }
1265
- @mixin gridle_no_margin(
1266
- $side : left right,
1267
- $state : null
1268
- ) {
1269
- @include gridle_no_gutter($side, $state);
1270
- }
1271
- @mixin _gridle_no_gutter(
1272
- $side : left right
1273
- ) {
1274
- @each $s in $side {
1275
- padding-#{$s} : 0 !important;
1276
- }
1277
- }
1278
-
1279
-
1280
- // Gridle gutter :
1281
- // @param String $side The side to clear
1282
- // @param String $state The state
1283
- @mixin gridle_gutter(
1284
- $side : left right,
1285
- $state : null
1286
- ) {
1287
- // check if need media query :
1288
- @if $state {
1289
- @include gridle_state($state) {
1290
- @include _gridle_gutter($side);
1291
- }
1292
- } @else {
1293
- @include _gridle_gutter($side);
1294
- }
1295
- }
1296
- // shortcut :
1297
- @mixin gridle_margin(
1298
- $side : left right,
1299
- $state : null
1300
- ) {
1301
- @include gridle_gutter($side, $state);
1302
- }
1303
- @mixin _gridle_gutter(
1304
- $side : left right
1305
- ) {
1306
- @each $s in $side {
1307
- padding-#{$s} : $gridle-gutter-width / 2;
1308
- }
1309
- }
1310
-
1311
-
1312
- // Generate all helpers classes
1313
- // All the classes generated are not wrapper in gridle_state
1314
- // in this mixin... Just the names are generated accordingly to the
1315
- // requested state
1316
- @mixin _gridle_generate_helper_classes (
1317
- $state : null
1318
- ) {
1319
- // variables :
1320
- $media : '';
1321
- @if $state { $media : -#{$state}; }
1322
- @else { $media : ''; }
1323
-
1324
- // helpers :
1325
- #{_gridle_prefixed_class("hide#{$media}")} {
1326
- @include gridle_hide(null);
1327
- }
1328
- #{_gridle_prefixed_class("not-visible#{$media}")} {
1329
- @include gridle_not_visible(null);
1330
- }
1331
- #{_gridle_prefixed_class("show#{$media}")} {
1332
- @include gridle_show(null);
1333
- }
1334
- #{_gridle_prefixed_class("visible#{$media}")} {
1335
- @include gridle_visible(null);
1336
- }
1337
- #{_gridle_prefixed_class("float#{$media}-left")} {
1338
- @include gridle_float(left);
1339
- }
1340
- #{_gridle_prefixed_class("float#{$media}-right")} {
1341
- @include gridle_float(right);
1342
- }
1343
- #{_gridle_prefixed_class("clear#{$media}")} {
1344
- @include gridle_clear(both);
1345
- }
1346
- #{_gridle_prefixed_class("clear#{$media}-left")} {
1347
- @include gridle_clear(left);
1348
- }
1349
- #{_gridle_prefixed_class("clear#{$media}-right")} {
1350
- @include gridle_clear(right);
1351
- }
1352
- #{_gridle_prefixed_class("no-gutter#{$media}")},
1353
- #{_gridle_prefixed_class("no-margin#{$media}")} {
1354
- @include gridle_no_margin();
1355
- }
1356
- #{_gridle_prefixed_class("no-gutter#{$media}-left")},
1357
- #{_gridle_prefixed_class("no-margin#{$media}-left")} {
1358
- @include gridle_no_margin(left);
1359
- }
1360
- #{_gridle_prefixed_class("no-gutter#{$media}-right")},
1361
- #{_gridle_prefixed_class("no-margin#{$media}-right")} {
1362
- @include gridle_no_margin(right);
1363
- }
1364
- #{_gridle_prefixed_class("no-gutter#{$media}-top")},
1365
- #{_gridle_prefixed_class("no-margin#{$media}-top")} {
1366
- @include gridle_no_margin(top);
1367
- }
1368
- #{_gridle_prefixed_class("no-gutter#{$media}-bottom")},
1369
- #{_gridle_prefixed_class("no-margin#{$media}-bottom")} {
1370
- @include gridle_no_margin(bottom);
1371
- }
1372
- #{_gridle_prefixed_class("gutter#{$media}")},
1373
- #{_gridle_prefixed_class("margin#{$media}")} {
1374
- @include gridle_margin();
1375
- }
1376
- #{_gridle_prefixed_class("gutter#{$media}-left")},
1377
- #{_gridle_prefixed_class("margin#{$media}-left")} {
1378
- @include gridle_margin(left);
1379
- }
1380
- #{_gridle_prefixed_class("gutter#{$media}-right")},
1381
- #{_gridle_prefixed_class("margin#{$media}-right")} {
1382
- @include gridle_margin(right);
1383
- }
1384
- #{_gridle_prefixed_class("gutter#{$media}-top")},
1385
- #{_gridle_prefixed_class("margin#{$media}-top")} {
1386
- @include gridle_margin(top);
1387
- }
1388
- #{_gridle_prefixed_class("gutter#{$media}-bottom")},
1389
- #{_gridle_prefixed_class("margin#{$media}-bottom")} {
1390
- @include gridle_margin(bottom);
1391
- }
1392
- #{_gridle_prefixed_class("auto-height#{$media}")} {
1393
- height:inherit;
1394
- }
1395
- #{_gridle_prefixed_class("centered#{$media}")} {
1396
- @include gridle_centered(null);
1397
- }
1398
- #{_gridle_prefixed_class("parent#{$media}")} {
1399
- @include _gridle_parent(); // gridle_parent contain extend so can not be here in a media query
1400
- }
1401
-
1402
- // debug colors :
1403
- @if $gridle-debug {
1404
- // debug color classes :
1405
- #{_gridle_prefixed_class("debug-color#{$media}-1")} {
1406
- #{$gridle-debug-selector} {
1407
- background-color : #edeeb2;
1408
- }
1409
- }
1410
- #{_gridle_prefixed_class("debug-color#{$media}-2")} {
1411
- #{$gridle-debug-selector} {
1412
- background-color : #fae4a7;
1413
- }
1414
- }
1415
- #{_gridle_prefixed_class("debug-color#{$media}-3")} {
1416
- #{$gridle-debug-selector} {
1417
- background-color : #f5eacc;
1418
- }
1419
- }
1420
- #{_gridle_prefixed_class("debug-color#{$media}-4")} {
1421
- #{$gridle-debug-selector} {
1422
- background-color : #eebdb2;
1423
- }
1424
- }
1425
- #{_gridle_prefixed_class("debug-color#{$media}-5")} {
1426
- #{$gridle-debug-selector} {
1427
- background-color : #d4b2ee;
1428
- }
1429
- }
1430
- #{_gridle_prefixed_class("debug-color#{$media}-6")} {
1431
- #{$gridle-debug-selector} {
1432
- background-color : #b2d8ee;
1433
- }
1434
- }
1435
- }
1436
- }
1437
-
1438
-
1439
- // generate settings json :
1440
- @mixin gridle_generate_json_settings(
1441
- $scope : default
1442
- ) {
1443
-
1444
- // settings content :
1445
- $gridle-settings-states : "{";
1446
-
1447
- // generate all classes for differents media queries :
1448
- @for $i from 1 through 15 {
1449
- // setup vars :
1450
- $media : _gridle_get_media_query_vars($i,"name");
1451
- $classes : _gridle_get_media_query_vars($i,"classes");
1452
-
1453
- // generate all media queries grid classes :
1454
- @if $media and $classes == true {
1455
-
1456
- // manage body query :
1457
- $body-query : _get_media_query_for_state($media);
1458
- @if $body-query {
1459
- @if $i == 1 {
1460
- $gridle-settings-states : "#{$gridle-settings-states}\"#{$media}\":\"#{$body-query}\"";
1461
- } @else {
1462
- $gridle-settings-states : "#{$gridle-settings-states},\"#{$media}\":\"#{$body-query}\"";
1463
- }
1464
- }
1465
-
1466
- }
1467
- }
1468
-
1469
- // usefull states :
1470
- @if $gridle-generate-useful-states-classes != null {
1471
- @each $state in $gridle-generate-useful-states-classes {
1472
-
1473
- // manage body query :
1474
- $body-query : _get_media_query_for_state($state);
1475
- @if $body-query {
1476
- $gridle-settings-states : "#{$gridle-settings-states},\"#{$state}\":\"#{$body-query}\"";
1477
- }
1478
- }
1479
- }
1480
-
1481
- // generate settings json :
1482
- $gridle-settings-states : "#{$gridle-settings-states}}";
1483
- $gridle-settings : "{";
1484
- $gridle-settings : "#{$gridle-settings} \"states\" : #{$gridle-settings-states}";
1485
- $gridle-settings : "#{$gridle-settings}, \"columnsCount\" : #{$gridle-columns-count}";
1486
- $gridle-settings : "#{$gridle-settings}, \"gutterWidth\" : \"#{$gridle-gutter-width}\"";
1487
- $gridle-settings : "#{$gridle-settings}, \"nameMultiplicator\" : #{$gridle-name-multiplicator}";
1488
- $gridle-settings : "#{$gridle-settings}, \"direction\" : \"#{$gridle-direction}\"";
1489
- $gridle-settings : "#{$gridle-settings}, \"ie7Support\" : #{$gridle-ie7-support}";
1490
- $gridle-settings : "#{$gridle-settings}, \"debug\" : #{$gridle-debug}";
1491
- $gridle-settings : "#{$gridle-settings}, \"debugShowClassNames\" : #{$gridle-debug-show-class-names}";
1492
- $gridle-settings : "#{$gridle-settings}, \"htmlStatesClasses\" : #{$gridle-html-states-classes}";
1493
- $gridle-settings : "#{$gridle-settings}, \"generateHelpersClasses\" : #{$gridle-generate-helpers-classes}";
1494
- $gridle-settings : "#{$gridle-settings}, \"generatePushClasses\" : #{$gridle-generate-push-classes}";
1495
- $gridle-settings : "#{$gridle-settings}, \"generatePullClasses\" : #{$gridle-generate-pull-classes}";
1496
- $gridle-settings : "#{$gridle-settings}, \"generatePrefixClasses\" : #{$gridle-generate-prefix-classes}";
1497
- $gridle-settings : "#{$gridle-settings}, \"generateSuffixClasses\" : #{$gridle-generate-suffix-classes}";
1498
- $gridle-settings : "#{$gridle-settings}, \"classPrefix\" : \"#{$gridle-class-prefix}\"";
1499
- $useful-states-classes : "[";
1500
- @for $i from 1 through length($gridle-generate-useful-states-classes) {
1501
- @if $i > 1 {
1502
- $useful-states-classes : "#{$useful-states-classes},";
1503
- }
1504
- $useful-states-classes : "#{$useful-states-classes}\"#{nth($gridle-generate-useful-states-classes,$i)}\"";
1505
- }
1506
- $useful-states-classes : "#{$useful-states-classes}]";
1507
- $gridle-settings : "#{$gridle-settings}, \"generateUsefulStatesClasses\" : #{$useful-states-classes}";
1508
- $gridle-settings : "#{$gridle-settings}}";
1509
- #gridle-settings-#{$scope} {
1510
- content : $gridle-settings;
1511
- }
1512
- }
1513
-
1514
-
1515
- // gridle mixin :
1516
- // Generate all the classes needed for a grid
1517
- @mixin gridle_generate_classes(
1518
- $scope : null
1519
- ) {
1520
- // check if a scope exist :
1521
- @if $scope {
1522
- // wrapp grid into scope :
1523
- .#{$scope} {
1524
- @include _gridle_generate_classes(true);
1525
- }
1526
- } @else {
1527
- // generate classes :
1528
- @include _gridle_generate_classes(false);
1529
- }
1530
- }
1531
- @mixin _gridle_generate_classes(
1532
- $has-parent
1533
- ) {
1534
-
1535
- // Windows 8 fix for snap mode :
1536
- @media screen and (max-width: 400px) {
1537
- @-ms-viewport { width: device-width; }
1538
- }
1539
-
1540
- // generate container class :
1541
- $container-selector : ();
1542
- $container-selector : $container-selector, unquote("#{_gridle_prefixed_class("container")}, #{_gridle_prefixed_class("container-#{$gridle-columns-count}")}");
1543
- #{$container-selector} {
1544
- @include gridle_container();
1545
- }
1546
-
1547
- // parent common css :
1548
- $parentSelector : "#{"#{$gridle-class-prefix}parent"}";
1549
- $gridSelector : "#{"#{$gridle-class-prefix}grid-"}";
1550
- [class*="#{$gridSelector}"][class*="#{$parentSelector}"] {
1551
- @extend %gridle-clearfix;
1552
- @extend %gridle-parent-common;
1553
- }
1554
-
1555
- // generate all grid-x classes :
1556
- @for $i from 0 through $gridle-columns-count {
1557
-
1558
- // variables :
1559
- $calculatedSelector : "#{$i*$gridle-name-multiplicator}";
1560
-
1561
- // classes :
1562
- #{_gridle_prefixed_class("grid-#{$calculatedSelector}")} {
1563
- @include _gridle($i);
1564
- }
1565
- @if $gridle-generate-push-classes == true {
1566
- #{_gridle_prefixed_class("push-#{$calculatedSelector}")} {
1567
- @include _gridle_push($i);
1568
- }
1569
- }
1570
- @if $gridle-generate-pull-classes == true {
1571
- #{_gridle_prefixed_class("pull-#{$calculatedSelector}")} {
1572
- @include _gridle_pull($i);
1573
- }
1574
- }
1575
- @if $gridle-generate-prefix-classes == true {
1576
- #{_gridle_prefixed_class("prefix-#{$calculatedSelector}")} {
1577
- @include _gridle_prefix($i);
1578
- }
1579
- }
1580
- @if $gridle-generate-suffix-classes == true {
1581
- #{_gridle_prefixed_class("suffix-#{$calculatedSelector}")} {
1582
- @include _gridle_suffix($i);
1583
- }
1584
- }
1585
- }
1586
-
1587
- // helpers classes :
1588
- @if $gridle-generate-helpers-classes == true {
1589
- @include _gridle_generate_helper_classes();
1590
- }
1591
-
1592
- // generate all selector for extends :
1593
- $push-common-selector : ();
1594
- $pull-common-selector : ();
1595
- $prefix-common-selector : ();
1596
- $suffix-common-selector : ();
1597
- $common-selector : ();
1598
- @for $i from 0 through $gridle-columns-count {
1599
-
1600
- // variables :
1601
- $calculatedSelector : "#{$i*$gridle-name-multiplicator}";
1602
-
1603
- // selectors :
1604
- $push-common-selector : append( $push-common-selector, unquote("#{_gridle_prefixed_class("push-#{$calculatedSelector}")}"), comma );
1605
- $pull-common-selector : append( $pull-common-selector, unquote("#{_gridle_prefixed_class("pull-#{$calculatedSelector}")}"), comma );
1606
- $prefix-common-selector : append( $prefix-common-selector, unquote("#{_gridle_prefixed_class("prefix-#{$calculatedSelector}")}"), comma );
1607
- $suffix-common-selector : append( $suffix-common-selector, unquote("#{_gridle_prefixed_class("suffix-#{$calculatedSelector}")}"), comma );
1608
- $common-selector : append( $common-selector, unquote("#{_gridle_prefixed_class("grid-#{$calculatedSelector}")}"), comma );
1609
-
1610
- // generate all classes for media queries :
1611
- @for $j from 1 through 15 {
1612
- // setup vars :
1613
- $media : _gridle_get_media_query_vars($j,"name");
1614
- $classes : _gridle_get_media_query_vars($j,"classes");
1615
-
1616
- // generate classes :
1617
- @if $media and $classes == true {
1618
-
1619
- $push-common-selector : append( $push-common-selector, unquote("#{_gridle_prefixed_class("push-#{$media}-#{$calculatedSelector}")}"), comma );
1620
- $pull-common-selector : append( $pull-common-selector, unquote("#{_gridle_prefixed_class("pull-#{$media}-#{$calculatedSelector}")}"), comma );
1621
- $prefix-common-selector : append( $prefix-common-selector, unquote("#{_gridle_prefixed_class("prefix-#{$media}-#{$calculatedSelector}")}"), comma );
1622
- $suffix-common-selector : append( $suffix-common-selector, unquote("#{_gridle_prefixed_class("suffix-#{$media}-#{$calculatedSelector}")}"), comma );
1623
- $common-selector : append( $common-selector, unquote("#{_gridle_prefixed_class("grid-#{$media}-#{$calculatedSelector}")}"), comma );
1624
- }
1625
- }
1626
-
1627
- // generate all classes for usefull states :
1628
- @if $gridle-generate-useful-states-classes != null {
1629
- @each $state in $gridle-generate-useful-states-classes {
1630
- $push-common-selector : append( $push-common-selector, unquote("#{_gridle_prefixed_class("push-#{$state}-#{$calculatedSelector}")}"), comma );
1631
- $pull-common-selector : append( $pull-common-selector, unquote("#{_gridle_prefixed_class("pull-#{$state}-#{$calculatedSelector}")}"), comma );
1632
- $prefix-common-selector : append( $prefix-common-selector, unquote("#{_gridle_prefixed_class("prefix-#{$state}-#{$calculatedSelector}")}"), comma );
1633
- $suffix-common-selector : append( $suffix-common-selector, unquote("#{_gridle_prefixed_class("suffix-#{$state}-#{$calculatedSelector}")}"), comma );
1634
- $common-selector : append( $common-selector, unquote("#{_gridle_prefixed_class("grid-#{$state}-#{$calculatedSelector}")}"), comma );
1635
- }
1636
- }
1637
- }
1638
-
1639
- // common css :
1640
- #{$push-common-selector} {
1641
- @include _gridle_push_common();
1642
- }
1643
- #{$pull-common-selector} {
1644
- @include _gridle_pull_common();
1645
- }
1646
- #{$prefix-common-selector} {
1647
- @include _gridle_prefix_common();
1648
- }
1649
- #{$suffix-common-selector} {
1650
- @include _gridle_suffix_common();
1651
- }
1652
- #{$common-selector} {
1653
- @include _gridle_grid_common();
1654
- }
1655
-
1656
- // generate all classes for differents media queries :
1657
- @for $i from 1 through 15 {
1658
- // setup vars :
1659
- $media : _gridle_get_media_query_vars($i,"name");
1660
- $classes : _gridle_get_media_query_vars($i,"classes");
1661
-
1662
- // generate all media queries grid classes :
1663
- @if $media and $classes == true {
1664
-
1665
- // generate all the classes :
1666
- @include gridle_state($media, null, $has-parent) {
1667
-
1668
- @for $j from 0 through $gridle-columns-count {
1669
-
1670
- // variables :
1671
- $calculatedSelector : "#{$j*$gridle-name-multiplicator}";
1672
-
1673
- // classes :
1674
- #{_gridle_prefixed_class("grid-#{$media}-#{$calculatedSelector}")} {
1675
- @include _gridle($j,$media);
1676
- }
1677
- @if $gridle-generate-push-classes == true {
1678
- #{_gridle_prefixed_class("push-#{$media}-#{$calculatedSelector}")} {
1679
- @include _gridle_push($j,$media);
1680
- }
1681
- }
1682
- @if $gridle-generate-pull-classes == true {
1683
- #{_gridle_prefixed_class("pull-#{$media}-#{$calculatedSelector}")} {
1684
- @include _gridle_pull($j,$media);
1685
- }
1686
- }
1687
- @if $gridle-generate-prefix-classes == true {
1688
- #{_gridle_prefixed_class("prefix-#{$media}-#{$calculatedSelector}")} {
1689
- @include _gridle_prefix($j,$media);
1690
- }
1691
- }
1692
- @if $gridle-generate-suffix-classes == true {
1693
- #{_gridle_prefixed_class("suffix-#{$media}-#{$calculatedSelector}")} {
1694
- @include _gridle_suffix($j,$media);
1695
- }
1696
- }
1697
- }
1698
-
1699
- // media queries helpers classes :
1700
- @if $gridle-generate-helpers-classes == true and $media {
1701
- @include _gridle_generate_helper_classes($media);
1702
- }
1703
- }
1704
- }
1705
- }
1706
-
1707
- // usefull states :
1708
- @if $gridle-generate-useful-states-classes != null {
1709
- @each $state in $gridle-generate-useful-states-classes {
1710
-
1711
- // creating classes :
1712
- @include gridle_state($state, null, $has-parent) {
1713
-
1714
- @for $k from 0 through $gridle-columns-count {
1715
-
1716
- // variables :
1717
- $calculatedSelector : "#{$k*$gridle-name-multiplicator}";
123
+ // |------------------------------------------------------
124
+ // |------------------------------------------------------
125
+ // | Generate mixins
126
+ // |------------------------------------------------------
127
+ // |------------------------------------------------------
1718
128
 
1719
- // classes :
1720
- #{_gridle_prefixed_class("grid-#{$state}-#{$calculatedSelector}")} {
1721
- @include _gridle($k,$state);
1722
- }
1723
- @if $gridle-generate-push-classes == true {
1724
- #{_gridle_prefixed_class("push-#{$state}-#{$calculatedSelector}")} {
1725
- @include _gridle_push($k,$state);
1726
- }
1727
- }
1728
- @if $gridle-generate-pull-classes == true {
1729
- #{_gridle_prefixed_class("pull-#{$state}-#{$calculatedSelector}")} {
1730
- @include _gridle_pull($k,$state);
1731
- }
1732
- }
1733
- @if $gridle-generate-prefix-classes == true {
1734
- #{_gridle_prefixed_class("prefix-#{$state}-#{$calculatedSelector}")} {
1735
- @include _gridle_prefix($k,$state);
1736
- }
1737
- }
1738
- @if $gridle-generate-suffix-classes == true {
1739
- #{_gridle_prefixed_class("suffix-#{$state}-#{$calculatedSelector}")} {
1740
- @include _gridle_suffix($k,$state);
1741
- }
1742
- }
1743
- }
1744
-
1745
- @if $gridle-generate-helpers-classes == true {
1746
- @include _gridle_generate_helper_classes($state);
1747
- }
1748
- }
1749
- }
1750
- }
1751
-
1752
- // generate json settings :
1753
- @include gridle_generate_json_settings();
1754
- }
129
+ @import 'generate-mixins';