spectre_scss 0.4.4.0 → 0.4.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f908a7b9a14b1840c4179c6d086352f86d68cd14
4
- data.tar.gz: 7774687df7751ff4da257a0ffdae0ff44f13fd44
3
+ metadata.gz: d4d74fc17f69749bbd69f4f34239a3ac820678c7
4
+ data.tar.gz: 9cfd051c27b55fc86fd07620c05e17a84e1256d4
5
5
  SHA512:
6
- metadata.gz: 619ba1754228aa09c65604a663fc6ea593cb579ac312192343b448aae070d9cace989ab805abe8f9e76be2f4d32438985f469cef570cb2f3c626fb296a5564a4
7
- data.tar.gz: 64c705d48f892b3dc6cbf8bee8152ed68c9ca82db21cb1f20392dfc1062bf24b897c707fb5d98737791ab885becdcef786aa38ddb4942a46f30c6e51ffc65694
6
+ metadata.gz: b4cf506ac7f49649634528d958564386ee770f1785ce850dbbde3f8c971fbb5b1145f1724259e48c1704ba7542ad79814a4f8522351e9840523ad6671f7806ee
7
+ data.tar.gz: 57030dd33f89a024ded439b0064889f810258a4f1f594a827f234f4d6899d90cfeab3f3b27e730227e124342219c8ed75f6447781f312a1f6c0d682f8d6a0473
@@ -1,3 +1,3 @@
1
1
  module SpectreScss
2
- VERSION = '0.4.4.0'
2
+ VERSION = '0.4.5.0'
3
3
  end
@@ -1,74 +1,76 @@
1
1
  // Off canvas menus
2
+ $off-canvas-breakpoint: 960px !default;
3
+
2
4
  .off-canvas {
3
5
  display: flex;
6
+ flex-flow: nowrap;
4
7
  height: 100%;
5
- left: 0;
6
- overflow: hidden;
7
- position: fixed;
8
- top: 0;
8
+ position: relative;
9
9
  width: 100%;
10
10
 
11
11
  .off-canvas-sidebar {
12
12
  background: $bg-color;
13
- height: 100%;
13
+ bottom: 0;
14
14
  left: 0;
15
- padding: $layout-spacing-lg;
16
- position: absolute;
15
+ min-width: 10rem;
16
+ overflow-y: auto;
17
+ position: fixed;
17
18
  top: 0;
18
19
  transform: translateX(-100%);
19
20
  transition: transform .25s ease;
20
- width: 10rem;
21
21
  z-index: $zindex-3;
22
22
  }
23
23
 
24
24
  .off-canvas-content {
25
25
  flex: 1 1 auto;
26
- overflow-y: auto;
27
- padding: $layout-spacing-lg $layout-spacing-lg $layout-spacing-lg 4rem;
26
+ height: 100%;
27
+ padding: $layout-spacing $layout-spacing $layout-spacing 4rem;
28
+ }
29
+
30
+ .off-canvas-overlay {
31
+ background: rgba($dark-color, .1);
32
+ border-color: transparent;
33
+ border-radius: 0;
34
+ bottom: 0;
35
+ display: none;
36
+ height: 100%;
37
+ left: 0;
38
+ position: fixed;
39
+ right: 0;
40
+ top: 0;
41
+ width: 100%;
28
42
  }
29
43
 
30
- .off-canvas-checkbox {
31
- &:checked ~ .off-canvas-sidebar {
44
+ .off-canvas-sidebar {
45
+ &:target,
46
+ &.active {
32
47
  transform: translateX(0);
33
48
  }
34
49
 
35
- &:checked ~ .off-canvas-toggle {
36
- background: rgba($dark-color, .1);
37
- border-color: transparent;
38
- border-radius: 0;
39
- bottom: 0;
40
- height: 100%;
41
- left: 0;
42
- right: 0;
43
- top: 0;
44
- width: 100%;
45
-
46
- .icon {
47
- display: none;
48
- }
50
+ &:target ~ .off-canvas-overlay,
51
+ &.active ~ .off-canvas-overlay {
52
+ display: block;
53
+ z-index: $zindex-2;
49
54
  }
50
55
  }
51
56
 
52
57
  .off-canvas-toggle {
53
58
  display: block;
54
- left: $layout-spacing-lg;
55
- padding-left: 0;
56
- padding-right: 0;
59
+ left: $layout-spacing;
57
60
  position: absolute;
58
- top: $layout-spacing-lg;
61
+ top: $layout-spacing;
59
62
  transition: none;
60
- width: $control-size-lg;
61
- z-index: $zindex-2;
63
+ z-index: $zindex-0;
62
64
  }
63
65
  }
64
66
 
65
67
  // Responsive layout
66
- @media (min-width: $size-lg) {
68
+ @media (min-width: $off-canvas-breakpoint) {
67
69
  .off-canvas {
68
70
  .off-canvas-sidebar {
69
71
  flex: 0 0 auto;
70
- position: static;
71
- transform: translateX(0);
72
+ position: relative;
73
+ transform: none;
72
74
  }
73
75
 
74
76
  .off-canvas-content {
@@ -1,5 +1,5 @@
1
1
  // Core variables
2
- $version: "0.4.4";
2
+ $version: "0.4.5";
3
3
 
4
4
  // Core colors
5
5
  $primary-color: #5755d9 !default;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spectre_scss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4.0
4
+ version: 0.4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zoran
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-15 00:00:00.000000000 Z
11
+ date: 2017-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler