flake-scss 0.1.9 → 0.1.10
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/_variables.scss +17 -0
- data/vendor/assets/stylesheets/animations/_transitions.scss +3 -3
- data/vendor/assets/stylesheets/background/_colors.scss +7 -7
- data/vendor/assets/stylesheets/border/_colors.scss +8 -8
- data/vendor/assets/stylesheets/border/_radius.scss +3 -3
- data/vendor/assets/stylesheets/general/_display.scss +4 -4
- data/vendor/assets/stylesheets/general/_z-index.scss +2 -2
- data/vendor/assets/stylesheets/layout/_flex.scss +1 -1
- data/vendor/assets/stylesheets/shadows/_shadows.scss +4 -4
- data/vendor/assets/stylesheets/sizing/_grid.scss +6 -6
- data/vendor/assets/stylesheets/sizing/_spacing.scss +2 -2
- data/vendor/assets/stylesheets/text/_align.scss +3 -3
- data/vendor/assets/stylesheets/text/_colors.scss +6 -6
- data/vendor/assets/stylesheets/text/_fonts.scss +2 -2
- data/vendor/assets/stylesheets/text/_sizes.scss +2 -2
- data/vendor/assets/stylesheets/text/_style.scss +12 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 630b9907efb82ae55df133a0a9ac2cfebbf654d1
|
4
|
+
data.tar.gz: b8e66da1084703870a73f0ebc14ca7ee6e4f7693
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60fd80d03472f6ec19094445a66d6c7a328d5b68ae2edeca5314146ba07810af6a41227d20d11a8817281f2d3090fe5b8ea60c25b57f38bdbb947921719bf145
|
7
|
+
data.tar.gz: 0c978441389095ddb5044cd3458617f92fc2500ad0f6c97ce1ff4ecdeab65d933dd7ac96e7fb505addaa60178d3eacae4361069c9dc46a951bb42bd53c6fa8ec
|
data/lib/flake/scss/version.rb
CHANGED
@@ -21,3 +21,20 @@ $components: (
|
|
21
21
|
font-weights,
|
22
22
|
text-decoration
|
23
23
|
) !default;
|
24
|
+
|
25
|
+
$classnames: (
|
26
|
+
position: "",
|
27
|
+
display: "",
|
28
|
+
width: "w",
|
29
|
+
padding: "p",
|
30
|
+
margin: "m",
|
31
|
+
border: "b",
|
32
|
+
border-radius: "radius",
|
33
|
+
flex: "",
|
34
|
+
background: "bg",
|
35
|
+
text: "text",
|
36
|
+
font: "font",
|
37
|
+
transition: "transition",
|
38
|
+
shadow: "shadow",
|
39
|
+
z-index: "z"
|
40
|
+
) !default;
|
@@ -12,11 +12,11 @@ $transitions: (
|
|
12
12
|
$sep: "-"
|
13
13
|
}
|
14
14
|
|
15
|
-
|
15
|
+
.#{map-get($classnames, transition)}#{$sep}#{$transition} {
|
16
16
|
transition: #{$value};
|
17
17
|
}
|
18
18
|
|
19
|
-
$addme: add-to-apply-map(transition
|
19
|
+
$addme: add-to-apply-map(#{map-get($classnames, transition)}#{$sep}#{$transition}, "transition", "#{$value}");
|
20
20
|
}
|
21
21
|
|
22
22
|
@if $transitions-responsive {
|
@@ -28,7 +28,7 @@ $transitions: (
|
|
28
28
|
$sep: "-";
|
29
29
|
}
|
30
30
|
|
31
|
-
.#{$breakpoint}
|
31
|
+
.#{$breakpoint}\:#{map-get($classnames, transition)}#{$sep}#{$transition} {
|
32
32
|
transition: #{$value};
|
33
33
|
}
|
34
34
|
}
|
@@ -10,12 +10,12 @@ $bg-responsive: true !default;
|
|
10
10
|
$hover: ", .hover\\:bg-#{"" + $color}:hover";
|
11
11
|
}
|
12
12
|
|
13
|
-
|
13
|
+
.#{map-get($classnames, background)}-#{"" + $color}
|
14
14
|
#{$hover} {
|
15
15
|
background-color: #{$value};
|
16
16
|
}
|
17
17
|
|
18
|
-
$addme: add-to-apply-map(
|
18
|
+
$addme: add-to-apply-map(#{map-get($classnames, background)}-#{"" + $color}, "background-color", "#{$value}");
|
19
19
|
}
|
20
20
|
}
|
21
21
|
|
@@ -27,15 +27,15 @@ $bg-responsive: true !default;
|
|
27
27
|
$hover: "";
|
28
28
|
|
29
29
|
@if $bg-hover {
|
30
|
-
$hover: ", .hover
|
30
|
+
$hover: ", .hover\\:#{map-get($classnames, background)}-#{"" + $color}-#{"" + $shade}:hover";
|
31
31
|
}
|
32
32
|
|
33
|
-
|
33
|
+
.#{map-get($classnames, background)}-#{"" + $color}-#{"" + $shade}
|
34
34
|
#{$hover} {
|
35
35
|
background-color: $value;
|
36
36
|
}
|
37
37
|
|
38
|
-
$addme: add-to-apply-map(
|
38
|
+
$addme: add-to-apply-map(#{map-get($classnames, background)}-#{"" + $color}-#{"" + $shade}, "background-color", "#{$value}");
|
39
39
|
}
|
40
40
|
}
|
41
41
|
}
|
@@ -45,7 +45,7 @@ $bg-responsive: true !default;
|
|
45
45
|
@include breakpoint($breakpoint) {
|
46
46
|
@if $theme-colors != () {
|
47
47
|
@each $color, $value in $theme-colors {
|
48
|
-
.#{$breakpoint}
|
48
|
+
.#{$breakpoint}\:#{map-get($classnames, background)}-#{"" + $color} {
|
49
49
|
background-color: #{$value};
|
50
50
|
}
|
51
51
|
}
|
@@ -56,7 +56,7 @@ $bg-responsive: true !default;
|
|
56
56
|
$medium: map-get($colors-list, $color);
|
57
57
|
|
58
58
|
@each $shade, $value in $medium {
|
59
|
-
.#{$breakpoint}
|
59
|
+
.#{$breakpoint}\:#{map-get($classnames, background)}-#{"" + $color}-#{"" + $shade} {
|
60
60
|
background-color: $value;
|
61
61
|
}
|
62
62
|
}
|
@@ -7,15 +7,15 @@ $border-color-responsive: false !default;
|
|
7
7
|
$hover: "";
|
8
8
|
|
9
9
|
@if $border-color-hover {
|
10
|
-
$hover: ", .hover
|
10
|
+
$hover: ", .hover\\:#{map-get($classnames, border)}-#{"" + $color}:hover";
|
11
11
|
}
|
12
12
|
|
13
|
-
|
13
|
+
.#{map-get($classnames, border)}-#{"" + $color}
|
14
14
|
#{$hover} {
|
15
15
|
border-color: #{$value};
|
16
16
|
}
|
17
17
|
|
18
|
-
$addme: add-to-apply-map(
|
18
|
+
$addme: add-to-apply-map(#{map-get($classnames, border)}-#{"" + $color}, "border-color", "#{$value}");
|
19
19
|
}
|
20
20
|
}
|
21
21
|
|
@@ -27,15 +27,15 @@ $border-color-responsive: false !default;
|
|
27
27
|
$hover: "";
|
28
28
|
|
29
29
|
@if $border-color-hover {
|
30
|
-
$hover: ", .hover
|
30
|
+
$hover: ", .hover\\:#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}:hover";
|
31
31
|
}
|
32
32
|
|
33
|
-
|
33
|
+
.#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}
|
34
34
|
#{$hover} {
|
35
35
|
border-color: $value;
|
36
36
|
}
|
37
37
|
|
38
|
-
$addme: add-to-apply-map(
|
38
|
+
$addme: add-to-apply-map(#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade}, "border-color", "#{$value}");
|
39
39
|
}
|
40
40
|
}
|
41
41
|
}
|
@@ -46,7 +46,7 @@ $border-color-responsive: false !default;
|
|
46
46
|
@include breakpoint($breakpoint) {
|
47
47
|
@if $theme-colors != () {
|
48
48
|
@each $color, $value in $theme-colors {
|
49
|
-
.#{$breakpoint}
|
49
|
+
.#{$breakpoint}\:#{map-get($classnames, border)}-#{"" + $color} {
|
50
50
|
border-color: #{$value};
|
51
51
|
}
|
52
52
|
}
|
@@ -55,7 +55,7 @@ $border-color-responsive: false !default;
|
|
55
55
|
@if $full-colors {
|
56
56
|
@each $color in $colors {
|
57
57
|
@each $shade, $value in $medium {
|
58
|
-
.#{$breakpoint}
|
58
|
+
.#{$breakpoint}\:#{map-get($classnames, border)}-#{"" + $color}-#{"" + $shade} {
|
59
59
|
border-color: $value;
|
60
60
|
}
|
61
61
|
}
|
@@ -14,18 +14,18 @@ $radius: (
|
|
14
14
|
|
15
15
|
@if index($components, border-radius) {
|
16
16
|
@each $radi, $value in $radius {
|
17
|
-
|
17
|
+
.#{map-get($classnames, border-radius)}-#{$radi} {
|
18
18
|
border-radius: $value;
|
19
19
|
}
|
20
20
|
|
21
|
-
$addme: add-to-apply-map(radius-#{$radi}, "border-radius", "#{$value}");
|
21
|
+
$addme: add-to-apply-map(#{map-get($classnames, border-radius)}-#{$radi}, "border-radius", "#{$value}");
|
22
22
|
}
|
23
23
|
|
24
24
|
@if $radius-responsive {
|
25
25
|
@each $breakpoint, $breakpoint-value in $breakpoints {
|
26
26
|
@include breakpoint($breakpoint) {
|
27
27
|
@each $radi, $value in $radius {
|
28
|
-
.#{$breakpoint}
|
28
|
+
.#{$breakpoint}\:#{map-get($classnames, border-radius)}-#{$radi} {
|
29
29
|
border-radius: $value;
|
30
30
|
}
|
31
31
|
}
|
@@ -17,6 +17,10 @@ $display: (
|
|
17
17
|
$addme: add-to-apply-map(#{$property}, "display", "#{$property}");
|
18
18
|
}
|
19
19
|
|
20
|
+
.hidden {
|
21
|
+
display: none;
|
22
|
+
}
|
23
|
+
|
20
24
|
@if $display-responsive {
|
21
25
|
@each $breakpoint, $breakpoint-value in $breakpoints {
|
22
26
|
@include breakpoint($breakpoint) {
|
@@ -29,10 +33,6 @@ $display: (
|
|
29
33
|
}
|
30
34
|
}
|
31
35
|
|
32
|
-
.hidden {
|
33
|
-
display: none;
|
34
|
-
}
|
35
|
-
|
36
36
|
@if $display-responsive {
|
37
37
|
@each $breakpoint, $breakpoint-value in $breakpoints {
|
38
38
|
@include breakpoint($breakpoint) {
|
@@ -10,10 +10,10 @@ $z-index: (
|
|
10
10
|
|
11
11
|
@if index($components, z-index) {
|
12
12
|
@each $value in $z-index {
|
13
|
-
|
13
|
+
.#{map-get($classnames, z-index)}-#{$value} {
|
14
14
|
z-index: $value;
|
15
15
|
}
|
16
16
|
|
17
|
-
$addme: add-to-apply-map(z-#{$value}, "z-index", "#{$value}");
|
17
|
+
$addme: add-to-apply-map(#{map-get($classnames, z-index)}-#{$value}, "z-index", "#{$value}");
|
18
18
|
}
|
19
19
|
}
|
@@ -15,22 +15,22 @@ $shadows: (
|
|
15
15
|
$hover: "";
|
16
16
|
|
17
17
|
@if $shadows-hover {
|
18
|
-
$hover: ", .hover
|
18
|
+
$hover: ", .hover\\:#{map-get($classnames, shadow)}-#{$shadow}:hover";
|
19
19
|
}
|
20
20
|
|
21
|
-
|
21
|
+
.#{map-get($classnames, shadow)}-#{$shadow}
|
22
22
|
#{$hover} {
|
23
23
|
box-shadow: #{$value};
|
24
24
|
}
|
25
25
|
|
26
|
-
$addme: add-to-apply-map(shadow-#{$shadow}, "box-shadow", "#{$value}");
|
26
|
+
$addme: add-to-apply-map(#{map-get($classnames, shadow)}-#{$shadow}, "box-shadow", "#{$value}");
|
27
27
|
}
|
28
28
|
|
29
29
|
@if $shadows-responsive {
|
30
30
|
@each $breakpoint, $breakpoint-value in $breakpoints {
|
31
31
|
@include breakpoint($breakpoint) {
|
32
32
|
@each $shadow, $value in $shadows {
|
33
|
-
.#{$breakpoint}
|
33
|
+
.#{$breakpoint}\:#{map-get($classnames, shadow)}-#{$shadow} {
|
34
34
|
box-shadow: #{$value};
|
35
35
|
}
|
36
36
|
}
|
@@ -4,12 +4,12 @@
|
|
4
4
|
$bp: "#{$breakpoint}\\:";
|
5
5
|
}
|
6
6
|
|
7
|
-
.#{$bp}
|
7
|
+
.#{$bp}#{map-get($classnames, width)}-#{$division}\/#{$divide} {
|
8
8
|
width: (100% / $divide) * $division;
|
9
9
|
}
|
10
10
|
|
11
11
|
@if $breakpoint == 0 {
|
12
|
-
$addme: add-to-apply-map("#{$bp}
|
12
|
+
$addme: add-to-apply-map("#{$bp}#{map-get($classnames, width)}-#{$division}/#{$divide}", "width", "#{(100% / $divide) * $division}");
|
13
13
|
}
|
14
14
|
}
|
15
15
|
|
@@ -21,11 +21,11 @@ $grid-single: false !default;
|
|
21
21
|
// No Breakpoints
|
22
22
|
@if $grid-single {
|
23
23
|
@for $i from 1 through $grid-size {
|
24
|
-
|
24
|
+
.#{map-get($classnames, width)}-#{$i} {
|
25
25
|
width: (100% / $grid-size) * $i;
|
26
26
|
}
|
27
27
|
|
28
|
-
$addme: add-to-apply-map("
|
28
|
+
$addme: add-to-apply-map("#{map-get($classnames, width)}-#{$i}", "width", "#{(100% / $grid-size) * $i}");
|
29
29
|
}
|
30
30
|
} @else {
|
31
31
|
@for $i from 1 through $grid-size {
|
@@ -44,7 +44,7 @@ $grid-single: false !default;
|
|
44
44
|
@each $breakpoint, $breakpoint-value in $breakpoints {
|
45
45
|
@include breakpoint($breakpoint) {
|
46
46
|
@for $i from 1 through $grid-size {
|
47
|
-
.#{$breakpoint}
|
47
|
+
.#{$breakpoint}\:#{map-get($classnames, width)}-#{$i} {
|
48
48
|
width: (100% / $grid-size) * $i;
|
49
49
|
}
|
50
50
|
}
|
@@ -67,7 +67,7 @@ $grid-single: false !default;
|
|
67
67
|
}
|
68
68
|
|
69
69
|
@if map-get($breakpoints, mw) {
|
70
|
-
|
70
|
+
.#{map-get($classnames, width)}-max {
|
71
71
|
max-width: map-get($breakpoints, mw);
|
72
72
|
}
|
73
73
|
}
|
@@ -25,8 +25,8 @@ $spacing-locations: (
|
|
25
25
|
) !default;
|
26
26
|
|
27
27
|
$types: (
|
28
|
-
|
29
|
-
|
28
|
+
#{map-get($classnames, margin)}: margin,
|
29
|
+
#{map-get($classnames, padding)}: padding
|
30
30
|
);
|
31
31
|
|
32
32
|
@mixin paddingmargin($space, $value, $breakpoint: 0, $location: "", $location-value: "") {
|
@@ -8,18 +8,18 @@ $align: (
|
|
8
8
|
|
9
9
|
@if index($components, text-align) {
|
10
10
|
@each $value in $align {
|
11
|
-
|
11
|
+
.#{map-get($classnames, text)}-#{$value} {
|
12
12
|
text-align: $value;
|
13
13
|
}
|
14
14
|
|
15
|
-
$addme: add-to-apply-map(text-#{$value}, "text", "#{$value}");
|
15
|
+
$addme: add-to-apply-map(#{map-get($classnames, text)}-#{$value}, "text", "#{$value}");
|
16
16
|
}
|
17
17
|
|
18
18
|
@if $text-align-responsive {
|
19
19
|
@each $breakpoint, $breakpoint-value in $breakpoints {
|
20
20
|
@include breakpoint($breakpoint) {
|
21
21
|
@each $value in $align {
|
22
|
-
.#{$breakpoint}
|
22
|
+
.#{$breakpoint}\:#{map-get($classnames, text)}-#{$value} {
|
23
23
|
text-align: $value;
|
24
24
|
}
|
25
25
|
}
|
@@ -6,15 +6,15 @@ $text-colors-hover: true !default;
|
|
6
6
|
$hover: "";
|
7
7
|
|
8
8
|
@if $text-colors-hover {
|
9
|
-
$hover: ", .hover
|
9
|
+
$hover: ", .hover\\:#{map-get($classnames, text)}-#{"" + $color}:hover";
|
10
10
|
}
|
11
11
|
|
12
|
-
|
12
|
+
.#{map-get($classnames, text)}-#{"" + $color}
|
13
13
|
#{$hover} {
|
14
14
|
color: #{$value};
|
15
15
|
}
|
16
16
|
|
17
|
-
$addme: add-to-apply-map(text-#{"" + $color}, "color", "#{$value}");
|
17
|
+
$addme: add-to-apply-map(#{map-get($classnames, text)}-#{"" + $color}, "color", "#{$value}");
|
18
18
|
}
|
19
19
|
}
|
20
20
|
|
@@ -26,15 +26,15 @@ $text-colors-hover: true !default;
|
|
26
26
|
$hover: "";
|
27
27
|
|
28
28
|
@if $text-colors-hover {
|
29
|
-
$hover: ", .hover
|
29
|
+
$hover: ", .hover\\:#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}:hover";
|
30
30
|
}
|
31
31
|
|
32
|
-
|
32
|
+
.#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}
|
33
33
|
#{$hover} {
|
34
34
|
color: $value;
|
35
35
|
}
|
36
36
|
|
37
|
-
$addme: add-to-apply-map(text-#{"" + $color}-#{"" + $shade}, "color", "#{$value}");
|
37
|
+
$addme: add-to-apply-map(#{map-get($classnames, text)}-#{"" + $color}-#{"" + $shade}, "color", "#{$value}");
|
38
38
|
}
|
39
39
|
}
|
40
40
|
}
|
@@ -60,10 +60,10 @@ $font-families: (
|
|
60
60
|
|
61
61
|
@if index($components, fonts) {
|
62
62
|
@each $font-family, $value in $font-families {
|
63
|
-
|
63
|
+
.#{map-get($classnames, font)}-#{$font-family} {
|
64
64
|
font-family: $value;
|
65
65
|
}
|
66
66
|
|
67
|
-
$addme: add-to-apply-map(font-#{$font-family}, "font-family", "#{$value}");
|
67
|
+
$addme: add-to-apply-map(#{map-get($classnames, font)}-#{$font-family}, "font-family", "#{$value}");
|
68
68
|
}
|
69
69
|
}
|
@@ -6,10 +6,10 @@ $font-sizes: (
|
|
6
6
|
|
7
7
|
@if index($components, font-sizes) {
|
8
8
|
@each $size, $value in $font-sizes {
|
9
|
-
|
9
|
+
.#{map-get($classnames, text)}-#{$size} {
|
10
10
|
font-size: $value;
|
11
11
|
}
|
12
12
|
|
13
|
-
$addme: add-to-apply-map(text-#{$size}, "font-size", "#{$value}");
|
13
|
+
$addme: add-to-apply-map(#{map-get($classnames, text)}-#{$size}, "font-size", "#{$value}");
|
14
14
|
}
|
15
15
|
}
|
@@ -7,11 +7,11 @@ $decoration: (
|
|
7
7
|
|
8
8
|
@if index($components, text-decoration) {
|
9
9
|
@each $value in $decoration {
|
10
|
-
|
10
|
+
.#{map-get($classnames, text)}-#{$value} {
|
11
11
|
text-decoration: $value;
|
12
12
|
}
|
13
13
|
|
14
|
-
$addme: add-to-apply-map(text-#{$value}, "text-decoration", "#{$value}");
|
14
|
+
$addme: add-to-apply-map(#{map-get($classnames, text)}-#{$value}, "text-decoration", "#{$value}");
|
15
15
|
}
|
16
16
|
}
|
17
17
|
|
@@ -23,28 +23,28 @@ $font-style: (
|
|
23
23
|
|
24
24
|
@if index($components, font-style) {
|
25
25
|
@each $value in $font-style {
|
26
|
-
|
26
|
+
.#{map-get($classnames, font)}-#{$value} {
|
27
27
|
font-style: $value;
|
28
28
|
}
|
29
29
|
|
30
|
-
$addme: add-to-apply-map(font-#{$value}, "font-style", "#{$value}");
|
30
|
+
$addme: add-to-apply-map(#{map-get($classnames, font)}-#{$value}, "font-style", "#{$value}");
|
31
31
|
}
|
32
32
|
}
|
33
33
|
|
34
34
|
$font-weights: (
|
35
|
-
lighter,
|
36
|
-
normal,
|
37
|
-
bold,
|
38
|
-
bolder
|
35
|
+
lighter,
|
36
|
+
normal,
|
37
|
+
bold,
|
38
|
+
bolder
|
39
39
|
) !default;
|
40
40
|
|
41
41
|
@if index($components, font-weights) {
|
42
42
|
@each $value in $font-weights {
|
43
|
-
|
43
|
+
.#{map-get($classnames, font)}-#{$value} {
|
44
44
|
font-weight: $value;
|
45
45
|
}
|
46
46
|
|
47
|
-
$addme: add-to-apply-map(font-#{$value}, "font-weight", "#{$value}");
|
47
|
+
$addme: add-to-apply-map(#{map-get($classnames, font)}-#{$value}, "font-weight", "#{$value}");
|
48
48
|
}
|
49
49
|
}
|
50
50
|
|
@@ -57,10 +57,10 @@ $text-transform: (
|
|
57
57
|
@if index($components, text-transform) {
|
58
58
|
|
59
59
|
@each $value in $text-transform {
|
60
|
-
|
60
|
+
.#{map-get($classnames, text)}-#{$value} {
|
61
61
|
text-transform: $value;
|
62
62
|
}
|
63
63
|
|
64
|
-
$addme: add-to-apply-map(text-#{$value}, "text-transform", "#{$value}");
|
64
|
+
$addme: add-to-apply-map(#{map-get($classnames, text)}-#{$value}, "text-transform", "#{$value}");
|
65
65
|
}
|
66
66
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flake-scss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
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-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|