flint-gs 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. data/LICENSE +21 -21
  2. data/README.md +900 -900
  3. data/lib/flint.rb +17 -17
  4. data/stylesheets/_flint.scss +6 -6
  5. data/stylesheets/flint/config/_config.scss +83 -83
  6. data/stylesheets/flint/functions/_functions.scss +41 -41
  7. data/stylesheets/flint/functions/helpers/_helpers.scss +178 -178
  8. data/stylesheets/flint/functions/lib/_calc-breakpoint.scss +38 -38
  9. data/stylesheets/flint/functions/lib/_calc-margin.scss +31 -31
  10. data/stylesheets/flint/functions/lib/_calc-width.scss +44 -44
  11. data/stylesheets/flint/functions/lib/_exists.scss +21 -21
  12. data/stylesheets/flint/functions/lib/_fluid-width.scss +9 -9
  13. data/stylesheets/flint/functions/lib/_get-family-instance.scss +59 -59
  14. data/stylesheets/flint/functions/lib/_get-index.scss +14 -14
  15. data/stylesheets/flint/functions/lib/_get-instance-value.scss +19 -19
  16. data/stylesheets/flint/functions/lib/_get-substring.scss +23 -23
  17. data/stylesheets/flint/functions/lib/_get-value.scss +16 -16
  18. data/stylesheets/flint/functions/lib/_instance.scss +43 -43
  19. data/stylesheets/flint/functions/lib/_last.scss +8 -8
  20. data/stylesheets/flint/functions/lib/_list-to-string.scss +24 -24
  21. data/stylesheets/flint/functions/lib/_map-fetch.scss +33 -33
  22. data/stylesheets/flint/functions/lib/_next-index.scss +14 -14
  23. data/stylesheets/flint/functions/lib/_purge.scss +20 -20
  24. data/stylesheets/flint/functions/lib/_remove.scss +14 -14
  25. data/stylesheets/flint/functions/lib/_replace.scss +24 -24
  26. data/stylesheets/flint/functions/lib/_steal-key.scss +12 -12
  27. data/stylesheets/flint/functions/lib/_steal-values.scss +16 -16
  28. data/stylesheets/flint/functions/lib/_string-to-list.scss +84 -84
  29. data/stylesheets/flint/functions/lib/_string-to-number.scss +72 -72
  30. data/stylesheets/flint/functions/lib/_support-syntax-bem.scss +25 -25
  31. data/stylesheets/flint/functions/lib/_support-syntax.scss +28 -28
  32. data/stylesheets/flint/functions/lib/_types-in-list.scss +120 -120
  33. data/stylesheets/flint/functions/lib/_use-syntax.scss +11 -11
  34. data/stylesheets/flint/globals/_globals.scss +22 -22
  35. data/stylesheets/flint/mixins/_mixins.scss +7 -7
  36. data/stylesheets/flint/mixins/lib/_calculate.scss +765 -765
  37. data/stylesheets/flint/mixins/lib/_clearfix.scss +18 -18
  38. data/stylesheets/flint/mixins/lib/_main.scss +910 -911
  39. data/stylesheets/flint/mixins/lib/_new-instance.scss +26 -26
  40. data/stylesheets/flint/mixins/lib/_print-instance.scss +41 -41
  41. metadata +21 -15
  42. checksums.yaml +0 -7
@@ -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,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flint-gs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Ezekiel Gabrielse
@@ -13,29 +14,33 @@ 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: 2.2.2
115
+ rubygems_version: 1.8.28
110
116
  signing_key:
111
- specification_version: 4
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: 3df9a000607508b222c3f0ca47374869bb6696b7
4
- data.tar.gz: c6d90d4634bc5b5a9f88a5ce6748165f400c865e
5
- SHA512:
6
- metadata.gz: 66f5a7f7c80c192a9120d82bcd6ad354389e7f9c858ddb31105a67a0217fc139855ac140fe6673d7e761c55bb4b7188b8e4bf6464a9daeb6f5685a87831b9dc8
7
- data.tar.gz: fe967308897a78afcd87a83409712efbf937d9abf7ea62ba200e47f532a72331929c03ef4a2006600d55f7c187c2d25546b907707c86100125afe039de33f43d