gridle 1.3.21 → 1.3.22
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/lib/gridle.rb +2 -2
- data/stylesheets/gridle/_common-mixins.scss +5 -5
- data/stylesheets/gridle/_generate-mixins.scss +18 -18
- data/stylesheets/gridle/_gridle.scss +3 -3
- data/stylesheets/gridle/_mixins.scss +33 -34
- data/stylesheets/gridle/_settings-mixins.scss +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7df15d59048e3bc099b94a7cc6c11242c134602
|
4
|
+
data.tar.gz: c0af9436f7b1e6e190420ed6bb1317d15bc3b07f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10b00d0ce1acbf6784a104a300036240ce7f4f34dab7102158e1a7613cc0dfb8bc03a36926ea9c25b436ce155c82c718549d87c3e4ce27c38a8140f7ad67befe
|
7
|
+
data.tar.gz: 924eb2ef52d0df3d45a9e96f1d9f4d7ec8e8ef5960e1aed2a5d3ca001452ff5b39d32ec50e45e22dc2780e7d16f170ef0b0aac318394e74b9a58efe37fa45214
|
data/lib/gridle.rb
CHANGED
@@ -16,8 +16,8 @@
|
|
16
16
|
# a prerelease version
|
17
17
|
# Date is in the form of YYYY-MM-DD
|
18
18
|
module Extension
|
19
|
-
VERSION = "1.3.
|
20
|
-
DATE = "2014-
|
19
|
+
VERSION = "1.3.22"
|
20
|
+
DATE = "2014-06-02"
|
21
21
|
end
|
22
22
|
|
23
23
|
# This is where any custom SassScript should be placed. The functions will be
|
@@ -5,7 +5,7 @@
|
|
5
5
|
// |------------------------------------------------------
|
6
6
|
|
7
7
|
@mixin _gridle_container_common(
|
8
|
-
$state :
|
8
|
+
$state : default
|
9
9
|
) {
|
10
10
|
@extend %gridle-simple-clearfix;
|
11
11
|
@extend %gridle-container-common;
|
@@ -53,7 +53,7 @@
|
|
53
53
|
@extend %gridle-parent-common;
|
54
54
|
}
|
55
55
|
@mixin _gridle_push_common(
|
56
|
-
$state :
|
56
|
+
$state : default
|
57
57
|
) {
|
58
58
|
$debug : _gridle_get_var_value(debug, $state);
|
59
59
|
|
@@ -67,7 +67,7 @@
|
|
67
67
|
}
|
68
68
|
}
|
69
69
|
@mixin _gridle_pull_common(
|
70
|
-
$state :
|
70
|
+
$state : default
|
71
71
|
) {
|
72
72
|
$debug : _gridle_get_var_value(debug, $state);
|
73
73
|
|
@@ -80,7 +80,7 @@
|
|
80
80
|
}
|
81
81
|
}
|
82
82
|
@mixin _gridle_prefix_common(
|
83
|
-
$state :
|
83
|
+
$state : default
|
84
84
|
) {
|
85
85
|
$debug : _gridle_get_var_value(debug, $state);
|
86
86
|
@if $debug == true {
|
@@ -90,7 +90,7 @@
|
|
90
90
|
}
|
91
91
|
}
|
92
92
|
@mixin _gridle_suffix_common(
|
93
|
-
$state :
|
93
|
+
$state : default
|
94
94
|
) {
|
95
95
|
$debug : _gridle_get_var_value(debug, $state);
|
96
96
|
@if $debug == true {
|
@@ -190,7 +190,7 @@
|
|
190
190
|
$clearWhat : map-get($clearMap, clearWhat);
|
191
191
|
// generate the class :
|
192
192
|
#{_gridle_classname($gridle-clear-each-pattern, $state, $clearCount)} {
|
193
|
-
@include _gridle_clear_each($clearCount, $clearWhat
|
193
|
+
@include _gridle_clear_each($clearCount, $clearWhat);
|
194
194
|
}
|
195
195
|
}
|
196
196
|
}
|
@@ -350,7 +350,7 @@ $_gridle_generateOnlyOnce : true; // keep track of generate once classes
|
|
350
350
|
// | ------------------------
|
351
351
|
|
352
352
|
// generate container class :
|
353
|
-
@if $what == null or index($what, container)
|
353
|
+
@if $what == null or index($what, container) or index($what, default)
|
354
354
|
{
|
355
355
|
$container-selector : ();
|
356
356
|
$container-selector : append( $container-selector, unquote(_gridle_classname($gridle-container-name-pattern)), comma);
|
@@ -365,7 +365,7 @@ $_gridle_generateOnlyOnce : true; // keep track of generate once classes
|
|
365
365
|
// | ------------------------
|
366
366
|
|
367
367
|
// parent common css :
|
368
|
-
@if $what == null or index($what, parent)
|
368
|
+
@if $what == null or index($what, parent) or index($what, default)
|
369
369
|
{
|
370
370
|
$parentSelector : _gridle_classname($gridle-parent-name-pattern,null,null);
|
371
371
|
#{$parentSelector} {
|
@@ -446,19 +446,19 @@ $_gridle_generateOnlyOnce : true; // keep track of generate once classes
|
|
446
446
|
@each $columnName, $column in $columnsMap {
|
447
447
|
|
448
448
|
// add selector :
|
449
|
-
@if $what == null or index($what, grid) {
|
449
|
+
@if $what == null or index($what, grid) or index($what, default) {
|
450
450
|
$grid-common-selector : append( $grid-common-selector, unquote(_gridle_classname($gridle-grid-name-pattern, $media, $columnName)), comma );
|
451
451
|
}
|
452
|
-
@if $generate-push-classes and ($what == null or index($what, push)) {
|
452
|
+
@if $generate-push-classes and ($what == null or index($what, push) or index($what, default)) {
|
453
453
|
$push-common-selector : append( $push-common-selector, unquote(_gridle_classname($gridle-push-name-pattern, $media, $columnName)), comma );
|
454
454
|
}
|
455
|
-
@if $generate-pull-classes and ($what == null or index($what, pull)) {
|
455
|
+
@if $generate-pull-classes and ($what == null or index($what, pull) or index($what, default)) {
|
456
456
|
$pull-common-selector : append( $pull-common-selector, unquote(_gridle_classname($gridle-pull-name-pattern, $media, $columnName)), comma );
|
457
457
|
}
|
458
|
-
@if $generate-prefix-classes and ($what == null or index($what, prefix)) {
|
458
|
+
@if $generate-prefix-classes and ($what == null or index($what, prefix) or index($what, default)) {
|
459
459
|
$prefix-common-selector : append( $prefix-common-selector, unquote(_gridle_classname($gridle-prefix-name-pattern, $media, $columnName)), comma );
|
460
460
|
}
|
461
|
-
@if $generate-suffix-classes and ($what == null or index($what, suffix)) {
|
461
|
+
@if $generate-suffix-classes and ($what == null or index($what, suffix) or index($what, default)) {
|
462
462
|
$suffix-common-selector : append( $suffix-common-selector, unquote(_gridle_classname($gridle-suffix-name-pattern, $media, $columnName)), comma );
|
463
463
|
}
|
464
464
|
}
|
@@ -466,27 +466,27 @@ $_gridle_generateOnlyOnce : true; // keep track of generate once classes
|
|
466
466
|
}
|
467
467
|
|
468
468
|
// common css :
|
469
|
-
@if $what == null or index($what, grid) {
|
469
|
+
@if $what == null or index($what, grid) or index($what, default) {
|
470
470
|
#{$grid-common-selector} {
|
471
471
|
@include _gridle_grid_common();
|
472
472
|
}
|
473
473
|
}
|
474
|
-
@if $what == null or index($what, push) {
|
474
|
+
@if $what == null or index($what, push) or index($what, default) {
|
475
475
|
#{$push-common-selector} {
|
476
476
|
@include _gridle_push_common();
|
477
477
|
}
|
478
478
|
}
|
479
|
-
@if $what == null or index($what, pull) {
|
479
|
+
@if $what == null or index($what, pull) or index($what, default) {
|
480
480
|
#{$pull-common-selector} {
|
481
481
|
@include _gridle_pull_common();
|
482
482
|
}
|
483
483
|
}
|
484
|
-
@if $what == null or index($what, prefix) {
|
484
|
+
@if $what == null or index($what, prefix) or index($what, default) {
|
485
485
|
#{$prefix-common-selector} {
|
486
486
|
@include _gridle_prefix_common();
|
487
487
|
}
|
488
488
|
}
|
489
|
-
@if $what == null or index($what, suffix) {
|
489
|
+
@if $what == null or index($what, suffix) or index($what, default) {
|
490
490
|
#{$suffix-common-selector} {
|
491
491
|
@include _gridle_suffix_common();
|
492
492
|
}
|
@@ -552,27 +552,27 @@ $_gridle_generateOnlyOnce : true; // keep track of generate once classes
|
|
552
552
|
));
|
553
553
|
|
554
554
|
// classes :
|
555
|
-
@if $what == null or index($what, grid) {
|
555
|
+
@if $what == null or index($what, grid) or index($what, default) {
|
556
556
|
#{_gridle_classname($gridle-grid-name-pattern, $stateName, $columnName)} {
|
557
557
|
@include _gridle($columnsCount, $extendedState);
|
558
558
|
}
|
559
559
|
}
|
560
|
-
@if $generate-push-classes == true and ($what == null or index($what, push)) {
|
560
|
+
@if $generate-push-classes == true and ($what == null or index($what, push) or index($what, default)) {
|
561
561
|
#{_gridle_classname($gridle-push-name-pattern, $stateName, $columnName)} {
|
562
562
|
@include _gridle_push($columnsCount, $extendedState);
|
563
563
|
}
|
564
564
|
}
|
565
|
-
@if $generate-pull-classes == true and ($what == null or index($what, pull)) {
|
565
|
+
@if $generate-pull-classes == true and ($what == null or index($what, pull) or index($what, default)) {
|
566
566
|
#{_gridle_classname($gridle-pull-name-pattern, $stateName, $columnName)} {
|
567
567
|
@include _gridle_pull($columnsCount, $extendedState);
|
568
568
|
}
|
569
569
|
}
|
570
|
-
@if $generate-prefix-classes == true and ($what == null or index($what, prefix)) {
|
570
|
+
@if $generate-prefix-classes == true and ($what == null or index($what, prefix) or index($what, default)) {
|
571
571
|
#{_gridle_classname($gridle-prefix-name-pattern, $stateName, $columnName)} {
|
572
572
|
@include _gridle_prefix($columnsCount, $extendedState);
|
573
573
|
}
|
574
574
|
}
|
575
|
-
@if $generate-suffix-classes == true and ($what == null or index($what, suffix)) {
|
575
|
+
@if $generate-suffix-classes == true and ($what == null or index($what, suffix) or index($what, default)) {
|
576
576
|
#{_gridle_classname($gridle-suffix-name-pattern, $stateName, $columnName)} {
|
577
577
|
@include _gridle_suffix($columnsCount, $extendedState);
|
578
578
|
}
|
@@ -29,13 +29,13 @@
|
|
29
29
|
// |------------------------------------------------------
|
30
30
|
// |------------------------------------------------------
|
31
31
|
// @created 25.03.13
|
32
|
-
// @updated
|
32
|
+
// @updated 02.06.14
|
33
33
|
// @author Olivier Bossel <olivier.bossel@gmail.com>
|
34
|
-
// @version 1.3.
|
34
|
+
// @version 1.3.22
|
35
35
|
// |------------------------------------------------------
|
36
36
|
// |------------------------------------------------------
|
37
37
|
|
38
|
-
$_gridle-version : "1.3.
|
38
|
+
$_gridle-version : "1.3.22";
|
39
39
|
|
40
40
|
|
41
41
|
|
@@ -87,7 +87,7 @@
|
|
87
87
|
|
88
88
|
// Container mixin :
|
89
89
|
@mixin gridle_container(
|
90
|
-
$state :
|
90
|
+
$state : default
|
91
91
|
) {
|
92
92
|
@include _gridle_container_common($state);
|
93
93
|
}
|
@@ -97,7 +97,7 @@
|
|
97
97
|
// Set the width of the specified grid column :
|
98
98
|
@mixin gridle(
|
99
99
|
$columns,
|
100
|
-
$state :
|
100
|
+
$state : default
|
101
101
|
) {
|
102
102
|
// common :
|
103
103
|
@include _gridle_grid_common();
|
@@ -112,7 +112,7 @@
|
|
112
112
|
}
|
113
113
|
@mixin _gridle(
|
114
114
|
$columns,
|
115
|
-
$state :
|
115
|
+
$state : default
|
116
116
|
) {
|
117
117
|
// vars :
|
118
118
|
$name : _gridle_get_var_value(name, $state);
|
@@ -160,7 +160,7 @@
|
|
160
160
|
// Push the element of the count of column wanted
|
161
161
|
@mixin gridle_push(
|
162
162
|
$columns,
|
163
|
-
$state :
|
163
|
+
$state : default
|
164
164
|
) {
|
165
165
|
// common :
|
166
166
|
@include _gridle_push_common($state);
|
@@ -176,7 +176,7 @@
|
|
176
176
|
}
|
177
177
|
@mixin _gridle_push(
|
178
178
|
$columns,
|
179
|
-
$state :
|
179
|
+
$state : default
|
180
180
|
) {
|
181
181
|
// variables :
|
182
182
|
$name : _gridle_get_var_value(name, $state);
|
@@ -211,7 +211,7 @@
|
|
211
211
|
// Pull the element of the count of column wanted
|
212
212
|
@mixin gridle_pull(
|
213
213
|
$columns,
|
214
|
-
$state :
|
214
|
+
$state : default
|
215
215
|
) {
|
216
216
|
// common :
|
217
217
|
@include _gridle_pull_common($state);
|
@@ -227,7 +227,7 @@
|
|
227
227
|
}
|
228
228
|
@mixin _gridle_pull(
|
229
229
|
$columns,
|
230
|
-
$state :
|
230
|
+
$state : default
|
231
231
|
) {
|
232
232
|
// vars :
|
233
233
|
$name : _gridle_get_var_value(name, $state);
|
@@ -261,7 +261,7 @@
|
|
261
261
|
// Push the element of the count of column wanted
|
262
262
|
@mixin gridle_prefix(
|
263
263
|
$columns,
|
264
|
-
$state :
|
264
|
+
$state : default
|
265
265
|
) {
|
266
266
|
// common :
|
267
267
|
@include _gridle_prefix_common($state);
|
@@ -277,7 +277,7 @@
|
|
277
277
|
}
|
278
278
|
@mixin _gridle_prefix(
|
279
279
|
$columns,
|
280
|
-
$state :
|
280
|
+
$state : default
|
281
281
|
) {
|
282
282
|
// vars :
|
283
283
|
$name : _gridle_get_var_value(name, $state);
|
@@ -314,7 +314,7 @@
|
|
314
314
|
// Pull the element of the count of column wanted
|
315
315
|
@mixin gridle_suffix(
|
316
316
|
$columns,
|
317
|
-
$state :
|
317
|
+
$state : default
|
318
318
|
) {
|
319
319
|
// common :
|
320
320
|
@include _gridle_suffix_common($state);
|
@@ -330,7 +330,7 @@
|
|
330
330
|
}
|
331
331
|
@mixin _gridle_suffix(
|
332
332
|
$columns,
|
333
|
-
$state :
|
333
|
+
$state : default
|
334
334
|
) {
|
335
335
|
// vars :
|
336
336
|
$name : _gridle_get_var_value(name, $state);
|
@@ -366,7 +366,7 @@
|
|
366
366
|
// grid background :
|
367
367
|
// Display the grid background debug
|
368
368
|
@mixin gridle_grid_background(
|
369
|
-
$state :
|
369
|
+
$state : default
|
370
370
|
) {
|
371
371
|
// check if need media query :
|
372
372
|
@if $state {
|
@@ -378,7 +378,7 @@
|
|
378
378
|
}
|
379
379
|
}
|
380
380
|
@mixin _gridle_grid_background(
|
381
|
-
$state :
|
381
|
+
$state : default
|
382
382
|
) {
|
383
383
|
|
384
384
|
// variables :
|
@@ -408,21 +408,20 @@
|
|
408
408
|
@mixin gridle_clear_each(
|
409
409
|
$clearEach,
|
410
410
|
$clearWhat : both,
|
411
|
-
$state :
|
411
|
+
$state : default
|
412
412
|
) {
|
413
413
|
// check if need media query :
|
414
414
|
@if $state {
|
415
415
|
@include gridle_state($state) {
|
416
|
-
@include _gridle_clear_each($clearEach, $clearWhat
|
416
|
+
@include _gridle_clear_each($clearEach, $clearWhat);
|
417
417
|
}
|
418
418
|
} @else {
|
419
|
-
@include _gridle_clear_each($clearEach, $clearWhat
|
419
|
+
@include _gridle_clear_each($clearEach, $clearWhat);
|
420
420
|
}
|
421
421
|
}
|
422
422
|
@mixin _gridle_clear_each(
|
423
423
|
$clearEach,
|
424
|
-
$clearWhat
|
425
|
-
$state : null
|
424
|
+
$clearWhat
|
426
425
|
) {
|
427
426
|
> *:nth-child(#{$clearEach}n+1) {
|
428
427
|
clear : $clearWhat;
|
@@ -432,7 +431,7 @@
|
|
432
431
|
|
433
432
|
// Grid centered :
|
434
433
|
@mixin gridle_centered(
|
435
|
-
$state :
|
434
|
+
$state : default
|
436
435
|
) {
|
437
436
|
// check if need media query :
|
438
437
|
@if $state {
|
@@ -454,7 +453,7 @@
|
|
454
453
|
|
455
454
|
// Grid parent :
|
456
455
|
@mixin gridle_parent(
|
457
|
-
$state :
|
456
|
+
$state : default
|
458
457
|
) {
|
459
458
|
// common :
|
460
459
|
@include _gridle_parent_common();
|
@@ -477,7 +476,7 @@
|
|
477
476
|
*/
|
478
477
|
@mixin gridle_vertical_align(
|
479
478
|
$align : middle,
|
480
|
-
$state :
|
479
|
+
$state : default
|
481
480
|
) {
|
482
481
|
// check if need media query :
|
483
482
|
@if $state {
|
@@ -506,7 +505,7 @@
|
|
506
505
|
// Hide on :
|
507
506
|
// @param String $media On what state
|
508
507
|
@mixin gridle_hide(
|
509
|
-
$state :
|
508
|
+
$state : default
|
510
509
|
) {
|
511
510
|
// check if need media query :
|
512
511
|
@if $state {
|
@@ -525,7 +524,7 @@
|
|
525
524
|
// Not visible on :
|
526
525
|
// @param String $media What to hide (one of the 3 state classes name)
|
527
526
|
@mixin gridle_not_visible(
|
528
|
-
$state :
|
527
|
+
$state : default
|
529
528
|
) {
|
530
529
|
// check if need media query :
|
531
530
|
@if $state {
|
@@ -544,7 +543,7 @@
|
|
544
543
|
// Show on
|
545
544
|
// @param String $media What to hide (one of the 3 state classes name)
|
546
545
|
@mixin gridle_show(
|
547
|
-
$state :
|
546
|
+
$state : default
|
548
547
|
) {
|
549
548
|
// check if need media query :
|
550
549
|
@if $state {
|
@@ -566,7 +565,7 @@
|
|
566
565
|
* @param String $state The state name
|
567
566
|
*/
|
568
567
|
@mixin gridle_show_inline(
|
569
|
-
$state :
|
568
|
+
$state : default
|
570
569
|
) {
|
571
570
|
// check if need media query :
|
572
571
|
@if $state {
|
@@ -585,7 +584,7 @@
|
|
585
584
|
// Visible on :
|
586
585
|
// @param String $media On what state
|
587
586
|
@mixin gridle_visible(
|
588
|
-
$state :
|
587
|
+
$state : default
|
589
588
|
) {
|
590
589
|
// check if need media query :
|
591
590
|
@if $state {
|
@@ -604,7 +603,7 @@
|
|
604
603
|
// Gridle Right :
|
605
604
|
@mixin gridle_float(
|
606
605
|
$float-direction : left,
|
607
|
-
$state :
|
606
|
+
$state : default
|
608
607
|
) {
|
609
608
|
// check if need media query :
|
610
609
|
@if $state {
|
@@ -627,7 +626,7 @@
|
|
627
626
|
// @param String $state The state
|
628
627
|
@mixin gridle_clear(
|
629
628
|
$clear-direction : both,
|
630
|
-
$state :
|
629
|
+
$state : default
|
631
630
|
) {
|
632
631
|
// check if need media query :
|
633
632
|
@if $state {
|
@@ -650,7 +649,7 @@
|
|
650
649
|
// @param String $state The state
|
651
650
|
@mixin gridle_no_gutter(
|
652
651
|
$side : left right,
|
653
|
-
$state :
|
652
|
+
$state : default
|
654
653
|
) {
|
655
654
|
// check if need media query :
|
656
655
|
@if $state {
|
@@ -663,7 +662,7 @@
|
|
663
662
|
}
|
664
663
|
@mixin gridle_no_margin(
|
665
664
|
$side : left right,
|
666
|
-
$state :
|
665
|
+
$state : default
|
667
666
|
) {
|
668
667
|
@include gridle_no_gutter($side, $state);
|
669
668
|
}
|
@@ -671,7 +670,7 @@
|
|
671
670
|
$side : left right
|
672
671
|
) {
|
673
672
|
@each $s in $side {
|
674
|
-
padding-#{$s} : 0
|
673
|
+
padding-#{$s} : 0;
|
675
674
|
}
|
676
675
|
}
|
677
676
|
|
@@ -681,7 +680,7 @@
|
|
681
680
|
// @param String $state The state
|
682
681
|
@mixin gridle_gutter(
|
683
682
|
$side : left right,
|
684
|
-
$state :
|
683
|
+
$state : default
|
685
684
|
) {
|
686
685
|
// check if need media query :
|
687
686
|
@if $state {
|
@@ -695,13 +694,13 @@
|
|
695
694
|
// shortcut :
|
696
695
|
@mixin gridle_margin(
|
697
696
|
$side : left right,
|
698
|
-
$state :
|
697
|
+
$state : default
|
699
698
|
) {
|
700
699
|
@include gridle_gutter($side, $state);
|
701
700
|
}
|
702
701
|
@mixin _gridle_gutter(
|
703
702
|
$side : left right,
|
704
|
-
$state :
|
703
|
+
$state : default
|
705
704
|
) {
|
706
705
|
$gutter-width : _gridle_get_var_value(gutter-width, $state);
|
707
706
|
@each $s in $side {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gridle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olivier Bossel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|