flake-scss 0.1.10 → 0.1.11

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: 630b9907efb82ae55df133a0a9ac2cfebbf654d1
4
- data.tar.gz: b8e66da1084703870a73f0ebc14ca7ee6e4f7693
3
+ metadata.gz: f88dcfd5b28accc2e7efe4596e3752d135b1e78b
4
+ data.tar.gz: a58c0eb19396fc13a5fc9e8003196d4114c172c3
5
5
  SHA512:
6
- metadata.gz: 60fd80d03472f6ec19094445a66d6c7a328d5b68ae2edeca5314146ba07810af6a41227d20d11a8817281f2d3090fe5b8ea60c25b57f38bdbb947921719bf145
7
- data.tar.gz: 0c978441389095ddb5044cd3458617f92fc2500ad0f6c97ce1ff4ecdeab65d933dd7ac96e7fb505addaa60178d3eacae4361069c9dc46a951bb42bd53c6fa8ec
6
+ metadata.gz: 9b0f84656d7f9dd61c35950231e36f7de0bf0c8c7801deb5a4ea2648345a6f94dfb50ce97f824c61bd68fcc460fc98dec250080b7057670702604ae04895bbb2
7
+ data.tar.gz: 912f415c652c5c0bf1079029f7bc977242366cadf92b6f11d9c5d0b8edf02930e392c9a5a7802e78aae49b7f78635e534f1f8eac427d29683e089eadcbd4d4c0
@@ -1,5 +1,5 @@
1
1
  module Flake
2
2
  module Scss
3
- VERSION = "0.1.10"
3
+ VERSION = "0.1.11"
4
4
  end
5
5
  end
@@ -5,30 +5,31 @@
5
5
  "flake/breakpoints",
6
6
  "flake/mixins";
7
7
 
8
- :root {
9
- @import "background/colors";
8
+ @import "background/colors",
9
+ "background/sizes";
10
10
 
11
- @import "border/general",
12
- "border/colors",
13
- "border/radius";
11
+ @import "border/general",
12
+ "border/colors",
13
+ "border/radius";
14
14
 
15
- @import "text/colors",
16
- "text/fonts",
17
- "text/style",
18
- "text/align",
19
- "text/sizes";
15
+ @import "text/colors",
16
+ "text/fonts",
17
+ "text/style",
18
+ "text/align",
19
+ "text/sizes",
20
+ "text/titles";
20
21
 
21
- @import "sizing/spacing",
22
- "sizing/grid";
22
+ @import "sizing/spacing",
23
+ "sizing/grid";
23
24
 
24
- @import "layout/flex";
25
+ @import "layout/flex";
25
26
 
26
- @import "shadows/shadows";
27
+ @import "shadows/shadows";
27
28
 
28
- @import "general/display",
29
- "general/position",
30
- "general/general",
31
- "general/z-index";
29
+ @import "general/display",
30
+ "general/position",
31
+ "general/general",
32
+ "general/z-index",
33
+ "general/overflow";
32
34
 
33
- @import "animations/transitions";
34
- }
35
+ @import "animations/transitions";
@@ -3,12 +3,15 @@ $apply-classes: () !global;
3
3
  $components: (
4
4
  transition,
5
5
  background-colors,
6
+ background-sizes,
7
+ background-positions,
6
8
  border-colors,
7
9
  borders,
8
10
  border-radius,
9
11
  display,
10
12
  position,
11
13
  z-index,
14
+ overflow,
12
15
  flex,
13
16
  shadows,
14
17
  grid,
@@ -19,10 +22,13 @@ $components: (
19
22
  font-sizes,
20
23
  font-style,
21
24
  font-weights,
22
- text-decoration
25
+ text-decoration,
26
+ title-sizes
23
27
  ) !default;
24
28
 
25
- $classnames: (
29
+ $classnames: () !default;
30
+
31
+ $classnames-default: (
26
32
  position: "",
27
33
  display: "",
28
34
  width: "w",
@@ -30,6 +36,7 @@ $classnames: (
30
36
  margin: "m",
31
37
  border: "b",
32
38
  border-radius: "radius",
39
+ overflow: "overflow",
33
40
  flex: "",
34
41
  background: "bg",
35
42
  text: "text",
@@ -38,3 +45,9 @@ $classnames: (
38
45
  shadow: "shadow",
39
46
  z-index: "z"
40
47
  ) !default;
48
+
49
+ @each $type, $classname in $classnames-default {
50
+ @if not(map-has-key($classnames, $type)) {
51
+ $classnames: map-merge($classnames, ($type: $classname));
52
+ }
53
+ }
@@ -6,30 +6,34 @@ $transitions: (
6
6
  slow: ".5s"
7
7
  ) !default;
8
8
 
9
- @each $transition, $value in $transitions {
10
- $sep: "";
11
- @if $transition != "" {
12
- $sep: "-"
13
- }
9
+ @if index($components, transition) {
10
+ :root {
11
+ @each $transition, $value in $transitions {
12
+ $sep: "";
13
+ @if $transition != "" {
14
+ $sep: "-"
15
+ }
14
16
 
15
- .#{map-get($classnames, transition)}#{$sep}#{$transition} {
16
- transition: #{$value};
17
- }
17
+ .#{map-get($classnames, transition)}#{$sep}#{$transition} {
18
+ transition: #{$value};
19
+ }
18
20
 
19
- $addme: add-to-apply-map(#{map-get($classnames, transition)}#{$sep}#{$transition}, "transition", "#{$value}");
20
- }
21
+ $addme: add-to-apply-map(#{map-get($classnames, transition)}#{$sep}#{$transition}, "transition", "#{$value}");
22
+ }
21
23
 
22
- @if $transitions-responsive {
23
- @each $breakpoint, $breakpoint-value in $breakpoints {
24
- @include breakpoint($breakpoint) {
25
- @each $transition, $value in $transitions {
26
- $sep: "";
27
- @if $transition != "" {
28
- $sep: "-";
29
- }
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
+ }
30
32
 
31
- .#{$breakpoint}\:#{map-get($classnames, transition)}#{$sep}#{$transition} {
32
- transition: #{$value};
33
+ .#{$breakpoint}\:#{map-get($classnames, transition)}#{$sep}#{$transition} {
34
+ transition: #{$value};
35
+ }
36
+ }
33
37
  }
34
38
  }
35
39
  }
@@ -0,0 +1,15 @@
1
+ $background-positions: (
2
+ center
3
+ ) !default;
4
+
5
+ @if index($components, background-positions) {
6
+ :root {
7
+ @each $value in $background-positions {
8
+ .#{map-get($classnames, background)}-#{$value} {
9
+ background-position: $value;
10
+ }
11
+
12
+ $addme: add-to-apply-map(#{map-get($classnames, background)}-#{$value}, "background-position", "#{$value}");
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,16 @@
1
+ $background-sizes: (
2
+ cover
3
+ contain
4
+ ) !default;
5
+
6
+ @if index($components, background-sizes) {
7
+ :root {
8
+ @each $value in $background-sizes {
9
+ .#{map-get($classnames, background)}-#{$value} {
10
+ background-size: $value;
11
+ }
12
+
13
+ $addme: add-to-apply-map(#{map-get($classnames, background)}-#{$value}, "background-size", "#{$value}");
14
+ }
15
+ }
16
+ }
@@ -2,61 +2,63 @@ $border-color-hover: true !default;
2
2
  $border-color-responsive: false !default;
3
3
 
4
4
  @if index($components, border-colors) {
5
- @if $theme-colors != () {
6
- @each $color, $value in $theme-colors {
7
- $hover: "";
5
+ :root {
6
+ @if $theme-colors != () {
7
+ @each $color, $value in $theme-colors {
8
+ $hover: "";
8
9
 
9
- @if $border-color-hover {
10
- $hover: ", .hover\\:#{map-get($classnames, border)}-#{"" + $color}:hover";
11
- }
10
+ @if $border-color-hover {
11
+ $hover: ", .hover\\:#{map-get($classnames, border)}-#{"" + $color}:hover";
12
+ }
12
13
 
13
- .#{map-get($classnames, border)}-#{"" + $color}
14
- #{$hover} {
15
- border-color: #{$value};
16
- }
14
+ .#{map-get($classnames, border)}-#{"" + $color}
15
+ #{$hover} {
16
+ border-color: #{$value};
17
+ }
17
18
 
18
- $addme: add-to-apply-map(#{map-get($classnames, border)}-#{"" + $color}, "border-color", "#{$value}");
19
+ $addme: add-to-apply-map(#{map-get($classnames, border)}-#{"" + $color}, "border-color", "#{$value}");
20
+ }
19
21
  }
20
- }
21
22
 
22
- @if $full-colors {
23
- @each $color in $colors {
24
- $medium: map-get($colors-list, $color);
23
+ @if $full-colors {
24
+ @each $color in $colors {
25
+ $medium: map-get($colors-list, $color);
25
26
 
26
- @each $shade, $value in $medium {
27
- $hover: "";
27
+ @each $shade, $value in $medium {
28
+ $hover: "";
28
29
 
29
- @if $border-color-hover {
30
- $hover: ", .hover\\:#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}:hover";
31
- }
30
+ @if $border-color-hover {
31
+ $hover: ", .hover\\:#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}:hover";
32
+ }
32
33
 
33
- .#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}
34
- #{$hover} {
35
- border-color: $value;
36
- }
34
+ .#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}
35
+ #{$hover} {
36
+ border-color: $value;
37
+ }
37
38
 
38
- $addme: add-to-apply-map(#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}, "border-color", "#{$value}");
39
+ $addme: add-to-apply-map(#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}, "border-color", "#{$value}");
40
+ }
39
41
  }
40
42
  }
41
- }
42
43
 
43
44
 
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};
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
+ }
51
53
  }
52
54
  }
53
- }
54
55
 
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;
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
+ }
60
62
  }
61
63
  }
62
64
  }
@@ -45,18 +45,20 @@ $border-sizes: (
45
45
  }
46
46
 
47
47
  @if index($components, borders) {
48
- @each $border, $value in $borders {
49
- @each $size in $border-sizes {
50
- @include makeBorder($border, $value, $size);
48
+ :root {
49
+ @each $border, $value in $borders {
50
+ @each $size in $border-sizes {
51
+ @include makeBorder($border, $value, $size);
52
+ }
51
53
  }
52
- }
53
54
 
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);
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
+ }
60
62
  }
61
63
  }
62
64
  }
@@ -13,20 +13,22 @@ $radius: (
13
13
  ) !default;
14
14
 
15
15
  @if index($components, border-radius) {
16
- @each $radi, $value in $radius {
17
- .#{map-get($classnames, border-radius)}-#{$radi} {
18
- border-radius: $value;
19
- }
16
+ :root {
17
+ @each $radi, $value in $radius {
18
+ .#{map-get($classnames, border-radius)}-#{$radi} {
19
+ border-radius: $value;
20
+ }
20
21
 
21
- $addme: add-to-apply-map(#{map-get($classnames, border-radius)}-#{$radi}, "border-radius", "#{$value}");
22
- }
22
+ $addme: add-to-apply-map(#{map-get($classnames, border-radius)}-#{$radi}, "border-radius", "#{$value}");
23
+ }
23
24
 
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;
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
+ }
30
32
  }
31
33
  }
32
34
  }
@@ -9,35 +9,37 @@ $display: (
9
9
  ) !default;
10
10
 
11
11
  @if index($components, display) {
12
- @each $property in $display {
13
- .#{$property} {
14
- display: $property;
15
- }
12
+ :root {
13
+ @each $property in $display {
14
+ .#{$property} {
15
+ display: $property;
16
+ }
16
17
 
17
- $addme: add-to-apply-map(#{$property}, "display", "#{$property}");
18
- }
18
+ $addme: add-to-apply-map(#{$property}, "display", "#{$property}");
19
+ }
19
20
 
20
- .hidden {
21
- display: none;
22
- }
21
+ .hidden {
22
+ display: none;
23
+ }
23
24
 
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;
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
+ }
30
32
  }
31
33
  }
32
34
  }
33
35
  }
34
- }
35
36
 
36
- @if $display-responsive {
37
- @each $breakpoint, $breakpoint-value in $breakpoints {
38
- @include breakpoint($breakpoint) {
39
- .#{$breakpoint}\:hidden {
40
- display: none;
37
+ @if $display-responsive {
38
+ @each $breakpoint, $breakpoint-value in $breakpoints {
39
+ @include breakpoint($breakpoint) {
40
+ .#{$breakpoint}\:hidden {
41
+ display: none;
42
+ }
41
43
  }
42
44
  }
43
45
  }
@@ -1,21 +1,3 @@
1
1
  * {
2
2
  box-sizing: border-box;
3
3
  }
4
-
5
- html,
6
- body {
7
- @include apply(("m-0", "p-0", "bg-general-white", "text-size-normal"));
8
- line-height: 1.5em;
9
- }
10
-
11
- .overflow-hidden {
12
- overflow: hidden;
13
- }
14
-
15
- h1 {
16
- font-size: 2rem;
17
- }
18
-
19
- h2 {
20
- font-size: 1.5rem;
21
- }
@@ -0,0 +1,34 @@
1
+ $overflow-responsive: true !default;
2
+
3
+ $overflow: (
4
+ visible,
5
+ hidden,
6
+ scroll,
7
+ auto,
8
+ initial,
9
+ inherit
10
+ ) !default;
11
+
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}");
20
+ }
21
+
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
+ }
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
@@ -9,51 +9,53 @@ $positions: (
9
9
  ) !default;
10
10
 
11
11
  @if index($components, position) {
12
- @each $position in $positions {
13
- .#{$position} {
14
- position: $position;
15
- }
12
+ :root {
13
+ @each $position in $positions {
14
+ .#{$position} {
15
+ position: $position;
16
+ }
16
17
 
17
- $addme: add-to-apply-map(#{$position}, "position", "#{$position}");
18
- }
18
+ $addme: add-to-apply-map(#{$position}, "position", "#{$position}");
19
+ }
19
20
 
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;
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
+ }
26
28
  }
27
29
  }
28
30
  }
29
31
  }
30
32
  }
31
- }
32
33
 
33
- $pins-responsive: true !default;
34
+ $pins-responsive: true !default;
34
35
 
35
- $pins: (
36
- t: "top",
37
- r: "right",
38
- b: "bottom",
39
- l: "left"
40
- ) !default;
36
+ $pins: (
37
+ t: "top",
38
+ r: "right",
39
+ b: "bottom",
40
+ l: "left"
41
+ ) !default;
41
42
 
42
- @if index($components, position) {
43
- @each $pin, $value in $pins {
44
- .pin-#{$pin} {
45
- #{$value}: 0;
46
- }
43
+ @if index($components, position) {
44
+ @each $pin, $value in $pins {
45
+ .pin-#{$pin} {
46
+ #{$value}: 0;
47
+ }
47
48
 
48
- $addme: add-to-apply-map(pin-#{$pin}, "#{$value}", "0");
49
- }
49
+ $addme: add-to-apply-map(pin-#{$pin}, "#{$value}", "0");
50
+ }
50
51
 
51
- @if $pins-responsive {
52
- @each $breakpoint, $breakpoint-value in $breakpoints {
53
- @include breakpoint($breakpoint) {
54
- @each $pin, $value in $pins {
55
- .#{$breakpoint}\:pin-#{$pin} {
56
- #{$value}: 0;
52
+ @if $pins-responsive {
53
+ @each $breakpoint, $breakpoint-value in $breakpoints {
54
+ @include breakpoint($breakpoint) {
55
+ @each $pin, $value in $pins {
56
+ .#{$breakpoint}\:pin-#{$pin} {
57
+ #{$value}: 0;
58
+ }
57
59
  }
58
60
  }
59
61
  }
@@ -9,11 +9,13 @@ $z-index: (
9
9
  ) !default;
10
10
 
11
11
  @if index($components, z-index) {
12
- @each $value in $z-index {
13
- .#{map-get($classnames, z-index)}-#{$value} {
14
- z-index: $value;
15
- }
12
+ :root {
13
+ @each $value in $z-index {
14
+ .#{map-get($classnames, z-index)}-#{$value} {
15
+ z-index: $value;
16
+ }
16
17
 
17
- $addme: add-to-apply-map(#{map-get($classnames, z-index)}-#{$value}, "z-index", "#{$value}");
18
+ $addme: add-to-apply-map(#{map-get($classnames, z-index)}-#{$value}, "z-index", "#{$value}");
19
+ }
18
20
  }
19
21
  }
@@ -56,43 +56,45 @@ $flex-list: (
56
56
  );
57
57
 
58
58
  @if index($components, flex) {
59
- @each $property in $flex {
60
- $medium: map-get($flex-list, $property);
61
- $classstart: "";
59
+ :root {
60
+ @each $property in $flex {
61
+ $medium: map-get($flex-list, $property);
62
+ $classstart: "";
62
63
 
63
- @each $name, $value in $medium {
64
- @if $name == "class" {
65
- $classstart: #{map-get($classnames, flex)}#{$value};
66
- }
64
+ @each $name, $value in $medium {
65
+ @if $name == "class" {
66
+ $classstart: #{map-get($classnames, flex)}#{$value};
67
+ }
67
68
 
68
- @if $name == "values" {
69
- @each $value-name, $value-value in $value {
70
- .#{$classstart}-#{$value-name} {
71
- #{$property}: #{$value-value};
72
- }
69
+ @if $name == "values" {
70
+ @each $value-name, $value-value in $value {
71
+ .#{$classstart}-#{$value-name} {
72
+ #{$property}: #{$value-value};
73
+ }
73
74
 
74
- $addme: add-to-apply-map(#{$classstart}-#{$value-name}, "#{$property}", "#{$value-value}");
75
+ $addme: add-to-apply-map(#{$classstart}-#{$value-name}, "#{$property}", "#{$value-value}");
76
+ }
75
77
  }
76
78
  }
77
79
  }
78
- }
79
80
 
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: "";
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: "";
86
87
 
87
- @each $name, $value in $medium {
88
- @if $name == "class" {
89
- $classstart: #{$value};
90
- }
88
+ @each $name, $value in $medium {
89
+ @if $name == "class" {
90
+ $classstart: #{$value};
91
+ }
91
92
 
92
- @if $name == "values" {
93
- @each $value-name, $value-value in $value {
94
- .#{$breakpoint}\:#{$classstart}-#{$value-name} {
95
- #{$property}: #{$value-value};
93
+ @if $name == "values" {
94
+ @each $value-name, $value-value in $value {
95
+ .#{$breakpoint}\:#{$classstart}-#{$value-name} {
96
+ #{$property}: #{$value-value};
97
+ }
96
98
  }
97
99
  }
98
100
  }
@@ -11,27 +11,29 @@ $shadows: (
11
11
  ) !default;
12
12
 
13
13
  @if index($components, shadows) {
14
- @each $shadow, $value in $shadows {
15
- $hover: "";
14
+ :root {
15
+ @each $shadow, $value in $shadows {
16
+ $hover: "";
16
17
 
17
- @if $shadows-hover {
18
- $hover: ", .hover\\:#{map-get($classnames, shadow)}-#{$shadow}:hover";
19
- }
18
+ @if $shadows-hover {
19
+ $hover: ", .hover\\:#{map-get($classnames, shadow)}-#{$shadow}:hover";
20
+ }
20
21
 
21
- .#{map-get($classnames, shadow)}-#{$shadow}
22
- #{$hover} {
23
- box-shadow: #{$value};
24
- }
22
+ .#{map-get($classnames, shadow)}-#{$shadow}
23
+ #{$hover} {
24
+ box-shadow: #{$value};
25
+ }
25
26
 
26
- $addme: add-to-apply-map(#{map-get($classnames, shadow)}-#{$shadow}, "box-shadow", "#{$value}");
27
- }
27
+ $addme: add-to-apply-map(#{map-get($classnames, shadow)}-#{$shadow}, "box-shadow", "#{$value}");
28
+ }
28
29
 
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};
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
+ }
35
37
  }
36
38
  }
37
39
  }
@@ -18,65 +18,67 @@ $grid-full: true !default;
18
18
  $grid-single: false !default;
19
19
 
20
20
  @if index($components, grid) {
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;
26
- }
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
+ }
27
28
 
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);
29
+ $addme: add-to-apply-map("#{map-get($classnames, width)}-#{$i}", "width", "#{(100% / $grid-size) * $i}");
30
+ }
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);
35
39
  }
36
- } @else {
37
- @include widthify($i, 1);
38
40
  }
39
41
  }
40
- }
41
42
 
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;
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
+ }
49
51
  }
50
52
  }
