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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_gridtacular.scss +71 -28
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e2804a074e4f0f656da9c7dd2126c4041b15cd6
4
- data.tar.gz: 3a8ff58951db6441b9fba7062f717418616ecdc4
3
+ metadata.gz: 5e8f6b5d6cae4dce67f760dfa3a22af4209cbff4
4
+ data.tar.gz: 517f53a64aea162ae22b6c4be59d13040f29fa14
5
5
  SHA512:
6
- metadata.gz: 7a1ae38676d7152d16d10b4a958c3d10eeed9ec5601fefbacf3b0c522d21173229f43bf3ae51c890a44444c14bef3298a4859e482719ae5b83c223bb23c7076b
7
- data.tar.gz: c0e4fb59698f8f7462aa92a75514c87e39010fbb35d1a23e00984368827b2a3663b310156936eb1d435e2b6ad6ea9be765575966262a4697d94f5443e1e8d69a
6
+ metadata.gz: 7c9f119314b944ecedc9cfaba8270904abb91eb7448fc6be0c791703c0f2c0f776045d9b49d2f61e1e40085a9107fefc2cdb3570eda4fe028e36c95add30635f
7
+ data.tar.gz: 134916534fccd606595b88af92c0f79930b9c00789319bf078067a03e2ea180f4bd462b33aa52c579c59294c3299c172df6d80362b6550a141dd5824008da7eb
data/_gridtacular.scss CHANGED
@@ -1,5 +1,8 @@
1
- //
2
- // Flexbones Grid System
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
- $grids: map-get($grid_args, grids);
273
- $column_prefix: #{'.' + $column_name};
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
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gridtacular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rory Ashford