flake-scss 0.1.11 → 0.1.12

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f88dcfd5b28accc2e7efe4596e3752d135b1e78b
4
- data.tar.gz: a58c0eb19396fc13a5fc9e8003196d4114c172c3
3
+ metadata.gz: 4bae1c46e37e957be66d2237ddd8b9bea43cd356
4
+ data.tar.gz: 6ab7f8411de6096c687b7e5f4f2e6af846e1f939
5
5
  SHA512:
6
- metadata.gz: 9b0f84656d7f9dd61c35950231e36f7de0bf0c8c7801deb5a4ea2648345a6f94dfb50ce97f824c61bd68fcc460fc98dec250080b7057670702604ae04895bbb2
7
- data.tar.gz: 912f415c652c5c0bf1079029f7bc977242366cadf92b6f11d9c5d0b8edf02930e392c9a5a7802e78aae49b7f78635e534f1f8eac427d29683e089eadcbd4d4c0
6
+ metadata.gz: 9c70e060f89541d4eff0f6e3ff36f74ce79f3b2ca4646ca4f911451b1c42b93d924acaa17712bb23697255da610dccb8a496e2442e148e16c1193d47403b592a
7
+ data.tar.gz: 4312a50502d9f85d21f1b803d043b9403b4a7cd354eb1e93a316432d84da2e2dba9ebf7e435e808f4d3e42ef29c399a6e926936a34ebf9d263a2ef4ad6595d54
@@ -1,5 +1,5 @@
1
1
  module Flake
2
2
  module Scss
3
- VERSION = "0.1.11"
3
+ VERSION = "0.1.12"
4
4
  end
5
5
  end
@@ -51,3 +51,11 @@ $classnames-default: (
51
51
  $classnames: map-merge($classnames, ($type: $classname));
52
52
  }
53
53
  }
54
+
55
+ $important: true !default;
56
+
57
+ @if $important == true {
58
+ $important: "!important" !global;
59
+ } @else {
60
+ $important: "" !global;
61
+ }
@@ -7,32 +7,30 @@ $transitions: (
7
7
  ) !default;
8
8
 
9
9
  @if index($components, transition) {
10
- :root {
11
- @each $transition, $value in $transitions {
12
- $sep: "";
13
- @if $transition != "" {
14
- $sep: "-"
15
- }
16
-
17
- .#{map-get($classnames, transition)}#{$sep}#{$transition} {
18
- transition: #{$value};
19
- }
10
+ @each $transition, $value in $transitions {
11
+ $sep: "";
12
+ @if $transition != "" {
13
+ $sep: "-"
14
+ }
20
15
 
21
- $addme: add-to-apply-map(#{map-get($classnames, transition)}#{$sep}#{$transition}, "transition", "#{$value}");
16
+ .#{map-get($classnames, transition)}#{$sep}#{$transition} {
17
+ transition: #{$value} #{$important};
22
18
  }
23
19
 
24
- @if $transitions-responsive {
25
- @each $breakpoint, $breakpoint-value in $breakpoints {
26
- @include breakpoint($breakpoint) {
27
- @each $transition, $value in $transitions {
28
- $sep: "";
29
- @if $transition != "" {
30
- $sep: "-";
31
- }
20
+ $addme: add-to-apply-map(#{map-get($classnames, transition)}#{$sep}#{$transition}, "transition", "#{$value}");
21
+ }
22
+
23
+ @if $transitions-responsive {
24
+ @each $breakpoint, $breakpoint-value in $breakpoints {
25
+ @include breakpoint($breakpoint) {
26
+ @each $transition, $value in $transitions {
27
+ $sep: "";
28
+ @if $transition != "" {
29
+ $sep: "-";
30
+ }
32
31
 
33
- .#{$breakpoint}\:#{map-get($classnames, transition)}#{$sep}#{$transition} {
34
- transition: #{$value};
35
- }
32
+ .#{$breakpoint}\:#{map-get($classnames, transition)}#{$sep}#{$transition} {
33
+ transition: #{$value} #{$important};
36
34
  }
37
35
  }
38
36
  }
@@ -12,7 +12,7 @@ $bg-responsive: true !default;
12
12
 
13
13
  .#{map-get($classnames, background)}-#{"" + $color}
14
14
  #{$hover} {
15
- background-color: #{$value};
15
+ background-color: #{$value} #{$important};
16
16
  }
17
17
 
18
18
  $addme: add-to-apply-map(#{map-get($classnames, background)}-#{"" + $color}, "background-color", "#{$value}");
@@ -32,7 +32,7 @@ $bg-responsive: true !default;
32
32
 
33
33
  .#{map-get($classnames, background)}-#{"" + $color}-#{"" + $shade}
34
34
  #{$hover} {
35
- background-color: $value;
35
+ background-color: #{$value} #{$important};
36
36
  }
37
37
 
38
38
  $addme: add-to-apply-map(#{map-get($classnames, background)}-#{"" + $color}-#{"" + $shade}, "background-color", "#{$value}");
@@ -46,7 +46,7 @@ $bg-responsive: true !default;
46
46
  @if $theme-colors != () {
47
47
  @each $color, $value in $theme-colors {
48
48
  .#{$breakpoint}\:#{map-get($classnames, background)}-#{"" + $color} {
49
- background-color: #{$value};
49
+ background-color: #{$value} #{$important};
50
50
  }
51
51
  }
52
52
  }
@@ -57,7 +57,7 @@ $bg-responsive: true !default;
57
57
 
58
58
  @each $shade, $value in $medium {
59
59
  .#{$breakpoint}\:#{map-get($classnames, background)}-#{"" + $color}-#{"" + $shade} {
60
- background-color: $value;
60
+ background-color: $value #{$important};
61
61
  }
62
62
  }
63
63
  }
@@ -6,7 +6,7 @@ $background-positions: (
6
6
  :root {
7
7
  @each $value in $background-positions {
8
8
  .#{map-get($classnames, background)}-#{$value} {
9
- background-position: $value;
9
+ background-position: $value #{$important};
10
10
  }
11
11
 
12
12
  $addme: add-to-apply-map(#{map-get($classnames, background)}-#{$value}, "background-position", "#{$value}");
@@ -7,7 +7,7 @@ $background-sizes: (
7
7
  :root {
8
8
  @each $value in $background-sizes {
9
9
  .#{map-get($classnames, background)}-#{$value} {
10
- background-size: $value;
10
+ background-size: $value #{$important};
11
11
  }
12
12
 
13
13
  $addme: add-to-apply-map(#{map-get($classnames, background)}-#{$value}, "background-size", "#{$value}");
@@ -2,63 +2,61 @@ $border-color-hover: true !default;
2
2
  $border-color-responsive: false !default;
3
3
 
4
4
  @if index($components, border-colors) {
5
- :root {
6
- @if $theme-colors != () {
7
- @each $color, $value in $theme-colors {
8
- $hover: "";
5
+ @if $theme-colors != () {
6
+ @each $color, $value in $theme-colors {
7
+ $hover: "";
9
8
 
10
- @if $border-color-hover {
11
- $hover: ", .hover\\:#{map-get($classnames, border)}-#{"" + $color}:hover";
12
- }
13
-
14
- .#{map-get($classnames, border)}-#{"" + $color}
15
- #{$hover} {
16
- border-color: #{$value};
17
- }
9
+ @if $border-color-hover {
10
+ $hover: ", .hover\\:#{map-get($classnames, border)}-#{"" + $color}:hover";
11
+ }
18
12
 
19
- $addme: add-to-apply-map(#{map-get($classnames, border)}-#{"" + $color}, "border-color", "#{$value}");
13
+ .#{map-get($classnames, border)}-#{"" + $color}
14
+ #{$hover} {
15
+ border-color: #{$value} #{$important};
20
16
  }
21
- }
22
17
 
23
- @if $full-colors {
24
- @each $color in $colors {
25
- $medium: map-get($colors-list, $color);
18
+ $addme: add-to-apply-map(#{map-get($classnames, border)}-#{"" + $color}, "border-color", "#{$value}");
19
+ }
20
+ }
26
21
 
27
- @each $shade, $value in $medium {
28
- $hover: "";
22
+ @if $full-colors {
23
+ @each $color in $colors {
24
+ $medium: map-get($colors-list, $color);
29
25
 
30
- @if $border-color-hover {
31
- $hover: ", .hover\\:#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}:hover";
32
- }
26
+ @each $shade, $value in $medium {
27
+ $hover: "";
33
28
 
34
- .#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}
35
- #{$hover} {
36
- border-color: $value;
37
- }
29
+ @if $border-color-hover {
30
+ $hover: ", .hover\\:#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}:hover";
31
+ }
38
32
 
39
- $addme: add-to-apply-map(#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}, "border-color", "#{$value}");
33
+ .#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}
34
+ #{$hover} {
35
+ border-color: $value #{$important};
40
36
  }
37
+
38
+ $addme: add-to-apply-map(#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}, "border-color", "#{$value}");
41
39
  }
42
40
  }
41
+ }
43
42
 
44
43
 
45
- @if $border-color-responsive {
46
- @each $breakpoint, $breakpoint-value in $breakpoints {
47
- @include breakpoint($breakpoint) {
48
- @if $theme-colors != () {
49
- @each $color, $value in $theme-colors {
50
- .#{$breakpoint}\:#{map-get($classnames, border)}-#{"" + $color} {
51
- border-color: #{$value};
52
- }
44
+ @if $border-color-responsive {
45
+ @each $breakpoint, $breakpoint-value in $breakpoints {
46
+ @include breakpoint($breakpoint) {
47
+ @if $theme-colors != () {
48
+ @each $color, $value in $theme-colors {
49
+ .#{$breakpoint}\:#{map-get($classnames, border)}-#{"" + $color} {
50
+ border-color: #{$value} #{$important};
53
51
  }
54
52
  }
53
+ }
55
54
 
56
- @if $full-colors {
57
- @each $color in $colors {
58
- @each $shade, $value in $medium {
59
- .#{$breakpoint}\:#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade} {
60
- border-color: $value;
61
- }
55
+ @if $full-colors {
56
+ @each $color in $colors {
57
+ @each $shade, $value in $medium {
58
+ .#{$breakpoint}\:#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade} {
59
+ border-color: $value #{$important};
62
60
  }
63
61
  }
64
62
  }
@@ -31,11 +31,11 @@ $border-sizes: (
31
31
  }
32
32
 
33
33
  .#{$bp}b#{$space}-#{$size} {
34
- border#{$sep}#{$value}: #{$size}px solid black;
34
+ border#{$sep}#{$value}: #{$size}px solid black #{$important};
35
35
  }
36
36
 
37
37
  .#{$bp}b#{$space}-0 {
38
- border#{$sep}#{$value}: 0;
38
+ border#{$sep}#{$value}: 0 #{$important};
39
39
  }
40
40
 
41
41
  @if $breakpoint == 0 {
@@ -45,20 +45,18 @@ $border-sizes: (
45
45
  }
46
46
 
47
47
  @if index($components, borders) {
48
- :root {
49
- @each $border, $value in $borders {
50
- @each $size in $border-sizes {
51
- @include makeBorder($border, $value, $size);
52
- }
48
+ @each $border, $value in $borders {
49
+ @each $size in $border-sizes {
50
+ @include makeBorder($border, $value, $size);
53
51
  }
52
+ }
54
53
 
55
- @if $border-responsive {
56
- @each $breakpoint, $breakpoint-value in $breakpoints {
57
- @include breakpoint($breakpoint) {
58
- @each $border, $value in $borders {
59
- @each $size in $border-sizes {
60
- @include makeBorder($border, $value, $size, $breakpoint);
61
- }
54
+ @if $border-responsive {
55
+ @each $breakpoint, $breakpoint-value in $breakpoints {
56
+ @include breakpoint($breakpoint) {
57
+ @each $border, $value in $borders {
58
+ @each $size in $border-sizes {
59
+ @include makeBorder($border, $value, $size, $breakpoint);
62
60
  }
63
61
  }
64
62
  }
@@ -13,22 +13,20 @@ $radius: (
13
13
  ) !default;
14
14
 
15
15
  @if index($components, border-radius) {
16
- :root {
17
- @each $radi, $value in $radius {
18
- .#{map-get($classnames, border-radius)}-#{$radi} {
19
- border-radius: $value;
20
- }
21
-
22
- $addme: add-to-apply-map(#{map-get($classnames, border-radius)}-#{$radi}, "border-radius", "#{$value}");
16
+ @each $radi, $value in $radius {
17
+ .#{map-get($classnames, border-radius)}-#{$radi} {
18
+ border-radius: $value #{$important};
23
19
  }
24
20
 
25
- @if $radius-responsive {
26
- @each $breakpoint, $breakpoint-value in $breakpoints {
27
- @include breakpoint($breakpoint) {
28
- @each $radi, $value in $radius {
29
- .#{$breakpoint}\:#{map-get($classnames, border-radius)}-#{$radi} {
30
- border-radius: $value;
31
- }
21
+ $addme: add-to-apply-map(#{map-get($classnames, border-radius)}-#{$radi}, "border-radius", "#{$value}");
22
+ }
23
+
24
+ @if $radius-responsive {
25
+ @each $breakpoint, $breakpoint-value in $breakpoints {
26
+ @include breakpoint($breakpoint) {
27
+ @each $radi, $value in $radius {
28
+ .#{$breakpoint}\:#{map-get($classnames, border-radius)}-#{$radi} {
29
+ border-radius: $value #{$important};
32
30
  }
33
31
  }
34
32
  }
@@ -1,7 +1,3 @@
1
- @function spacing($key: 0) {
2
- @return map-get($spacing, $key);
3
- }
4
-
5
1
  @function add-to-apply-map($classname, $property, $value) {
6
2
  $to-add-to-map: "";
7
3
 
@@ -9,37 +9,35 @@ $display: (
9
9
  ) !default;
10
10
 
11
11
  @if index($components, display) {
12
- :root {
13
- @each $property in $display {
14
- .#{$property} {
15
- display: $property;
16
- }
17
-
18
- $addme: add-to-apply-map(#{$property}, "display", "#{$property}");
12
+ @each $property in $display {
13
+ .#{$property} {
14
+ display: $property #{$important};
19
15
  }
20
16
 
21
- .hidden {
22
- display: none;
23
- }
17
+ $addme: add-to-apply-map(#{$property}, "display", "#{$property}");
18
+ }
24
19
 
25
- @if $display-responsive {
26
- @each $breakpoint, $breakpoint-value in $breakpoints {
27
- @include breakpoint($breakpoint) {
28
- @each $property in $display {
29
- .#{$breakpoint}\:#{$property} {
30
- display: $property;
31
- }
20
+ .hidden {
21
+ display: none #{$important};
22
+ }
23
+
24
+ @if $display-responsive {
25
+ @each $breakpoint, $breakpoint-value in $breakpoints {
26
+ @include breakpoint($breakpoint) {
27
+ @each $property in $display {
28
+ .#{$breakpoint}\:#{$property} {
29
+ display: $property #{$important};
32
30
  }
33
31
  }
34
32
  }
35
33
  }
34
+ }
36
35
 
37
- @if $display-responsive {
38
- @each $breakpoint, $breakpoint-value in $breakpoints {
39
- @include breakpoint($breakpoint) {
40
- .#{$breakpoint}\:hidden {
41
- display: none;
42
- }
36
+ @if $display-responsive {
37
+ @each $breakpoint, $breakpoint-value in $breakpoints {
38
+ @include breakpoint($breakpoint) {
39
+ .#{$breakpoint}\:hidden {
40
+ display: none #{$important};
43
41
  }
44
42
  }
45
43
  }
@@ -10,22 +10,20 @@ $overflow: (
10
10
  ) !default;
11
11
 
12
12
  @if index($components, overflow) {
13
- :root {
14
- @each $property in $overflow {
15
- .#{map-get($classnames, overflow)}-#{$property} {
16
- overflow: $property;
17
- }
18
-
19
- $addme: add-to-apply-map(#{map-get($classnames, overflow)}-#{$property}, "overflow", "#{$property}");
13
+ @each $property in $overflow {
14
+ .#{map-get($classnames, overflow)}-#{$property} {
15
+ overflow: $property #{$important};
20
16
  }
21
17
 
22
- @if $overflow-responsive {
23
- @each $breakpoint, $breakpoint-value in $breakpoints {
24
- @include breakpoint($breakpoint) {
25
- @each $property in $overflow {
26
- .#{$breakpoint}\:overflow-#{$property} {
27
- overflow: $property;
28
- }
18
+ $addme: add-to-apply-map(#{map-get($classnames, overflow)}-#{$property}, "overflow", "#{$property}");
19
+ }
20
+
21
+ @if $overflow-responsive {
22
+ @each $breakpoint, $breakpoint-value in $breakpoints {
23
+ @include breakpoint($breakpoint) {
24
+ @each $property in $overflow {
25
+ .#{$breakpoint}\:overflow-#{$property} {
26
+ overflow: $property #{$important};
29
27
  }
30
28
  }
31
29
  }
@@ -9,22 +9,20 @@ $positions: (
9
9
  ) !default;
10
10
 
11
11
  @if index($components, position) {
12
- :root {
13
- @each $position in $positions {
14
- .#{$position} {
15
- position: $position;
16
- }
17
-
18
- $addme: add-to-apply-map(#{$position}, "position", "#{$position}");
12
+ @each $position in $positions {
13
+ .#{$position} {
14
+ position: $position #{$important};
19
15
  }
20
16
 
21
- @if $positions-responsive {
22
- @each $breakpoint, $breakpoint-value in $breakpoints {
23
- @include breakpoint($breakpoint) {
24
- @each $position in $positions {
25
- .#{$breakpoint}\:#{$position} {
26
- position: $position;
27
- }
17
+ $addme: add-to-apply-map(#{$position}, "position", "#{$position}");
18
+ }
19
+
20
+ @if $positions-responsive {
21
+ @each $breakpoint, $breakpoint-value in $breakpoints {
22
+ @include breakpoint($breakpoint) {
23
+ @each $position in $positions {
24
+ .#{$breakpoint}\:#{$position} {
25
+ position: $position #{$important};
28
26
  }
29
27
  }
30
28
  }
@@ -43,7 +41,7 @@ $positions: (
43
41
  @if index($components, position) {
44
42
  @each $pin, $value in $pins {
45
43
  .pin-#{$pin} {
46
- #{$value}: 0;
44
+ #{$value}: 0 #{$important};
47
45
  }
48
46
 
49
47
  $addme: add-to-apply-map(pin-#{$pin}, "#{$value}", "0");
@@ -54,7 +52,7 @@ $positions: (
54
52
  @include breakpoint($breakpoint) {
55
53
  @each $pin, $value in $pins {
56
54
  .#{$breakpoint}\:pin-#{$pin} {
57
- #{$value}: 0;
55
+ #{$value}: 0 #{$important};
58
56
  }
59
57
  }
60
58
  }
@@ -9,13 +9,11 @@ $z-index: (
9
9
  ) !default;
10
10
 
11
11
  @if index($components, z-index) {
12
- :root {
13
- @each $value in $z-index {
14
- .#{map-get($classnames, z-index)}-#{$value} {
15
- z-index: $value;
16
- }
17
-
18
- $addme: add-to-apply-map(#{map-get($classnames, z-index)}-#{$value}, "z-index", "#{$value}");
12
+ @each $value in $z-index {
13
+ .#{map-get($classnames, z-index)}-#{$value} {
14
+ z-index: $value #{$important};
19
15
  }
16
+
17
+ $addme: add-to-apply-map(#{map-get($classnames, z-index)}-#{$value}, "z-index", "#{$value}");
20
18
  }
21
19
  }
@@ -56,45 +56,43 @@ $flex-list: (
56
56
  );
57
57
 
58
58
  @if index($components, flex) {
59
- :root {
60
- @each $property in $flex {
61
- $medium: map-get($flex-list, $property);
62
- $classstart: "";
59
+ @each $property in $flex {
60
+ $medium: map-get($flex-list, $property);
61
+ $classstart: "";
63
62
 
64
- @each $name, $value in $medium {
65
- @if $name == "class" {
66
- $classstart: #{map-get($classnames, flex)}#{$value};
67
- }
68
-
69
- @if $name == "values" {
70
- @each $value-name, $value-value in $value {
71
- .#{$classstart}-#{$value-name} {
72
- #{$property}: #{$value-value};
73
- }
63
+ @each $name, $value in $medium {
64
+ @if $name == "class" {
65
+ $classstart: #{map-get($classnames, flex)}#{$value};
66
+ }
74
67
 
75
- $addme: add-to-apply-map(#{$classstart}-#{$value-name}, "#{$property}", "#{$value-value}");
68
+ @if $name == "values" {
69
+ @each $value-name, $value-value in $value {
70
+ .#{$classstart}-#{$value-name} {
71
+ #{$property}: #{$value-value} #{$important};
76
72
  }
73
+
74
+ $addme: add-to-apply-map(#{$classstart}-#{$value-name}, "#{$property}", "#{$value-value}");
77
75
  }
78
76
  }
79
77
  }
78
+ }
80
79
 
81
- @if $flex-responsive {
82
- @each $breakpoint, $breakpoint-value in $breakpoints {
83
- @include breakpoint($breakpoint) {
84
- @each $property in $flex {
85
- $medium: map-get($flex-list, $property);
86
- $classstart: "";
80
+ @if $flex-responsive {
81
+ @each $breakpoint, $breakpoint-value in $breakpoints {
82
+ @include breakpoint($breakpoint) {
83
+ @each $property in $flex {
84
+ $medium: map-get($flex-list, $property);
85
+ $classstart: "";
87
86
 
88
- @each $name, $value in $medium {
89
- @if $name == "class" {
90
- $classstart: #{$value};
91
- }
87
+ @each $name, $value in $medium {
88
+ @if $name == "class" {
89
+ $classstart: #{$value};
90
+ }
92
91
 
93
- @if $name == "values" {
94
- @each $value-name, $value-value in $value {
95
- .#{$breakpoint}\:#{$classstart}-#{$value-name} {
96
- #{$property}: #{$value-value};
97
- }
92
+ @if $name == "values" {
93
+ @each $value-name, $value-value in $value {
94
+ .#{$breakpoint}\:#{$classstart}-#{$value-name} {
95
+ #{$property}: #{$value-value} #{$important};
98
96
  }
99
97
  }
100
98
  }
@@ -11,29 +11,27 @@ $shadows: (
11
11
  ) !default;
12
12
 
13
13
  @if index($components, shadows) {
14
- :root {
15
- @each $shadow, $value in $shadows {
16
- $hover: "";
14
+ @each $shadow, $value in $shadows {
15
+ $hover: "";
17
16
 
18
- @if $shadows-hover {
19
- $hover: ", .hover\\:#{map-get($classnames, shadow)}-#{$shadow}:hover";
20
- }
21
-
22
- .#{map-get($classnames, shadow)}-#{$shadow}
23
- #{$hover} {
24
- box-shadow: #{$value};
25
- }
17
+ @if $shadows-hover {
18
+ $hover: ", .hover\\:#{map-get($classnames, shadow)}-#{$shadow}:hover";
19
+ }
26
20
 
27
- $addme: add-to-apply-map(#{map-get($classnames, shadow)}-#{$shadow}, "box-shadow", "#{$value}");
21
+ .#{map-get($classnames, shadow)}-#{$shadow}
22
+ #{$hover} {
23
+ box-shadow: #{$value} #{$important};
28
24
  }
29
25
 
30
- @if $shadows-responsive {
31
- @each $breakpoint, $breakpoint-value in $breakpoints {
32
- @include breakpoint($breakpoint) {
33
- @each $shadow, $value in $shadows {
34
- .#{$breakpoint}\:#{map-get($classnames, shadow)}-#{$shadow} {
35
- box-shadow: #{$value};
36
- }
26
+ $addme: add-to-apply-map(#{map-get($classnames, shadow)}-#{$shadow}, "box-shadow", "#{$value}");
27
+ }
28
+
29
+ @if $shadows-responsive {
30
+ @each $breakpoint, $breakpoint-value in $breakpoints {
31
+ @include breakpoint($breakpoint) {
32
+ @each $shadow, $value in $shadows {
33
+ .#{$breakpoint}\:#{map-get($classnames, shadow)}-#{$shadow} {
34
+ box-shadow: #{$value} #{$important};
37
35
  }
38
36
  }
39
37
  }
@@ -18,67 +18,65 @@ $grid-full: true !default;
18
18
  $grid-single: false !default;
19
19
 
20
20
  @if index($components, grid) {
21
- :root {
22
- // No Breakpoints
23
- @if $grid-single {
24
- @for $i from 1 through $grid-size {
25
- .#{map-get($classnames, width)}-#{$i} {
26
- width: (100% / $grid-size) * $i;
27
- }
28
-
29
- $addme: add-to-apply-map("#{map-get($classnames, width)}-#{$i}", "width", "#{(100% / $grid-size) * $i}");
21
+ // No Breakpoints
22
+ @if $grid-single {
23
+ @for $i from 1 through $grid-size {
24
+ .#{map-get($classnames, width)}-#{$i} {
25
+ width: (100% / $grid-size) * $i #{$important};
30
26
  }
31
- } @else {
32
- @for $i from 1 through $grid-size {
33
- @if $grid-full {
34
- @for $j from 1 through $i {
35
- @include widthify($i, $j);
36
- }
37
- } @else {
38
- @include widthify($i, 1);
27
+
28
+ $addme: add-to-apply-map("#{map-get($classnames, width)}-#{$i}", "width", "#{(100% / $grid-size) * $i}");
29
+ }
30
+ } @else {
31
+ @for $i from 1 through $grid-size {
32
+ @if $grid-full {
33
+ @for $j from 1 through $i {
34
+ @include widthify($i, $j);
39
35
  }
36
+ } @else {
37
+ @include widthify($i, 1);
40
38
  }
41
39
  }
40
+ }
42
41
 
43
- // Breakpoints
44
- @if $grid-single {
45
- @each $breakpoint, $breakpoint-value in $breakpoints {
46
- @include breakpoint($breakpoint) {
47
- @for $i from 1 through $grid-size {
48
- .#{$breakpoint}\:#{map-get($classnames, width)}-#{$i} {
49
- width: (100% / $grid-size) * $i;
50
- }
42
+ // Breakpoints
43
+ @if $grid-single {
44
+ @each $breakpoint, $breakpoint-value in $breakpoints {
45
+ @include breakpoint($breakpoint) {
46
+ @for $i from 1 through $grid-size {
47
+ .#{$breakpoint}\:#{map-get($classnames, width)}-#{$i} {
48
+ width: (100% / $grid-size) * $i #{$important};
51
49
  }
52
50
  }
53
51
  }
54
- } @else {
55
- @each $breakpoint, $breakpoint-value in $breakpoints {
56
- @include breakpoint($breakpoint) {
57
- @for $i from 1 through $grid-size {
58
- @if $grid-full {
59
- @for $j from 1 through $i {
60
- @include widthify($i, $j, $breakpoint);
61
- }
62
- } @else {
63
- @include widthify($i, 1, $breakpoint);
52
+ }
53
+ } @else {
54
+ @each $breakpoint, $breakpoint-value in $breakpoints {
55
+ @include breakpoint($breakpoint) {
56
+ @for $i from 1 through $grid-size {
57
+ @if $grid-full {
58
+ @for $j from 1 through $i {
59
+ @include widthify($i, $j, $breakpoint);
64
60
  }
61
+ } @else {
62
+ @include widthify($i, 1, $breakpoint);
65
63
  }
66
64
  }
67
65
  }
68
66
  }
67
+ }
69
68
 
70
- @if map-get($breakpoints, mw) {
71
- .#{map-get($classnames, width)}-max {
72
- max-width: map-get($breakpoints, mw);
73
- }
69
+ @if map-get($breakpoints, mw) {
70
+ .#{map-get($classnames, width)}-max {
71
+ max-width: map-get($breakpoints, mw) #{$important};
74
72
  }
73
+ }
75
74
 
76
- .h-1\/1 {
77
- height: 100%;
78
- }
75
+ .h-1\/1 {
76
+ height: 100% #{$important};
77
+ }
79
78
 
80
- .h-auto {
81
- height: auto;
82
- }
79
+ .h-auto {
80
+ height: auto #{$important};
83
81
  }
84
82
  }
@@ -55,7 +55,7 @@ $types: (
55
55
 
56
56
  $map: (#{$type-value}#{$sep}#{$loc-value}: "");
57
57
  $properties: map-merge($properties, $map);
58
- #{$type-value}#{$sep}#{$loc-value}: $value;
58
+ #{$type-value}#{$sep}#{$loc-value}: $value #{$important};
59
59
  }
60
60
 
61
61
  @if $bp == "" {
@@ -67,7 +67,7 @@ $types: (
67
67
  $sep: "-";
68
68
  }
69
69
 
70
- #{$type-value}#{$sep}#{$location-value}: $value;
70
+ #{$type-value}#{$sep}#{$location-value}: $value #{$important};
71
71
 
72
72
  @if $bp == "" {
73
73
  $addme: add-to-apply-map(#{$bp}#{$type}#{$l}#{$s}, "#{$type-value}#{$sep}#{$location-value}", "#{$value}");
@@ -78,49 +78,47 @@ $types: (
78
78
  }
79
79
 
80
80
  @if index($components, spacing) {
81
- :root {
82
- @each $space, $value in $spacing {
83
- @include paddingmargin($space, $value);
81
+ @each $space, $value in $spacing {
82
+ @include paddingmargin($space, $value);
84
83
 
85
- @each $location, $location-value in $spacing-locations {
86
- @include paddingmargin($space, $value, 0, $location, $location-value);
87
- }
84
+ @each $location, $location-value in $spacing-locations {
85
+ @include paddingmargin($space, $value, 0, $location, $location-value);
88
86
  }
87
+ }
89
88
 
90
- @if $spacing-responsive {
91
- @each $space, $value in $spacing {
92
- @each $breakpoint, $breakpoint-value in $breakpoints {
93
- @include breakpoint($breakpoint) {
94
- @include paddingmargin($space, $value, $breakpoint);
89
+ @if $spacing-responsive {
90
+ @each $space, $value in $spacing {
91
+ @each $breakpoint, $breakpoint-value in $breakpoints {
92
+ @include breakpoint($breakpoint) {
93
+ @include paddingmargin($space, $value, $breakpoint);
95
94
 
96
- @each $location, $location-value in $spacing-locations {
97
- @include paddingmargin($space, $value, $breakpoint, $location, $location-value);
98
- }
95
+ @each $location, $location-value in $spacing-locations {
96
+ @include paddingmargin($space, $value, $breakpoint, $location, $location-value);
99
97
  }
100
98
  }
101
99
  }
102
100
  }
101
+ }
103
102
 
104
- @each $space, $value in $spacing {
105
- @if type-of($value) == "number" {
106
- .-mx-#{$space} {
107
- margin-left: $value * -1;
108
- margin-right: $value * -1;
109
- }
110
-
111
- $addme: add-to-apply-map(-mx-#{$space}, ("margin-left": "", "margin-right": ""), "#{$value * -1}");
103
+ @each $space, $value in $spacing {
104
+ @if type-of($value) == "number" {
105
+ .-mx-#{$space} {
106
+ margin-left: $value * -1 #{$important};
107
+ margin-right: $value * -1 #{$important};
112
108
  }
109
+
110
+ $addme: add-to-apply-map(-mx-#{$space}, ("margin-left": "", "margin-right": ""), "#{$value * -1}");
113
111
  }
112
+ }
114
113
 
115
- @if $spacing-responsive {
116
- @each $breakpoint, $breakpoint-value in $breakpoints {
117
- @include breakpoint($breakpoint) {
118
- @each $space, $value in $spacing {
119
- @if type-of($value) == "number" {
120
- .#{$breakpoint}\:-mx-#{$space} {
121
- margin-left: $value * -1;
122
- margin-right: $value * -1;
123
- }
114
+ @if $spacing-responsive {
115
+ @each $breakpoint, $breakpoint-value in $breakpoints {
116
+ @include breakpoint($breakpoint) {
117
+ @each $space, $value in $spacing {
118
+ @if type-of($value) == "number" {
119
+ .#{$breakpoint}\:-mx-#{$space} {
120
+ margin-left: $value * -1 #{$important};
121
+ margin-right: $value * -1 #{$important};
124
122
  }
125
123
  }
126
124
  }
@@ -7,22 +7,20 @@ $align: (
7
7
  ) !default;
8
8
 
9
9
  @if index($components, text-align) {
10
- :root {
11
- @each $value in $align {
12
- .#{map-get($classnames, text)}-#{$value} {
13
- text-align: $value;
14
- }
15
-
16
- $addme: add-to-apply-map(#{map-get($classnames, text)}-#{$value}, "text-align", "#{$value}");
10
+ @each $value in $align {
11
+ .#{map-get($classnames, text)}-#{$value} {
12
+ text-align: $value #{$important};
17
13
  }
18
14
 
19
- @if $text-align-responsive {
20
- @each $breakpoint, $breakpoint-value in $breakpoints {
21
- @include breakpoint($breakpoint) {
22
- @each $value in $align {
23
- .#{$breakpoint}\:#{map-get($classnames, text)}-#{$value} {
24
- text-align: $value;
25
- }
15
+ $addme: add-to-apply-map(#{map-get($classnames, text)}-#{$value}, "text-align", "#{$value}");
16
+ }
17
+
18
+ @if $text-align-responsive {
19
+ @each $breakpoint, $breakpoint-value in $breakpoints {
20
+ @include breakpoint($breakpoint) {
21
+ @each $value in $align {
22
+ .#{$breakpoint}\:#{map-get($classnames, text)}-#{$value} {
23
+ text-align: $value #{$important};
26
24
  }
27
25
  }
28
26
  }
@@ -1,42 +1,40 @@
1
1
  $text-colors-hover: true !default;
2
2
 
3
3
  @if index($components, text-colors) {
4
- :root {
5
- @if $theme-colors != () {
6
- @each $color, $value in $theme-colors {
7
- $hover: "";
8
-
9
- @if $text-colors-hover {
10
- $hover: ", .hover\\:#{map-get($classnames, text)}-#{"" + $color}:hover";
11
- }
4
+ @if $theme-colors != () {
5
+ @each $color, $value in $theme-colors {
6
+ $hover: "";
12
7
 
13
- .#{map-get($classnames, text)}-#{"" + $color}
14
- #{$hover} {
15
- color: #{$value};
16
- }
8
+ @if $text-colors-hover {
9
+ $hover: ", .hover\\:#{map-get($classnames, text)}-#{"" + $color}:hover";
10
+ }
17
11
 
18
- $addme: add-to-apply-map(#{map-get($classnames, text)}-#{"" + $color}, "color", "#{$value}");
12
+ .#{map-get($classnames, text)}-#{"" + $color}
13
+ #{$hover} {
14
+ color: #{$value} #{$important};
19
15
  }
20
- }
21
16
 
22
- @if $full-colors {
23
- @each $color in $colors {
24
- $medium: map-get($colors-list, $color);
17
+ $addme: add-to-apply-map(#{map-get($classnames, text)}-#{"" + $color}, "color", "#{$value}");
18
+ }
19
+ }
25
20
 
26
- @each $shade, $value in $medium {
27
- $hover: "";
21
+ @if $full-colors {
22
+ @each $color in $colors {
23
+ $medium: map-get($colors-list, $color);
28
24
 
29
- @if $text-colors-hover {
30
- $hover: ", .hover\\:#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}:hover";
31
- }
25
+ @each $shade, $value in $medium {
26
+ $hover: "";
32
27
 
33
- .#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}
34
- #{$hover} {
35
- color: $value;
36
- }
28
+ @if $text-colors-hover {
29
+ $hover: ", .hover\\:#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}:hover";
30
+ }
37
31
 
38
- $addme: add-to-apply-map(#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}, "color", "#{$value}");
32
+ .#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}
33
+ #{$hover} {
34
+ color: $value #{$important};
39
35
  }
36
+
37
+ $addme: add-to-apply-map(#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}, "color", "#{$value}");
40
38
  }
41
39
  }
42
40
  }
@@ -59,13 +59,11 @@ $font-families: (
59
59
  );
60
60
 
61
61
  @if index($components, fonts) {
62
- :root {
63
- @each $font-family, $value in $font-families {
64
- .#{map-get($classnames, font)}-#{$font-family} {
65
- font-family: $value;
66
- }
67
-
68
- $addme: add-to-apply-map(#{map-get($classnames, font)}-#{$font-family}, "font-family", "#{$value}");
62
+ @each $font-family, $value in $font-families {
63
+ .#{map-get($classnames, font)}-#{$font-family} {
64
+ font-family: $value #{$important};
69
65
  }
66
+
67
+ $addme: add-to-apply-map(#{map-get($classnames, font)}-#{$font-family}, "font-family", "#{$value}");
70
68
  }
71
69
  }
@@ -5,13 +5,11 @@ $font-sizes: (
5
5
  ) !default;
6
6
 
7
7
  @if index($components, font-sizes) {
8
- :root {
9
- @each $size, $value in $font-sizes {
10
- .#{map-get($classnames, text)}-#{$size} {
11
- font-size: $value;
12
- }
13
-
14
- $addme: add-to-apply-map(#{map-get($classnames, text)}-#{$size}, "font-size", "#{$value}");
8
+ @each $size, $value in $font-sizes {
9
+ .#{map-get($classnames, text)}-#{$size} {
10
+ font-size: $value #{$important};
15
11
  }
12
+
13
+ $addme: add-to-apply-map(#{map-get($classnames, text)}-#{$size}, "font-size", "#{$value}");
16
14
  }
17
15
  }
@@ -6,14 +6,12 @@ $decoration: (
6
6
  ) !default;
7
7
 
8
8
  @if index($components, text-decoration) {
9
- :root {
10
- @each $value in $decoration {
11
- .#{map-get($classnames, text)}-#{$value} {
12
- text-decoration: $value;
13
- }
14
-
15
- $addme: add-to-apply-map(#{map-get($classnames, text)}-#{$value}, "text-decoration", "#{$value}");
9
+ @each $value in $decoration {
10
+ .#{map-get($classnames, text)}-#{$value} {
11
+ text-decoration: $value #{$important};
16
12
  }
13
+
14
+ $addme: add-to-apply-map(#{map-get($classnames, text)}-#{$value}, "text-decoration", "#{$value}");
17
15
  }
18
16
  }
19
17
 
@@ -24,14 +22,12 @@ $font-style: (
24
22
  ) !default;
25
23
 
26
24
  @if index($components, font-style) {
27
- :root {
28
- @each $value in $font-style {
29
- .#{map-get($classnames, font)}-#{$value} {
30
- font-style: $value;
31
- }
32
-
33
- $addme: add-to-apply-map(#{map-get($classnames, font)}-#{$value}, "font-style", "#{$value}");
25
+ @each $value in $font-style {
26
+ .#{map-get($classnames, font)}-#{$value} {
27
+ font-style: $value #{$important};
34
28
  }
29
+
30
+ $addme: add-to-apply-map(#{map-get($classnames, font)}-#{$value}, "font-style", "#{$value}");
35
31
  }
36
32
  }
37
33
 
@@ -43,14 +39,12 @@ $font-weights: (
43
39
  ) !default;
44
40
 
45
41
  @if index($components, font-weights) {
46
- :root {
47
- @each $value in $font-weights {
48
- .#{map-get($classnames, font)}-#{$value} {
49
- font-weight: $value;
50
- }
51
-
52
- $addme: add-to-apply-map(#{map-get($classnames, font)}-#{$value}, "font-weight", "#{$value}");
42
+ @each $value in $font-weights {
43
+ .#{map-get($classnames, font)}-#{$value} {
44
+ font-weight: $value #{$important};
53
45
  }
46
+
47
+ $addme: add-to-apply-map(#{map-get($classnames, font)}-#{$value}, "font-weight", "#{$value}");
54
48
  }
55
49
  }
56
50
 
@@ -61,13 +55,11 @@ $text-transform: (
61
55
  ) !default;
62
56
 
63
57
  @if index($components, text-transform) {
64
- :root {
65
- @each $value in $text-transform {
66
- .#{map-get($classnames, text)}-#{$value} {
67
- text-transform: $value;
68
- }
69
-
70
- $addme: add-to-apply-map(#{map-get($classnames, text)}-#{$value}, "text-transform", "#{$value}");
58
+ @each $value in $text-transform {
59
+ .#{map-get($classnames, text)}-#{$value} {
60
+ text-transform: $value #{$important};
71
61
  }
62
+
63
+ $addme: add-to-apply-map(#{map-get($classnames, text)}-#{$value}, "text-transform", "#{$value}");
72
64
  }
73
65
  }
@@ -7,13 +7,11 @@ $title-sizes: (
7
7
  ) !default;
8
8
 
9
9
  @if index($components, title-sizes) {
10
- :root {
11
- @each $size, $value in $title-sizes {
12
- #{$size} {
13
- font-size: $value;
14
- }
15
-
16
- $addme: add-to-apply-map(#{$size}, "font-size", "#{$value}");
10
+ @each $size, $value in $title-sizes {
11
+ #{$size} {
12
+ font-size: $value #{$important};
17
13
  }
14
+
15
+ $addme: add-to-apply-map(#{$size}, "font-size", "#{$value}");
18
16
  }
19
17
  }
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.11
4
+ version: 0.1.12
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-29 00:00:00.000000000 Z
11
+ date: 2017-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler