spectre_scss 0.5.6.0 → 0.5.7.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
  SHA256:
3
- metadata.gz: 33803d89a05a4b253d90572b0549c87548141afd65e7a8915286b5051cd13729
4
- data.tar.gz: 63429bf1267303c020038f9a24a941622e9e9c4960d74bf18d657e48f291873d
3
+ metadata.gz: 18ae02868114294ab82685941aa157d2a14ff4fa346669febb1eff517a9f82d9
4
+ data.tar.gz: 8590e8d6013b41c8b2c5c0d1076a0121c626e647ce0fe178f9b012f4b6925a21
5
5
  SHA512:
6
- metadata.gz: '0085ffdfc32b0e9d1b617c2af116d4b84d985b24d1ee8ef9ed0e0488ae9382147ae0e1dcea16b1ef752a280504653ecd4e8e073c37a3d0ae32fca59a5cb7751c'
7
- data.tar.gz: bdd91eabfd7c665c0963017590a76c16442f41fb3967c843ed3955f1dc91505b8bc8674b919ee21b2f7aca76026ff072cffd65b8f2f21e15a2d642b0c3061019
6
+ metadata.gz: f64132a4e3d5e8ac51b1281fd601eefc2252689962db5bee5ddb0fdb550ab3f591c9e66b4250999623dade76f804535b0ee97a9b2668388fe5dd41c99c089399
7
+ data.tar.gz: c57c8f7c297d47b8e6576668812567016be280615aedd9fe3d44d198c6228a71ae5bb6f6d2f70fa00fcfccf547af971c368922df9888e6a9c3b702e243a4aab6
@@ -1,3 +1,3 @@
1
1
  module SpectreScss
2
- VERSION = '0.5.6.0'
2
+ VERSION = '0.5.7.0'
3
3
  end
@@ -1,4 +1,17 @@
1
1
  // Carousels
2
+ // The number of carousel images
3
+ $carousel-number: 8;
4
+
5
+ %carousel-image-checked {
6
+ animation: carousel-slidein .75s ease-in-out 1;
7
+ opacity: 1;
8
+ z-index: $zindex-1;
9
+ }
10
+
11
+ %carousel-nav-checked {
12
+ color: $gray-color-light;
13
+ }
14
+
2
15
  .carousel {
3
16
  background: $bg-color;
4
17
  display: block;
@@ -57,19 +70,16 @@
57
70
  }
58
71
 
59
72
  .carousel-locator {
60
- &:nth-of-type(1):checked ~ .carousel-container .carousel-item:nth-of-type(1),
61
- &:nth-of-type(2):checked ~ .carousel-container .carousel-item:nth-of-type(2),
62
- &:nth-of-type(3):checked ~ .carousel-container .carousel-item:nth-of-type(3),
63
- &:nth-of-type(4):checked ~ .carousel-container .carousel-item:nth-of-type(4) {
64
- animation: carousel-slidein .75s ease-in-out 1;
65
- opacity: 1;
66
- z-index: $zindex-1;
73
+ @for $i from 1 through ($carousel-number) {
74
+ &:nth-of-type(#{$i}):checked ~ .carousel-container .carousel-item:nth-of-type(#{$i}) {
75
+ @extend %carousel-image-checked;
76
+ }
67
77
  }
68
- &:nth-of-type(1):checked ~ .carousel-nav .nav-item:nth-of-type(1),
69
- &:nth-of-type(2):checked ~ .carousel-nav .nav-item:nth-of-type(2),
70
- &:nth-of-type(3):checked ~ .carousel-nav .nav-item:nth-of-type(3),
71
- &:nth-of-type(4):checked ~ .carousel-nav .nav-item:nth-of-type(4) {
72
- color: $gray-color-light;
78
+
79
+ @for $i from 1 through ($carousel-number) {
80
+ &:nth-of-type(#{$i}):checked ~ .carousel-nav .nav-item:nth-of-type(#{$i}) {
81
+ @extend %carousel-nav-checked;
82
+ }
73
83
  }
74
84
  }
75
85
 
@@ -85,7 +85,11 @@ legend {
85
85
 
86
86
  // Form element: Textarea
87
87
  textarea.form-input {
88
- height: auto;
88
+ &,
89
+ &.input-lg,
90
+ &.input-sm {
91
+ height: auto;
92
+ }
89
93
  }
90
94
 
91
95
  // Form element: Input hint
@@ -1,5 +1,5 @@
1
1
  // Core variables
2
- $version: "0.5.6";
2
+ $version: "0.5.7";
3
3
 
4
4
  // Core features
5
5
  $rtl: false !default;
@@ -0,0 +1,33 @@
1
+ // 360 Degree Viewer
2
+ // The number of images
3
+ $image-height: 9rem;
4
+ $image-number: 36 !default;
5
+ $image-width: 24rem;
6
+
7
+ .viewer-360 {
8
+ align-items: center;
9
+ display: flex;
10
+ flex-direction: column;
11
+
12
+ @for $s from 1 through ($image-number) {
13
+ .viewer-slider[value='#{$s}'] + .viewer-image {
14
+ background-position-y: percentage((($s)-1) * 1/(($image-number)-1));
15
+ }
16
+ }
17
+
18
+ .viewer-slider {
19
+ cursor: ew-resize;
20
+ margin: 1rem;
21
+ order: 2;
22
+ width: 60%;
23
+ }
24
+
25
+ .viewer-image {
26
+ background-position-y: 0;
27
+ background-repeat: no-repeat;
28
+ background-size: 100%;
29
+ height: $image-height;
30
+ order: 1;
31
+ width: $image-width;
32
+ }
33
+ }
@@ -15,3 +15,4 @@
15
15
  @import "progress";
16
16
  @import "sliders";
17
17
  @import "timelines";
18
+ @import "viewer-360";
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spectre_scss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6.0
4
+ version: 0.5.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zoran
@@ -121,6 +121,7 @@ files:
121
121
  - vendor/assets/stylesheets/spectre/_typography.scss
122
122
  - vendor/assets/stylesheets/spectre/_utilities.scss
123
123
  - vendor/assets/stylesheets/spectre/_variables.scss
124
+ - vendor/assets/stylesheets/spectre/_viewer-360.scss
124
125
  - vendor/assets/stylesheets/spectre/icons/_icons-action.scss
125
126
  - vendor/assets/stylesheets/spectre/icons/_icons-core.scss
126
127
  - vendor/assets/stylesheets/spectre/icons/_icons-navigation.scss