flake-scss 0.1.4 → 0.1.5

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: 8518cff97725bdd862ff0fa7105df9d0ae716596
4
- data.tar.gz: f5c5ec5fe8265803ca5ce53fa411415f00dbeae3
3
+ metadata.gz: 7c0de169eb58119dfc0baa309da7c05a1bdbb636
4
+ data.tar.gz: 5f11d3b5d539aed4d46f85182459c622179a8ad9
5
5
  SHA512:
6
- metadata.gz: 426f38623b909cc19fe8404eb5c2366e0ce1a4b3de6e54f596d1e070e0a5ee3ee09c40c8244eecf445d2751f7d2e267d7fb23870024d17a29e8624ddec759134
7
- data.tar.gz: 121a66356358e392a7cb5690c18a9ac7a213367d2e70252a2dc6417d957f4738b834c7629c29faaf6139f55b5448adc17b4a0445980d7fd2b2128fac0fc3ab59
6
+ metadata.gz: c422a8410f983e5b75c8be1fa23d8436bdf4ad2bfee1ced9467c5f9f6f875ed719c6d0bd9d75b2f30dcb4cb5c4ebed06204ae7474f2a51c5362e3c9e306327e6
7
+ data.tar.gz: 19761bcd29d6c7b5e2d6bd6dc00107f0254a7317064cfa29d0ffed2c3ef8acd360de776a8a967972e3967f07ab0190cce1127e104dcde6b92bdee33125ec25c2
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Flake-scss
2
2
 
3
- [Work in Progress!] Documentation at [flakeframework.herokuapp.com](https://flakeframework.herokuapp.com).
3
+ [Work in Progress!] Documentation at [flakecss.com](https://flakecss.com).
4
4
 
5
5
  ## Installation
6
6
 
@@ -1,5 +1,5 @@
1
1
  module Flake
2
2
  module Scss
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -1,12 +1,18 @@
1
- $radius: (
2
- 1: 1px,
3
- 2: 2px,
4
- 3: 3px,
5
- 4: 4px,
6
- 5: 5px,
7
- round: 50%,
8
- rounded: 999px
9
- );
1
+ $radius-responsive: false !default;
2
+
3
+ $radius: () !default;
4
+ @if $radius == () {
5
+ $radius: (
6
+ 0: 0,
7
+ 1: 1px,
8
+ 2: 2px,
9
+ 3: 3px,
10
+ 4: 4px,
11
+ 5: 5px,
12
+ round: 50%,
13
+ rounded: 999px
14
+ );
15
+ }
10
16
 
11
17
  @each $radi, $value in $radius {
12
18
  .radius-#{$radi} {
@@ -15,3 +21,15 @@ $radius: (
15
21
 
16
22
  $addme: add-to-apply-map(radius-#{$radi}, "border-radius", "#{$value}");
17
23
  }
24
+
25
+ @if $radius-responsive {
26
+ @each $breakpoint, $breakpoint-value in $breakpoints {
27
+ @include breakpoint($breakpoint) {
28
+ @each $radi, $value in $radius {
29
+ .#{$breakpoint}\:radius-#{$radi} {
30
+ border-radius: $value;
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
@@ -1,13 +1,30 @@
1
- $shadows: (
2
- 1: "0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.14)",
3
- 2: "0 3px 6px rgba(0,0,0,0.1), 0 3px 6px rgba(0,0,0,0.13)",
4
- 3: "0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.13)",
5
- 4: "0 14px 28px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.12)",
6
- 5: "0 19px 38px rgba(0,0,0,0.20), 0 15px 12px rgba(0,0,0,0.12)"
7
- );
1
+ $shadows-hover: true !default;
2
+
3
+ $shadows: () !default;
4
+ @if $shadows == () {
5
+ $shadows: (
6
+ 1: "0 1px 3px #{rgba(map-get(map-get($colors-list, gray), 900), .05)},
7
+ 0 1px 2px #{rgba(map-get(map-get($colors-list, gray), 900), .11)}",
8
+ 2: "0 3px 6px #{rgba(map-get(map-get($colors-list, gray), 900), .07)},
9
+ 0 3px 6px #{rgba(map-get(map-get($colors-list, gray), 900), .10)}",
10
+ 3: "0 10px 20px #{rgba(map-get(map-get($colors-list, gray), 900), .15)},
11
+ 0 6px 6px #{rgba(map-get(map-get($colors-list, gray), 900), .10)}",
12
+ 4: "0 14px 28px #{rgba(map-get(map-get($colors-list, gray), 900), .12)},
13
+ 0 10px 10px #{rgba(map-get(map-get($colors-list, gray), 900), .09)}",
14
+ 5: "0 19px 38px #{rgba(map-get(map-get($colors-list, gray), 900), .17)},
15
+ 0 15px 12px #{rgba(map-get(map-get($colors-list, gray), 900), .09)}"
16
+ );
17
+ }
8
18
 
9
19
  @each $shadow, $value in $shadows {
10
- .shadow-#{$shadow} {
20
+ $hover: "";
21
+
22
+ @if $shadows-hover {
23
+ $hover: ", .hover\\:shadow-#{$shadow}:hover";
24
+ }
25
+
26
+ .shadow-#{$shadow}
27
+ #{$hover} {
11
28
  box-shadow: #{$value};
12
29
  }
13
30
 
@@ -5,7 +5,7 @@ $spacing: () !default;
5
5
  $spacing: (
6
6
  0: 0,
7
7
  1: .25rem,
8
- 2: .75rem,
8
+ 2: 1rem,
9
9
  3: 1.5rem,
10
10
  4: 3rem,
11
11
  5: 4rem,
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
4
+ version: 0.1.5
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 00:00:00.000000000 Z
11
+ date: 2017-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler