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 +4 -4
- data/README.md +8 -0
- data/lib/flint.rb +1 -1
- data/stylesheets/flint/config/_config.scss +1 -1
- data/stylesheets/flint/mixins/lib/_flint-main.scss +18 -16
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40190b025b40e88c1627cba5efb72822ff82c120
|
4
|
+
data.tar.gz: 2b8b4e83800ee1836abf197d3da8c5698bef5cc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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":
|
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-
|
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
|
-
@
|
144
|
-
width: calc-
|
145
|
-
|
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
|
}
|