flint-gs 1.0.6 → 1.0.7

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: 236ab4066ab2eb79b7548e55e03eb25dc8ecd673
4
- data.tar.gz: 4c3efe7cf29b1b34592228e78b9da9775b41de7a
3
+ metadata.gz: 40190b025b40e88c1627cba5efb72822ff82c120
4
+ data.tar.gz: 2b8b4e83800ee1836abf197d3da8c5698bef5cc1
5
5
  SHA512:
6
- metadata.gz: de1a4d49517d0cd4299cab60e7b96afab70dde800c317a8f1dd5a805c0e29e5024a4da3ff45231230744da7e680b683b72a6c3aba32fdae83e93bd1c707dd3cc
7
- data.tar.gz: 1e85c4544c68a69a0afd825c5a9b4d21dc3237474b661bf3a61c8e483ae002178d084ab01d79619bb644555e9f87e2ba3539676c2eff7431eae32acf787e6ef4
6
+ metadata.gz: 3bfa76e2860e24670bc4c6515e80c493d5c3ca18bb9ee07777723bd04db0f4a89127a6105bdc55eccd14d31b12047efeaf195f357979418da681dc49c152f7a8
7
+ data.tar.gz: ab8519ba6e14622f00349b0d909bd1580d64dcea8ba8cfd80a3066706068e8a7ab70d2878d483cbb05d6a6618ad5426d1f7c2d9c893490021846cd4cf6353fe4
data/README.md CHANGED
@@ -811,6 +811,14 @@ This will allow the instance functions to properly fallback from `.block .block_
811
811
 
812
812
  Going to start keeping a log of changes starting **today (4/11/14).**
813
813
 
814
+ ####4/24/14
815
+ * Added aliases for `$gutter` modifiers
816
+ * `NULL > default | regular | normal`
817
+ * `alpha > no-left`
818
+ * `omega > no-right`
819
+ * `row > none`
820
+ * Removed option for `gutter: false` in config. Use `0(unit)` from now on.
821
+
814
822
  ####4/24/14
815
823
  * Added `$gutter: inside` modifier
816
824
  * Adjusted `$span: 0` to hide element instead of compiling with no width
data/lib/flint.rb CHANGED
@@ -5,7 +5,7 @@ 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.6"
8
+ VERSION = "1.0.7"
9
9
  DATE = "2014-04-25"
10
10
  end
11
11
 
@@ -45,7 +45,7 @@ $flint: (
45
45
  "max-width": false, // [true : uses highest breakpoint | false | value(unit)]
46
46
  "center-container": true, // [true | false]
47
47
  "border-box-sizing": true, // [true | false]
48
- "debug-mode": true, // [true | false ]
48
+ "debug-mode": false, // [true | false ]
49
49
  ),
50
50
  ),
51
51
  ) !default;
@@ -73,17 +73,17 @@
73
73
  }
74
74
  }
75
75
 
76
- // check if max-width is set
77
- @if get-value(settings, max-width) == true {
78
- max-width: max(get-all-breakpoints()...);
79
- } @else if type-of(get-value(settings, max-width)) == number {
80
- max-width: get-value(settings, max-width);
81
- }
82
-
83
76
  // check if center container is set to true
84
77
  @if $key == "container" {
85
78
  float: none;
86
79
 
80
+ // check if max-width is set
81
+ @if get-value(settings, max-width) == true {
82
+ max-width: max(get-all-breakpoints()...);
83
+ } @else if type-of(get-value(settings, max-width)) == number {
84
+ max-width: get-value(settings, max-width);
85
+ }
86
+
87
87
  @if get-value(settings, center-container) == true {
88
88
  margin-right: auto;
89
89
  margin-left: auto;
@@ -131,18 +131,20 @@
131
131
  $calcGutter: $gutter;
132
132
  $calcShift: $shift;
133
133
 
134
- @if is-highest-breakpoint($calcKey) {
135
- @media only screen and ( min-width: calc-breakpoint(from, $calcKey, $i) ) {
136
- width: calc-width($calcKey, $calcSpan);
137
- @content;
138
- }
139
- } @else if is-default($calcKey) {
134
+ @if is-default($calcKey) {
140
135
  width: calc-width($calcKey, $calcSpan);
141
136
  @content;
142
137
  } @else {
143
- @media only screen and ( min-width: calc-breakpoint(from, $calcKey, $i) ) and ( max-width: calc-breakpoint(to, $calcKey, $i) ) {
144
- width: calc-width($calcKey, $calcSpan);
145
- @content;
138
+ @if is-highest-breakpoint($calcKey) {
139
+ @media only screen and ( min-width: calc-breakpoint(from, $calcKey, $i) ) {
140
+ width: calc-width($calcKey, $calcSpan);
141
+ @content;
142
+ }
143
+ } @else {
144
+ @media only screen and ( min-width: calc-breakpoint(from, $calcKey, $i) ) and ( max-width: calc-breakpoint(to, $calcKey, $i) ) {
145
+ width: calc-width($calcKey, $calcSpan);
146
+ @content;
147
+ }
146
148
  }
147
149
  }
148
150
  }
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.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse