gridtacular 0.1.0 → 0.1.1

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 +33 -8
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a72e27a507cd1090b3861bf4c76f79670a8a4227
4
- data.tar.gz: 34bc465d1a48fdc4a4f8e2ec0e131f2f992a9790
3
+ metadata.gz: 5e2804a074e4f0f656da9c7dd2126c4041b15cd6
4
+ data.tar.gz: 3a8ff58951db6441b9fba7062f717418616ecdc4
5
5
  SHA512:
6
- metadata.gz: 9ad19517ded01f0c6a9e0ef286035d4831bb916fa5aada30ad8dc809b0c138778cc60165f2b6d6d7270a691bf44d8147f5abaeb3ebdcf86aed508694f2e511e4
7
- data.tar.gz: 9f0e221bd4a83bd3a69dbba92a6bf0756190b6e00a9f7d1a4b4726f7d627962add7344faec03f8edddd7e9d4f80a50c17aabade4709eb7f5ae857a2016ebdefa
6
+ metadata.gz: 7a1ae38676d7152d16d10b4a958c3d10eeed9ec5601fefbacf3b0c522d21173229f43bf3ae51c890a44444c14bef3298a4859e482719ae5b83c223bb23c7076b
7
+ data.tar.gz: c0e4fb59698f8f7462aa92a75514c87e39010fbb35d1a23e00984368827b2a3663b310156936eb1d435e2b6ad6ea9be765575966262a4697d94f5443e1e8d69a
data/_gridtacular.scss CHANGED
@@ -1,9 +1,11 @@
1
1
  //
2
2
  // Flexbones Grid System
3
- //
4
- // Version 1.3
5
- // Author: Rory Ashford
6
- //
3
+
4
+ // Set variable defaults
5
+
6
+ $column_name: "span--" !default;
7
+ $push_prefix: "push--" !default;
8
+ $debug_display: true !default;
7
9
 
8
10
 
9
11
  // Clearfix mixin
@@ -242,13 +244,36 @@
242
244
  // Pulls the whole thing together ready for output
243
245
  // kept seperate from grid-generate as it is DRYer
244
246
  // this way.
245
- @mixin grid-generate($grid-args){
247
+ @mixin grid-generate($grid_args){
248
+
249
+ // If config has been defined in grid args use those settings
250
+ //
251
+ // Falls back to defaults at the top of this document
252
+ @if( map-has-key($grid_args, config )){
253
+
254
+ // If columnclass has been defined
255
+ @if( map-has-key(map-get($grid_args, config), columnclass) ){
256
+ $column_name: map-get(map-get($grid_args, config), columnclass);
257
+ }
258
+
259
+ // If pushclass has been defined
260
+ @if( map-has-key(map-get($grid_args, config), pushclass) ){
261
+ $push_prefix: #{'.' + map-get(map-get($grid_args, config), pushclass)};
262
+ }
263
+
264
+ // If debug has been defined
265
+ @if( map-has-key(map-get($grid_args, config), debug) ){
266
+ $debug_display: map-get(map-get($grid_args, config), debug);
267
+ }
268
+
269
+ }
270
+
246
271
 
247
272
  $grids: map-get($grid_args, grids);
248
- $column_name: map-get(map-get($grid_args, config), columnclass);
249
273
  $column_prefix: #{'.' + $column_name};
250
- $push_prefix: #{'.' + map-get(map-get($grid_args, config), pushclass)};
251
- $debug_display: map-get(map-get($grid_args, config), debug);
274
+
275
+
276
+
252
277
 
253
278
  @each $grid_name, $grid_map in $grids{
254
279
  $columns: map-get($grid_map,columns);
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rory Ashford