flint-gs 1.6.1 → 1.6.2

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