flint-gs 1.9.1 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a150c2e0da9a945396df9ad56fe361761678278c
4
- data.tar.gz: 06f27376ed86dfe4b14c6ed8e0ba000a8312dfa2
3
+ metadata.gz: 63ba26c499600324f23fb24bf1b0f4d9bf128478
4
+ data.tar.gz: 3882ee657a90d40d5ec896d8ff818ce6db99c688
5
5
  SHA512:
6
- metadata.gz: b28f695620f39fae5cdbcff2e5021d33861bc391f299a6b8e7fd51fd5e1c7b96b3da20839ee826d6dfbdd14552fef6a2decb6f953633d9e11c7795c210ac091f
7
- data.tar.gz: 718c30f212093b9d7753335f519e7b72a75c33124437bcbe5efa4b7868cbece05f204b9cbc7bc5fe0538d9afe056f18cfcc58d6c0a9bee4afe30a42ff666cac4
6
+ metadata.gz: 10ed7130f8c51a0d0fb780651373227605404e215b9a23f1ef7daec694d2e213d7cb7710896a5119c26cc19c1121dd87cb703f0f931d08ff5de5a465e84673ed
7
+ data.tar.gz: fa4e1b26f8c9cdaba11e94ebdfa8e957f55385ec497dd06125a593e5d2886fed0784330c693940f552edbc64a244debc636e632a41079a6a701ba3772fa433f4
data/README.md CHANGED
@@ -31,7 +31,8 @@ Enjoy.
31
31
  ## Requirements
32
32
 
33
33
  * Sass ~> `3.3.0`
34
- * Ruby ~> `1.8.7`
34
+
35
+ _Currently, Flint is only available for Ruby Sass; so it will not work with libSass until they support the map data-type. Flint depends on a few custom Ruby functions, but in `2.0` I hope to have those dependencies relieved._
35
36
 
36
37
  ## Installation
37
38
 
@@ -39,7 +40,12 @@ Enjoy.
39
40
  2. If you're using Compass, add `require "flint"` to your `config.rb`
40
41
  3. Import it into your stylesheet with `@import "flint"`
41
42
 
42
- If you don't want to install it, then simply download or clone the current build files. Use the starter `config.rb` to require any custom functions Flint uses; currently this is required, as we're making use of custom SassScript functions until the SassScript `&` [returns to Sass](https://gist.github.com/nex3/8050187). Adjust the paths according to your project.
43
+ If you don't want to install it, then simply download or clone the current build files. Use your `config.rb` to require any custom functions Flint uses; currently this is required, as we're making use of custom SassScript functions until the SassScript `&` [returns to Sass](https://gist.github.com/nex3/8050187) **(set for integration with Sass `3.4` in `2.0`)**. Adjust the paths according to your project.
44
+
45
+ If you're not using Compass, you can require the custom Ruby functions and compile via:
46
+ ```
47
+ scss --require ./lib/flint.rb example.scss > example.css
48
+ ```
43
49
 
44
50
  ## Documentation
45
51
 
@@ -511,57 +517,57 @@ Use these if you need to apply breakpoint specific styling.
511
517
  ```scss
512
518
  .wrap {
513
519
  @include _(desktop) {
514
- // only desktop
520
+ // Only desktop
515
521
  }
516
522
  }
517
523
  .wrap {
518
524
  @include _(greater than mobile) {
519
- // all sizes above mobile's breakpoint
525
+ // All sizes above mobile's breakpoint
520
526
  }
521
527
  }
522
528
  .wrap {
523
529
  @include _(10em greater than tablet) {
524
- // all sizes 10em above tablet's breakpoint
530
+ // All sizes 10em above tablet's breakpoint
525
531
  }
526
532
  }
527
533
  .wrap {
528
534
  @include _(greater than 60em) {
529
- // all sizes above 60em
535
+ // All sizes above 60em
530
536
  }
531
537
  }
532
538
  .wrap {
533
539
  @include _(less than tablet) {
534
- // all sizes under tablet
540
+ // All sizes under tablet
535
541
  }
536
542
  }
537
543
  .wrap {
538
544
  @include _(1em less than laptop) {
539
- // all sizes 1em under laptop
545
+ // All sizes 1em under laptop
540
546
  }
541
547
  }
542
548
  .wrap {
543
549
  @include _(less than 40em) {
544
- // all sizes under 40em
550
+ // All sizes under 40em
545
551
  }
546
552
  }
547
553
  .wrap {
548
554
  @include _(for desktop tablet) {
549
- // only for desktop and tablet
555
+ // Only for desktop and tablet
550
556
  }
551
557
  }
552
558
  .wrap {
553
559
  @include _(from mobile to laptop) {
554
- // all sizes from mobile to laptop
560
+ // All sizes from mobile to laptop
555
561
  }
556
562
  }
557
563
  .wrap {
558
564
  @include _(from desktop to infinity) {
559
- // all sizes from desktop to infinity
565
+ // All sizes from desktop to infinity
560
566
  }
561
567
  }
562
568
  .wrap {
563
569
  @include _(from 20em to 40em) {
564
- // all sizes from 20em to 40em
570
+ // All sizes from 20em to 40em
565
571
  }
566
572
  }
567
573
  ```
@@ -578,7 +584,7 @@ Use if you want to define each span without shorthands.
578
584
  @include _(mobile, 4);
579
585
  }
580
586
 
581
- // with context,
587
+ // With context,
582
588
  // .name {
583
589
  // @include _(desktop, 4, 16, $gutter: alpha);
584
590
  // }
@@ -620,48 +626,69 @@ Outputs,
620
626
 
621
627
  Here are different gutter modifiers that may be called in when defining spans using the `$gutter` variable. The `$gutter` variable allows you to pass in either a recursive argument, or a variable argument, similar to `$span`.
622
628
 
629
+ _**Note:** When defining `$gutter: center`, the float property will be set to `none` in order to center your column._
630
+
623
631
  ```scss
624
- // default margins
632
+ // Default margins
625
633
  .gutter-default {
626
634
  // other aliases : `normal` | `regular`
627
635
  @include _(desktop, 4, $gutter: default);
628
636
  }
629
637
 
630
- // no left margin
638
+ // Center column
639
+ .gutter-center {
640
+ @include _(desktop, 4, $gutter: center);
641
+ }
642
+
643
+ // No left margin
631
644
  .gutter-alpha {
632
645
  // other aliases : `no-left` | `first`
633
646
  @include _(desktop, 4, $gutter: alpha);
634
647
  }
635
648
 
636
- // no right margin
649
+ // No right margin
637
650
  .gutter-omega {
638
651
  // other aliases : `no-right` | `flint-last`
639
652
  @include _(desktop, 4, $gutter: omega);
640
653
  }
641
654
 
642
- // no margins
655
+ // No margins
643
656
  .gutter-row {
644
657
  // other alias : `none`
645
658
  @include _(desktop, 4, $gutter: row);
646
659
  }
647
660
 
648
- // places gutters on inside by reducing column width by [gutter*2]
661
+ // Places gutters on inside by reducing column width by [gutter*2]
649
662
  .gutter-inside {
650
663
  @include _(desktop, 4, $gutter: inside);
651
664
  }
652
665
 
653
- // variable gutter
666
+ // Variable gutter
654
667
  .variable-gutter {
655
- @include _(16 12 8 4, $gutter: row alpha omega normal);
668
+ @include _(16 12 8 4, $gutter: row alpha center normal);
656
669
  }
657
670
 
658
- // recursive gutter
671
+ // Recursive gutter
659
672
  .recursive-gutter {
660
673
  @include _(16 12 8 4, $gutter: row);
661
674
  }
662
675
  ```
663
676
  Outputs,
664
677
  ```scss
678
+ .gutter-normal {
679
+ display: block;
680
+ float: left;
681
+ width: 23.4375%;
682
+ margin-right: 0.78125%;
683
+ margin-left: 0.78125%;
684
+ }
685
+ .gutter-center {
686
+ display: block;
687
+ float: none;
688
+ width: 23.4375%;
689
+ margin-right: auto;
690
+ margin-left: auto;
691
+ }
665
692
  .gutter-alpha {
666
693
  display: block;
667
694
  float: left;
@@ -755,12 +782,12 @@ _The `$shift` modifier has been deprecated as of `1.8.0`. It is set to be remove
755
782
  Much like the gutter modifiers, you may also call in a shift parameter using the `$shift` variable. This will cause the element to shift the desired amount of columns using positive/negative left margins.
756
783
 
757
784
  ```scss
758
- // shift 4 columns to the right across all breakpoints
785
+ // Shift 4 columns to the right across all breakpoints
759
786
  .name {
760
787
  @include _(12 12 8 4, $shift: 4);
761
788
  }
762
789
 
763
- // shift 2 columns to the left across specified breakpoints
790
+ // Shift 2 columns to the left across specified breakpoints
764
791
  .name {
765
792
  @include _(12 12 8 4, $shift: -2 -2 0 0);
766
793
  }
@@ -1,23 +1,17 @@
1
1
  require 'sass'
2
2
 
3
3
  base_directory = File.expand_path(File.join(File.dirname(__FILE__), '..'))
4
- flint_stylesheets_path = File.join(base_directory, 'sass')
4
+ flint_stylesheets_path = File.join(base_directory, 'stylesheets')
5
5
 
6
6
  if (defined? Compass)
7
7
  Compass::Frameworks.register('flint', :path => base_directory)
8
8
  else
9
- # Compass not found, register on the Sass path via the environment
10
- if ENV.has_key?("SASS_PATH")
11
- ENV["SASS_PATH"] = ENV["SASS_PATH"] + File::PATH_SEPARATOR + flint_stylesheets_path
12
- else
13
- ENV["SASS_PATH"] = flint_stylesheets_path
14
- end
9
+ ENV["SASS_PATH"] = [ENV["SASS_PATH"], flint_stylesheets_path].compact.join(File::PATH_SEPARATOR)
15
10
  end
16
11
 
17
- # Date is in the form of YYYY-MM-DD
18
12
  module Flint
19
- VERSION = "1.9.1"
20
- DATE = "2014-08-04"
13
+ VERSION = "1.10.0"
14
+ DATE = "2014-08-11"
21
15
  end
22
16
 
23
17
  # Custom functions
@@ -63,7 +63,7 @@
63
63
 
64
64
  } @else {
65
65
 
66
- // Else, flint-remove the flint-last selector and loop again
66
+ // Else, remove the last selector and loop again
67
67
  $selector-list: flint-remove($selector-list, flint-last($selector-list));
68
68
 
69
69
  }
@@ -1,7 +1,5 @@
1
1
  // Keeps count of all instances with arguments, stores in global var
2
2
  // -------------------------------------------------------------------------------
3
- // @dependence `flint-get-value()`
4
- // -------------------------------------------------------------------------------
5
3
  // @param $key [string] : computed breakpoint of instance
6
4
  // @param $span [number] : computed span of instance
7
5
  // @param $context [number] : computed context of instance
@@ -115,18 +115,40 @@
115
115
 
116
116
  // Define floats if key is default, or this is a single instance call
117
117
  // ----
118
- @if flint-is-default($calc-key) or $i == null {
118
+ @if flint-is-default($calc-key) and $gutter != "center" or $i == null and $gutter != "center" {
119
119
  float: unquote(flint-get-value("settings", "float-style"));
120
120
  }
121
121
 
122
+ // Disable floats if gutter is set to center
123
+ // ----
124
+ $recursive-center: false;
125
+
126
+ @if $gutter == "center" {
127
+ $recursive-center: true;
128
+ }
129
+
130
+ // Check if default and gutter is recursive
131
+ @if flint-is-default($calc-key) and $recursive-center {
132
+ float: none;
133
+ // Check if default and gutter is not recurisve, wrap in query to not affect others
134
+ } @else if flint-is-default($calc-key) and $calc-gutter == "center" and not $recursive-center {
135
+ @include _($calc-key) {
136
+ float: none;
137
+ }
138
+ // Not default, check if gutter was set to center but not recursive
139
+ } @else if $calc-gutter == "center" and not $recursive-center or $i == null and $recursive-center {
140
+ float: none;
141
+ }
142
+
122
143
  // Only run through if cache search was unsuccessful
144
+ // ----
123
145
  @if not $cached and not $errors {
124
146
 
125
147
  // Shift, no context
126
148
  // ----
127
149
  @if $calc-shift != null and $calc-context == null {
128
150
 
129
- @if $calc-gutter == null or $calc-gutter == "normal" or $calc-gutter == "default" or $calc-gutter == "regular" and flint-get-value("settings", "gutter") != false {
151
+ @if $calc-gutter == null or $calc-gutter == "normal" or $calc-gutter == "default" or $calc-gutter == "regular" {
130
152
 
131
153
  // Save to variables for instance creation
132
154
  $output-width: (flint-calc-width($calc-key, $calc-span)) - ((flint-calc-margin($calc-key, $calc-span))*2);
@@ -136,7 +158,7 @@
136
158
  (flint-calc-margin($calc-key, -$calc-span)) + (flint-calc-width($calc-key, $calc-shift))
137
159
  ));
138
160
 
139
- } @else if $calc-gutter == "inside" and flint-get-value("settings", "gutter") != false {
161
+ } @else if $calc-gutter == "inside" {
140
162
 
141
163
  $output-width: (flint-calc-width($calc-key, $calc-span)) - ((flint-calc-margin($calc-key, $calc-span))*4);
142
164
  $output-margin-right: flint-calc-margin($calc-key, $calc-span);
@@ -145,7 +167,7 @@
145
167
  (flint-calc-margin($calc-key, -$calc-span)) + (flint-calc-width($calc-key, $calc-shift))
146
168
  ));
147
169
 
148
- } @else if $calc-gutter == "alpha" or $calc-gutter == "no-left" or $calc-gutter == "first" and flint-get-value("settings", "gutter") != false {
170
+ } @else if $calc-gutter == "alpha" or $calc-gutter == "no-left" or $calc-gutter == "first" {
149
171
 
150
172
  $output-width: (flint-calc-width($calc-key, $calc-span)) - (flint-calc-margin($calc-key, $calc-span));
151
173
  $output-margin-right: flint-calc-margin($calc-key, $calc-span);
@@ -154,7 +176,7 @@
154
176
  flint-calc-width($calc-key, $calc-shift)
155
177
  ));
156
178
 
157
- } @else if $calc-gutter == "omega" or $calc-gutter == "no-right" or $calc-gutter == "flint-last" and flint-get-value("settings", "gutter") != false {
179
+ } @else if $calc-gutter == "omega" or $calc-gutter == "no-right" or $calc-gutter == "flint-last" {
158
180
 
159
181
  $output-width: (flint-calc-width($calc-key, $calc-span)) - ((flint-calc-margin($calc-key, $calc-span)));
160
182
  $output-margin-right: 0;
@@ -163,7 +185,13 @@
163
185
  (flint-calc-margin($calc-key, -$calc-span)) + (flint-calc-width($calc-key, $calc-shift))
164
186
  ));
165
187
 
166
- } @else if $calc-gutter == "row" or $calc-gutter == "none" or flint-get-value("settings", "gutter") == false {
188
+ } @else if $calc-gutter == "center" {
189
+
190
+ $output-width: (flint-calc-width($calc-key, $calc-span)) - ((flint-calc-margin($calc-key, $calc-span))*2);
191
+ $output-margin-right: auto;
192
+ $output-margin-left: auto;
193
+
194
+ } @else if $calc-gutter == "row" or $calc-gutter == "none" {
167
195
 
168
196
  $output-width: (flint-calc-width($calc-key, $calc-span));
169
197
  $output-margin-right: 0;
@@ -172,6 +200,9 @@
172
200
  flint-calc-width($calc-key, $calc-shift)
173
201
  ));
174
202
 
203
+ } @else {
204
+ @warn "Invalid gutter argument: #{$calc-gutter}. Please provide a valid argument.";
205
+ $errors: true;
175
206
  }
176
207
 
177
208
  // Shift, context
@@ -183,7 +214,7 @@
183
214
 
184
215
  @if $calc-shift != null {
185
216
 
186
- @if $calc-gutter == null or $calc-gutter == "normal" or $calc-gutter == "default" or $calc-gutter == "regular" and flint-get-value("settings", "gutter") != false {
217
+ @if $calc-gutter == null or $calc-gutter == "normal" or $calc-gutter == "default" or $calc-gutter == "regular" {
187
218
 
188
219
  // Check if context is set to auto
189
220
  @if $calc-context == "auto" {
@@ -230,7 +261,7 @@
230
261
 
231
262
  }
232
263
 
233
- } @else if $calc-gutter == "inside" and flint-get-value("settings", "gutter") != false {
264
+ } @else if $calc-gutter == "inside" {
234
265
 
235
266
  @if $calc-context == "auto" {
236
267
  @if $flint-exists != false {
@@ -270,7 +301,7 @@
270
301
 
271
302
  }
272
303
 
273
- } @else if $calc-gutter == "alpha" or $calc-gutter == "no-left" or $calc-gutter == "first" and flint-get-value("settings", "gutter") != false {
304
+ } @else if $calc-gutter == "alpha" or $calc-gutter == "no-left" or $calc-gutter == "first" {
274
305
 
275
306
  @if $calc-context == "auto" {
276
307
  @if $flint-exists != false {
@@ -308,7 +339,7 @@
308
339
 
309
340
  }
310
341
 
311
- } @else if $calc-gutter == "omega" or $calc-gutter == "no-right" or $calc-gutter == "flint-last" and flint-get-value("settings", "gutter") != false {
342
+ } @else if $calc-gutter == "omega" or $calc-gutter == "no-right" or $calc-gutter == "flint-last" {
312
343
 
313
344
  @if $calc-context == "auto" {
314
345
  @if $flint-exists != false {
@@ -346,7 +377,36 @@
346
377
 
347
378
  }
348
379
 
349
- } @else if $calc-gutter == "row" or $calc-gutter == "none" or flint-get-value("settings", "gutter") == false {
380
+ } @else if $calc-gutter == "center" {
381
+
382
+ @if $calc-context == "auto" {
383
+
384
+ @if $flint-exists != false {
385
+ @if flint-get-value("settings", "grid") == "fluid" {
386
+
387
+ $output-width: (flint-calc-width($calc-key, $calc-span, flint-get-instance-value($calc-key, "span"))) - ((flint-calc-margin($calc-key, $calc-span, flint-get-instance-value($calc-key, "span")))*2);
388
+ $output-margin-right: auto;
389
+ $output-margin-left: auto;
390
+
391
+ } @else if flint-get-value("settings", "grid") == "fixed" {
392
+
393
+ $output-width: (flint-get-instance-value($calc-key, "output", "width") / flint-get-instance-value($calc-key, "span") * $calc-span) - ((flint-calc-margin($calc-key, $calc-span, flint-get-instance-value($calc-key, "span")))*2);
394
+ $output-margin-right: auto;
395
+ $output-margin-left: auto;
396
+
397
+ }
398
+ } @else {
399
+ @warn "You set context to `#{$calc-context}`, but a parent instance could not be found for `#{selector_string() + '::' + $calc-key}`";
400
+ $errors: true;
401
+ }
402
+ } @else {
403
+
404
+ $output-width: (flint-calc-width($calc-key, $calc-span, $calc-context)) - ((flint-calc-margin($calc-key, $calc-span, $calc-context))*2);
405
+ $output-margin-right: auto;
406
+ $output-margin-left: auto;
407
+
408
+ }
409
+ } @else if $calc-gutter == "row" or $calc-gutter == "none" {
350
410
 
351
411
  @if $calc-context == "auto" {
352
412
  @if $flint-exists != false {
@@ -382,13 +442,16 @@
382
442
  flint-calc-width($calc-key, $calc-shift, $calc-context)
383
443
  ));
384
444
  }
445
+ } @else {
446
+ @warn "Invalid gutter argument: #{$calc-gutter}. Please provide a valid argument.";
447
+ $errors: true;
385
448
  }
386
449
 
387
450
  // Context, no shift
388
451
  // ----
389
452
  } @else {
390
453
 
391
- @if $calc-gutter == null or $calc-gutter == "normal" or $calc-gutter == "default" or $calc-gutter == "regular" and flint-get-value("settings", "gutter") != false {
454
+ @if $calc-gutter == null or $calc-gutter == "normal" or $calc-gutter == "default" or $calc-gutter == "regular" {
392
455
  @if $calc-context == "auto" {
393
456
  @if $flint-exists != false {
394
457
  @if flint-get-value("settings", "grid") == "fluid" {
@@ -416,7 +479,7 @@
416
479
 
417
480
  }
418
481
 
419
- } @else if $calc-gutter == "inside" and flint-get-value("settings", "gutter") != false {
482
+ } @else if $calc-gutter == "inside" {
420
483
 
421
484
  @if $calc-context == "auto" {
422
485
  @if $flint-exists != false {
@@ -446,7 +509,7 @@
446
509
 
447
510
  }
448
511
 
449
- } @else if $calc-gutter == "alpha" or $calc-gutter == "no-left" or $calc-gutter == "first" and flint-get-value("settings", "gutter") != false {
512
+ } @else if $calc-gutter == "alpha" or $calc-gutter == "no-left" or $calc-gutter == "first" {
450
513
 
451
514
  @if $calc-context == "auto" {
452
515
  @if $flint-exists != false {
@@ -475,7 +538,7 @@
475
538
 
476
539
  }
477
540
 
478
- } @else if $calc-gutter == "omega" or $calc-gutter =="no-right" or $calc-gutter == "flint-last" and flint-get-value("settings", "gutter") != false {
541
+ } @else if $calc-gutter == "omega" or $calc-gutter =="no-right" or $calc-gutter == "flint-last" {
479
542
 
480
543
  @if $calc-context == "auto" {
481
544
  @if $flint-exists != false {
@@ -504,7 +567,36 @@
504
567
 
505
568
  }
506
569
 
507
- } @else if $calc-gutter == "row" or $calc-gutter == "none" or flint-get-value("settings", "gutter") == false {
570
+ } @else if $calc-gutter == "center" {
571
+
572
+ @if $calc-context == "auto" {
573
+ @if $flint-exists != false {
574
+ @if flint-get-value("settings", "grid") == "fluid" {
575
+
576
+ $output-width: (flint-calc-width($calc-key, $calc-span, flint-get-instance-value($calc-key, "span"))) - ((flint-calc-margin($calc-key, $calc-span, flint-get-instance-value($calc-key, "span")))*2);
577
+ $output-margin-right: auto;
578
+ $output-margin-left: auto;
579
+
580
+ } @else if flint-get-value("settings", "grid") == "fixed" {
581
+
582
+ $output-width: (flint-get-instance-value($calc-key, "output", "width") / flint-get-instance-value($calc-key, "span") * $calc-span) - ((flint-calc-margin($calc-key, $calc-span, flint-get-instance-value($calc-key, "span")))*2);
583
+ $output-margin-right: auto;
584
+ $output-margin-left: auto;
585
+
586
+ }
587
+ } @else {
588
+ @warn "You set context to `#{$calc-context}`, but a parent instance could not be found for `#{selector_string() + '::' + $calc-key}`";
589
+ $errors: true;
590
+ }
591
+ } @else {
592
+
593
+ $output-width: (flint-calc-width($calc-key, $calc-span, $calc-context)) - ((flint-calc-margin($calc-key, $calc-span, $calc-context))*2);
594
+ $output-margin-right: auto;
595
+ $output-margin-left: auto;
596
+
597
+ }
598
+
599
+ } @else if $calc-gutter == "row" or $calc-gutter == "none" {
508
600
 
509
601
  @if $calc-context == "auto" {
510
602
  @if $flint-exists != false {
@@ -532,6 +624,9 @@
532
624
  $output-margin-left: 0;
533
625
 
534
626
  }
627
+ } @else {
628
+ @warn "Invalid gutter argument: #{$calc-gutter}. Please provide a valid argument.";
629
+ $errors: true;
535
630
  }
536
631
  }
537
632
 
@@ -539,36 +634,45 @@
539
634
  // ----
540
635
  } @else {
541
636
 
542
- @if $calc-gutter == null or $calc-gutter == "normal" or $calc-gutter == "default" or $calc-gutter == "regular" and flint-get-value("settings", "gutter") != false {
637
+ @if $calc-gutter == null or $calc-gutter == "normal" or $calc-gutter == "default" or $calc-gutter == "regular" {
543
638
 
544
639
  $output-width: (flint-calc-width($calc-key, $calc-span)) - ((flint-calc-margin($calc-key, $calc-span))*2);
545
640
  $output-margin-right: flint-calc-margin($calc-key, $calc-span);
546
641
  $output-margin-left: flint-calc-margin($calc-key, $calc-span);
547
642
 
548
- } @else if $calc-gutter == "inside" and flint-get-value("settings", "gutter") != false {
643
+ } @else if $calc-gutter == "inside" {
549
644
 
550
645
  $output-width: (flint-calc-width($calc-key, $calc-span)) - ((flint-calc-margin($calc-key, $calc-span))*4);
551
646
  $output-margin-right: flint-calc-margin($calc-key, $calc-span);
552
647
  $output-margin-left: flint-calc-margin($calc-key, $calc-span);
553
648
 
554
- } @else if $calc-gutter == "alpha" or $calc-gutter == "no-left" or $calc-gutter == "first" and flint-get-value("settings", "gutter") != false {
649
+ } @else if $calc-gutter == "alpha" or $calc-gutter == "no-left" or $calc-gutter == "first" {
555
650
 
556
651
  $output-width: (flint-calc-width($calc-key, $calc-span)) - (flint-calc-margin($calc-key, $calc-span));
557
652
  $output-margin-right: flint-calc-margin($calc-key, $calc-span);
558
653
  $output-margin-left: 0;
559
654
 
560
- } @else if $calc-gutter == "omega" or $calc-gutter == "no-right" or $calc-gutter == "flint-last" and flint-get-value("settings", "gutter") != false {
655
+ } @else if $calc-gutter == "omega" or $calc-gutter == "no-right" or $calc-gutter == "flint-last" {
561
656
 
562
657
  $output-width: (flint-calc-width($calc-key, $calc-span)) - (flint-calc-margin($calc-key, $calc-span));
563
658
  $output-margin-right: 0;
564
659
  $output-margin-left: flint-calc-margin($calc-key, $calc-span);
565
660
 
566
- } @else if $calc-gutter == "row" or $calc-gutter == "none" or flint-get-value("settings", "gutter") == false {
661
+ } @else if $calc-gutter == "center" {
662
+
663
+ $output-width: (flint-calc-width($calc-key, $calc-span)) - ((flint-calc-margin($calc-key, $calc-span))*2);
664
+ $output-margin-right: auto;
665
+ $output-margin-left: auto;
666
+
667
+ } @else if $calc-gutter == "row" or $calc-gutter == "none" {
567
668
 
568
669
  $output-width: flint-calc-width($calc-key, $calc-span);
569
670
  $output-margin-right: 0;
570
671
  $output-margin-left: 0;
571
672
 
673
+ } @else {
674
+ @warn "Invalid gutter argument: #{$calc-gutter}. Please provide a valid argument.";
675
+ $errors: true;
572
676
  }
573
677
  }
574
678
  }
@@ -1,7 +1,5 @@
1
1
  // Prints debug properties
2
2
  // -------------------------------------------------------------------------------
3
- // @dependence `flint-print-instance()`
4
- // -------------------------------------------------------------------------------
5
3
  // @param $calc-key [string] : breakpoint key to search for instance
6
4
  // -------------------------------------------------------------------------------
7
5
  // @output instance map
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flint-gs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-04 00:00:00.000000000 Z
11
+ date: 2014-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass