flint-gs 1.0.3 → 1.0.4
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/README.md +195 -24
- data/lib/flint.rb +2 -2
- data/stylesheets/_flint.scss +0 -0
- data/stylesheets/flint/config/_config.scss +21 -3
- data/stylesheets/flint/functions/_functions.scss +0 -0
- data/stylesheets/flint/functions/helpers/_helpers.scss +14 -0
- data/stylesheets/flint/functions/lib/_calc-breakpoint.scss +2 -2
- data/stylesheets/flint/functions/lib/_calc-margin.scss +0 -0
- data/stylesheets/flint/functions/lib/_calc-width.scss +0 -0
- data/stylesheets/flint/functions/lib/_exists.scss +4 -1
- data/stylesheets/flint/functions/lib/_fluid-width.scss +0 -0
- data/stylesheets/flint/functions/lib/_get-family-instance.scss +0 -0
- data/stylesheets/flint/functions/lib/_get-index.scss +0 -0
- data/stylesheets/flint/functions/lib/_get-instance-value.scss +0 -0
- data/stylesheets/flint/functions/lib/_get-substring.scss +0 -0
- data/stylesheets/flint/functions/lib/_get-value.scss +0 -0
- data/stylesheets/flint/functions/lib/_instance.scss +2 -2
- data/stylesheets/flint/functions/lib/_last.scss +0 -0
- data/stylesheets/flint/functions/lib/_list-to-string.scss +0 -0
- data/stylesheets/flint/functions/lib/_map-fetch.scss +2 -2
- data/stylesheets/flint/functions/lib/_next-index.scss +0 -0
- data/stylesheets/flint/functions/lib/_purge.scss +0 -0
- data/stylesheets/flint/functions/lib/_remove.scss +0 -0
- data/stylesheets/flint/functions/lib/_replace.scss +0 -0
- data/stylesheets/flint/functions/lib/_steal-key.scss +0 -0
- data/stylesheets/flint/functions/lib/_steal-values.scss +0 -0
- data/stylesheets/flint/functions/lib/_string-to-list.scss +0 -0
- data/stylesheets/flint/functions/lib/_string-to-number.scss +0 -0
- data/stylesheets/flint/globals/_globals.scss +5 -5
- data/stylesheets/flint/mixins/_mixins.scss +0 -0
- data/stylesheets/flint/mixins/lib/_clearfix.scss +0 -0
- data/stylesheets/flint/mixins/lib/_flint-calculate.scss +189 -95
- data/stylesheets/flint/mixins/lib/_flint-main.scss +20 -20
- data/stylesheets/flint/mixins/lib/_new-instance.scss +0 -0
- data/stylesheets/flint/mixins/lib/_print-instance.scss +4 -4
- 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: 83509734957f3f25f64cd87f5177e7f8072d9a4f
         | 
| 4 | 
            +
              data.tar.gz: 1217f8221350a84a54dd376911935d848678a6ea
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 8450cf79f2adf5028b176b294bbfdf99b8aac8b8e85f14c6dc5e47fa1e1bf2522582f282c0413c1c6870d3449b477a1f4586a94ddbe8a19cc41c5dc810ebc543
         | 
| 7 | 
            +
              data.tar.gz: 554911cc02099f6623f767dbb02769be3814eccefb9d203b3075ce4595ca9d30be08784b26cf3c643423792ab2950ef6cbe02fdc6fe7f39d53a9fe40af089faf
         | 
    
        data/README.md
    CHANGED
    
    | @@ -25,12 +25,28 @@ Settings may be entered in `px` or `em`, and Flint will do the rest. | |
| 25 25 | 
             
            *Keep in mind, whatever unit you choose to use here needs to be used consistently throughout Flint. No mixing of `px` and `em` units.*
         | 
| 26 26 |  | 
| 27 27 | 
             
            ```scss
         | 
| 28 | 
            -
             | 
| 28 | 
            +
            // Configuration map
         | 
| 29 | 
            +
            //--------------------------------------------------------------------------------
         | 
| 30 | 
            +
            // @param [Breakpoints] : Here you can set up your various breakpoints for your
         | 
| 31 | 
            +
            // project. Any number of breakpoints is acceptable. You must include a column
         | 
| 32 | 
            +
            // count and breakpoint value for each listed breakpoint. Order does not have
         | 
| 33 | 
            +
            // to follow `ASC` or `DESC`. Unit chosen here must be used consistently
         | 
| 34 | 
            +
            // throughout the rest of the config map.
         | 
| 35 | 
            +
            //--------------------------------------------------------------------------------
         | 
| 36 | 
            +
            // @param default [Alias] : alias of breakpoint that is your grid default
         | 
| 37 | 
            +
            // @param grid [Style] : style of grid
         | 
| 38 | 
            +
            // @param gutter [Value | false] : contextual size of gutter
         | 
| 39 | 
            +
            // @param float-style [Value | false] : float direction
         | 
| 40 | 
            +
            // @param max-width [Value | false] : max-width for `containers`
         | 
| 41 | 
            +
            // @param center-container [Boolean] : if you want a centered container
         | 
| 42 | 
            +
            // @param border-box-sizing [Boolean] : if you want box-sizing: border-box applied
         | 
| 43 | 
            +
            // @param debug-mode [Boolean] : ouputs debug properties
         | 
| 44 | 
            +
            // -------------------------------------------------------------------------------
         | 
| 29 45 |  | 
| 46 | 
            +
            $flint: (
         | 
| 30 47 | 
             
                // grid configuration
         | 
| 31 48 | 
             
                "config": (
         | 
| 32 | 
            -
             | 
| 33 | 
            -
                    // define breakpoints
         | 
| 49 | 
            +
                    // define breakpoints [any amount of breakpoints]
         | 
| 34 50 | 
             
                    "desktop": ( // [any alias you like, minus reserved flint words (i.e. "settings", etc.)]
         | 
| 35 51 | 
             
                        "columns": 16, // [0-infinity]
         | 
| 36 52 | 
             
                        "breakpoint": 1280px, // [0-infinity(unit)]
         | 
| @@ -47,17 +63,16 @@ $flint: ( | |
| 47 63 | 
             
                        "columns": 4,
         | 
| 48 64 | 
             
                        "breakpoint": 320px,
         | 
| 49 65 | 
             
                    ),
         | 
| 50 | 
            -
             | 
| 51 | 
            -
                    // additional grid settings
         | 
| 66 | 
            +
                    // additional grid settings [required]
         | 
| 52 67 | 
             
                    "settings": (
         | 
| 53 | 
            -
                        "default": " | 
| 68 | 
            +
                        "default": "desktop", // [any breakpoint's alias]
         | 
| 54 69 | 
             
                        "grid": "fluid", // [fluid | fixed]
         | 
| 55 70 | 
             
                        "gutter": 10px, // [0-infinity(unit) | false]
         | 
| 56 71 | 
             
                        "float-style": "left", // [left | right]
         | 
| 57 72 | 
             
                        "max-width": false, // [true : uses highest breakpoint | false | value(unit)]
         | 
| 58 73 | 
             
                        "center-container": true, // [true | false]
         | 
| 59 74 | 
             
                        "border-box-sizing": true, // [true | false]
         | 
| 60 | 
            -
                        "debug-mode": true, // [true | false]
         | 
| 75 | 
            +
                        "debug-mode": true, // [true | false ]
         | 
| 61 76 | 
             
                    ),
         | 
| 62 77 | 
             
                ),
         | 
| 63 78 | 
             
            );
         | 
| @@ -212,7 +227,7 @@ Whatever your `default` is set to, **flint** will not wrap those styles in media | |
| 212 227 |  | 
| 213 228 | 
             
            ###Recursive shorthand with identical context
         | 
| 214 229 |  | 
| 215 | 
            -
            Use this if your nested context is *identical* across all breakpoints. The `context` is the span of the elements parent. ***Update:*** You can now use `$context: auto`, and we'll do all the calculations for you. Just be sure a parent element with a Flint `instance` actually exists or you'll get some weird output, or none at all.
         | 
| 230 | 
            +
            Use this if your nested context is *identical* across all breakpoints. The `context` is the span of the elements parent. ***Update:*** You can now use `$context: auto`, and we'll do all the calculations for you. Just be sure a parent element with a Flint `instance` actually exists or you'll get some weird output, or none at all. **Context is not needed on `fixed` grids.**
         | 
| 216 231 |  | 
| 217 232 | 
             
            ```scss
         | 
| 218 233 | 
             
            // `auto` will work
         | 
| @@ -461,21 +476,21 @@ Use these if you need to apply breakpoint specific styling. | |
| 461 476 | 
             
            }
         | 
| 462 477 | 
             
            ```
         | 
| 463 478 |  | 
| 464 | 
            -
            ###Call by  | 
| 479 | 
            +
            ###Call by alias
         | 
| 465 480 |  | 
| 466 481 | 
             
            Use if you want to define each span without shorthands. This is useful if you need variable `gutter` modifiers.
         | 
| 467 482 |  | 
| 468 483 | 
             
            ```scss
         | 
| 469 484 | 
             
            .name {
         | 
| 470 | 
            -
            	@include _(desktop, 8 | 
| 471 | 
            -
            	@include _(laptop, 4 | 
| 472 | 
            -
            	@include _(tablet, 8 | 
| 473 | 
            -
            	@include _(mobile, 4 | 
| 485 | 
            +
            	@include _(desktop, 8);
         | 
| 486 | 
            +
            	@include _(laptop, 4);
         | 
| 487 | 
            +
            	@include _(tablet, 8);
         | 
| 488 | 
            +
            	@include _(mobile, 4);
         | 
| 474 489 | 
             
            }
         | 
| 475 490 |  | 
| 476 491 | 
             
            // with context,
         | 
| 477 492 | 
             
            // .name {
         | 
| 478 | 
            -
            //	  @include _(desktop, 4, 16);
         | 
| 493 | 
            +
            //	  @include _(desktop, 4, 16, $gutter: alpha);
         | 
| 479 494 | 
             
            // }
         | 
| 480 495 | 
             
            ```
         | 
| 481 496 |  | 
| @@ -517,25 +532,90 @@ Here are different gutter modifiers that may be called in when defining spans us | |
| 517 532 |  | 
| 518 533 | 
             
            ```scss
         | 
| 519 534 | 
             
            // no left margin
         | 
| 520 | 
            -
            . | 
| 535 | 
            +
            .gutter {
         | 
| 521 536 | 
             
            	@include _(desktop, 4, $gutter: alpha);
         | 
| 522 537 | 
             
            }
         | 
| 523 538 |  | 
| 524 539 | 
             
            // no right margin
         | 
| 525 | 
            -
            . | 
| 540 | 
            +
            .gutter {
         | 
| 526 541 | 
             
            	@include _(desktop, 4, $gutter: omega);
         | 
| 527 542 | 
             
            }
         | 
| 528 543 |  | 
| 529 544 | 
             
            // no margins
         | 
| 530 | 
            -
            . | 
| 545 | 
            +
            .gutter {
         | 
| 531 546 | 
             
            	@include _(desktop, 4, $gutter: row);
         | 
| 532 547 | 
             
            }
         | 
| 533 548 |  | 
| 549 | 
            +
            // places gutters on inside by reducing column width by [gutter*2]
         | 
| 550 | 
            +
            // useful for nesting children inside of parents that have normal gutters on fixed grid layouts
         | 
| 551 | 
            +
            .gutter {
         | 
| 552 | 
            +
            	@include _(desktop, 4, $gutter: inside);
         | 
| 553 | 
            +
            }
         | 
| 554 | 
            +
             | 
| 534 555 | 
             
            // recursive
         | 
| 535 | 
            -
            .recursive {
         | 
| 556 | 
            +
            .recursive-gutter {
         | 
| 536 557 | 
             
            	@include _(16 12 8 4, $gutter: row);
         | 
| 537 558 | 
             
            }
         | 
| 538 559 | 
             
            ```
         | 
| 560 | 
            +
            Outputs,
         | 
| 561 | 
            +
            ```scss
         | 
| 562 | 
            +
            .gutter {
         | 
| 563 | 
            +
            	display: block;
         | 
| 564 | 
            +
            	float: left;
         | 
| 565 | 
            +
            	width: 24.21875%;
         | 
| 566 | 
            +
            	margin-right: 0.78125%;
         | 
| 567 | 
            +
            	margin-left: 0;
         | 
| 568 | 
            +
            }
         | 
| 569 | 
            +
            .gutter {
         | 
| 570 | 
            +
            	display: block;
         | 
| 571 | 
            +
            	float: left;
         | 
| 572 | 
            +
            	width: 24.21875%;
         | 
| 573 | 
            +
            	margin-right: 0;
         | 
| 574 | 
            +
            	margin-left: 0.78125%;
         | 
| 575 | 
            +
            }
         | 
| 576 | 
            +
            .gutter {
         | 
| 577 | 
            +
            	display: block;
         | 
| 578 | 
            +
            	float: left;
         | 
| 579 | 
            +
            	width: 25%;
         | 
| 580 | 
            +
            	margin-right: 0;
         | 
| 581 | 
            +
            	margin-left: 0;
         | 
| 582 | 
            +
            }
         | 
| 583 | 
            +
            .gutter {
         | 
| 584 | 
            +
            	display: block;
         | 
| 585 | 
            +
            	float: left;
         | 
| 586 | 
            +
            	width: 21.875%;
         | 
| 587 | 
            +
            	margin-right: 0.78125%;
         | 
| 588 | 
            +
            	margin-left: 0.78125%;
         | 
| 589 | 
            +
            }
         | 
| 590 | 
            +
            .recursive-gutter {
         | 
| 591 | 
            +
            	display: block;
         | 
| 592 | 
            +
            	float: left;
         | 
| 593 | 
            +
            	width: 100%;
         | 
| 594 | 
            +
            	margin-right: 0;
         | 
| 595 | 
            +
            	margin-left: 0;
         | 
| 596 | 
            +
            }
         | 
| 597 | 
            +
            @media only screen and (min-width: 641px) and (max-width: 960px) {
         | 
| 598 | 
            +
            	.recursive-gutter {
         | 
| 599 | 
            +
            		width: 100%;
         | 
| 600 | 
            +
            		margin-right: 0;
         | 
| 601 | 
            +
            		margin-left: 0;
         | 
| 602 | 
            +
            	}
         | 
| 603 | 
            +
            }
         | 
| 604 | 
            +
            @media only screen and (min-width: 321px) and (max-width: 640px) {
         | 
| 605 | 
            +
            	.recursive-gutter {
         | 
| 606 | 
            +
            		width: 100%;
         | 
| 607 | 
            +
            		margin-right: 0;
         | 
| 608 | 
            +
            		margin-left: 0;
         | 
| 609 | 
            +
            	}
         | 
| 610 | 
            +
            }
         | 
| 611 | 
            +
            @media only screen and (min-width: 0) and (max-width: 320px) {
         | 
| 612 | 
            +
            	.recursive-gutter {
         | 
| 613 | 
            +
            		width: 100%;
         | 
| 614 | 
            +
            		margin-right: 0;
         | 
| 615 | 
            +
            		margin-left: 0;
         | 
| 616 | 
            +
            	}
         | 
| 617 | 
            +
            }
         | 
| 618 | 
            +
            ```
         | 
| 539 619 |  | 
| 540 620 | 
             
            ###Shift
         | 
| 541 621 |  | 
| @@ -559,13 +639,88 @@ for extra fine tuned control over your layouts. | |
| 559 639 |  | 
| 560 640 | 
             
            ```scss
         | 
| 561 641 | 
             
            .break-the-grid {
         | 
| 562 | 
            -
            	@include _(16 12.1 8.9 4, $shift: 1.2 0 2 0, $gutter: row);
         | 
| 642 | 
            +
            	@include _(16/3 12.1 8.9 4, $shift: 1.2 0 2 0, $gutter: row);
         | 
| 643 | 
            +
            }
         | 
| 644 | 
            +
            ```
         | 
| 645 | 
            +
            Outputs,
         | 
| 646 | 
            +
            ```scss
         | 
| 647 | 
            +
            .break-the-grid {
         | 
| 648 | 
            +
            	display: block;
         | 
| 649 | 
            +
            	float: left;
         | 
| 650 | 
            +
            	width: 33.33333%;
         | 
| 651 | 
            +
            	margin-right: 0;
         | 
| 652 | 
            +
            	margin-left: 7.5%;
         | 
| 653 | 
            +
            	-flint-instance-count: 9;
         | 
| 654 | 
            +
            	-flint-key: desktop;
         | 
| 655 | 
            +
            	-flint-breakpoint: 1280px;
         | 
| 656 | 
            +
            	-flint-columns: 16;
         | 
| 657 | 
            +
            	-flint-span: 5.33333;
         | 
| 658 | 
            +
            	-flint-context: NULL;
         | 
| 659 | 
            +
            	-flint-gutter: row;
         | 
| 660 | 
            +
            	-flint-shift: 1.2;
         | 
| 661 | 
            +
            	-flint--output-width: 33.33333%;
         | 
| 662 | 
            +
            	-flint--output-margin-right: 0;
         | 
| 663 | 
            +
            	-flint--output-margin-left: 7.5%;
         | 
| 664 | 
            +
            }
         | 
| 665 | 
            +
            @media only screen and (min-width: 641px) and (max-width: 960px) {
         | 
| 666 | 
            +
            	.break-the-grid {
         | 
| 667 | 
            +
            		width: 100.83333%;
         | 
| 668 | 
            +
            		margin-right: 0;
         | 
| 669 | 
            +
            		margin-left: 0%;
         | 
| 670 | 
            +
            		-flint-instance-count: 10;
         | 
| 671 | 
            +
            		-flint-key: laptop;
         | 
| 672 | 
            +
            		-flint-breakpoint: 960px;
         | 
| 673 | 
            +
            		-flint-columns: 12;
         | 
| 674 | 
            +
            		-flint-span: 12.1;
         | 
| 675 | 
            +
            		-flint-context: NULL;
         | 
| 676 | 
            +
            		-flint-gutter: row;
         | 
| 677 | 
            +
            		-flint-shift: 0;
         | 
| 678 | 
            +
            		-flint--output-width: 100.83333%;
         | 
| 679 | 
            +
            		-flint--output-margin-right: 0;
         | 
| 680 | 
            +
            		-flint--output-margin-left: 0%;
         | 
| 681 | 
            +
            	}
         | 
| 682 | 
            +
            }
         | 
| 683 | 
            +
            @media only screen and (min-width: 321px) and (max-width: 640px) {
         | 
| 684 | 
            +
            	.break-the-grid {
         | 
| 685 | 
            +
            		width: 111.25%;
         | 
| 686 | 
            +
            		margin-right: 0;
         | 
| 687 | 
            +
            		margin-left: 25%;
         | 
| 688 | 
            +
            		-flint-instance-count: 11;
         | 
| 689 | 
            +
            		-flint-key: tablet;
         | 
| 690 | 
            +
            		-flint-breakpoint: 640px;
         | 
| 691 | 
            +
            		-flint-columns: 8;
         | 
| 692 | 
            +
            		-flint-span: 8.9;
         | 
| 693 | 
            +
            		-flint-context: NULL;
         | 
| 694 | 
            +
            		-flint-gutter: row;
         | 
| 695 | 
            +
            		-flint-shift: 2;
         | 
| 696 | 
            +
            		-flint--output-width: 111.25%;
         | 
| 697 | 
            +
            		-flint--output-margin-right: 0;
         | 
| 698 | 
            +
            		-flint--output-margin-left: 25%;
         | 
| 699 | 
            +
            	}
         | 
| 700 | 
            +
            }
         | 
| 701 | 
            +
            @media only screen and (min-width: 0) and (max-width: 320px) {
         | 
| 702 | 
            +
            	.break-the-grid {
         | 
| 703 | 
            +
            		width: 100%;
         | 
| 704 | 
            +
            		margin-right: 0;
         | 
| 705 | 
            +
            		margin-left: 0%;
         | 
| 706 | 
            +
            		-flint-instance-count: 12;
         | 
| 707 | 
            +
            		-flint-key: mobile;
         | 
| 708 | 
            +
            		-flint-breakpoint: 320px;
         | 
| 709 | 
            +
            		-flint-columns: 4;
         | 
| 710 | 
            +
            		-flint-span: 4;
         | 
| 711 | 
            +
            		-flint-context: NULL;
         | 
| 712 | 
            +
            		-flint-gutter: row;
         | 
| 713 | 
            +
            		-flint-shift: 0;
         | 
| 714 | 
            +
            		-flint--output-width: 100%;
         | 
| 715 | 
            +
            		-flint--output-margin-right: 0;
         | 
| 716 | 
            +
            		-flint--output-margin-left: 0%;
         | 
| 717 | 
            +
            	}
         | 
| 563 718 | 
             
            }
         | 
| 564 719 | 
             
            ```
         | 
| 565 720 |  | 
| 566 721 | 
             
            ##BEM Users
         | 
| 567 722 |  | 
| 568 | 
            -
            Due to the way **BEM** is written, the  | 
| 723 | 
            +
            Due to the way **BEM** is written, the instance functions cannot fallback to previous selectors in the family tree to find a parent instance, so using `$context: auto` will not work for some BEM users, depending on how you write it.
         | 
| 569 724 |  | 
| 570 725 | 
             
            ```scss
         | 
| 571 726 | 
             
            .block {
         | 
| @@ -587,9 +742,20 @@ Will result in a` @warning`, and will not compile correctly as `.block` and `.bl | |
| 587 742 | 
             
            		@include _(2, auto);
         | 
| 588 743 | 
             
            	}
         | 
| 589 744 | 
             
            }
         | 
| 745 | 
            +
             | 
| 746 | 
            +
            // Or...
         | 
| 747 | 
            +
             | 
| 748 | 
            +
            .block {
         | 
| 749 | 
            +
            	@include _(4);
         | 
| 750 | 
            +
             | 
| 751 | 
            +
            	// Double your ampersands
         | 
| 752 | 
            +
            	& &__element {
         | 
| 753 | 
            +
            		@include _(2, auto);
         | 
| 754 | 
            +
            	}
         | 
| 755 | 
            +
            }
         | 
| 590 756 | 
             
            ```
         | 
| 591 757 |  | 
| 592 | 
            -
            This will allow the  | 
| 758 | 
            +
            This will allow the instance functions to properly fallback from `.block .block__element` to `.block` to check for context. If writing BEM like that just isn't your thing, you can manually enter your context:
         | 
| 593 759 |  | 
| 594 760 | 
             
            ```scss
         | 
| 595 761 | 
             
            .block {
         | 
| @@ -605,16 +771,21 @@ This will allow the `instance` functions to properly fallback from `.block .bloc | |
| 605 771 |  | 
| 606 772 | 
             
            Going to start keeping a log of changes starting **today (4/11/14).**
         | 
| 607 773 |  | 
| 608 | 
            -
            ####4/ | 
| 774 | 
            +
            ####4/24/14
         | 
| 775 | 
            +
            * Added `$gutter: inside` modifier
         | 
| 776 | 
            +
            * Cleaned up variable/function names
         | 
| 777 | 
            +
            * Added detailed comments to all mixins/functions
         | 
| 778 | 
            +
             | 
| 779 | 
            +
            ####4/18/14
         | 
| 609 780 | 
             
            * Built `.gemspec` so that Flint can be installed via `gem install flint-gs`
         | 
| 610 781 | 
             
            * Added `bower.json` so that Flint can be installed via Bower
         | 
| 611 782 | 
             
            * Organized file structure by splitting functions/mixins into separate files for easier modifications/version control moving forward.
         | 
| 612 783 |  | 
| 613 784 | 
             
            ####4/12/14
         | 
| 614 | 
            -
            You can now take advantage of both `$shift` and `$gutter` modifiers together.
         | 
| 785 | 
            +
            * You can now take advantage of both `$shift` and `$gutter` modifiers together.
         | 
| 615 786 |  | 
| 616 787 | 
             
            ####4/11/14
         | 
| 617 | 
            -
            You can now use `$context: auto`, and we'll do all the calculations for you. Just be sure a container element actually exists or you'll get some weird output, or none at all. Pretty cool feature utilizing the new `instance` map, which keeps track of every `instance` of the `_()` mixin, and saves all the tasty variables for use-cases like this.
         | 
| 788 | 
            +
            * You can now use `$context: auto`, and we'll do all the calculations for you. Just be sure a container element actually exists or you'll get some weird output, or none at all. Pretty cool feature utilizing the new `instance` map, which keeps track of every `instance` of the `_()` mixin, and saves all the tasty variables for use-cases like this.
         | 
| 618 789 |  | 
| 619 790 |  | 
| 620 791 |  | 
    
        data/lib/flint.rb
    CHANGED
    
    | @@ -5,8 +5,8 @@ Compass::Frameworks.register('flint', :path => extension_path) | |
| 5 5 | 
             
            #  Version is a number. If a version contains alphas, it will be created as a prerelease version
         | 
| 6 6 | 
             
            #  Date is in the form of YYYY-MM-DD
         | 
| 7 7 | 
             
            module Flint
         | 
| 8 | 
            -
              VERSION = "1.0. | 
| 9 | 
            -
              DATE = "2014-04- | 
| 8 | 
            +
              VERSION = "1.0.4"
         | 
| 9 | 
            +
              DATE = "2014-04-24"
         | 
| 10 10 | 
             
            end
         | 
| 11 11 |  | 
| 12 12 | 
             
            # Custom functions
         | 
    
        data/stylesheets/_flint.scss
    CHANGED
    
    | 
            File without changes
         | 
| @@ -1,7 +1,25 @@ | |
| 1 | 
            +
            // Configuration map
         | 
| 2 | 
            +
            //--------------------------------------------------------------------------------
         | 
| 3 | 
            +
            // @param [Breakpoints] : Here you can set up your various breakpoints for your
         | 
| 4 | 
            +
            // project. Any number of breakpoints is acceptable. You must include a column
         | 
| 5 | 
            +
            // count and breakpoint value for each listed breakpoint. Order does not have
         | 
| 6 | 
            +
            // to follow `ASC` or `DESC`. Unit chosen here must be used consistently
         | 
| 7 | 
            +
            // throughout the rest of the config map.
         | 
| 8 | 
            +
            //--------------------------------------------------------------------------------
         | 
| 9 | 
            +
            // @param default [Alias] : alias of breakpoint that is your grid default
         | 
| 10 | 
            +
            // @param grid [Style] : style of grid
         | 
| 11 | 
            +
            // @param gutter [Value | false] : contextual size of gutter
         | 
| 12 | 
            +
            // @param float-style [Value | false] : float direction
         | 
| 13 | 
            +
            // @param max-width [Value | false] : max-width for `containers`
         | 
| 14 | 
            +
            // @param center-container [Boolean] : if you want a centered container
         | 
| 15 | 
            +
            // @param border-box-sizing [Boolean] : if you want box-sizing: border-box applied
         | 
| 16 | 
            +
            // @param debug-mode [Boolean] : ouputs debug properties
         | 
| 17 | 
            +
            // -------------------------------------------------------------------------------
         | 
| 18 | 
            +
             | 
| 1 19 | 
             
            $flint: (
         | 
| 2 20 | 
             
                // grid configuration
         | 
| 3 21 | 
             
                "config": (
         | 
| 4 | 
            -
                    // define breakpoints
         | 
| 22 | 
            +
                    // define breakpoints [any amount of breakpoints]
         | 
| 5 23 | 
             
                    "desktop": ( // [any alias you like, minus reserved flint words (i.e. "settings", etc.)]
         | 
| 6 24 | 
             
                        "columns": 16, // [0-infinity]
         | 
| 7 25 | 
             
                        "breakpoint": 1280px, // [0-infinity(unit)]
         | 
| @@ -18,9 +36,9 @@ $flint: ( | |
| 18 36 | 
             
                        "columns": 4,
         | 
| 19 37 | 
             
                        "breakpoint": 320px,
         | 
| 20 38 | 
             
                    ),
         | 
| 21 | 
            -
                    // additional grid settings
         | 
| 39 | 
            +
                    // additional grid settings [required]
         | 
| 22 40 | 
             
                    "settings": (
         | 
| 23 | 
            -
                        "default": "mobile", // [any breakpoint's alias | 
| 41 | 
            +
                        "default": "mobile", // [any breakpoint's alias]
         | 
| 24 42 | 
             
                        "grid": "fluid", // [fluid | fixed]
         | 
| 25 43 | 
             
                        "gutter": 10px, // [0-infinity(unit) | false]
         | 
| 26 44 | 
             
                        "float-style": "left", // [left | right]
         | 
| 
            File without changes
         | 
| @@ -125,6 +125,20 @@ | |
| 125 125 | 
             
            	}
         | 
| 126 126 | 
             
            }
         | 
| 127 127 |  | 
| 128 | 
            +
            // Grabs highest breakpoint
         | 
| 129 | 
            +
            // -------------------------------------------------------------------------------
         | 
| 130 | 
            +
            // @dependence `get-value()`
         | 
| 131 | 
            +
            // -------------------------------------------------------------------------------
         | 
| 132 | 
            +
            // @return [Boolean]
         | 
| 133 | 
            +
             | 
| 134 | 
            +
            @function is-lowest-breakpoint($key) {
         | 
| 135 | 
            +
            	@if get-value($key, breakpoint) == min(get-all-breakpoints()...) {
         | 
| 136 | 
            +
            		@return true;
         | 
| 137 | 
            +
            	} @else {
         | 
| 138 | 
            +
            		@return false;
         | 
| 139 | 
            +
            	}
         | 
| 140 | 
            +
            }
         | 
| 141 | 
            +
             | 
| 128 142 | 
             
            // Gets all breakpoint column values
         | 
| 129 143 | 
             
            // -------------------------------------------------------------------------------
         | 
| 130 144 | 
             
            // @return [List]
         | 
| @@ -12,7 +12,7 @@ | |
| 12 12 | 
             
            @function calc-breakpoint($n, $key, $i) {
         | 
| 13 13 | 
             
            	@if get-value(settings, grid) == "fluid" {
         | 
| 14 14 | 
             
            		@if $n == "from" {
         | 
| 15 | 
            -
            			@if  | 
| 15 | 
            +
            			@if is-lowest-breakpoint($key) {
         | 
| 16 16 | 
             
            				@return 0;
         | 
| 17 17 | 
             
            			} @else {
         | 
| 18 18 | 
             
            				@return (get-value(next-index($i), breakpoint) + 1);
         | 
| @@ -22,7 +22,7 @@ | |
| 22 22 | 
             
            		}
         | 
| 23 23 | 
             
            	} @else if get-value(settings, grid) == "fixed" {
         | 
| 24 24 | 
             
            		@if $n == "from" {
         | 
| 25 | 
            -
            			@if  | 
| 25 | 
            +
            			@if is-lowest-breakpoint($key) {
         | 
| 26 26 | 
             
            				@return 0;
         | 
| 27 27 | 
             
            			} @else {
         | 
| 28 28 | 
             
            				@return get-value($key, breakpoint);
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| @@ -14,11 +14,11 @@ | |
| 14 14 | 
             
            // @return [Value] | map
         | 
| 15 15 |  | 
| 16 16 | 
             
            @function instance($key, $span, $context, $gutter, $shift, $outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 17 | 
            -
                $ | 
| 17 | 
            +
                $flint__instance-count: $flint__instance-count + 1 !global;
         | 
| 18 18 |  | 
| 19 19 | 
             
                $flint__instance: (
         | 
| 20 20 | 
             
            		"#{selector_string()}::#{$key}": (
         | 
| 21 | 
            -
            			"instance-count": #{$ | 
| 21 | 
            +
            			"instance-count": #{$flint__instance-count},
         | 
| 22 22 | 
             
            			"key": #{$key},
         | 
| 23 23 | 
             
            			"breakpoint": #{get-value($key, breakpoint)},
         | 
| 24 24 | 
             
            			"columns": #{get-value($key, columns)},
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| @@ -12,10 +12,10 @@ | |
| 12 12 | 
             
            	$length: length($keys);
         | 
| 13 13 | 
             
            	$value: map-get($map, $key);
         | 
| 14 14 |  | 
| 15 | 
            -
            	// check if value equals NULL (meaning the @param was incorrect)
         | 
| 16 | 
            -
            	// return false so that sass still compiles without errors
         | 
| 15 | 
            +
            	// check if value equals NULL (meaning the @param was incorrect and the map doesn't exist)
         | 
| 17 16 |  | 
| 18 17 | 
             
            	@if $value == NULL {
         | 
| 18 | 
            +
            		@warn "Invalid arguments padded to function: `map-fetch(#{$map}, #{$keys})`";
         | 
| 19 19 | 
             
            		@return false;
         | 
| 20 20 | 
             
            	}
         | 
| 21 21 |  | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| @@ -1,11 +1,11 @@ | |
| 1 1 | 
             
            // set global variable to check if foundation has been applied globally
         | 
| 2 | 
            -
            $ | 
| 2 | 
            +
            $flint__foundation: "nonexistant" !global;
         | 
| 3 3 |  | 
| 4 4 | 
             
            // gather all keys, breakpoints and column counts
         | 
| 5 | 
            -
            $ | 
| 6 | 
            -
            $ | 
| 7 | 
            -
            $ | 
| 5 | 
            +
            $flint__all__keys: get-all-keys() !global;
         | 
| 6 | 
            +
            $flint__all__breakpoints: get-all-breakpoints() !global;
         | 
| 7 | 
            +
            $flint__all__columns: get-all-columns() !global;
         | 
| 8 8 |  | 
| 9 9 | 
             
            // keep track of all instances of mixin
         | 
| 10 | 
            -
            $ | 
| 10 | 
            +
            $flint__instance-count: 0 !global;
         | 
| 11 11 | 
             
            $flint__instances: () !global;
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| @@ -1,3 +1,18 @@ | |
| 1 | 
            +
            // Outputs calculated styles
         | 
| 2 | 
            +
            // -------------------------------------------------------------------------------
         | 
| 3 | 
            +
            // @param $width [Value] : width
         | 
| 4 | 
            +
            // @param $margin-right [Value] : right margin
         | 
| 5 | 
            +
            // @param $margin-left [Value] : left margin
         | 
| 6 | 
            +
            // -------------------------------------------------------------------------------
         | 
| 7 | 
            +
            // @output [Styles...]
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            @mixin outputFlint ($width, $margin-right, $margin-left) {
         | 
| 10 | 
            +
            	width: $width;
         | 
| 11 | 
            +
            	margin-right: $margin-right;
         | 
| 12 | 
            +
            	margin-left: $margin-left;
         | 
| 13 | 
            +
            	@content;
         | 
| 14 | 
            +
            }
         | 
| 15 | 
            +
             | 
| 1 16 | 
             
            // Calculate widths, save all variables to instance
         | 
| 2 17 | 
             
            // -------------------------------------------------------------------------------
         | 
| 3 18 | 
             
            // @param $calcKey [Values...] : breakpoint key
         | 
| @@ -44,10 +59,9 @@ | |
| 44 59 | 
             
            			));
         | 
| 45 60 |  | 
| 46 61 | 
             
            			// Output styles
         | 
| 47 | 
            -
            			 | 
| 48 | 
            -
             | 
| 49 | 
            -
            			 | 
| 50 | 
            -
            			@content;
         | 
| 62 | 
            +
            			@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 63 | 
            +
            				@content;
         | 
| 64 | 
            +
            			}
         | 
| 51 65 |  | 
| 52 66 | 
             
            			// Create new instance for memoization
         | 
| 53 67 | 
             
            			@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| @@ -55,6 +69,22 @@ | |
| 55 69 | 
             
            			// If debug mode, print instance
         | 
| 56 70 | 
             
            			@include debugPrintInstance($calcKey);
         | 
| 57 71 |  | 
| 72 | 
            +
            		} @else if $calcGutter == "inside" and get-value(settings, gutter) != false {
         | 
| 73 | 
            +
             | 
| 74 | 
            +
            			$outputWidth: (calc-width($calcKey, $calcSpan)) - ((calc-margin($calcKey, $calcSpan))*4);
         | 
| 75 | 
            +
            			$outputMarginRight: calc-margin($calcKey, $calcSpan);
         | 
| 76 | 
            +
            			$outputMarginLeft: ( if( $calcShift > 0, 
         | 
| 77 | 
            +
            				(calc-margin($calcKey, $calcSpan)) + (calc-width($calcKey, $calcShift)),
         | 
| 78 | 
            +
            				(calc-margin($calcKey, -$calcSpan)) + (calc-width($calcKey, $calcShift)) 
         | 
| 79 | 
            +
            			));
         | 
| 80 | 
            +
             | 
| 81 | 
            +
            			@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 82 | 
            +
            				@content;
         | 
| 83 | 
            +
            			}
         | 
| 84 | 
            +
             | 
| 85 | 
            +
            			@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 86 | 
            +
            			@include debugPrintInstance($calcKey);
         | 
| 87 | 
            +
             | 
| 58 88 | 
             
            		} @else if $calcGutter == "alpha" and get-value(settings, gutter) != false {
         | 
| 59 89 |  | 
| 60 90 | 
             
            			$outputWidth: (calc-width($calcKey, $calcSpan)) - (calc-margin($calcKey, $calcSpan));
         | 
| @@ -64,10 +94,9 @@ | |
| 64 94 | 
             
            				calc-width($calcKey, $calcShift)
         | 
| 65 95 | 
             
            			));
         | 
| 66 96 |  | 
| 67 | 
            -
            			 | 
| 68 | 
            -
             | 
| 69 | 
            -
            			 | 
| 70 | 
            -
            			@content;
         | 
| 97 | 
            +
            			@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 98 | 
            +
            				@content;
         | 
| 99 | 
            +
            			}
         | 
| 71 100 |  | 
| 72 101 | 
             
            			@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 73 102 | 
             
            			@include debugPrintInstance($calcKey);
         | 
| @@ -81,10 +110,9 @@ | |
| 81 110 | 
             
            				(calc-margin($calcKey, -$calcSpan)) + (calc-width($calcKey, $calcShift)) 
         | 
| 82 111 | 
             
            			));
         | 
| 83 112 |  | 
| 84 | 
            -
            			 | 
| 85 | 
            -
             | 
| 86 | 
            -
            			 | 
| 87 | 
            -
            			@content;
         | 
| 113 | 
            +
            			@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 114 | 
            +
            				@content;
         | 
| 115 | 
            +
            			}
         | 
| 88 116 |  | 
| 89 117 | 
             
            			@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 90 118 | 
             
            			@include debugPrintInstance($calcKey);
         | 
| @@ -98,10 +126,9 @@ | |
| 98 126 | 
             
            				calc-width($calcKey, $calcShift)
         | 
| 99 127 | 
             
            			));
         | 
| 100 128 |  | 
| 101 | 
            -
            			 | 
| 102 | 
            -
             | 
| 103 | 
            -
            			 | 
| 104 | 
            -
            			@content;
         | 
| 129 | 
            +
            			@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 130 | 
            +
            				@content;
         | 
| 131 | 
            +
            			}
         | 
| 105 132 |  | 
| 106 133 | 
             
            			@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 107 134 | 
             
            			@include debugPrintInstance($calcKey);
         | 
| @@ -125,10 +152,50 @@ | |
| 125 152 | 
             
            							(calc-margin($calcKey, -$calcSpan, to-number(get-instance-value($calcKey, span)))) + (calc-width($calcKey, $calcShift, to-number(get-instance-value($calcKey, span)))) 
         | 
| 126 153 | 
             
            						));
         | 
| 127 154 |  | 
| 128 | 
            -
            						 | 
| 129 | 
            -
             | 
| 130 | 
            -
            						 | 
| 155 | 
            +
            						@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 156 | 
            +
            							@content;
         | 
| 157 | 
            +
            						}
         | 
| 158 | 
            +
             | 
| 159 | 
            +
            						@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 160 | 
            +
            						@include debugPrintInstance($calcKey);
         | 
| 161 | 
            +
            						
         | 
| 162 | 
            +
            					} @else {
         | 
| 163 | 
            +
            						// Else warn that context should not be set to `auto`
         | 
| 164 | 
            +
            						@warn "You set context to `#{$calcContext}`, but a parent instance could not be found for `#{selector_string()}`";
         | 
| 165 | 
            +
            					}
         | 
| 166 | 
            +
            					// Output styles normally if not set to auto
         | 
| 167 | 
            +
            				} @else {
         | 
| 168 | 
            +
             | 
| 169 | 
            +
            					$outputWidth: (calc-width($calcKey, $calcSpan, $calcContext)) - ((calc-margin($calcKey, $calcSpan, $calcContext))*2);
         | 
| 170 | 
            +
            					$outputMarginRight: calc-margin($calcKey, $calcSpan, $calcContext);
         | 
| 171 | 
            +
            					$outputMarginLeft: ( if( $calcShift > 0, 
         | 
| 172 | 
            +
            						(calc-margin($calcKey, $calcSpan, $calcContext)) + (calc-width($calcKey, $calcShift, $calcContext)),
         | 
| 173 | 
            +
            						(calc-margin($calcKey, -$calcSpan, $calcContext)) + (calc-width($calcKey, $calcShift, $calcContext)) 
         | 
| 174 | 
            +
            					));
         | 
| 175 | 
            +
             | 
| 176 | 
            +
            					@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 131 177 | 
             
            						@content;
         | 
| 178 | 
            +
            					}
         | 
| 179 | 
            +
             | 
| 180 | 
            +
            					@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 181 | 
            +
            					@include debugPrintInstance($calcKey);
         | 
| 182 | 
            +
            				}
         | 
| 183 | 
            +
             | 
| 184 | 
            +
            			} @else if $calcGutter == "inside" and get-value(settings, gutter) != false {
         | 
| 185 | 
            +
             | 
| 186 | 
            +
            				@if $calcContext == "auto" {
         | 
| 187 | 
            +
            					@if $exists != false {
         | 
| 188 | 
            +
             | 
| 189 | 
            +
            						$outputWidth: (calc-width($calcKey, $calcSpan, to-number(get-instance-value($calcKey, span)))) - ((calc-margin($calcKey, $calcSpan, to-number(get-instance-value($calcKey, span))))*4);
         | 
| 190 | 
            +
            						$outputMarginRight: calc-margin($calcKey, $calcSpan, to-number(get-instance-value($calcKey, span)));
         | 
| 191 | 
            +
            						$outputMarginLeft: ( if( $calcShift > 0, 
         | 
| 192 | 
            +
            							(calc-margin($calcKey, $calcSpan, to-number(get-instance-value($calcKey, span)))) + (calc-width($calcKey, $calcShift, to-number(get-instance-value($calcKey, span)))),
         | 
| 193 | 
            +
            							(calc-margin($calcKey, -$calcSpan, to-number(get-instance-value($calcKey, span)))) + (calc-width($calcKey, $calcShift, to-number(get-instance-value($calcKey, span)))) 
         | 
| 194 | 
            +
            						));
         | 
| 195 | 
            +
             | 
| 196 | 
            +
            						@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 197 | 
            +
            							@content;
         | 
| 198 | 
            +
            						}
         | 
| 132 199 |  | 
| 133 200 | 
             
            						@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 134 201 | 
             
            						@include debugPrintInstance($calcKey);
         | 
| @@ -147,10 +214,9 @@ | |
| 147 214 | 
             
            						(calc-margin($calcKey, -$calcSpan, $calcContext)) + (calc-width($calcKey, $calcShift, $calcContext)) 
         | 
| 148 215 | 
             
            					));
         | 
| 149 216 |  | 
| 150 | 
            -
            					 | 
| 151 | 
            -
             | 
| 152 | 
            -
            					 | 
| 153 | 
            -
            					@content;
         | 
| 217 | 
            +
            					@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 218 | 
            +
            						@content;
         | 
| 219 | 
            +
            					}
         | 
| 154 220 |  | 
| 155 221 | 
             
            					@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 156 222 | 
             
            					@include debugPrintInstance($calcKey);
         | 
| @@ -168,10 +234,9 @@ | |
| 168 234 | 
             
            							calc-width($calcKey, $calcShift, to-number(get-instance-value($calcKey, span)))
         | 
| 169 235 | 
             
            						));
         | 
| 170 236 |  | 
| 171 | 
            -
            						 | 
| 172 | 
            -
             | 
| 173 | 
            -
            						 | 
| 174 | 
            -
            						@content;
         | 
| 237 | 
            +
            						@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 238 | 
            +
            							@content;
         | 
| 239 | 
            +
            						}
         | 
| 175 240 |  | 
| 176 241 | 
             
            						@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 177 242 | 
             
            						@include debugPrintInstance($calcKey);
         | 
| @@ -188,10 +253,9 @@ | |
| 188 253 | 
             
            						calc-width($calcKey, $calcShift, $calcContext)
         | 
| 189 254 | 
             
            					));
         | 
| 190 255 |  | 
| 191 | 
            -
            					 | 
| 192 | 
            -
             | 
| 193 | 
            -
            					 | 
| 194 | 
            -
            					@content;
         | 
| 256 | 
            +
            					@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 257 | 
            +
            						@content;
         | 
| 258 | 
            +
            					}
         | 
| 195 259 |  | 
| 196 260 | 
             
            					@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 197 261 | 
             
            					@include debugPrintInstance($calcKey);
         | 
| @@ -209,10 +273,9 @@ | |
| 209 273 | 
             
            							(calc-margin($calcKey, -$calcSpan, to-number(get-instance-value($calcKey, span)))) + (calc-width($calcKey, $calcShift, to-number(get-instance-value($calcKey, span)))) 
         | 
| 210 274 | 
             
            						));
         | 
| 211 275 |  | 
| 212 | 
            -
            						 | 
| 213 | 
            -
             | 
| 214 | 
            -
            						 | 
| 215 | 
            -
            						@content;
         | 
| 276 | 
            +
            						@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 277 | 
            +
            							@content;
         | 
| 278 | 
            +
            						}
         | 
| 216 279 |  | 
| 217 280 | 
             
            						@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 218 281 | 
             
            						@include debugPrintInstance($calcKey);
         | 
| @@ -229,10 +292,9 @@ | |
| 229 292 | 
             
            						(calc-margin($calcKey, -$calcSpan, $calcContext)) + (calc-width($calcKey, $calcShift, $calcContext)) 
         | 
| 230 293 | 
             
            					));
         | 
| 231 294 |  | 
| 232 | 
            -
            					 | 
| 233 | 
            -
             | 
| 234 | 
            -
            					 | 
| 235 | 
            -
            					@content;
         | 
| 295 | 
            +
            					@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 296 | 
            +
            						@content;
         | 
| 297 | 
            +
            					}
         | 
| 236 298 |  | 
| 237 299 | 
             
            					@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 238 300 | 
             
            					@include debugPrintInstance($calcKey);
         | 
| @@ -250,10 +312,9 @@ | |
| 250 312 | 
             
            							calc-width($calcKey, $calcShift, to-number(get-instance-value($calcKey, span)))
         | 
| 251 313 | 
             
            						));
         | 
| 252 314 |  | 
| 253 | 
            -
            						 | 
| 254 | 
            -
             | 
| 255 | 
            -
            						 | 
| 256 | 
            -
            						@content;
         | 
| 315 | 
            +
            						@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 316 | 
            +
            							@content;
         | 
| 317 | 
            +
            						}
         | 
| 257 318 |  | 
| 258 319 | 
             
            						@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 259 320 | 
             
            						@include debugPrintInstance($calcKey);
         | 
| @@ -270,10 +331,9 @@ | |
| 270 331 | 
             
            						calc-width($calcKey, $calcShift, $calcContext)
         | 
| 271 332 | 
             
            					));
         | 
| 272 333 |  | 
| 273 | 
            -
            					 | 
| 274 | 
            -
             | 
| 275 | 
            -
            					 | 
| 276 | 
            -
            					@content;
         | 
| 334 | 
            +
            					@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 335 | 
            +
            						@content;
         | 
| 336 | 
            +
            					}
         | 
| 277 337 |  | 
| 278 338 | 
             
            					@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 279 339 | 
             
            					@include debugPrintInstance($calcKey);
         | 
| @@ -290,10 +350,9 @@ | |
| 290 350 | 
             
            						$outputMarginRight: calc-margin($calcKey, $calcSpan, to-number(get-instance-value($calcKey, span)));
         | 
| 291 351 | 
             
            						$outputMarginLeft: calc-margin($calcKey, $calcSpan, to-number(get-instance-value($calcKey, span)));
         | 
| 292 352 |  | 
| 293 | 
            -
            						 | 
| 294 | 
            -
             | 
| 295 | 
            -
            						 | 
| 296 | 
            -
            						@content;
         | 
| 353 | 
            +
            						@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 354 | 
            +
            							@content;
         | 
| 355 | 
            +
            						}
         | 
| 297 356 |  | 
| 298 357 | 
             
            						@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 299 358 | 
             
            						@include debugPrintInstance($calcKey);
         | 
| @@ -309,10 +368,42 @@ | |
| 309 368 | 
             
            					$outputMarginRight: calc-margin($calcKey, $calcSpan, $calcContext);
         | 
| 310 369 | 
             
            					$outputMarginLeft: calc-margin($calcKey, $calcSpan, $calcContext);
         | 
| 311 370 |  | 
| 312 | 
            -
            					 | 
| 313 | 
            -
             | 
| 314 | 
            -
            					 | 
| 315 | 
            -
             | 
| 371 | 
            +
            					@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 372 | 
            +
            						@content;
         | 
| 373 | 
            +
            					}
         | 
| 374 | 
            +
             | 
| 375 | 
            +
            					@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 376 | 
            +
            					@include debugPrintInstance($calcKey);
         | 
| 377 | 
            +
            				}
         | 
| 378 | 
            +
             | 
| 379 | 
            +
            			} @else if $calcGutter == "inside" and get-value(settings, gutter) != false {
         | 
| 380 | 
            +
             | 
| 381 | 
            +
            				@if $calcContext == "auto" {
         | 
| 382 | 
            +
            					@if $exists != false {
         | 
| 383 | 
            +
             | 
| 384 | 
            +
            						$outputWidth: (calc-width($calcKey, $calcSpan, to-number(get-instance-value($calcKey, span)))) - ((calc-margin($calcKey, $calcSpan, to-number(get-instance-value($calcKey, span))))*4);
         | 
| 385 | 
            +
            						$outputMarginRight: calc-margin($calcKey, $calcSpan, to-number(get-instance-value($calcKey, span)));
         | 
| 386 | 
            +
            						$outputMarginLeft: calc-margin($calcKey, $calcSpan, to-number(get-instance-value($calcKey, span)));
         | 
| 387 | 
            +
             | 
| 388 | 
            +
            						@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 389 | 
            +
            							@content;
         | 
| 390 | 
            +
            						}
         | 
| 391 | 
            +
             | 
| 392 | 
            +
            						@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 393 | 
            +
            						@include debugPrintInstance($calcKey);
         | 
| 394 | 
            +
             | 
| 395 | 
            +
            					} @else {
         | 
| 396 | 
            +
            						@warn "You set context to `#{$calcContext}`, but a parent instance could not be found for `#{selector_string()}`";
         | 
| 397 | 
            +
            					}
         | 
| 398 | 
            +
            				} @else {
         | 
| 399 | 
            +
             | 
| 400 | 
            +
            					$outputWidth: (calc-width($calcKey, $calcSpan, $calcContext)) - ((calc-margin($calcKey, $calcSpan, $calcContext))*2);
         | 
| 401 | 
            +
            					$outputMarginRight: calc-margin($calcKey, $calcSpan, $calcContext);
         | 
| 402 | 
            +
            					$outputMarginLeft: calc-margin($calcKey, $calcSpan, $calcContext);
         | 
| 403 | 
            +
             | 
| 404 | 
            +
            					@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 405 | 
            +
            						@content;
         | 
| 406 | 
            +
            					}
         | 
| 316 407 |  | 
| 317 408 | 
             
            					@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 318 409 | 
             
            					@include debugPrintInstance($calcKey);
         | 
| @@ -327,10 +418,9 @@ | |
| 327 418 | 
             
            						$outputMarginRight: calc-margin($calcKey, $calcSpan, to-number(get-instance-value($calcKey, span)));
         | 
| 328 419 | 
             
            						$outputMarginLeft: 0;
         | 
| 329 420 |  | 
| 330 | 
            -
            						 | 
| 331 | 
            -
             | 
| 332 | 
            -
            						 | 
| 333 | 
            -
            						@content;
         | 
| 421 | 
            +
            						@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 422 | 
            +
            							@content;
         | 
| 423 | 
            +
            						}
         | 
| 334 424 |  | 
| 335 425 | 
             
            						@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 336 426 | 
             
            						@include debugPrintInstance($calcKey);
         | 
| @@ -344,10 +434,9 @@ | |
| 344 434 | 
             
            					$outputMarginRight: calc-margin($calcKey, $calcSpan, $calcContext);
         | 
| 345 435 | 
             
            					$outputMarginLeft: 0;
         | 
| 346 436 |  | 
| 347 | 
            -
            					 | 
| 348 | 
            -
             | 
| 349 | 
            -
            					 | 
| 350 | 
            -
            					@content;
         | 
| 437 | 
            +
            					@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 438 | 
            +
            						@content;
         | 
| 439 | 
            +
            					}
         | 
| 351 440 |  | 
| 352 441 | 
             
            					@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 353 442 | 
             
            					@include debugPrintInstance($calcKey);
         | 
| @@ -362,10 +451,9 @@ | |
| 362 451 | 
             
            						$outputMarginRight: 0;
         | 
| 363 452 | 
             
            						$outputMarginLeft: calc-margin($calcKey, $calcSpan, to-number(get-instance-value($calcKey, span)));
         | 
| 364 453 |  | 
| 365 | 
            -
            						 | 
| 366 | 
            -
             | 
| 367 | 
            -
            						 | 
| 368 | 
            -
            						@content;
         | 
| 454 | 
            +
            						@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 455 | 
            +
            							@content;
         | 
| 456 | 
            +
            						}
         | 
| 369 457 |  | 
| 370 458 | 
             
            						@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 371 459 | 
             
            						@include debugPrintInstance($calcKey);
         | 
| @@ -379,10 +467,9 @@ | |
| 379 467 | 
             
            					$outputMarginRight: 0;
         | 
| 380 468 | 
             
            					$outputMarginLeft: calc-margin($calcKey, $calcSpan, $calcContext);
         | 
| 381 469 |  | 
| 382 | 
            -
            					 | 
| 383 | 
            -
             | 
| 384 | 
            -
            					 | 
| 385 | 
            -
            					@content;
         | 
| 470 | 
            +
            					@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 471 | 
            +
            						@content;
         | 
| 472 | 
            +
            					}
         | 
