gridtacular 0.1.1 → 0.1.2
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.
- checksums.yaml +4 -4
- data/_gridtacular.scss +71 -28
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e8f6b5d6cae4dce67f760dfa3a22af4209cbff4
|
4
|
+
data.tar.gz: 517f53a64aea162ae22b6c4be59d13040f29fa14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c9f119314b944ecedc9cfaba8270904abb91eb7448fc6be0c791703c0f2c0f776045d9b49d2f61e1e40085a9107fefc2cdb3570eda4fe028e36c95add30635f
|
7
|
+
data.tar.gz: 134916534fccd606595b88af92c0f79930b9c00789319bf078067a03e2ea180f4bd462b33aa52c579c59294c3299c172df6d80362b6550a141dd5824008da7eb
|
data/_gridtacular.scss
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
// Gridtacular
|
2
|
+
//
|
3
|
+
// Version 0.1.2
|
4
|
+
// Author: Rory Ashford (rory@roikles.com)
|
5
|
+
// Github: https://github.com/roikles/Gridtacular
|
3
6
|
|
4
7
|
// Set variable defaults
|
5
8
|
|
@@ -268,34 +271,74 @@ $debug_display: true !default;
|
|
268
271
|
|
269
272
|
}
|
270
273
|
|
274
|
+
// Check that there are defined grids
|
275
|
+
@if( map-has-key($grid_args, grids )) {
|
276
|
+
|
277
|
+
$grids: map-get($grid_args, grids);
|
278
|
+
$column_prefix: #{'.' + $column_name};
|
279
|
+
|
280
|
+
@each $grid_name, $grid_map in $grids{
|
281
|
+
|
282
|
+
// Set defaults
|
283
|
+
//
|
284
|
+
// If args are not defined the grid falls back to these values
|
285
|
+
$columns: 12 !default;
|
286
|
+
$suffix: null !default;
|
287
|
+
$breakpoint: null !default;
|
288
|
+
$gutter: 24px !default;
|
289
|
+
$debug-bg: #000 !default;
|
290
|
+
$debug-name: $grid_name !default;
|
291
|
+
|
292
|
+
// If column class has been defined
|
293
|
+
@if( map-has-key($grid_map, columns) ){
|
294
|
+
$columns: map-get($grid_map,columns);
|
295
|
+
}
|
296
|
+
|
297
|
+
// If column class has been defined
|
298
|
+
@if( map-has-key($grid_map, suffix) ){
|
299
|
+
$suffix: map-get($grid_map,suffix);
|
300
|
+
}
|
301
|
+
|
302
|
+
// If column class has been defined
|
303
|
+
@if( map-has-key($grid_map, breakpoint) ){
|
304
|
+
$breakpoint: map-get($grid_map,breakpoint);
|
305
|
+
}
|
306
|
+
|
307
|
+
// If column class has been defined
|
308
|
+
@if( map-has-key($grid_map, gutter) ){
|
309
|
+
$gutter: map-get($grid_map,gutter);
|
310
|
+
}
|
271
311
|
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
312
|
+
// Debug info
|
313
|
+
|
314
|
+
// If debug background is defined
|
315
|
+
@if( map-has-key(map-get($grid_map, debug), background) ){
|
316
|
+
$debug-bg: map-get(map-get($grid_map, debug), background);
|
317
|
+
}
|
318
|
+
|
319
|
+
// If debug name is defined
|
320
|
+
@if( map-has-key(map-get($grid_map, debug), name) ){
|
321
|
+
$debug-name: map-get(map-get($grid_map, debug), name);
|
322
|
+
}
|
323
|
+
|
324
|
+
// Include the necessary mixins to generate the grids
|
325
|
+
@include at-breakpoint($breakpoint){
|
326
|
+
|
327
|
+
@include grid($gutter);
|
328
|
+
@include grid-no-gutter($column_name,$suffix);
|
329
|
+
@include grid-columns($column_prefix,$suffix,$columns,true, true);
|
330
|
+
@include grid-push($push_prefix, $suffix, $columns);
|
331
|
+
@include grid-omega($column_prefix, $suffix);
|
332
|
+
// Display debugging info
|
333
|
+
@if( $debug_display == true ){
|
334
|
+
@include grid-debug($debug_name,$debug_bg)
|
335
|
+
}
|
277
336
|
|
278
|
-
@each $grid_name, $grid_map in $grids{
|
279
|
-
$columns: map-get($grid_map,columns);
|
280
|
-
$suffix: map-get($grid_map,suffix);
|
281
|
-
$breakpoint: map-get($grid_map,breakpoint);
|
282
|
-
$gutter: map-get($grid_map,gutter);
|
283
|
-
|
284
|
-
// Debug info
|
285
|
-
$debug-bg: map-get(map-get($grid_map, debug), background);
|
286
|
-
$debug-name: map-get(map-get($grid_map, debug), name);
|
287
|
-
|
288
|
-
// Include the necessary mixins to generate the grids
|
289
|
-
|
290
|
-
@include at-breakpoint($breakpoint){
|
291
|
-
@include grid($gutter);
|
292
|
-
@include grid-no-gutter($column_name,$suffix);
|
293
|
-
@include grid-columns($column_prefix,$suffix,$columns,true, true);
|
294
|
-
@include grid-push($push_prefix, $suffix, $columns);
|
295
|
-
@include grid-omega($column_prefix, $suffix);
|
296
|
-
@if( $debug_display == true ){
|
297
|
-
@include grid-debug($debug_name,$debug_bg)
|
298
337
|
}
|
299
|
-
}
|
338
|
+
}
|
339
|
+
|
340
|
+
} @else{
|
341
|
+
@warn "No grids defined!";
|
300
342
|
}
|
343
|
+
|
301
344
|
}
|