51
53
  }
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);
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);
60
64
  }
61
- } @else {
62
- @include widthify($i, 1, $breakpoint);
63
65
  }
64
66
  }
65
67
  }
66
68
  }
67
- }
68
69
 
69
- @if map-get($breakpoints, mw) {
70
- .#{map-get($classnames, width)}-max {
71
- max-width: map-get($breakpoints, mw);
70
+ @if map-get($breakpoints, mw) {
71
+ .#{map-get($classnames, width)}-max {
72
+ max-width: map-get($breakpoints, mw);
73
+ }
72
74
  }
73
- }
74
75
 
75
- .h-1\/1 {
76
- height: 100%;
77
- }
76
+ .h-1\/1 {
77
+ height: 100%;
78
+ }
78
79
 
79
- .h-auto {
80
- height: auto;
80
+ .h-auto {
81
+ height: auto;
82
+ }
81
83
  }
82
84
  }
@@ -78,47 +78,49 @@ $types: (
78
78
  }
79
79
 
80
80
  @if index($components, spacing) {
81
- @each $space, $value in $spacing {
82
- @include paddingmargin($space, $value);
81
+ :root {
82
+ @each $space, $value in $spacing {
83
+ @include paddingmargin($space, $value);
83
84
 
84
- @each $location, $location-value in $spacing-locations {
85
- @include paddingmargin($space, $value, 0, $location, $location-value);
85
+ @each $location, $location-value in $spacing-locations {
86
+ @include paddingmargin($space, $value, 0, $location, $location-value);
87
+ }
86
88
  }
87
- }
88
89
 
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);
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);
94
95
 
95
- @each $location, $location-value in $spacing-locations {
96
- @include paddingmargin($space, $value, $breakpoint, $location, $location-value);
96
+ @each $location, $location-value in $spacing-locations {
97
+ @include paddingmargin($space, $value, $breakpoint, $location, $location-value);
98
+ }
97
99
  }
98
100
  }