| 386 473 |  | 
| 387 474 | 
             
            					@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 388 475 | 
             
            					@include debugPrintInstance($calcKey);
         | 
| @@ -397,10 +484,9 @@ | |
| 397 484 | 
             
            						$outputMarginRight: 0;
         | 
| 398 485 | 
             
            						$outputMarginLeft: 0;
         | 
| 399 486 |  | 
| 400 | 
            -
            						 | 
| 401 | 
            -
             | 
| 402 | 
            -
            						 | 
| 403 | 
            -
            						@content;
         | 
| 487 | 
            +
            						@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 488 | 
            +
            							@content;
         | 
| 489 | 
            +
            						}
         | 
| 404 490 |  | 
| 405 491 | 
             
            						@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 406 492 | 
             
            						@include debugPrintInstance($calcKey);
         | 
| @@ -414,10 +500,9 @@ | |
| 414 500 | 
             
            					$outputMarginRight: 0;
         | 
| 415 501 | 
             
            					$outputMarginLeft: 0;
         | 
| 416 502 |  | 
| 417 | 
            -
            					 | 
| 418 | 
            -
             | 
| 419 | 
            -
            					 | 
| 420 | 
            -
            					@content;
         | 
| 503 | 
            +
            					@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 504 | 
            +
            						@content;
         | 
| 505 | 
            +
            					}
         | 
| 421 506 |  | 
| 422 507 | 
             
            					@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 423 508 | 
             
            					@include debugPrintInstance($calcKey);
         | 
| @@ -433,10 +518,22 @@ | |
| 433 518 | 
             
            			$outputMarginRight: calc-margin($calcKey, $calcSpan);
         | 
| 434 519 | 
             
            			$outputMarginLeft: calc-margin($calcKey, $calcSpan);
         | 
| 435 520 |  | 
| 436 | 
            -
            			 | 
| 437 | 
            -
             | 
| 438 | 
            -
            			 | 
| 439 | 
            -
             | 
| 521 | 
            +
            			@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 522 | 
            +
            				@content;
         | 
| 523 | 
            +
            			}
         | 
| 524 | 
            +
             | 
| 525 | 
            +
            			@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 526 | 
            +
            			@include debugPrintInstance($calcKey);
         | 
| 527 | 
            +
             | 
| 528 | 
            +
            		} @else if $calcGutter == "inside" and get-value(settings, gutter) != false {
         | 
| 529 | 
            +
             | 
| 530 | 
            +
            			$outputWidth: (calc-width($calcKey, $calcSpan)) - ((calc-margin($calcKey, $calcSpan))*4);
         | 
| 531 | 
            +
            			$outputMarginRight: calc-margin($calcKey, $calcSpan);
         | 
| 532 | 
            +
            			$outputMarginLeft: calc-margin($calcKey, $calcSpan);
         | 
| 533 | 
            +
             | 
| 534 | 
            +
            			@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 535 | 
            +
            				@content;
         | 
| 536 | 
            +
            			}
         | 
| 440 537 |  | 
| 441 538 | 
             
            			@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 442 539 | 
             
            			@include debugPrintInstance($calcKey);
         | 
| @@ -447,10 +544,9 @@ | |
| 447 544 | 
             
            			$outputMarginRight: calc-margin($calcKey, $calcSpan);
         | 
| 448 545 | 
             
            			$outputMarginLeft: 0;
         | 
| 449 546 |  | 
| 450 | 
            -
            			 | 
| 451 | 
            -
             | 
| 452 | 
            -
            			 | 
| 453 | 
            -
            			@content;
         | 
| 547 | 
            +
            			@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 548 | 
            +
            				@content;
         | 
| 549 | 
            +
            			}
         | 
| 454 550 |  | 
| 455 551 | 
             
            			@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 456 552 | 
             
            			@include debugPrintInstance($calcKey);
         | 
| @@ -461,10 +557,9 @@ | |
| 461 557 | 
             
            			$outputMarginRight: 0;
         | 
| 462 558 | 
             
            			$outputMarginLeft: calc-margin($calcKey, $calcSpan);
         | 
| 463 559 |  | 
| 464 | 
            -
            			 | 
| 465 | 
            -
             | 
| 466 | 
            -
            			 | 
| 467 | 
            -
            			@content;
         | 
| 560 | 
            +
            			@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 561 | 
            +
            				@content;
         | 
| 562 | 
            +
            			}
         | 
| 468 563 |  | 
| 469 564 | 
             
            			@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 470 565 | 
             
            			@include debugPrintInstance($calcKey);
         | 
| @@ -475,10 +570,9 @@ | |
| 475 570 | 
             
            			$outputMarginRight: 0;
         | 
| 476 571 | 
             
            			$outputMarginLeft: 0;
         | 
| 477 572 |  | 
| 478 | 
            -
            			 | 
| 479 | 
            -
             | 
| 480 | 
            -
            			 | 
| 481 | 
            -
            			@content;
         | 
| 573 | 
            +
            			@include outputFlint($outputWidth, $outputMarginRight, $outputMarginLeft) {
         | 
| 574 | 
            +
            				@content;
         | 
| 575 | 
            +
            			}
         | 
| 482 576 |  | 
| 483 577 | 
             
            			@include newInstance ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $outputWidth, $outputMarginRight, $outputMarginLeft);
         | 
| 484 578 | 
             
            			@include debugPrintInstance($calcKey);
         | 
| @@ -16,11 +16,11 @@ | |
| 16 16 |  | 
| 17 17 | 
             
            		// apply global border-box-sizing if true
         | 
| 18 18 | 
             
            		@if get-value(settings, border-box-sizing) == true {
         | 
| 19 | 
            -
            			$ | 
| 19 | 
            +
            			$flint__foundation: "existant" !global;
         | 
| 20 20 | 
             
            		}
         | 
| 21 21 |  | 
| 22 22 | 
             
            		// foundation is now globally existant
         | 
| 23 | 
            -
            		@if $ | 
| 23 | 
            +
            		@if $flint__foundation == "existant" {
         | 
| 24 24 | 
             
            			@at-root *, *:before, *:after {
         | 
| 25 25 | 
             
            	  			-moz-box-sizing: border-box;
         | 
| 26 26 | 
             
            				-webkit-box-sizing: border-box;
         | 
| @@ -49,7 +49,7 @@ | |
| 49 49 |  | 
| 50 50 | 
             
            		} @else if length($key) > 1 or type-of($key) != "string" {
         | 
| 51 51 |  | 
| 52 | 
            -
            			@for $i from 1 through length($ | 
| 52 | 
            +
            			@for $i from 1 through length($flint__all__keys) {
         | 
| 53 53 | 
             
            				$calcKey: steal-key($i);
         | 
| 54 54 |  | 
| 55 55 | 
             
            				@if $calcKey == get-value(settings, default) {
         | 
| @@ -59,14 +59,14 @@ | |
| 59 59 | 
             
            		}
         | 
| 60 60 |  | 
| 61 61 | 
             
            		// apply individually if foundation is not set globally, but is set to true in config
         | 
| 62 | 
            -
            		@if get-value(settings, border-box-sizing) == true and $ | 
| 62 | 
            +
            		@if get-value(settings, border-box-sizing) == true and $flint__foundation == "nonexistant" {
         | 
| 63 63 | 
             
              			-moz-box-sizing: border-box;
         | 
| 64 64 | 
             
            			-webkit-box-sizing: border-box;
         | 
| 65 65 | 
             
            			box-sizing: border-box;
         | 
| 66 66 |  | 
| 67 67 | 
             
            			// warn to either set a global foundation, or turn border-box-sizing off
         | 
| 68 68 | 
             
            			@if global-variable-exists(global-foundation-is-set) == false {
         | 
| 69 | 
            -
            				@warn "Global foundation is #{$ | 
| 69 | 
            +
            				@warn "Global foundation is #{$flint__foundation}. To avoid repeated box-sizing incidents, set a global flint(foundation) rule, or turn border-box-sizing to false in your config file.";
         | 
| 70 70 |  | 
| 71 71 | 
             
            				// declare global variable so only a single warning prints out
         | 
| 72 72 | 
             
            				$global-foundation-is-set: true !global;
         | 
| @@ -100,7 +100,7 @@ | |
| 100 100 |  | 
| 101 101 | 
             
            			} @else if length($key) > 1 or type-of($key) != "string" {
         | 
| 102 102 |  | 
| 103 | 
            -
            				@for $i from 1 through length($ | 
| 103 | 
            +
            				@for $i from 1 through length($flint__all__keys) {
         | 
| 104 104 | 
             
            					$calcKey: steal-key($i);
         | 
| 105 105 |  | 
| 106 106 | 
             
            					@if $calcKey == get-value(settings, default) {
         | 
| @@ -123,7 +123,7 @@ | |
| 123 123 |  | 
| 124 124 | 
             
            			@if get-value(settings, grid) == "fixed" {
         | 
| 125 125 |  | 
| 126 | 
            -
            				@for $i from 1 through length($ | 
| 126 | 
            +
            				@for $i from 1 through length($flint__all__keys) {
         | 
| 127 127 |  | 
| 128 128 | 
             
            					$calcKey: steal-key($i);
         | 
| 129 129 | 
             
            					$calcSpan: $key;
         | 
| @@ -131,7 +131,7 @@ | |
| 131 131 | 
             
            					$calcGutter: $gutter;
         | 
| 132 132 | 
             
            					$calcShift: $shift;
         | 
| 133 133 |  | 
| 134 | 
            -
            					@if  | 
| 134 | 
            +
            					@if is-highest-breakpoint($calcKey) {
         | 
| 135 135 | 
             
            						@media only screen and ( min-width: calc-breakpoint(from, $calcKey, $i) ) {
         | 
| 136 136 | 
             
            							width: calc-width($calcKey, $calcSpan);
         | 
| 137 137 | 
             
            							@content;
         | 
| @@ -152,7 +152,7 @@ | |
| 152 152 |  | 
| 153 153 | 
             
            			@if length($key) == 1 and $span == NULL {
         | 
| 154 154 |  | 
| 155 | 
            -
            				@for $i from 1 through length($ | 
| 155 | 
            +
            				@for $i from 1 through length($flint__all__keys) {
         | 
| 156 156 |  | 
| 157 157 | 
             
            					$calcKey: steal-key($i);
         | 
| 158 158 | 
             
            					$calcSpan: $key;
         | 
| @@ -166,7 +166,7 @@ | |
| 166 166 |  | 
| 167 167 | 
             
            					} @else {
         | 
| 168 168 |  | 
| 169 | 
            -
            			  			@if is-highest-breakpoint($calcKey)  | 
| 169 | 
            +
            			  			@if is-highest-breakpoint($calcKey) {
         | 
| 170 170 |  | 
| 171 171 | 
             
            							@media only screen and ( min-width: calc-breakpoint(from, $calcKey, $i) ) {
         | 
| 172 172 | 
             
            								@include calcFlint ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $i);
         | 
| @@ -191,7 +191,7 @@ | |
| 191 191 |  | 
| 192 192 | 
             
            			} @else if length($key) == 1 and length($span) == 1 {
         | 
| 193 193 |  | 
| 194 | 
            -
            				@for $i from 1 through length($ | 
| 194 | 
            +
            				@for $i from 1 through length($flint__all__keys) {
         | 
| 195 195 |  | 
| 196 196 | 
             
            					$calcKey: steal-key($i);
         | 
| 197 197 | 
             
            					$calcSpan: $key;
         | 
| @@ -205,7 +205,7 @@ | |
| 205 205 |  | 
| 206 206 | 
             
            					} @else {
         | 
| 207 207 |  | 
| 208 | 
            -
            			  			@if is-highest-breakpoint($calcKey)  | 
| 208 | 
            +
            			  			@if is-highest-breakpoint($calcKey) {
         | 
| 209 209 |  | 
| 210 210 | 
             
            							@media only screen and ( min-width: calc-breakpoint(from, $calcKey, $i) ) {
         | 
| 211 211 | 
             
            								@include calcFlint ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $i);
         | 
| @@ -230,7 +230,7 @@ | |
| 230 230 |  | 
| 231 231 | 
             
            			} @else if length($key) == 1 and length($span) > 1 {
         | 
| 232 232 |  | 
| 233 | 
            -
            				@for $i from 1 through length($ | 
| 233 | 
            +
            				@for $i from 1 through length($flint__all__keys) {
         | 
| 234 234 |  | 
| 235 235 | 
             
            					$calcKey: steal-key($i);
         | 
| 236 236 | 
             
            					$calcSpan: $key;
         | 
| @@ -244,7 +244,7 @@ | |
| 244 244 |  | 
| 245 245 | 
             
            					} @else {
         | 
| 246 246 |  | 
| 247 | 
            -
            						@if is-highest-breakpoint($calcKey)  | 
| 247 | 
            +
            						@if is-highest-breakpoint($calcKey) {
         | 
| 248 248 |  | 
| 249 249 | 
             
            							@media only screen and ( min-width: calc-breakpoint(from, $calcKey, $i) ) {
         | 
| 250 250 | 
             
            								@include calcFlint ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $i);
         | 
| @@ -274,7 +274,7 @@ | |
| 274 274 | 
             
            		and is-not-string(nth($key, 1))
         | 
| 275 275 | 
             
            		and is-not-string(nth($key, 2))
         | 
| 276 276 | 
             
            	{
         | 
| 277 | 
            -
            		@for $i from 1 through length($ | 
| 277 | 
            +
            		@for $i from 1 through length($flint__all__keys) {
         | 
| 278 278 |  | 
| 279 279 | 
             
            			$calcKey: steal-key($i);
         | 
| 280 280 | 
             
            			$calcSpan: $key;
         | 
| @@ -288,7 +288,7 @@ | |
| 288 288 |  | 
| 289 289 | 
             
            			} @else {
         | 
| 290 290 |  | 
| 291 | 
            -
            				@if is-highest-breakpoint($calcKey)  | 
| 291 | 
            +
            				@if is-highest-breakpoint($calcKey) {
         | 
| 292 292 |  | 
| 293 293 | 
             
            					@media only screen and ( min-width: calc-breakpoint(from, $calcKey, $i) ) {
         | 
| 294 294 | 
             
            						@include calcFlint ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $i);
         | 
| @@ -316,7 +316,7 @@ | |
| 316 316 | 
             
            		and is-not-string(nth($key, 1))
         | 
| 317 317 | 
             
            		and is-not-string(nth($key, 2))
         | 
| 318 318 | 
             
            	{
         | 
| 319 | 
            -
            		@for $i from 1 through length($ | 
| 319 | 
            +
            		@for $i from 1 through length($flint__all__keys) {
         | 
| 320 320 |  | 
| 321 321 | 
             
            			$calcKey: steal-key($i);
         | 
| 322 322 | 
             
            			$calcSpan: $key;
         | 
| @@ -330,7 +330,7 @@ | |
| 330 330 |  | 
| 331 331 | 
             
            			} @else {
         | 
| 332 332 |  | 
| 333 | 
            -
            				@if is-highest-breakpoint($calcKey)  | 
| 333 | 
            +
            				@if is-highest-breakpoint($calcKey) {
         | 
| 334 334 |  | 
| 335 335 | 
             
            					@media only screen and ( min-width: calc-breakpoint(from, $calcKey, $i) ) {
         | 
| 336 336 | 
             
            						@include calcFlint ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift, $i);
         | 
| @@ -367,7 +367,7 @@ | |
| 367 367 |  | 
| 368 368 | 
             
            		} @else {
         | 
| 369 369 |  | 
| 370 | 
            -
            			@if is-highest-breakpoint($calcKey)  | 
| 370 | 
            +
            			@if is-highest-breakpoint($calcKey) {
         | 
| 371 371 |  | 
| 372 372 | 
             
            				@media only screen and ( min-width: calc-breakpoint(from, $calcKey, get-index($calcKey)) ) {
         | 
| 373 373 | 
             
            					@include calcFlint ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift);
         | 
| @@ -404,7 +404,7 @@ | |
| 404 404 |  | 
| 405 405 | 
             
            		} @else {
         | 
| 406 406 |  | 
| 407 | 
            -
            			@if is-highest-breakpoint($calcKey)  | 
| 407 | 
            +
            			@if is-highest-breakpoint($calcKey) {
         | 
| 408 408 |  | 
| 409 409 | 
             
            				@media only screen and ( min-width: calc-breakpoint(from, $calcKey, get-index($calcKey)) ) {
         | 
| 410 410 | 
             
            					@include calcFlint ($calcKey, $calcSpan, $calcContext, $calcGutter, $calcShift);
         | 
| 
            File without changes
         | 
| @@ -1,10 +1,10 @@ | |
| 1 | 
            -
            // Prints debug  | 
| 1 | 
            +
            // Prints debug properties
         | 
| 2 2 | 
             
            // -------------------------------------------------------------------------------
         | 
| 3 3 | 
             
            // @dependence `printInstance()`
         | 
| 4 4 | 
             
            // -------------------------------------------------------------------------------
         | 
| 5 5 | 
             
            // @param $calcKey [Breakpoint] : breakpoint key to search for instance
         | 
| 6 6 | 
             
            // -------------------------------------------------------------------------------
         | 
| 7 | 
            -
            // @output [ | 
| 7 | 
            +
            // @output [Properties...]
         | 
| 8 8 |  | 
| 9 9 | 
             
            @mixin debugPrintInstance($calcKey) {
         | 
| 10 10 | 
             
            	@if get-value(settings, debug-mode) == true {
         | 
| @@ -13,11 +13,11 @@ | |
| 13 13 | 
             
            	}
         | 
| 14 14 | 
             
            }
         | 
| 15 15 |  | 
| 16 | 
            -
            // Prints all contents of instance | 
| 16 | 
            +
            // Prints all contents of instance
         | 
| 17 17 | 
             
            // -------------------------------------------------------------------------------
         | 
| 18 18 | 
             
            // @param $instance [Map] : instance
         | 
| 19 19 | 
             
            // -------------------------------------------------------------------------------
         | 
| 20 | 
            -
            // @output [ | 
| 20 | 
            +
            // @output [Properties...]
         | 
| 21 21 |  | 
| 22 22 | 
             
            @mixin printInstance($instance) {
         | 
| 23 23 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: flint-gs
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.0. | 
| 4 | 
            +
              version: 1.0.4
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Ezekiel Gabrielse
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date: 2014-04- | 
| 12 | 
            +
            date: 2014-04-24 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: sass
         |