flake-scss 0.1.8 → 0.1.9

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.
@@ -52,19 +52,18 @@ $monospace: "Palatino Linotype",
52
52
  Georgia,
53
53
  serif !default;
54
54
 
55
- $font-families: () !default;
56
- @if $font-families == () {
57
- $font-families: (
58
- serif: $serif,
59
- sans-serif: $sans-serif,
60
- monospace: $monospace
61
- );
62
- }
55
+ $font-families: (
56
+ serif: $serif,
57
+ sans-serif: $sans-serif,
58
+ monospace: $monospace
59
+ ) !default;
63
60
 
64
- @each $font-family, $value in $font-families {
65
- .font-#{$font-family} {
66
- font-family: $value;
67
- }
61
+ @if index($components, fonts) {
62
+ @each $font-family, $value in $font-families {
63
+ .font-#{$font-family} {
64
+ font-family: $value;
65
+ }
68
66
 
69
- $addme: add-to-apply-map(font-#{$font-family}, "font-family", "#{$value}");
67
+ $addme: add-to-apply-map(font-#{$font-family}, "font-family", "#{$value}");
68
+ }
70
69
  }
@@ -1,13 +1,15 @@
1
- $sizes: (
1
+ $font-sizes: (
2
2
  small: .85em,
3
3
  normal: 16px,
4
4
  large: 1.15em
5
- );
5
+ ) !default;
6
6
 
7
- @each $size, $value in $sizes {
8
- .text-#{$size} {
9
- font-size: $value;
10
- }
7
+ @if index($components, font-sizes) {
8
+ @each $size, $value in $font-sizes {
9
+ .text-#{$size} {
10
+ font-size: $value;
11
+ }
11
12
 
12
- $addme: add-to-apply-map(text-#{$size}, "font-size", "#{$value}");
13
+ $addme: add-to-apply-map(text-#{$size}, "font-size", "#{$value}");
14
+ }
13
15
  }
@@ -3,55 +3,64 @@ $decoration: (
3
3
  line-through,
4
4
  underline,
5
5
  none
6
- );
6
+ ) !default;
7
7
 
8
- @each $value in $decoration {
9
- .text-#{$value} {
10
- text-decoration: $value;
11
- }
8
+ @if index($components, text-decoration) {
9
+ @each $value in $decoration {
10
+ .text-#{$value} {
11
+ text-decoration: $value;
12
+ }
12
13
 
13
- $addme: add-to-apply-map(text-#{$value}, "text-decoration", "#{$value}");
14
+ $addme: add-to-apply-map(text-#{$value}, "text-decoration", "#{$value}");
15
+ }
14
16
  }
15
17
 
16
- $style: (
18
+ $font-style: (
17
19
  normal,
18
20
  italic,
19
21
  oblique
20
- );
22
+ ) !default;
21
23
 
22
- @each $value in $style {
23
- .font-#{$value} {
24
- font-style: $value;
25
- }
24
+ @if index($components, font-style) {
25
+ @each $value in $font-style {
26
+ .font-#{$value} {
27
+ font-style: $value;
28
+ }
26
29
 
27
- $addme: add-to-apply-map(font-#{$value}, "font-style", "#{$value}");
30
+ $addme: add-to-apply-map(font-#{$value}, "font-style", "#{$value}");
31
+ }
28
32
  }
29
33
 
30
- $weight: (
31
- lighter,
32
- normal,
33
- bold,
34
- bolder
35
- );
34
+ $font-weights: (
35
+ lighter,
36
+ normal,
37
+ bold,
38
+ bolder
39
+ ) !default;
36
40
 
37
- @each $value in $weight {
38
- .font-#{$value} {
39
- font-weight: $value;
40
- }
41
+ @if index($components, font-weights) {
42
+ @each $value in $font-weights {
43
+ .font-#{$value} {
44
+ font-weight: $value;
45
+ }
41
46
 
42
- $addme: add-to-apply-map(font-#{$value}, "font-weight", "#{$value}");
47
+ $addme: add-to-apply-map(font-#{$value}, "font-weight", "#{$value}");
48
+ }
43
49
  }
44
50
 
45
- $transform: (
51
+ $text-transform: (
46
52
  lowercase,
47
53
  uppercase,
48
54
  capitalize
49
- );
55
+ ) !default;
50
56
 
51
- @each $value in $transform {
52
- .text-#{$value} {
53
- text-transform: $value;
54
- }
57
+ @if index($components, text-transform) {
55
58
 
56
- $addme: add-to-apply-map(text-#{$value}, "text-transform", "#{$value}");
59
+ @each $value in $text-transform {
60
+ .text-#{$value} {
61
+ text-transform: $value;
62
+ }
63
+
64
+ $addme: add-to-apply-map(text-#{$value}, "text-transform", "#{$value}");
65
+ }
57
66
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flake-scss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitcheljager
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-23 00:00:00.000000000 Z
11
+ date: 2017-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,6 +58,7 @@ files:
58
58
  - lib/flake/scss/version.rb
59
59
  - vendor/assets/stylesheets/_flake.scss
60
60
  - vendor/assets/stylesheets/_variables.scss
61
+ - vendor/assets/stylesheets/animations/_transitions.scss
61
62
  - vendor/assets/stylesheets/background/_colors.scss
62
63
  - vendor/assets/stylesheets/border/_colors.scss
63
64
  - vendor/assets/stylesheets/border/_general.scss