99
101
  }
100
102
  }
101
- }
102
103
 
103
- @each $space, $value in $spacing {
104
- @if type-of($value) == "number" {
105
- .-mx-#{$space} {
106
- margin-left: $value * -1;
107
- margin-right: $value * -1;
108
- }
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
+ }
109
110
 
110
- $addme: add-to-apply-map(-mx-#{$space}, ("margin-left": "", "margin-right": ""), "#{$value * -1}");
111
+ $addme: add-to-apply-map(-mx-#{$space}, ("margin-left": "", "margin-right": ""), "#{$value * -1}");
112
+ }
111
113
  }
112
- }
113
114
 
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;
121
- margin-right: $value * -1;
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
+ }
122
124
  }
123
125
  }
124
126
  }
@@ -7,20 +7,22 @@ $align: (
7
7
  ) !default;
8
8
 
9
9
  @if index($components, text-align) {
10
- @each $value in $align {
11
- .#{map-get($classnames, text)}-#{$value} {
12
- text-align: $value;
13
- }
10
+ :root {
11
+ @each $value in $align {
12
+ .#{map-get($classnames, text)}-#{$value} {
13
+ text-align: $value;
14
+ }
14
15
 
15
- $addme: add-to-apply-map(#{map-get($classnames, text)}-#{$value}, "text", "#{$value}");
16
- }
16
+ $addme: add-to-apply-map(#{map-get($classnames, text)}-#{$value}, "text-align", "#{$value}");
17
+ }
17
18
 
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;
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
+ }
24
26
  }
25
27
  }
26
28
  }
@@ -1,40 +1,42 @@
1
1
  $text-colors-hover: true !default;
2
2
 
