flint-gs 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +21 -21
- data/README.md +906 -906
- data/lib/flint.rb +77 -77
- data/stylesheets/_flint.scss +6 -6
- data/stylesheets/flint/config/_config.scss +83 -83
- data/stylesheets/flint/functions/_functions.scss +41 -41
- data/stylesheets/flint/functions/helpers/_helpers.scss +181 -187
- data/stylesheets/flint/functions/lib/_calc-breakpoint.scss +33 -33
- data/stylesheets/flint/functions/lib/_calc-margin.scss +57 -57
- data/stylesheets/flint/functions/lib/_calc-width.scss +50 -50
- data/stylesheets/flint/functions/lib/_exists.scss +22 -22
- data/stylesheets/flint/functions/lib/_fluid-width.scss +10 -10
- data/stylesheets/flint/functions/lib/_get-index.scss +13 -13
- data/stylesheets/flint/functions/lib/_get-instance-value.scss +17 -17
- data/stylesheets/flint/functions/lib/_get-value.scss +14 -14
- data/stylesheets/flint/functions/lib/_has-family-instance.scss +74 -74
- data/stylesheets/flint/functions/lib/_instance.scss +46 -46
- data/stylesheets/flint/functions/lib/_last.scss +9 -9
- data/stylesheets/flint/functions/lib/_list-to-string.scss +25 -25
- data/stylesheets/flint/functions/lib/_map-fetch.scss +30 -30
- data/stylesheets/flint/functions/lib/_next-index.scss +15 -15
- data/stylesheets/flint/functions/lib/_purge.scss +19 -19
- data/stylesheets/flint/functions/lib/_remove.scss +13 -13
- data/stylesheets/flint/functions/lib/_replace-substring.scss +34 -34
- data/stylesheets/flint/functions/lib/_replace.scss +25 -25
- data/stylesheets/flint/functions/lib/_steal-key.scss +13 -13
- data/stylesheets/flint/functions/lib/_steal-values.scss +14 -14
- data/stylesheets/flint/functions/lib/_string-to-list.scss +90 -90
- data/stylesheets/flint/functions/lib/_string-to-number.scss +77 -77
- data/stylesheets/flint/functions/lib/_support-syntax-bem.scss +31 -31
- data/stylesheets/flint/functions/lib/_support-syntax.scss +28 -28
- data/stylesheets/flint/functions/lib/_types-in-list.scss +119 -120
- data/stylesheets/flint/functions/lib/_use-syntax.scss +14 -14
- data/stylesheets/flint/globals/_globals.scss +38 -38
- data/stylesheets/flint/mixins/_mixins.scss +7 -7
- data/stylesheets/flint/mixins/lib/_calculate.scss +571 -571
- data/stylesheets/flint/mixins/lib/_clearfix.scss +19 -19
- data/stylesheets/flint/mixins/lib/_main.scss +935 -935
- data/stylesheets/flint/mixins/lib/_new-instance.scss +27 -27
- data/stylesheets/flint/mixins/lib/_print-instance.scss +42 -42
- metadata +22 -16
- checksums.yaml +0 -7
@@ -1,27 +1,27 @@
|
|
1
|
-
// Creates a new instance, adds to global instance map
|
2
|
-
// -------------------------------------------------------------------------------
|
3
|
-
// @param $calc-key [string] : breakpoint key
|
4
|
-
// @param $calc-span [number] : span
|
5
|
-
// @param $calc-context [number] : context
|
6
|
-
// @param $calc-gutter [number] : gutter
|
7
|
-
// @param $calc-shift [number] : shift
|
8
|
-
// @param $output-width [number] : width
|
9
|
-
// @param $output-margin-right [number] : right margin
|
10
|
-
// @param $output-margin-left [number] : left margin
|
11
|
-
// -------------------------------------------------------------------------------
|
12
|
-
// @output new instance map
|
13
|
-
|
14
|
-
@mixin flint-new-instance($calc-key, $calc-span, $calc-context, $calc-gutter, $calc-shift, $output-width, $output-margin-right, $output-margin-left) {
|
15
|
-
$flint__instances:
|
16
|
-
flint-instance(
|
17
|
-
$calc-key,
|
18
|
-
$calc-span,
|
19
|
-
$calc-context,
|
20
|
-
$calc-gutter,
|
21
|
-
$calc-shift,
|
22
|
-
$output-width,
|
23
|
-
$output-margin-right,
|
24
|
-
$output-margin-left
|
25
|
-
)
|
26
|
-
!global;
|
27
|
-
}
|
1
|
+
// Creates a new instance, adds to global instance map
|
2
|
+
// -------------------------------------------------------------------------------
|
3
|
+
// @param $calc-key [string] : breakpoint key
|
4
|
+
// @param $calc-span [number] : span
|
5
|
+
// @param $calc-context [number] : context
|
6
|
+
// @param $calc-gutter [number] : gutter
|
7
|
+
// @param $calc-shift [number] : shift
|
8
|
+
// @param $output-width [number] : width
|
9
|
+
// @param $output-margin-right [number] : right margin
|
10
|
+
// @param $output-margin-left [number] : left margin
|
11
|
+
// -------------------------------------------------------------------------------
|
12
|
+
// @output new instance map
|
13
|
+
|
14
|
+
@mixin flint-new-instance($calc-key, $calc-span, $calc-context, $calc-gutter, $calc-shift, $output-width, $output-margin-right, $output-margin-left) {
|
15
|
+
$flint__instances:
|
16
|
+
flint-instance(
|
17
|
+
$calc-key,
|
18
|
+
$calc-span,
|
19
|
+
$calc-context,
|
20
|
+
$calc-gutter,
|
21
|
+
$calc-shift,
|
22
|
+
$output-width,
|
23
|
+
$output-margin-right,
|
24
|
+
$output-margin-left
|
25
|
+
)
|
26
|
+
!global;
|
27
|
+
}
|
@@ -1,42 +1,42 @@
|
|
1
|
-
// Prints debug properties
|
2
|
-
// -------------------------------------------------------------------------------
|
3
|
-
// @dependence `flint-print-instance()`
|
4
|
-
// -------------------------------------------------------------------------------
|
5
|
-
// @param $calc-key [string] : breakpoint key to search for instance
|
6
|
-
// -------------------------------------------------------------------------------
|
7
|
-
// @output instance map
|
8
|
-
|
9
|
-
@mixin flint-debug-instance($calc-key) {
|
10
|
-
@if flint-get-value("settings", "debug-mode") {
|
11
|
-
// Lets clean up the selector a bit...
|
12
|
-
$selector-string: selector_string();
|
13
|
-
$selector-list: flint-string-to-list($selector-string);
|
14
|
-
$selector-cleaned: flint-list-to-string($selector-list, " ");
|
15
|
-
|
16
|
-
$printKey: "#{$selector-cleaned}" + "::" + "#{$calc-key}";
|
17
|
-
@include flint-print-instance( map-get( $flint__instances, unquote($printKey) ) );
|
18
|
-
}
|
19
|
-
}
|
20
|
-
|
21
|
-
// Prints all contents of instance
|
22
|
-
// -------------------------------------------------------------------------------
|
23
|
-
// @param $instance [map] : instance
|
24
|
-
// -------------------------------------------------------------------------------
|
25
|
-
// @output instance map
|
26
|
-
|
27
|
-
@mixin flint-print-instance($instance) {
|
28
|
-
|
29
|
-
// Loop through each property in passed instance
|
30
|
-
@each $property, $value in $instance {
|
31
|
-
|
32
|
-
// Check if value is output map
|
33
|
-
@if flint-is-map($value) {
|
34
|
-
@each $p, $v in $value {
|
35
|
-
-flint-output-#{$p}: #{$v};
|
36
|
-
}
|
37
|
-
// Else, print values as flagged comments
|
38
|
-
} @else {
|
39
|
-
-flint-#{$property}: #{$value};
|
40
|
-
}
|
41
|
-
}
|
42
|
-
}
|
1
|
+
// Prints debug properties
|
2
|
+
// -------------------------------------------------------------------------------
|
3
|
+
// @dependence `flint-print-instance()`
|
4
|
+
// -------------------------------------------------------------------------------
|
5
|
+
// @param $calc-key [string] : breakpoint key to search for instance
|
6
|
+
// -------------------------------------------------------------------------------
|
7
|
+
// @output instance map
|
8
|
+
|
9
|
+
@mixin flint-debug-instance($calc-key) {
|
10
|
+
@if flint-get-value("settings", "debug-mode") {
|
11
|
+
// Lets clean up the selector a bit...
|
12
|
+
$selector-string: selector_string();
|
13
|
+
$selector-list: flint-string-to-list($selector-string);
|
14
|
+
$selector-cleaned: flint-list-to-string($selector-list, " ");
|
15
|
+
|
16
|
+
$printKey: "#{$selector-cleaned}" + "::" + "#{$calc-key}";
|
17
|
+
@include flint-print-instance( map-get( $flint__instances, unquote($printKey) ) );
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
// Prints all contents of instance
|
22
|
+
// -------------------------------------------------------------------------------
|
23
|
+
// @param $instance [map] : instance
|
24
|
+
// -------------------------------------------------------------------------------
|
25
|
+
// @output instance map
|
26
|
+
|
27
|
+
@mixin flint-print-instance($instance) {
|
28
|
+
|
29
|
+
// Loop through each property in passed instance
|
30
|
+
@each $property, $value in $instance {
|
31
|
+
|
32
|
+
// Check if value is output map
|
33
|
+
@if flint-is-map($value) {
|
34
|
+
@each $p, $v in $value {
|
35
|
+
-flint-output-#{$p}: #{$v};
|
36
|
+
}
|
37
|
+
// Else, print values as flagged comments
|
38
|
+
} @else {
|
39
|
+
-flint-#{$property}: #{$value};
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
metadata
CHANGED
@@ -1,41 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flint-gs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.1
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Ezekiel Gabrielse
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
12
|
+
date: 2014-07-12 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: sass
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- -
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: 3.3.0
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 3.3.0
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: compass
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
|
-
- -
|
35
|
+
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
33
37
|
version: 0.12.1
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
|
-
- -
|
43
|
+
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
40
45
|
version: 0.12.1
|
41
46
|
description: Flint is designed to be a flexible layout toolkit that developers can
|
@@ -46,12 +51,8 @@ executables: []
|
|
46
51
|
extensions: []
|
47
52
|
extra_rdoc_files: []
|
48
53
|
files:
|
49
|
-
- LICENSE
|
50
|
-
- README.md
|
51
54
|
- lib/flint.rb
|
52
|
-
- stylesheets/_flint.scss
|
53
55
|
- stylesheets/flint/config/_config.scss
|
54
|
-
- stylesheets/flint/functions/_functions.scss
|
55
56
|
- stylesheets/flint/functions/helpers/_helpers.scss
|
56
57
|
- stylesheets/flint/functions/lib/_calc-breakpoint.scss
|
57
58
|
- stylesheets/flint/functions/lib/_calc-margin.scss
|
@@ -79,35 +80,40 @@ files:
|
|
79
80
|
- stylesheets/flint/functions/lib/_support-syntax.scss
|
80
81
|
- stylesheets/flint/functions/lib/_types-in-list.scss
|
81
82
|
- stylesheets/flint/functions/lib/_use-syntax.scss
|
83
|
+
- stylesheets/flint/functions/_functions.scss
|
82
84
|
- stylesheets/flint/globals/_globals.scss
|
83
|
-
- stylesheets/flint/mixins/_mixins.scss
|
84
85
|
- stylesheets/flint/mixins/lib/_calculate.scss
|
85
86
|
- stylesheets/flint/mixins/lib/_clearfix.scss
|
86
87
|
- stylesheets/flint/mixins/lib/_main.scss
|
87
88
|
- stylesheets/flint/mixins/lib/_new-instance.scss
|
88
89
|
- stylesheets/flint/mixins/lib/_print-instance.scss
|
90
|
+
- stylesheets/flint/mixins/_mixins.scss
|
91
|
+
- stylesheets/_flint.scss
|
92
|
+
- LICENSE
|
93
|
+
- README.md
|
89
94
|
homepage: https://github.com/ezekg/flint/
|
90
95
|
licenses:
|
91
96
|
- MIT
|
92
|
-
metadata: {}
|
93
97
|
post_install_message:
|
94
98
|
rdoc_options: []
|
95
99
|
require_paths:
|
96
100
|
- lib
|
97
101
|
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
98
103
|
requirements:
|
99
|
-
- -
|
104
|
+
- - ! '>='
|
100
105
|
- !ruby/object:Gem::Version
|
101
106
|
version: '0'
|
102
107
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
103
109
|
requirements:
|
104
|
-
- -
|
110
|
+
- - ! '>='
|
105
111
|
- !ruby/object:Gem::Version
|
106
112
|
version: 1.3.6
|
107
113
|
requirements: []
|
108
114
|
rubyforge_project: flint
|
109
|
-
rubygems_version:
|
115
|
+
rubygems_version: 1.8.28
|
110
116
|
signing_key:
|
111
|
-
specification_version:
|
117
|
+
specification_version: 3
|
112
118
|
summary: A powerful Sass grid-system designed for complex responsive layouts.
|
113
119
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 6932f06e68ffebf4f0b177fc44128552ff044b6f
|
4
|
-
data.tar.gz: 36b23e74c25af88ed0c7bf3ad0eb5e23ae48e1f8
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 63a6c699683f46828943c4961b27c2fe4dfd28e63faa5c42df7ed9858122ad6c425a8e93cff28de899bf7877f30b9da587233b135aed3834c5c83902b1a184d6
|
7
|
-
data.tar.gz: 88b955fbb75b8db9b05758fe8983922b96845eaf953203652ddd78adf88d909f9dcd9e66f87926d4560c3270a0aed31c09b9a24852e5c0aa51ec8061a04a3007
|