spectre_scss 0.4.1.0 → 0.4.2.0

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: 87d2edf751e971246b8e88701d501ea7d1b4d8b5
4
- data.tar.gz: fec018bb2f4585aef3866ee2af3b548483912660
3
+ metadata.gz: be417767231d81cefdf51d3f739bce28c9bf9506
4
+ data.tar.gz: 2a15d5bc33ed6aef5555f27fe384a60229cfa994
5
5
  SHA512:
6
- metadata.gz: 90ee9f9445992d993375ac78fea4658a46847fc5108be79a12e39b89da79fe328dd5ad8626f7992cc66437c547f30ee901dc527df8316beae60d80bafe4e429f
7
- data.tar.gz: 7455553921058a3e5a60016af72b97effb9b6649d68d79a8fb91a705e9c279b90cfffb516ee1452c2aad54ddabd4395ef6f3a83c24ef34fd224d6790f3d2bde4
6
+ metadata.gz: 610caeff6cfc7cd4a5a23dd993ac77609d6e1d7eb2a60a52463edf12f4122b434ae153416a486b0e961cda2c5ba49134bc27b8ccde0625932f1a09feae27813d
7
+ data.tar.gz: fce31040f37c82992886d3b0f50a0b71c0053fa370562db26cd03e872aed6f065ea04a91919c120714ecc7fd88722a65da33c1a30c1ace20262c636ab78f4ae3
@@ -1,3 +1,3 @@
1
1
  module SpectreScss
2
- VERSION = '0.4.1.0'
2
+ VERSION = '0.4.2.0'
3
3
  end
@@ -96,7 +96,7 @@
96
96
  &.btn-lg {
97
97
  font-size: $font-size-lg;
98
98
  height: $control-size-lg;
99
- padding: $control-padding-v-lg $control-padding-h * 1.5;
99
+ padding: $control-padding-v-lg $control-padding-h * 1.25;
100
100
  }
101
101
 
102
102
  // Button Block
@@ -12,8 +12,8 @@ code {
12
12
  position: relative;
13
13
 
14
14
  &::before {
15
- content: attr(data-lang);
16
15
  color: $gray-color;
16
+ content: attr(data-lang);
17
17
  font-size: $font-size-sm;
18
18
  position: absolute;
19
19
  right: $layout-spacing;
@@ -0,0 +1,82 @@
1
+ // Off canvas menus
2
+ .off-canvas {
3
+ display: flex;
4
+ height: 100%;
5
+ left: 0;
6
+ overflow: hidden;
7
+ position: fixed;
8
+ top: 0;
9
+ width: 100%;
10
+
11
+ .off-canvas-sidebar {
12
+ background: $bg-color;
13
+ height: 100%;
14
+ left: 0;
15
+ padding: $layout-spacing-lg;
16
+ position: absolute;
17
+ top: 0;
18
+ transform: translateX(-100%);
19
+ transition: transform .25s ease;
20
+ width: 10rem;
21
+ z-index: $zindex-3;
22
+ }
23
+
24
+ .off-canvas-content {
25
+ flex: 1 1 auto;
26
+ overflow-y: auto;
27
+ padding: $layout-spacing-lg $layout-spacing-lg $layout-spacing-lg 4rem;
28
+ }
29
+
30
+ .off-canvas-checkbox {
31
+ &:checked ~ .off-canvas-sidebar {
32
+ transform: translateX(0);
33
+ }
34
+
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
+ }
49
+ }
50
+ }
51
+
52
+ .off-canvas-toggle {
53
+ display: block;
54
+ left: $layout-spacing-lg;
55
+ padding-left: 0;
56
+ padding-right: 0;
57
+ position: absolute;
58
+ top: $layout-spacing-lg;
59
+ transition: none;
60
+ width: $control-size-lg;
61
+ z-index: $zindex-2;
62
+ }
63
+ }
64
+
65
+ // Responsive layout
66
+ @media (min-width: $size-lg) {
67
+ .off-canvas {
68
+ .off-canvas-sidebar {
69
+ flex: 0 0 auto;
70
+ position: static;
71
+ transform: translateX(0);
72
+ }
73
+
74
+ .off-canvas-content {
75
+ padding-left: $layout-spacing-lg;
76
+ }
77
+
78
+ .off-canvas-toggle {
79
+ display: none;
80
+ }
81
+ }
82
+ }
@@ -1,9 +1,9 @@
1
1
  // Parallax
2
- $parallax-deg: 3deg;
3
- $parallax-offset: 4.5px;
4
- $parallax-offset-z: 50px;
5
- $parallax-perspective: 1000px;
6
- $parallax-scale: .95;
2
+ $parallax-deg: 3deg !default;
3
+ $parallax-offset: 4.5px !default;
4
+ $parallax-offset-z: 50px !default;
5
+ $parallax-perspective: 1000px !default;
6
+ $parallax-scale: .95 !default;
7
7
 
8
8
  // Mixin: Parallax direction
9
9
  @mixin parallax-dir() {
@@ -1,5 +1,4 @@
1
1
  /*! Spectre.css Experimentals | MIT License | github.com/picturepan2/spectre */
2
-
3
2
  // Core variables and mixins
4
3
  @import "variables";
5
4
  @import "mixins";
@@ -10,6 +9,7 @@
10
9
  @import "comparison-sliders";
11
10
  @import "filters";
12
11
  @import "meters";
12
+ @import "off-canvas";
13
13
  @import "parallax";
14
14
  @import "progress";
15
15
  @import "sliders";
@@ -30,6 +30,12 @@
30
30
  margin-right: auto;
31
31
  }
32
32
 
33
+ .flex-centered {
34
+ align-items: center;
35
+ display: flex;
36
+ justify-content: center;
37
+ }
38
+
33
39
  // Spacing
34
40
  @include margin-variant(0, 0);
35
41
 
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.1.0
4
+ version: 0.4.2.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-09-15 00:00:00.000000000 Z
11
+ date: 2017-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -103,6 +103,7 @@ files:
103
103
  - vendor/assets/stylesheets/spectre/_navbar.scss
104
104
  - vendor/assets/stylesheets/spectre/_navs.scss
105
105
  - vendor/assets/stylesheets/spectre/_normalize.scss
106
+ - vendor/assets/stylesheets/spectre/_off-canvas.scss
106
107
  - vendor/assets/stylesheets/spectre/_pagination.scss
107
108
  - vendor/assets/stylesheets/spectre/_panels.scss
108
109
  - vendor/assets/stylesheets/spectre/_parallax.scss