flake-scss 0.1.1 → 0.1.2

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: 1cc735121e7e4fef499d4a341e9f5c32602c97fc
4
- data.tar.gz: 739b1556aff3b6ea555a3317c3bb17dda3785d14
3
+ metadata.gz: 9b266bde092e16d23042fc72c1799374c8294635
4
+ data.tar.gz: 4fe1287531409641885e9984a7203f69f910161b
5
5
  SHA512:
6
- metadata.gz: f9cc99f0e8eb7f45013ff73d18a552a9e0045bd60c83249528d11d090baf29b47c853a947918b0db16951f8ad65e061fea586cb63d445dd2dc84c5c742f39838
7
- data.tar.gz: 414027b8c74e98f07f2b9336d8fa2097436488cdbc30d036bb2b969a0c39f8ca528101dde52c0832b32b9141e77052eb8ed462250d04ed9bc90c1cfc16746c91
6
+ metadata.gz: 32964984cec20b4d7d2a4a34087603e5ab74c00bfda58cf74f800e7cd81f34269829102864f31af50f4dfd513eed5ed34b39179636f6409e13ecfdb9d01e80fd
7
+ data.tar.gz: 680df9337f60729712cd7bbce064c1e5b7d272a82cf2db4ac42085f95228a7e506a372caa84a675494886a1864e3dd4440b7907cc1200123f5d6057fe2dbb8a3
@@ -1,5 +1,5 @@
1
1
  module Flake
2
2
  module Scss
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -2,11 +2,18 @@
2
2
  "helpers/breakpoints";
3
3
 
4
4
  @import "general/general",
5
- "general/display";
5
+ "general/display",
6
+ "general/position";
6
7
 
7
8
  @import "background/colors";
8
9
 
9
- @import "text/colors";
10
+ @import "border/general",
11
+ "border/colors";
12
+
13
+ @import "text/colors",
14
+ "text/fonts",
15
+ "text/style",
16
+ "text/align";
10
17
 
11
18
  @import "sizing/spacing",
12
19
  "sizing/grid";
@@ -20,7 +20,7 @@ $bg-responsive: false !default;
20
20
 
21
21
  @if $bg-responsive {
22
22
  @each $breakpoint, $breakpoint-value in $breakpoints {
23
- @include mediaquery($breakpoint) {
23
+ @include breakpoint($breakpoint) {
24
24
  .#{$breakpoint}\:bg-#{$color}-#{$shade} {
25
25
  background-color: $value;
26
26
  }
@@ -0,0 +1,31 @@
1
+ @import "../helpers/colors-list";
2
+
3
+ $border-color-hover: true !default;
4
+ $border-color-responsive: false !default;
5
+
6
+ @each $color in $colors {
7
+ $medium: map-get($colors-list, $color);
8
+
9
+ @each $shade, $value in $medium {
10
+ $hover: "";
11
+
12
+ @if $border-color-hover {
13
+ $hover: ", .hover\\:b-#{$color}-#{$shade}:hover";
14
+ }
15
+
16
+ .b-#{$color}-#{$shade}
17
+ #{$hover} {
18
+ border-color: $value;
19
+ }
20
+
21
+ @if $border-color-responsive {
22
+ @each $breakpoint, $breakpoint-value in $breakpoints {
23
+ @include breakpoint($breakpoint) {
24
+ .#{$breakpoint}\:bg-#{$color}-#{$shade} {
25
+ border-color: $value;
26
+ }
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,50 @@
1
+ $border-hover: true !default;
2
+ $border-responsive: true !default;
3
+
4
+ $borders: () !default;
5
+ @if $borders == () {
6
+ $borders: (
7
+ "": "",
8
+ t: "top",
9
+ r: "right",
10
+ b: "bottom",
11
+ l: "left"
12
+ );
13
+ }
14
+
15
+ $standard-border: 1px solid black;
16
+
17
+ @mixin makeBorder($space, $value, $breakpoint: 0) {
18
+ $bp: "";
19
+ $sep: "";
20
+
21
+ @if $breakpoint != 0 {
22
+ $bp: "#{$breakpoint}\\:";
23
+ }
24
+
25
+ @if $value != "" {
26
+ $sep: "-";
27
+ }
28
+
29
+ .#{$bp}b#{$space} {
30
+ border#{$sep}#{$value}: $standard-border;
31
+ }
32
+
33
+ .#{$bp}b#{$space}-0 {
34
+ border#{$sep}#{$value}: 0;
35
+ }
36
+ }
37
+
38
+ @each $border, $value in $borders {
39
+ @include makeBorder($border, $value);
40
+ }
41
+
42
+ @if $border-responsive {
43
+ @each $breakpoint, $breakpoint-value in $breakpoints {
44
+ @include breakpoint($breakpoint) {
45
+ @each $border, $value in $borders {
46
+ @include makeBorder($border, $value, $breakpoint);
47
+ }
48
+ }
49
+ }
50
+ }
@@ -1,4 +1,3 @@
1
- $display-hover: false !default;
2
1
  $display-responsive: true !default;
3
2
 
4
3
  $display: () !default;
@@ -15,18 +14,15 @@ $display: () !default;
15
14
  @each $property in $display {
16
15
  $hover: "";
17
16
 
18
- @if $display-hover {
19
- $hover: ", .hover\\:#{$property}:hover";
20
- }
21
-
22
- .#{$property}
23
- #{$hover} {
17
+ .#{$property} {
24
18
  display: $property;
25
19
  }
20
+ }
26
21
 
27
- @if $display-responsive {
28
- @each $breakpoint, $breakpoint-value in $breakpoints {
29
- @include mediaquery($breakpoint) {
22
+ @if $display-responsive {
23
+ @each $breakpoint, $breakpoint-value in $breakpoints {
24
+ @include breakpoint($breakpoint) {
25
+ @each $property in $display {
30
26
  .#{$breakpoint}\:#{$property} {
31
27
  display: $property;
32
28
  }
@@ -34,3 +30,17 @@ $display: () !default;
34
30
  }
35
31
  }
36
32
  }
33
+
34
+ .hidden {
35
+ display: none;
36
+ }
37
+
38
+ @if $display-responsive {
39
+ @each $breakpoint, $breakpoint-value in $breakpoints {
40
+ @include breakpoint($breakpoint) {
41
+ .#{$breakpoint}\:hidden {
42
+ display: none;
43
+ }
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,60 @@
1
+ $positions-responsive: true !default;
2
+
3
+ $positions: () !default;
4
+ @if $positions == () {
5
+ $positions: (
6
+ fixed,
7
+ relative,
8
+ absolute,
9
+ static,
10
+ sticky
11
+ );
12
+ }
13
+
14
+ @each $position in $positions {
15
+ .#{$position} {
16
+ position: $position;
17
+ }
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;
26
+ }
27
+ }
28
+ }
29
+ }
30
+ }
31
+
32
+ $pins-responsive: true !default;
33
+
34
+ $pins: () !default;
35
+ @if $pins == () {
36
+ $pins: (
37
+ t: "top",
38
+ r: "right",
39
+ b: "bottom",
40
+ l: "left"
41
+ );
42
+ }
43
+
44
+ @each $pin, $value in $pins {
45
+ .pin-#{$pin} {
46
+ #{$value}: 0;
47
+ }
48
+ }
49
+
50
+ @if $pins-responsive {
51
+ @each $breakpoint, $breakpoint-value in $breakpoints {
52
+ @include breakpoint($breakpoint) {
53
+ @each $pin, $value in $pins {
54
+ .#{$breakpoint}\:pin-#{$pin} {
55
+ #{$value}: 0;
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
@@ -8,7 +8,7 @@ $breakpoints: () !default;
8
8
  );
9
9
  }
10
10
 
11
- @mixin mediaquery($size) {
11
+ @mixin breakpoint($size) {
12
12
  $query: map-get($breakpoints, $size);
13
13
 
14
14
  @media (min-width: #{$query}) {
@@ -72,10 +72,25 @@ $flex-list: (
72
72
  .#{$classstart}-#{$value-name} {
73
73
  #{$property}: #{$value-value};
74
74
  }
75
+ }
76
+ }
77
+ }
78
+ }
79
+
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: "";
86
+
87
+ @each $name, $value in $medium {
88
+ @if $name == "class" {
89
+ $classstart: #{$value};
90
+ }
75
91
 
76
- @if $flex-responsive {
77
- @each $breakpoint, $breakpoint-value in $breakpoints {
78
- @include mediaquery($breakpoint) {
92
+ @if $name == "values" {
93
+ @each $value-name, $value-value in $value {
79
94
  .#{$breakpoint}\:#{$classstart}-#{$value-name} {
80
95
  #{$property}: #{$value-value};
81
96
  }
@@ -13,37 +13,46 @@ $grid-single: false !default;
13
13
  }
14
14
  }
15
15
 
16
+
17
+ // No Breakpoints
16
18
  @if $grid-single {
17
19
  @for $i from 1 through $grid-size {
18
20
  .w-#{$i} {
19
21
  width: (100% / $grid-size) * $i;
20
22
  }
21
-
22
- @each $breakpoint, $breakpoint-value in $breakpoints {
23
- @include mediaquery($breakpoint) {
24
- .#{$breakpoint}\:w-#{$i} {
25
- width: (100% / $grid-size) * $i;
26
- }
27
- }
28
- }
29
23
  }
30
24
  } @else {
31
25
  @for $i from 1 through $grid-size {
32
26
  @if $grid-full {
33
27
  @for $j from 1 through $i {
34
28
  @include widthify($i, $j);
35
-
36
- @each $breakpoint, $breakpoint-value in $breakpoints {
37
- @include mediaquery($breakpoint) {
38
- @include widthify($i, $j, $breakpoint);
39
- }
40
- }
41
29
  }
42
30
  } @else {
43
31
  @include widthify($i, 1);
32
+ }
33
+ }
34
+ }
44
35
 
45
- @each $breakpoint, $breakpoint-value in $breakpoints {
46
- @include mediaquery($breakpoint) {
36
+ // Breakpoints
37
+ @if $grid-single {
38
+ @each $breakpoint, $breakpoint-value in $breakpoints {
39
+ @include breakpoint($breakpoint) {
40
+ @for $i from 1 through $grid-size {
41
+ .#{$breakpoint}\:w-#{$i} {
42
+ width: (100% / $grid-size) * $i;
43
+ }
44
+ }
45
+ }
46
+ }
47
+ } @else {
48
+ @each $breakpoint, $breakpoint-value in $breakpoints {
49
+ @include breakpoint($breakpoint) {
50
+ @for $i from 1 through $grid-size {
51
+ @if $grid-full {
52
+ @for $j from 1 through $i {
53
+ @include widthify($i, $j, $breakpoint);
54
+ }
55
+ } @else {
47
56
  @include widthify($i, 1, $breakpoint);
48
57
  }
49
58
  }
@@ -14,6 +14,7 @@ $spacing: () !default;
14
14
  }
15
15
 
16
16
  $spacing-locations: (
17
+ auto: "auto",
17
18
  t: "top",
18
19
  r: "right",
19
20
  b: "bottom",
@@ -24,7 +25,7 @@ $spacing-locations: (
24
25
  ), x: (
25
26
  "left",
26
27
  "right"
27
- )
28
+ ),
28
29
  );
29
30
 
30
31
  $types: (
@@ -41,6 +42,7 @@ $types: (
41
42
  @if $breakpoint != 0 {
42
43
  $bp: "#{$breakpoint}\\:";
43
44
  $s: "-#{$space}";
45
+ $important: !important;
44
46
  } @else {
45
47
  $s: "-#{$space}";
46
48
  }
@@ -68,10 +70,12 @@ $types: (
68
70
  @each $location, $location-value in $spacing-locations {
69
71
  @include paddingmargin($space, $value, 0, $location, $location-value);
70
72
  }
73
+ }
71
74
 
72
- @if $spacing-responsive {
75
+ @if $spacing-responsive {
76
+ @each $space, $value in $spacing {
73
77
  @each $breakpoint, $breakpoint-value in $breakpoints {
74
- @include mediaquery($breakpoint) {
78
+ @include breakpoint($breakpoint) {
75
79
  @include paddingmargin($space, $value, $breakpoint);
76
80
 
77
81
  @each $location, $location-value in $spacing-locations {
@@ -0,0 +1,25 @@
1
+ $text-align-responsive: true !default;
2
+
3
+ $align: (
4
+ left,
5
+ center,
6
+ right
7
+ );
8
+
9
+ @each $value in $align {
10
+ .text-#{$value} {
11
+ text-align: $value;
12
+ }
13
+ }
14
+
15
+ @if $text-align-responsive {
16
+ @each $breakpoint, $breakpoint-value in $breakpoints {
17
+ @include breakpoint($breakpoint) {
18
+ @each $value in $align {
19
+ .#{$breakpoint}\:text-#{$value} {
20
+ text-align: $value;
21
+ }
22
+ }
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,68 @@
1
+ $sans-serif: Frutiger,
2
+ "Frutiger Linotype",
3
+ Univers,
4
+ Calibri,
5
+ "Gill Sans",
6
+ "Gill Sans MT",
7
+ "Myriad Pro",
8
+ Myriad,
9
+ "DejaVu Sans Condensed",
10
+ "Liberation Sans",
11
+ "Nimbus Sans L",
12
+ Tahoma,
13
+ Geneva,
14
+ "Helvetica Neue",
15
+ Helvetica,
16
+ Arial,
17
+ sans-serif;
18
+
19
+ $serif: "Palatino Linotype",
20
+ Palatino,
21
+ Palladio,
22
+ "URW Palladio L",
23
+ "Book Antiqua",
24
+ Baskerville,
25
+ "Bookman Old Style",
26
+ "Bitstream Charter",
27
+ "Nimbus Roman No9 L",
28
+ Garamond,
29
+ "Apple Garamond",
30
+ "ITC Garamond Narrow",
31
+ "New Century Schoolbook",
32
+ "Century Schoolbook",
33
+ "Century Schoolbook L",
34
+ Georgia,
35
+ serif;
36
+
37
+ $monospace: "Palatino Linotype",
38
+ Palatino,
39
+ Palladio,
40
+ "URW Palladio L",
41
+ "Book Antiqua",
42
+ Baskerville,
43
+ "Bookman Old Style",
44
+ "Bitstream Charter",
45
+ "Nimbus Roman No9 L",
46
+ Garamond,
47
+ "Apple Garamond",
48
+ "ITC Garamond Narrow",
49
+ "New Century Schoolbook",
50
+ "Century Schoolbook",
51
+ "Century Schoolbook L",
52
+ Georgia,
53
+ serif;
54
+
55
+ $font-families: () !default;
56
+ @if $font-families == () {
57
+ $font-families: (
58
+ serif: $serif,
59
+ sans-serif: $sans-serif,
60
+ monospace: $monospace
61
+ );
62
+ }
63
+
64
+ @each $font-family, $value in $font-families {
65
+ .font-#{$font-family} {
66
+ font-family: $value;
67
+ }
68
+ }
@@ -0,0 +1,49 @@
1
+ $decoration: (
2
+ overline,
3
+ line-through,
4
+ underline,
5
+ none
6
+ );
7
+
8
+ @each $value in $decoration {
9
+ .text-#{$value} {
10
+ text-decoration: $value;
11
+ }
12
+ }
13
+
14
+ $style: (
15
+ normal,
16
+ italic,
17
+ oblique
18
+ );
19
+
20
+ @each $value in $style {
21
+ .text-#{$value} {
22
+ font-style: $value;
23
+ }
24
+ }
25
+
26
+ $weight: (
27
+ lighter,
28
+ normal,
29
+ bold,
30
+ bolder
31
+ );
32
+
33
+ @each $value in $weight {
34
+ .text-#{$value} {
35
+ font-weight: $value;
36
+ }
37
+ }
38
+
39
+ $transform: (
40
+ lowercase,
41
+ uppercase,
42
+ capitalize
43
+ );
44
+
45
+ @each $value in $transform {
46
+ .text-#{$value} {
47
+ text-transform: $value;
48
+ }
49
+ }
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.1
4
+ version: 0.1.2
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-05 00:00:00.000000000 Z
11
+ date: 2017-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -59,15 +59,21 @@ files:
59
59
  - vendor/assets/stylesheets/_flake.scss
60
60
  - vendor/assets/stylesheets/_variables.scss
61
61
  - vendor/assets/stylesheets/background/_colors.scss
62
+ - vendor/assets/stylesheets/border/_colors.scss
63
+ - vendor/assets/stylesheets/border/_general.scss
62
64
  - vendor/assets/stylesheets/general/_display.scss
63
65
  - vendor/assets/stylesheets/general/_general.scss
66
+ - vendor/assets/stylesheets/general/_position.scss
64
67
  - vendor/assets/stylesheets/helpers/_breakpoints.scss
65
68
  - vendor/assets/stylesheets/helpers/_colors-list.scss
66
69
  - vendor/assets/stylesheets/helpers/_functions.scss
67
70
  - vendor/assets/stylesheets/layout/_flex.scss
68
71
  - vendor/assets/stylesheets/sizing/_grid.scss
69
72
  - vendor/assets/stylesheets/sizing/_spacing.scss
73
+ - vendor/assets/stylesheets/text/_align.scss
70
74
  - vendor/assets/stylesheets/text/_colors.scss
75
+ - vendor/assets/stylesheets/text/_fonts.scss
76
+ - vendor/assets/stylesheets/text/_style.scss
71
77
  homepage: https://github.com/Mitcheljager/flake-scss
72
78
  licenses:
73
79
  - MIT