3
3
  @if index($components, text-colors) {
4
- @if $theme-colors != () {
5
- @each $color, $value in $theme-colors {
6
- $hover: "";
4
+ :root {
5
+ @if $theme-colors != () {
6
+ @each $color, $value in $theme-colors {
7
+ $hover: "";
7
8
 
8
- @if $text-colors-hover {
9
- $hover: ", .hover\\:#{map-get($classnames, text)}-#{"" + $color}:hover";
10
- }
9
+ @if $text-colors-hover {
10
+ $hover: ", .hover\\:#{map-get($classnames, text)}-#{"" + $color}:hover";
11
+ }
11
12
 
12
- .#{map-get($classnames, text)}-#{"" + $color}
13
- #{$hover} {
14
- color: #{$value};
15
- }
13
+ .#{map-get($classnames, text)}-#{"" + $color}
14
+ #{$hover} {
15
+ color: #{$value};
16
+ }
16
17
 
17
- $addme: add-to-apply-map(#{map-get($classnames, text)}-#{"" + $color}, "color", "#{$value}");
18
+ $addme: add-to-apply-map(#{map-get($classnames, text)}-#{"" + $color}, "color", "#{$value}");
19
+ }
18
20
  }
19
- }
20
21
 
21
- @if $full-colors {
22
- @each $color in $colors {
23
- $medium: map-get($colors-list, $color);
22
+ @if $full-colors {
23
+ @each $color in $colors {
24
+ $medium: map-get($colors-list, $color);
24
25
 
25
- @each $shade, $value in $medium {
26
- $hover: "";
26
+ @each $shade, $value in $medium {
27
+ $hover: "";
27
28
 
28
- @if $text-colors-hover {
29
- $hover: ", .hover\\:#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}:hover";
30
- }
29
+ @if $text-colors-hover {
30
+ $hover: ", .hover\\:#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}:hover";
31
+ }
31
32
 
32
- .#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}
33
- #{$hover} {
34
- color: $value;
35
- }
33
+ .#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}
34
+ #{$hover} {
35
+ color: $value;
36
+ }
36
37
 
37
- $addme: add-to-apply-map(#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}, "color", "#{$value}");
38
+ $addme: add-to-apply-map(#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}, "color", "#{$value}");
39
+ }
38
40
  }
39
41
  }
40
42
  }
@@ -56,14 +56,16 @@ $font-families: (
56
56
  serif: $serif,
57
57
  sans-serif: $sans-serif,
58
58
  monospace: $monospace
59
- ) !default;
59
+ );
60
60
 
61
61
  @if index($components, fonts) {
62
- @each $font-family, $value in $font-families {
63
- .#{map-get($classnames, font)}-#{$font-family} {
64
- font-family: $value;
65
- }
62
+ :root {
63
+ @each $font-family, $value in $font-families {
64
+ .#{map-get($classnames, font)}-#{$font-family} {
65
+ font-family: $value;
66
+ }
66
67
 
67
- $addme: add-to-apply-map(#{map-get($classnames, font)}-#{$font-family}, "font-family", "#{$value}");
68
+ $addme: add-to-apply-map(#{map-get($classnames, font)}-#{$font-family}, "font-family", "#{$value}");
69
+ }
68
70
  }
69
71
  }
@@ -5,11 +5,13 @@ $font-sizes: (
5
5
  ) !default;
6
6
 
7
7
  @if index($components, font-sizes) {
8
- @each $size, $value in $font-sizes {
9
- .#{map-get($classnames, text)}-#{$size} {
10
- font-size: $value;
11
- }
8
+ :root {
9
+ @each $size, $value in $font-sizes {
10
+ .#{map-get($classnames, text)}-#{$size} {
11
+ font-size: $value;
12
+ }
12
13
 
13
- $addme: add-to-apply-map(#{map-get($classnames, text)}-#{$size}, "font-size", "#{$value}");
14
+ $addme: add-to-apply-map(#{map-get($classnames, text)}-#{$size}, "font-size", "#{$value}");
15
+ }
14
16
  }
15
17
  }
@@ -6,12 +6,14 @@ $decoration: (
6
6
  ) !default;
7
7
 
8
8
  @if index($components, text-decoration) {
9
- @each $value in $decoration {
10
- .#{map-get($classnames, text)}-#{$value} {
11
- text-decoration: $value;
12
- }
9
+ :root {
10
+ @each $value in $decoration {
11
+ .#{map-get($classnames, text)}-#{$value} {
12
+ text-decoration: $value;
13
+ }
13
14
 
14
- $addme: add-to-apply-map(#{map-get($classnames, text)}-#{$value}, "text-decoration", "#{$value}");
15
+ $addme: add-to-apply-map(#{map-get($classnames, text)}-#{$value}, "text-decoration", "#{$value}");
16
+ }
15
17
  }
16
18
  }
17
19
 
@@ -22,12 +24,14 @@ $font-style: (
22
24
  ) !default;
23
25
 
24
26
  @if index($components, font-style) {
25
- @each $value in $font-style {
26
- .#{map-get($classnames, font)}-#{$value} {
27
- font-style: $value;
28
- }
27
+ :root {
28
+ @each $value in $font-style {
29
+ .#{map-get($classnames, font)}-#{$value} {
30
+ font-style: $value;
31
+ }
29
32
 
30
- $addme: add-to-apply-map(#{map-get($classnames, font)}-#{$value}, "font-style", "#{$value}");
33
+ $addme: add-to-apply-map(#{map-get($classnames, font)}-#{$value}, "font-style", "#{$value}");
34
+ }
31
35
  }
32
36
  }
33
37
 
@@ -39,12 +43,14 @@ $font-weights: (
39
43
  ) !default;
40
44
 
41
45
  @if index($components, font-weights) {
42
- @each $value in $font-weights {
43
- .#{map-get($classnames, font)}-#{$value} {
44
- font-weight: $value;
45
- }
46
+ :root {
47
+ @each $value in $font-weights {
48
+ .#{map-get($classnames, font)}-#{$value} {
49
+ font-weight: $value;
50
+ }
46
51
 
47
- $addme: add-to-apply-map(#{map-get($classnames, font)}-#{$value}, "font-weight", "#{$value}");
52
+ $addme: add-to-apply-map(#{map-get($classnames, font)}-#{$value}, "font-weight", "#{$value}");
53
+ }
48
54
  }
49
55
  }
50
56
 
@@ -55,12 +61,13 @@ $text-transform: (
55
61
  ) !default;
56
62
 
57
63
  @if index($components, text-transform) {
64
+ :root {
65
+ @each $value in $text-transform {
66
+ .#{map-get($classnames, text)}-#{$value} {
67
+ text-transform: $value;
68
+ }
58
69
 
59
- @each $value in $text-transform {
60
- .#{map-get($classnames, text)}-#{$value} {
61
- text-transform: $value;
70
+ $addme: add-to-apply-map(#{map-get($classnames, text)}-#{$value}, "text-transform", "#{$value}");
62
71
  }
63
-
64
- $addme: add-to-apply-map(#{map-get($classnames, text)}-#{$value}, "text-transform", "#{$value}");
65
72
  }
66
73
  }
@@ -0,0 +1,19 @@
1
+ $title-sizes: (
2
+ h1: 3rem,
3
+ h2: 2rem,
4
+ h3: 1.5rem,
5
+ h4: 1.25rem,
6
+ h5: 1.1rem
7
+ ) !default;
8
+
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}");
17
+ }
18
+ }
19
+ }
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.10
4
+ version: 0.1.11
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-26 00:00:00.000000000 Z
11
+ date: 2017-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -60,6 +60,8 @@ files:
60
60
  - vendor/assets/stylesheets/_variables.scss
61
61
  - vendor/assets/stylesheets/animations/_transitions.scss
62
62
  - vendor/assets/stylesheets/background/_colors.scss
63
+ - vendor/assets/stylesheets/background/_position.scss
64
+ - vendor/assets/stylesheets/background/_sizes.scss
63
65
  - vendor/assets/stylesheets/border/_colors.scss
64
66
  - vendor/assets/stylesheets/border/_general.scss
65
67
  - vendor/assets/stylesheets/border/_radius.scss
@@ -69,6 +71,7 @@ files:
69
71
  - vendor/assets/stylesheets/flake/_mixins.scss
70
72
  - vendor/assets/stylesheets/general/_display.scss
71
73
  - vendor/assets/stylesheets/general/_general.scss
74
+ - vendor/assets/stylesheets/general/_overflow.scss
72
75
  - vendor/assets/stylesheets/general/_position.scss
73
76
  - vendor/assets/stylesheets/general/_z-index.scss
74
77
  - vendor/assets/stylesheets/layout/_flex.scss
@@ -80,6 +83,7 @@ files:
80
83
  - vendor/assets/stylesheets/text/_fonts.scss
81
84
  - vendor/assets/stylesheets/text/_sizes.scss
82
85
  - vendor/assets/stylesheets/text/_style.scss
86
+ - vendor/assets/stylesheets/text/_titles.scss
83
87
  homepage: https://github.com/Mitcheljager/flake-scss
84
88
  licenses:
85
89
  - MIT