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.
- checksums.yaml +4 -4
- data/_gridtacular.scss +33 -8
- 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: 5e2804a074e4f0f656da9c7dd2126c4041b15cd6
|
4
|
+
data.tar.gz: 3a8ff58951db6441b9fba7062f717418616ecdc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
//
|
5
|
-
|
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($
|
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
|
-
|
251
|
-
|
274
|
+
|
275
|
+
|
276
|
+
|
252
277
|
|
253
278
|
@each $grid_name, $grid_map in $grids{
|
254
279
|
$columns: map-get($grid_map,columns);
|