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 +4 -4
- data/lib/flake/scss/version.rb +1 -1
- data/vendor/assets/stylesheets/_flake.scss +21 -20
- data/vendor/assets/stylesheets/_variables.scss +15 -2
- data/vendor/assets/stylesheets/animations/_transitions.scss +24 -20
- data/vendor/assets/stylesheets/background/_position.scss +15 -0
- data/vendor/assets/stylesheets/background/_sizes.scss +16 -0
- data/vendor/assets/stylesheets/border/_colors.scss +41 -39
- data/vendor/assets/stylesheets/border/_general.scss +12 -10
- data/vendor/assets/stylesheets/border/_radius.scss +14 -12
- data/vendor/assets/stylesheets/general/_display.scss +23 -21
- data/vendor/assets/stylesheets/general/_general.scss +0 -18
- data/vendor/assets/stylesheets/general/_overflow.scss +34 -0
- data/vendor/assets/stylesheets/general/_position.scss +35 -33
- data/vendor/assets/stylesheets/general/_z-index.scss +7 -5
- data/vendor/assets/stylesheets/layout/_flex.scss +30 -28
- data/vendor/assets/stylesheets/shadows/_shadows.scss +19 -17
- data/vendor/assets/stylesheets/sizing/_grid.scss +45 -43
- data/vendor/assets/stylesheets/sizing/_spacing.scss +31 -29
- data/vendor/assets/stylesheets/text/_align.scss +14 -12
- data/vendor/assets/stylesheets/text/_colors.scss +27 -25
- data/vendor/assets/stylesheets/text/_fonts.scss +8 -6
- data/vendor/assets/stylesheets/text/_sizes.scss +7 -5
- data/vendor/assets/stylesheets/text/_style.scss +27 -20
- data/vendor/assets/stylesheets/text/_titles.scss +19 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f88dcfd5b28accc2e7efe4596e3752d135b1e78b
|
4
|
+
data.tar.gz: a58c0eb19396fc13a5fc9e8003196d4114c172c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b0f84656d7f9dd61c35950231e36f7de0bf0c8c7801deb5a4ea2648345a6f94dfb50ce97f824c61bd68fcc460fc98dec250080b7057670702604ae04895bbb2
|
7
|
+
data.tar.gz: 912f415c652c5c0bf1079029f7bc977242366cadf92b6f11d9c5d0b8edf02930e392c9a5a7802e78aae49b7f78635e534f1f8eac427d29683e089eadcbd4d4c0
|
data/lib/flake/scss/version.rb
CHANGED
@@ -5,30 +5,31 @@
|
|
5
5
|
"flake/breakpoints",
|
6
6
|
"flake/mixins";
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
@import "background/colors",
|
9
|
+
"background/sizes";
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
@import "border/general",
|
12
|
+
"border/colors",
|
13
|
+
"border/radius";
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
@import "text/colors",
|
16
|
+
"text/fonts",
|
17
|
+
"text/style",
|
18
|
+
"text/align",
|
19
|
+
"text/sizes",
|
20
|
+
"text/titles";
|
20
21
|
|
21
|
-
|
22
|
-
|
22
|
+
@import "sizing/spacing",
|
23
|
+
"sizing/grid";
|
23
24
|
|
24
|
-
|
25
|
+
@import "layout/flex";
|
25
26
|
|
26
|
-
|
27
|
+
@import "shadows/shadows";
|
27
28
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
@import "general/display",
|
30
|
+
"general/position",
|
31
|
+
"general/general",
|
32
|
+
"general/z-index",
|
33
|
+
"general/overflow";
|
32
34
|
|
33
|
-
|
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
|
-
@
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
-
|
16
|
-
|
17
|
-
|
17
|
+
.#{map-get($classnames, transition)}#{$sep}#{$transition} {
|
18
|
+
transition: #{$value};
|
19
|
+
}
|
18
20
|
|
19
|
-
|
20
|
-
}
|
21
|
+
$addme: add-to-apply-map(#{map-get($classnames, transition)}#{$sep}#{$transition}, "transition", "#{$value}");
|
22
|
+
}
|
21
23
|
|
22
|
-
@if $transitions-responsive {
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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
|
-
|
32
|
-
|
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
|
-
|
6
|
-
@
|
7
|
-
$
|
5
|
+
:root {
|
6
|
+
@if $theme-colors != () {
|
7
|
+
@each $color, $value in $theme-colors {
|
8
|
+
$hover: "";
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
10
|
+
@if $border-color-hover {
|
11
|
+
$hover: ", .hover\\:#{map-get($classnames, border)}-#{"" + $color}:hover";
|
12
|
+
}
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
.#{map-get($classnames, border)}-#{"" + $color}
|
15
|
+
#{$hover} {
|
16
|
+
border-color: #{$value};
|
17
|
+
}
|
17
18
|
|
18
|
-
|
19
|
+
$addme: add-to-apply-map(#{map-get($classnames, border)}-#{"" + $color}, "border-color", "#{$value}");
|
20
|
+
}
|
19
21
|
}
|
20
|
-
}
|
21
22
|
|
22
|
-
|
23
|
-
|
24
|
-
|
23
|
+
@if $full-colors {
|
24
|
+
@each $color in $colors {
|
25
|
+
$medium: map-get($colors-list, $color);
|
25
26
|
|
26
|
-
|
27
|
-
|
27
|
+
@each $shade, $value in $medium {
|
28
|
+
$hover: "";
|
28
29
|
|
29
|
-
|
30
|
-
|
31
|
-
|
30
|
+
@if $border-color-hover {
|
31
|
+
$hover: ", .hover\\:#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}:hover";
|
32
|
+
}
|
32
33
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
34
|
+
.#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}
|
35
|
+
#{$hover} {
|
36
|
+
border-color: $value;
|
37
|
+
}
|
37
38
|
|
38
|
-
|
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
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
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
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
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
|
-
|
49
|
-
@each $
|
50
|
-
@
|
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
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
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
|
-
|
17
|
-
|
18
|
-
border-radius
|
19
|
-
|
16
|
+
:root {
|
17
|
+
@each $radi, $value in $radius {
|
18
|
+
.#{map-get($classnames, border-radius)}-#{$radi} {
|
19
|
+
border-radius: $value;
|
20
|
+
}
|
20
21
|
|
21
|
-
|
22
|
-
|
22
|
+
$addme: add-to-apply-map(#{map-get($classnames, border-radius)}-#{$radi}, "border-radius", "#{$value}");
|
23
|
+
}
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
:root {
|
13
|
+
@each $property in $display {
|
14
|
+
.#{$property} {
|
15
|
+
display: $property;
|
16
|
+
}
|
16
17
|
|
17
|
-
|
18
|
-
|
18
|
+
$addme: add-to-apply-map(#{$property}, "display", "#{$property}");
|
19
|
+
}
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
21
|
+
.hidden {
|
22
|
+
display: none;
|
23
|
+
}
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
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
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
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
|
-
|
13
|
-
|
14
|
-
position
|
15
|
-
|
12
|
+
:root {
|
13
|
+
@each $position in $positions {
|
14
|
+
.#{$position} {
|
15
|
+
position: $position;
|
16
|
+
}
|
16
17
|
|
17
|
-
|
18
|
-
|
18
|
+
$addme: add-to-apply-map(#{$position}, "position", "#{$position}");
|
19
|
+
}
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
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
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
43
|
+
@if index($components, position) {
|
44
|
+
@each $pin, $value in $pins {
|
45
|
+
.pin-#{$pin} {
|
46
|
+
#{$value}: 0;
|
47
|
+
}
|
47
48
|
|
48
|
-
|
49
|
-
|
49
|
+
$addme: add-to-apply-map(pin-#{$pin}, "#{$value}", "0");
|
50
|
+
}
|
50
51
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
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
|
-
|
13
|
-
|
14
|
-
z-index
|
15
|
-
|
12
|
+
:root {
|
13
|
+
@each $value in $z-index {
|
14
|
+
.#{map-get($classnames, z-index)}-#{$value} {
|
15
|
+
z-index: $value;
|
16
|
+
}
|
16
17
|
|
17
|
-
|
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
|
-
|
60
|
-
$
|
61
|
-
|
59
|
+
:root {
|
60
|
+
@each $property in $flex {
|
61
|
+
$medium: map-get($flex-list, $property);
|
62
|
+
$classstart: "";
|
62
63
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
64
|
+
@each $name, $value in $medium {
|
65
|
+
@if $name == "class" {
|
66
|
+
$classstart: #{map-get($classnames, flex)}#{$value};
|
67
|
+
}
|
67
68
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
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
|
-
|
75
|
+
$addme: add-to-apply-map(#{$classstart}-#{$value-name}, "#{$property}", "#{$value-value}");
|
76
|
+
}
|
75
77
|
}
|
76
78
|
}
|
77
79
|
}
|
78
|
-
}
|
79
80
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
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
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
88
|
+
@each $name, $value in $medium {
|
89
|
+
@if $name == "class" {
|
90
|
+
$classstart: #{$value};
|
91
|
+
}
|
91
92
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
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
|
-
|
15
|
-
$
|
14
|
+
:root {
|
15
|
+
@each $shadow, $value in $shadows {
|
16
|
+
$hover: "";
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
18
|
+
@if $shadows-hover {
|
19
|
+
$hover: ", .hover\\:#{map-get($classnames, shadow)}-#{$shadow}:hover";
|
20
|
+
}
|
20
21
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
22
|
+
.#{map-get($classnames, shadow)}-#{$shadow}
|
23
|
+
#{$hover} {
|
24
|
+
box-shadow: #{$value};
|
25
|
+
}
|
25
26
|
|
26
|
-
|
27
|
-
|
27
|
+
$addme: add-to-apply-map(#{map-get($classnames, shadow)}-#{$shadow}, "box-shadow", "#{$value}");
|
28
|
+
}
|
28
29
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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
|
-
|
22
|
-
|
23
|
-
@
|
24
|
-
|
25
|
-
|
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
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
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
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
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
|
-
|
70
|
-
|
71
|
-
|
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
|
-
|
76
|
-
|
77
|
-
|
76
|
+
.h-1\/1 {
|
77
|
+
height: 100%;
|
78
|
+
}
|
78
79
|
|
79
|
-
|
80
|
-
|
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
|
-
|
82
|
-
@
|
81
|
+
:root {
|
82
|
+
@each $space, $value in $spacing {
|
83
|
+
@include paddingmargin($space, $value);
|
83
84
|
|
84
|
-
|
85
|
-
|
85
|
+
@each $location, $location-value in $spacing-locations {
|
86
|
+
@include paddingmargin($space, $value, 0, $location, $location-value);
|
87
|
+
}
|
86
88
|
}
|
87
|
-
}
|
88
89
|
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
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
|
-
|
96
|
-
|
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
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
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
|
-
|
111
|
+
$addme: add-to-apply-map(-mx-#{$space}, ("margin-left": "", "margin-right": ""), "#{$value * -1}");
|
112
|
+
}
|
111
113
|
}
|
112
|
-
}
|
113
114
|
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
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
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
:root {
|
11
|
+
@each $value in $align {
|
12
|
+
.#{map-get($classnames, text)}-#{$value} {
|
13
|
+
text-align: $value;
|
14
|
+
}
|
14
15
|
|
15
|
-
|
16
|
-
|
16
|
+
$addme: add-to-apply-map(#{map-get($classnames, text)}-#{$value}, "text-align", "#{$value}");
|
17
|
+
}
|
17
18
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
-
|
5
|
-
@
|
6
|
-
$
|
4
|
+
:root {
|
5
|
+
@if $theme-colors != () {
|
6
|
+
@each $color, $value in $theme-colors {
|
7
|
+
$hover: "";
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
9
|
+
@if $text-colors-hover {
|
10
|
+
$hover: ", .hover\\:#{map-get($classnames, text)}-#{"" + $color}:hover";
|
11
|
+
}
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
.#{map-get($classnames, text)}-#{"" + $color}
|
14
|
+
#{$hover} {
|
15
|
+
color: #{$value};
|
16
|
+
}
|
16
17
|
|
17
|
-
|
18
|
+
$addme: add-to-apply-map(#{map-get($classnames, text)}-#{"" + $color}, "color", "#{$value}");
|
19
|
+
}
|
18
20
|
}
|
19
|
-
}
|
20
21
|
|
21
|
-
|
22
|
-
|
23
|
-
|
22
|
+
@if $full-colors {
|
23
|
+
@each $color in $colors {
|
24
|
+
$medium: map-get($colors-list, $color);
|
24
25
|
|
25
|
-
|
26
|
-
|
26
|
+
@each $shade, $value in $medium {
|
27
|
+
$hover: "";
|
27
28
|
|
28
|
-
|
29
|
-
|
30
|
-
|
29
|
+
@if $text-colors-hover {
|
30
|
+
$hover: ", .hover\\:#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}:hover";
|
31
|
+
}
|
31
32
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
33
|
+
.#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}
|
34
|
+
#{$hover} {
|
35
|
+
color: $value;
|
36
|
+
}
|
36
37
|
|
37
|
-
|
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
|
-
)
|
59
|
+
);
|
60
60
|
|
61
61
|
@if index($components, fonts) {
|
62
|
-
|
63
|
-
|
64
|
-
font-family
|
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
|
-
|
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
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
:root {
|
9
|
+
@each $size, $value in $font-sizes {
|
10
|
+
.#{map-get($classnames, text)}-#{$size} {
|
11
|
+
font-size: $value;
|
12
|
+
}
|
12
13
|
|
13
|
-
|
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
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
:root {
|
10
|
+
@each $value in $decoration {
|
11
|
+
.#{map-get($classnames, text)}-#{$value} {
|
12
|
+
text-decoration: $value;
|
13
|
+
}
|
13
14
|
|
14
|
-
|
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
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
27
|
+
:root {
|
28
|
+
@each $value in $font-style {
|
29
|
+
.#{map-get($classnames, font)}-#{$value} {
|
30
|
+
font-style: $value;
|
31
|
+
}
|
29
32
|
|
30
|
-
|
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
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
+
:root {
|
47
|
+
@each $value in $font-weights {
|
48
|
+
.#{map-get($classnames, font)}-#{$value} {
|
49
|
+
font-weight: $value;
|
50
|
+
}
|
46
51
|
|
47
|
-
|
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
|
-
|
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.
|
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-
|
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
|