spectre_scss 0.5.4.0 → 0.5.9.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 +4 -4
- data/LICENSE.txt +1 -1
- data/bin/console +2 -0
- data/lib/spectre_scss.rb +2 -0
- data/lib/spectre_scss/engine.rb +2 -0
- data/lib/spectre_scss/version.rb +3 -1
- data/spectre_scss.gemspec +3 -1
- data/vendor/assets/stylesheets/spectre/_accordions.scss +4 -4
- data/vendor/assets/stylesheets/spectre/_asian.scss +11 -6
- data/vendor/assets/stylesheets/spectre/_buttons.scss +6 -4
- data/vendor/assets/stylesheets/spectre/_calendars.scss +1 -1
- data/vendor/assets/stylesheets/spectre/_carousels.scss +23 -13
- data/vendor/assets/stylesheets/spectre/_chips.scss +2 -1
- data/vendor/assets/stylesheets/spectre/_comparison-sliders.scss +1 -0
- data/vendor/assets/stylesheets/spectre/_forms.scss +12 -5
- data/vendor/assets/stylesheets/spectre/_hero.scss +22 -0
- data/vendor/assets/stylesheets/spectre/_layout.scss +29 -7
- data/vendor/assets/stylesheets/spectre/_menus.scss +10 -6
- data/vendor/assets/stylesheets/spectre/_mixins.scss +1 -2
- data/vendor/assets/stylesheets/spectre/_navbar.scss +0 -1
- data/vendor/assets/stylesheets/spectre/_off-canvas.scss +1 -1
- data/vendor/assets/stylesheets/spectre/_parallax.scss +1 -1
- data/vendor/assets/stylesheets/spectre/_popovers.scss +1 -1
- data/vendor/assets/stylesheets/spectre/_sliders.scss +3 -3
- data/vendor/assets/stylesheets/spectre/_steps.scss +3 -2
- data/vendor/assets/stylesheets/spectre/_tables.scss +1 -1
- data/vendor/assets/stylesheets/spectre/_toasts.scss +7 -1
- data/vendor/assets/stylesheets/spectre/_tooltips.scss +1 -1
- data/vendor/assets/stylesheets/spectre/_typography.scss +2 -1
- data/vendor/assets/stylesheets/spectre/_variables.scss +2 -1
- data/vendor/assets/stylesheets/spectre/_viewer-360.scss +34 -0
- data/vendor/assets/stylesheets/spectre/icons/_icons-action.scss +22 -23
- data/vendor/assets/stylesheets/spectre/icons/_icons-core.scss +1 -0
- data/vendor/assets/stylesheets/spectre/icons/_icons-navigation.scss +0 -6
- data/vendor/assets/stylesheets/spectre/icons/_icons-object.scss +3 -18
- data/vendor/assets/stylesheets/spectre/mixins/_label.scss +1 -1
- data/vendor/assets/stylesheets/spectre/spectre-exp.scss +1 -0
- data/vendor/assets/stylesheets/spectre/spectre.scss +1 -0
- data/vendor/assets/stylesheets/spectre/utilities/_colors.scss +1 -1
- data/vendor/assets/stylesheets/spectre/utilities/_cursors.scss +1 -1
- data/vendor/assets/stylesheets/spectre/utilities/_divider.scss +1 -1
- data/vendor/assets/stylesheets/spectre/utilities/_loading.scss +3 -0
- data/vendor/assets/stylesheets/spectre/utilities/_text.scss +12 -0
- metadata +7 -7
- data/vendor/assets/stylesheets/spectre/mixins/_transition.scss +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba27d5263e127dcc86b766b30d022b7d0c0e193982d8f845ec5b09b197b629a6
|
4
|
+
data.tar.gz: 568bc3512e63d8d0805d05197c4982b075103d1f229ba8d79e9c35ee979d1e66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz: '
|
6
|
+
metadata.gz: c8d9d2a471543158abd130fd4261b1d1a90aaf2e7d950acf039fad057d964ece8dd4d3f5826974ce2411f08f7fadb935f0c1bfd8d1fb0efb3a93fb871050ff4a
|
7
|
+
data.tar.gz: '001969d606228eba9e18b7abb8881045009bbe4f736d135ecaf7bfa64880c245c7ac94d951a2ac686b7ee744b495a05e09c06b6fceb9f5e7df3693080b2da14b'
|
data/LICENSE.txt
CHANGED
data/bin/console
CHANGED
data/lib/spectre_scss.rb
CHANGED
data/lib/spectre_scss/engine.rb
CHANGED
data/lib/spectre_scss/version.rb
CHANGED
data/spectre_scss.gemspec
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
2
4
|
lib = File.expand_path('../lib', __FILE__)
|
3
5
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
6
|
require 'spectre_scss/version'
|
@@ -19,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
19
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
22
|
spec.require_paths = ['lib']
|
21
23
|
|
22
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
24
|
+
spec.add_development_dependency 'bundler', '~> 2.1.0'
|
23
25
|
spec.add_development_dependency 'rake', '~> 10.0'
|
24
26
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
25
27
|
end
|
@@ -2,8 +2,8 @@
|
|
2
2
|
.accordion {
|
3
3
|
input:checked ~,
|
4
4
|
&[open] {
|
5
|
-
& .accordion-header {
|
6
|
-
.icon {
|
5
|
+
& .accordion-header > {
|
6
|
+
.icon:first-child {
|
7
7
|
transform: rotate(90deg);
|
8
8
|
}
|
9
9
|
}
|
@@ -18,7 +18,7 @@
|
|
18
18
|
padding: $unit-1 $unit-2;
|
19
19
|
|
20
20
|
.icon {
|
21
|
-
transition:
|
21
|
+
transition: transform .25s;
|
22
22
|
}
|
23
23
|
}
|
24
24
|
|
@@ -26,7 +26,7 @@
|
|
26
26
|
margin-bottom: $layout-spacing;
|
27
27
|
max-height: 0;
|
28
28
|
overflow: hidden;
|
29
|
-
transition: max-height .
|
29
|
+
transition: max-height .25s;
|
30
30
|
}
|
31
31
|
}
|
32
32
|
|
@@ -1,24 +1,29 @@
|
|
1
1
|
// Optimized for East Asian CJK
|
2
|
-
:lang(zh),
|
3
|
-
:lang(zh-Hans)
|
2
|
+
html:lang(zh),
|
3
|
+
html:lang(zh-Hans),
|
4
|
+
.lang-zh,
|
5
|
+
.lang-zh-hans {
|
4
6
|
font-family: $cjk-zh-hans-font-family;
|
5
7
|
}
|
6
8
|
|
7
|
-
:lang(zh-Hant)
|
9
|
+
html:lang(zh-Hant),
|
10
|
+
.lang-zh-hant {
|
8
11
|
font-family: $cjk-zh-hant-font-family;
|
9
12
|
}
|
10
13
|
|
11
|
-
:lang(ja)
|
14
|
+
html:lang(ja),
|
15
|
+
.lang-ja {
|
12
16
|
font-family: $cjk-jp-font-family;
|
13
17
|
}
|
14
18
|
|
15
|
-
:lang(ko)
|
19
|
+
html:lang(ko),
|
20
|
+
.lang-ko {
|
16
21
|
font-family: $cjk-ko-font-family;
|
17
22
|
}
|
18
23
|
|
19
24
|
:lang(zh),
|
20
25
|
:lang(ja),
|
21
|
-
.cjk {
|
26
|
+
.lang-cjk {
|
22
27
|
ins,
|
23
28
|
u {
|
24
29
|
border-bottom: $border-width solid;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
// Buttons
|
2
2
|
.btn {
|
3
|
-
@include control-transition();
|
4
3
|
appearance: none;
|
5
4
|
background: $bg-color-light;
|
6
5
|
border: $border-width solid $primary-color;
|
@@ -15,6 +14,7 @@
|
|
15
14
|
padding: $control-padding-y $control-padding-x;
|
16
15
|
text-align: center;
|
17
16
|
text-decoration: none;
|
17
|
+
transition: background .2s, border .2s, box-shadow .2s, color .2s;
|
18
18
|
user-select: none;
|
19
19
|
vertical-align: middle;
|
20
20
|
white-space: nowrap;
|
@@ -134,16 +134,18 @@
|
|
134
134
|
background: transparent;
|
135
135
|
border: 0;
|
136
136
|
color: currentColor;
|
137
|
-
height: $unit-
|
137
|
+
height: $unit-5;
|
138
138
|
line-height: $unit-4;
|
139
139
|
margin-left: $unit-1;
|
140
140
|
margin-right: -2px;
|
141
141
|
opacity: 1;
|
142
|
-
padding:
|
142
|
+
padding: $unit-h;
|
143
143
|
text-decoration: none;
|
144
|
-
width: $unit-
|
144
|
+
width: $unit-5;
|
145
145
|
|
146
|
+
&:focus,
|
146
147
|
&:hover {
|
148
|
+
background: rgba($bg-color, .5);
|
147
149
|
opacity: .95;
|
148
150
|
}
|
149
151
|
|
@@ -45,7 +45,6 @@
|
|
45
45
|
padding: $unit-1;
|
46
46
|
|
47
47
|
.date-item {
|
48
|
-
@include control-transition();
|
49
48
|
appearance: none;
|
50
49
|
background: transparent;
|
51
50
|
border: $border-width solid transparent;
|
@@ -60,6 +59,7 @@
|
|
60
59
|
position: relative;
|
61
60
|
text-align: center;
|
62
61
|
text-decoration: none;
|
62
|
+
transition: background .2s, border .2s, box-shadow .2s, color .2s;
|
63
63
|
vertical-align: middle;
|
64
64
|
white-space: nowrap;
|
65
65
|
width: $unit-7;
|
@@ -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;
|
@@ -44,7 +57,7 @@
|
|
44
57
|
opacity: 0;
|
45
58
|
position: absolute;
|
46
59
|
top: 50%;
|
47
|
-
transition: all .4s
|
60
|
+
transition: all .4s;
|
48
61
|
transform: translateY(-50%);
|
49
62
|
z-index: $zindex-1;
|
50
63
|
}
|
@@ -57,19 +70,16 @@
|
|
57
70
|
}
|
58
71
|
|
59
72
|
.carousel-locator {
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
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
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
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
|
|
@@ -9,7 +9,7 @@
|
|
9
9
|
line-height: $unit-4;
|
10
10
|
margin: $unit-h;
|
11
11
|
max-width: $control-width-sm;
|
12
|
-
overflow
|
12
|
+
overflow: hidden;
|
13
13
|
padding: $unit-1 $unit-2;
|
14
14
|
text-decoration: none;
|
15
15
|
text-overflow: ellipsis;
|
@@ -27,6 +27,7 @@
|
|
27
27
|
}
|
28
28
|
|
29
29
|
.btn-clear {
|
30
|
+
border-radius: 50%;
|
30
31
|
transform: scale(.75);
|
31
32
|
}
|
32
33
|
}
|
@@ -34,7 +34,6 @@ legend {
|
|
34
34
|
|
35
35
|
// Form element: Input
|
36
36
|
.form-input {
|
37
|
-
@include control-transition();
|
38
37
|
appearance: none;
|
39
38
|
background: $bg-color-light;
|
40
39
|
background-image: none;
|
@@ -49,6 +48,7 @@ legend {
|
|
49
48
|
outline: none;
|
50
49
|
padding: $control-padding-y $control-padding-x;
|
51
50
|
position: relative;
|
51
|
+
transition: background .2s, border .2s, box-shadow .2s, color .2s;
|
52
52
|
width: 100%;
|
53
53
|
&:focus {
|
54
54
|
@include control-shadow();
|
@@ -85,7 +85,11 @@ legend {
|
|
85
85
|
|
86
86
|
// Form element: Textarea
|
87
87
|
textarea.form-input {
|
88
|
-
|
88
|
+
&,
|
89
|
+
&.input-lg,
|
90
|
+
&.input-sm {
|
91
|
+
height: auto;
|
92
|
+
}
|
89
93
|
}
|
90
94
|
|
91
95
|
// Form element: Input hint
|
@@ -199,7 +203,7 @@ textarea.form-input {
|
|
199
203
|
display: block;
|
200
204
|
line-height: $line-height;
|
201
205
|
margin: ($control-size - $control-size-sm) / 2 0;
|
202
|
-
min-height:
|
206
|
+
min-height: $control-size-sm;
|
203
207
|
padding: (($control-size-sm - $line-height) / 2) $control-padding-x (($control-size-sm - $line-height) / 2) ($control-icon-size + $control-padding-x);
|
204
208
|
position: relative;
|
205
209
|
|
@@ -221,11 +225,11 @@ textarea.form-input {
|
|
221
225
|
}
|
222
226
|
|
223
227
|
.form-icon {
|
224
|
-
@include control-transition();
|
225
228
|
border: $border-width solid $border-color-dark;
|
226
229
|
cursor: pointer;
|
227
230
|
display: inline-block;
|
228
231
|
position: absolute;
|
232
|
+
transition: background .2s, border .2s, box-shadow .2s, color .2s;
|
229
233
|
}
|
230
234
|
|
231
235
|
// Input checkbox, radio and switch sizes
|
@@ -331,7 +335,6 @@ textarea.form-input {
|
|
331
335
|
top: ($control-size-sm - $unit-4) / 2 - $border-width;
|
332
336
|
width: $unit-8;
|
333
337
|
&::before {
|
334
|
-
@include control-transition();
|
335
338
|
background: $bg-color-light;
|
336
339
|
border-radius: 50%;
|
337
340
|
content: "";
|
@@ -340,6 +343,7 @@ textarea.form-input {
|
|
340
343
|
left: 0;
|
341
344
|
position: absolute;
|
342
345
|
top: 0;
|
346
|
+
transition: background .2s, border .2s, box-shadow .2s, color .2s, left .2s;
|
343
347
|
width: $unit-4;
|
344
348
|
}
|
345
349
|
}
|
@@ -427,6 +431,7 @@ textarea.form-input {
|
|
427
431
|
.form-select {
|
428
432
|
.has-success &,
|
429
433
|
&.is-success {
|
434
|
+
background: lighten($success-color, 53%);
|
430
435
|
border-color: $success-color;
|
431
436
|
&:focus {
|
432
437
|
@include control-shadow($success-color);
|
@@ -435,6 +440,7 @@ textarea.form-input {
|
|
435
440
|
|
436
441
|
.has-error &,
|
437
442
|
&.is-error {
|
443
|
+
background: lighten($error-color, 53%);
|
438
444
|
border-color: $error-color;
|
439
445
|
&:focus {
|
440
446
|
@include control-shadow($error-color);
|
@@ -484,6 +490,7 @@ textarea.form-input {
|
|
484
490
|
border-color: $error-color;
|
485
491
|
&:focus {
|
486
492
|
@include control-shadow($error-color);
|
493
|
+
background: lighten($error-color, 53%);
|
487
494
|
}
|
488
495
|
|
489
496
|
& + .form-input-hint {
|
@@ -0,0 +1,22 @@
|
|
1
|
+
// Hero
|
2
|
+
.hero {
|
3
|
+
display: flex;
|
4
|
+
flex-direction: column;
|
5
|
+
justify-content: space-between;
|
6
|
+
padding-bottom: 4rem;
|
7
|
+
padding-top: 4rem;
|
8
|
+
|
9
|
+
&.hero-sm {
|
10
|
+
padding-bottom: 2rem;
|
11
|
+
padding-top: 2rem;
|
12
|
+
}
|
13
|
+
|
14
|
+
&.hero-lg {
|
15
|
+
padding-bottom: 8rem;
|
16
|
+
padding-top: 8rem;
|
17
|
+
}
|
18
|
+
|
19
|
+
.hero-body {
|
20
|
+
padding: $layout-spacing;
|
21
|
+
}
|
22
|
+
}
|
@@ -5,7 +5,6 @@
|
|
5
5
|
padding-left: $layout-spacing;
|
6
6
|
padding-right: $layout-spacing;
|
7
7
|
width: 100%;
|
8
|
-
@extend .clearfix;
|
9
8
|
|
10
9
|
$grid-spacing: ($layout-spacing / ($layout-spacing * 0 + 1)) * $html-font-size;
|
11
10
|
|
@@ -40,6 +39,7 @@
|
|
40
39
|
}
|
41
40
|
|
42
41
|
// Responsive grid system
|
42
|
+
.cols,
|
43
43
|
.columns {
|
44
44
|
display: flex;
|
45
45
|
flex-wrap: wrap;
|
@@ -60,6 +60,7 @@
|
|
60
60
|
overflow-x: auto;
|
61
61
|
}
|
62
62
|
}
|
63
|
+
[class~="col-"],
|
63
64
|
.column {
|
64
65
|
flex: 1;
|
65
66
|
max-width: 100%;
|
@@ -77,7 +78,8 @@
|
|
77
78
|
&.col-4,
|
78
79
|
&.col-3,
|
79
80
|
&.col-2,
|
80
|
-
&.col-1
|
81
|
+
&.col-1,
|
82
|
+
&.col-auto {
|
81
83
|
flex: none;
|
82
84
|
}
|
83
85
|
}
|
@@ -144,7 +146,8 @@
|
|
144
146
|
.col-xl-4,
|
145
147
|
.col-xl-3,
|
146
148
|
.col-xl-2,
|
147
|
-
.col-xl-1
|
149
|
+
.col-xl-1,
|
150
|
+
.col-xl-auto {
|
148
151
|
flex: none;
|
149
152
|
}
|
150
153
|
.col-xl-12 {
|
@@ -183,6 +186,9 @@
|
|
183
186
|
.col-xl-1 {
|
184
187
|
width: 8.33333333%;
|
185
188
|
}
|
189
|
+
.col-xl-auto {
|
190
|
+
width: auto;
|
191
|
+
}
|
186
192
|
.hide-xl {
|
187
193
|
display: none !important;
|
188
194
|
}
|
@@ -202,7 +208,8 @@
|
|
202
208
|
.col-lg-4,
|
203
209
|
.col-lg-3,
|
204
210
|
.col-lg-2,
|
205
|
-
.col-lg-1
|
211
|
+
.col-lg-1,
|
212
|
+
.col-lg-auto {
|
206
213
|
flex: none;
|
207
214
|
}
|
208
215
|
.col-lg-12 {
|
@@ -241,6 +248,9 @@
|
|
241
248
|
.col-lg-1 {
|
242
249
|
width: 8.33333333%;
|
243
250
|
}
|
251
|
+
.col-lg-auto {
|
252
|
+
width: auto;
|
253
|
+
}
|
244
254
|
.hide-lg {
|
245
255
|
display: none !important;
|
246
256
|
}
|
@@ -260,7 +270,8 @@
|
|
260
270
|
.col-md-4,
|
261
271
|
.col-md-3,
|
262
272
|
.col-md-2,
|
263
|
-
.col-md-1
|
273
|
+
.col-md-1,
|
274
|
+
.col-md-auto {
|
264
275
|
flex: none;
|
265
276
|
}
|
266
277
|
.col-md-12 {
|
@@ -299,6 +310,9 @@
|
|
299
310
|
.col-md-1 {
|
300
311
|
width: 8.33333333%;
|
301
312
|
}
|
313
|
+
.col-md-auto {
|
314
|
+
width: auto;
|
315
|
+
}
|
302
316
|
.hide-md {
|
303
317
|
display: none !important;
|
304
318
|
}
|
@@ -318,7 +332,8 @@
|
|
318
332
|
.col-sm-4,
|
319
333
|
.col-sm-3,
|
320
334
|
.col-sm-2,
|
321
|
-
.col-sm-1
|
335
|
+
.col-sm-1,
|
336
|
+
.col-sm-auto {
|
322
337
|
flex: none;
|
323
338
|
}
|
324
339
|
.col-sm-12 {
|
@@ -357,6 +372,9 @@
|
|
357
372
|
.col-sm-1 {
|
358
373
|
width: 8.33333333%;
|
359
374
|
}
|
375
|
+
.col-sm-auto {
|
376
|
+
width: auto;
|
377
|
+
}
|
360
378
|
.hide-sm {
|
361
379
|
display: none !important;
|
362
380
|
}
|
@@ -376,7 +394,8 @@
|
|
376
394
|
.col-xs-4,
|
377
395
|
.col-xs-3,
|
378
396
|
.col-xs-2,
|
379
|
-
.col-xs-1
|
397
|
+
.col-xs-1,
|
398
|
+
.col-xs-auto {
|
380
399
|
flex: none;
|
381
400
|
}
|
382
401
|
.col-xs-12 {
|
@@ -415,6 +434,9 @@
|
|
415
434
|
.col-xs-1 {
|
416
435
|
width: 8.33333333%;
|
417
436
|
}
|
437
|
+
.col-xs-auto {
|
438
|
+
width: auto;
|
439
|
+
}
|
418
440
|
.hide-xs {
|
419
441
|
display: none !important;
|
420
442
|
}
|
@@ -18,8 +18,8 @@
|
|
18
18
|
.menu-item {
|
19
19
|
margin-top: 0;
|
20
20
|
padding: 0 $unit-2;
|
21
|
+
position: relative;
|
21
22
|
text-decoration: none;
|
22
|
-
user-select: none;
|
23
23
|
|
24
24
|
& > a {
|
25
25
|
border-radius: $border-radius;
|
@@ -52,11 +52,15 @@
|
|
52
52
|
}
|
53
53
|
|
54
54
|
.menu-badge {
|
55
|
-
|
56
|
-
|
55
|
+
align-items: center;
|
56
|
+
display: flex;
|
57
|
+
height: 100%;
|
58
|
+
position: absolute;
|
59
|
+
right: 0;
|
60
|
+
top: 0;
|
57
61
|
|
58
|
-
.
|
59
|
-
margin-
|
62
|
+
.label {
|
63
|
+
margin-right: $unit-2;
|
60
64
|
}
|
61
65
|
}
|
62
|
-
}
|
66
|
+
}
|
@@ -52,7 +52,7 @@ $parallax-fade-color: rgba(255, 255, 255, .35) !default;
|
|
52
52
|
text-shadow: 0 0 20px rgba($dark-color, .75);
|
53
53
|
top: 0;
|
54
54
|
transform: translateZ($parallax-offset-z) scale($parallax-scale);
|
55
|
-
transition:
|
55
|
+
transition: transform .4s;
|
56
56
|
width: 100%;
|
57
57
|
z-index: $zindex-0;
|
58
58
|
}
|
@@ -26,7 +26,7 @@
|
|
26
26
|
border-radius: 50%;
|
27
27
|
height: $unit-3;
|
28
28
|
margin-top: -($unit-3 - $unit-h) / 2;
|
29
|
-
transition: transform .2s
|
29
|
+
transition: transform .2s;
|
30
30
|
width: $unit-3;
|
31
31
|
}
|
32
32
|
&::-moz-range-thumb {
|
@@ -34,7 +34,7 @@
|
|
34
34
|
border: 0;
|
35
35
|
border-radius: 50%;
|
36
36
|
height: $unit-3;
|
37
|
-
transition: transform .2s
|
37
|
+
transition: transform .2s;
|
38
38
|
width: $unit-3;
|
39
39
|
}
|
40
40
|
&::-ms-thumb {
|
@@ -42,7 +42,7 @@
|
|
42
42
|
border: 0;
|
43
43
|
border-radius: 50%;
|
44
44
|
height: $unit-3;
|
45
|
-
transition: transform .2s
|
45
|
+
transition: transform .2s;
|
46
46
|
width: $unit-3;
|
47
47
|
}
|
48
48
|
|
@@ -24,7 +24,7 @@
|
|
24
24
|
}
|
25
25
|
|
26
26
|
a {
|
27
|
-
color: $
|
27
|
+
color: $primary-color;
|
28
28
|
display: inline-block;
|
29
29
|
padding: 20px 10px 0;
|
30
30
|
text-decoration: none;
|
@@ -59,9 +59,10 @@
|
|
59
59
|
}
|
60
60
|
|
61
61
|
a {
|
62
|
+
color: $gray-color;
|
62
63
|
|
63
64
|
&::before {
|
64
|
-
background: $
|
65
|
+
background: $border-color;
|
65
66
|
}
|
66
67
|
}
|
67
68
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
// Core variables
|
2
|
-
$version: "0.5.
|
2
|
+
$version: "0.5.9";
|
3
3
|
|
4
4
|
// Core features
|
5
5
|
$rtl: false !default;
|
@@ -21,6 +21,7 @@ $gray-color-light: lighten($gray-color, 20%) !default;
|
|
21
21
|
|
22
22
|
$border-color: lighten($dark-color, 65%) !default;
|
23
23
|
$border-color-dark: darken($border-color, 10%) !default;
|
24
|
+
$border-color-light: lighten($border-color, 8%) !default;
|
24
25
|
$bg-color: lighten($dark-color, 75%) !default;
|
25
26
|
$bg-color-dark: darken($bg-color, 3%) !default;
|
26
27
|
$bg-color-light: $light-color !default;
|
@@ -0,0 +1,34 @@
|
|
1
|
+
// 360 Degree Viewer
|
2
|
+
|
3
|
+
// Mixin: Viewer slider sizes
|
4
|
+
@mixin viewer-slider-size($image-number: 36) {
|
5
|
+
@for $s from 1 through ($image-number) {
|
6
|
+
.viewer-slider[max='#{$image-number}'][value='#{$s}'] + .viewer-image {
|
7
|
+
background-position-y: percentage((($s)-1) * 1/(($image-number)-1));
|
8
|
+
}
|
9
|
+
}
|
10
|
+
}
|
11
|
+
|
12
|
+
.viewer-360 {
|
13
|
+
align-items: center;
|
14
|
+
display: flex;
|
15
|
+
flex-direction: column;
|
16
|
+
|
17
|
+
// Copy and add more numbers if you need
|
18
|
+
@include viewer-slider-size(36);
|
19
|
+
|
20
|
+
.viewer-slider {
|
21
|
+
cursor: ew-resize;
|
22
|
+
margin: 1rem;
|
23
|
+
order: 2;
|
24
|
+
width: 60%;
|
25
|
+
}
|
26
|
+
|
27
|
+
.viewer-image {
|
28
|
+
background-position-y: 0;
|
29
|
+
background-repeat: no-repeat;
|
30
|
+
background-size: 100%;
|
31
|
+
max-width: 100%;
|
32
|
+
order: 1;
|
33
|
+
}
|
34
|
+
}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
// Icon resize
|
3
2
|
.icon-resize-horiz,
|
4
3
|
.icon-resize-vert {
|
@@ -7,7 +6,6 @@
|
|
7
6
|
border: $icon-border-width solid currentColor;
|
8
7
|
border-bottom: 0;
|
9
8
|
border-right: 0;
|
10
|
-
content: "";
|
11
9
|
height: .45em;
|
12
10
|
width: .45em;
|
13
11
|
}
|
@@ -35,7 +33,6 @@
|
|
35
33
|
background: currentColor;
|
36
34
|
box-shadow: -.4em 0, .4em 0;
|
37
35
|
border-radius: 50%;
|
38
|
-
content: "";
|
39
36
|
height: 3px;
|
40
37
|
width: 3px;
|
41
38
|
}
|
@@ -53,7 +50,6 @@
|
|
53
50
|
.icon-cross {
|
54
51
|
&::before {
|
55
52
|
background: currentColor;
|
56
|
-
content: "";
|
57
53
|
height: $icon-border-width;
|
58
54
|
width: 100%;
|
59
55
|
}
|
@@ -63,7 +59,6 @@
|
|
63
59
|
.icon-cross {
|
64
60
|
&::after {
|
65
61
|
background: currentColor;
|
66
|
-
content: "";
|
67
62
|
height: 100%;
|
68
63
|
width: $icon-border-width;
|
69
64
|
}
|
@@ -88,7 +83,6 @@
|
|
88
83
|
border: $icon-border-width solid currentColor;
|
89
84
|
border-right: 0;
|
90
85
|
border-top: 0;
|
91
|
-
content: "";
|
92
86
|
height: .5em;
|
93
87
|
width: .9em;
|
94
88
|
transform: translate(-50%, -75%) rotate(-45deg);
|
@@ -101,7 +95,6 @@
|
|
101
95
|
border-radius: 50%;
|
102
96
|
&::before {
|
103
97
|
background: currentColor;
|
104
|
-
content: "";
|
105
98
|
height: $icon-border-width;
|
106
99
|
transform: translate(-50%, -50%) rotate(45deg);
|
107
100
|
width: 1em;
|
@@ -128,7 +121,6 @@
|
|
128
121
|
border: $icon-border-width solid currentColor;
|
129
122
|
border-radius: 50%;
|
130
123
|
border-right-color: transparent;
|
131
|
-
content: "";
|
132
124
|
height: 1em;
|
133
125
|
width: 1em;
|
134
126
|
}
|
@@ -136,7 +128,6 @@
|
|
136
128
|
border: .2em solid currentColor;
|
137
129
|
border-top-color: transparent;
|
138
130
|
border-left-color: transparent;
|
139
|
-
content: "";
|
140
131
|
height: 0;
|
141
132
|
left: 80%;
|
142
133
|
top: 20%;
|
@@ -149,7 +140,6 @@
|
|
149
140
|
&::before {
|
150
141
|
border: $icon-border-width solid currentColor;
|
151
142
|
border-radius: 50%;
|
152
|
-
content: "";
|
153
143
|
height: .75em;
|
154
144
|
left: 5%;
|
155
145
|
top: 5%;
|
@@ -158,7 +148,6 @@
|
|
158
148
|
}
|
159
149
|
&::after {
|
160
150
|
background: currentColor;
|
161
|
-
content: "";
|
162
151
|
height: $icon-border-width;
|
163
152
|
left: 80%;
|
164
153
|
top: 80%;
|
@@ -171,7 +160,6 @@
|
|
171
160
|
.icon-edit {
|
172
161
|
&::before {
|
173
162
|
border: $icon-border-width solid currentColor;
|
174
|
-
content: "";
|
175
163
|
height: .4em;
|
176
164
|
transform: translate(-40%, -60%) rotate(-45deg);
|
177
165
|
width: .85em;
|
@@ -180,7 +168,6 @@
|
|
180
168
|
border: .15em solid currentColor;
|
181
169
|
border-top-color: transparent;
|
182
170
|
border-right-color: transparent;
|
183
|
-
content: "";
|
184
171
|
height: 0;
|
185
172
|
left: 5%;
|
186
173
|
top: 95%;
|
@@ -196,7 +183,6 @@
|
|
196
183
|
border-bottom-left-radius: $border-radius;
|
197
184
|
border-bottom-right-radius: $border-radius;
|
198
185
|
border-top: 0;
|
199
|
-
content: "";
|
200
186
|
height: .75em;
|
201
187
|
top: 60%;
|
202
188
|
width: .75em;
|
@@ -204,7 +190,6 @@
|
|
204
190
|
&::after {
|
205
191
|
background: currentColor;
|
206
192
|
box-shadow: -.25em .2em, .25em .2em;
|
207
|
-
content: "";
|
208
193
|
height: $icon-border-width;
|
209
194
|
top: $icon-border-width/2;
|
210
195
|
width: .5em;
|
@@ -221,7 +206,6 @@
|
|
221
206
|
border: $icon-border-width solid currentColor;
|
222
207
|
border-left: 0;
|
223
208
|
border-top: 0;
|
224
|
-
content: "";
|
225
209
|
height: .4em;
|
226
210
|
left: 100%;
|
227
211
|
top: .25em;
|
@@ -233,7 +217,6 @@
|
|
233
217
|
border-bottom: 0;
|
234
218
|
border-right: 0;
|
235
219
|
border-radius: 75% 0;
|
236
|
-
content: "";
|
237
220
|
height: .5em;
|
238
221
|
width: .6em;
|
239
222
|
}
|
@@ -243,7 +226,6 @@
|
|
243
226
|
.icon-flag {
|
244
227
|
&::before {
|
245
228
|
background: currentColor;
|
246
|
-
content: "";
|
247
229
|
height: 1em;
|
248
230
|
left: 15%;
|
249
231
|
width: $icon-border-width;
|
@@ -253,7 +235,6 @@
|
|
253
235
|
border-bottom-right-radius: $border-radius;
|
254
236
|
border-left: 0;
|
255
237
|
border-top-right-radius: $border-radius;
|
256
|
-
content: "";
|
257
238
|
height: .65em;
|
258
239
|
top: 35%;
|
259
240
|
left: 60%;
|
@@ -268,7 +249,6 @@
|
|
268
249
|
border-bottom: 0;
|
269
250
|
border-top-left-radius: $border-radius;
|
270
251
|
border-top-right-radius: $border-radius;
|
271
|
-
content: "";
|
272
252
|
height: .9em;
|
273
253
|
width: .8em;
|
274
254
|
}
|
@@ -277,7 +257,6 @@
|
|
277
257
|
border-bottom: 0;
|
278
258
|
border-left: 0;
|
279
259
|
border-radius: $border-radius;
|
280
|
-
content: "";
|
281
260
|
height: .5em;
|
282
261
|
transform: translate(-50%, 35%) rotate(-45deg) skew(15deg, 15deg);
|
283
262
|
width: .5em;
|
@@ -292,14 +271,12 @@
|
|
292
271
|
border: $icon-border-width solid currentColor;
|
293
272
|
border-bottom: 0;
|
294
273
|
border-right: 0;
|
295
|
-
content: "";
|
296
274
|
height: .5em;
|
297
275
|
width: .5em;
|
298
276
|
transform: translate(-50%, -60%) rotate(-135deg);
|
299
277
|
}
|
300
278
|
&::after {
|
301
279
|
background: currentColor;
|
302
|
-
content: "";
|
303
280
|
height: .6em;
|
304
281
|
top: 40%;
|
305
282
|
width: $icon-border-width;
|
@@ -314,3 +291,25 @@
|
|
314
291
|
top: 50%;
|
315
292
|
}
|
316
293
|
}
|
294
|
+
|
295
|
+
// Icon copy
|
296
|
+
.icon-copy {
|
297
|
+
&::before {
|
298
|
+
border: $icon-border-width solid currentColor;
|
299
|
+
border-radius: $border-radius;
|
300
|
+
border-right: 0;
|
301
|
+
border-bottom: 0;
|
302
|
+
height: .8em;
|
303
|
+
left: 40%;
|
304
|
+
top: 35%;
|
305
|
+
width: .8em;
|
306
|
+
}
|
307
|
+
&::after {
|
308
|
+
border: $icon-border-width solid currentColor;
|
309
|
+
border-radius: $border-radius;
|
310
|
+
height: .8em;
|
311
|
+
left: 60%;
|
312
|
+
top: 60%;
|
313
|
+
width: .8em;
|
314
|
+
}
|
315
|
+
}
|
@@ -11,7 +11,6 @@
|
|
11
11
|
border: $icon-border-width solid currentColor;
|
12
12
|
border-bottom: 0;
|
13
13
|
border-right: 0;
|
14
|
-
content: "";
|
15
14
|
height: .65em;
|
16
15
|
width: .65em;
|
17
16
|
}
|
@@ -45,7 +44,6 @@
|
|
45
44
|
.icon-forward {
|
46
45
|
&::after {
|
47
46
|
background: currentColor;
|
48
|
-
content: "";
|
49
47
|
height: $icon-border-width;
|
50
48
|
width: .8em;
|
51
49
|
}
|
@@ -55,7 +53,6 @@
|
|
55
53
|
.icon-upward {
|
56
54
|
&::after {
|
57
55
|
background: currentColor;
|
58
|
-
content: "";
|
59
56
|
height: .8em;
|
60
57
|
width: $icon-border-width;
|
61
58
|
}
|
@@ -103,7 +100,6 @@
|
|
103
100
|
border-top: .3em solid currentColor;
|
104
101
|
border-right: .3em solid transparent;
|
105
102
|
border-left: .3em solid transparent;
|
106
|
-
content: "";
|
107
103
|
height: 0;
|
108
104
|
transform: translate(-50%, -25%);
|
109
105
|
width: 0;
|
@@ -115,7 +111,6 @@
|
|
115
111
|
&::before {
|
116
112
|
background: currentColor;
|
117
113
|
box-shadow: 0 -.35em, 0 .35em;
|
118
|
-
content: "";
|
119
114
|
height: $icon-border-width;
|
120
115
|
width: 100%;
|
121
116
|
}
|
@@ -126,7 +121,6 @@
|
|
126
121
|
&::before {
|
127
122
|
background: currentColor;
|
128
123
|
box-shadow: -.35em -.35em, -.35em 0, -.35em .35em, 0 -.35em, 0 .35em, .35em -.35em, .35em 0, .35em .35em;
|
129
|
-
content: "";
|
130
124
|
height: 3px;
|
131
125
|
width: 3px;
|
132
126
|
}
|
@@ -4,14 +4,12 @@
|
|
4
4
|
border-radius: 50%;
|
5
5
|
&::before {
|
6
6
|
background: currentColor;
|
7
|
-
content: "";
|
8
7
|
height: .4em;
|
9
8
|
transform: translate(-50%, -75%);
|
10
9
|
width: $icon-border-width;
|
11
10
|
}
|
12
11
|
&::after {
|
13
12
|
background: currentColor;
|
14
|
-
content: "";
|
15
13
|
height: .3em;
|
16
14
|
transform: translate(-50%, -75%) rotate(90deg);
|
17
15
|
transform-origin: 50% 90%;
|
@@ -24,7 +22,6 @@
|
|
24
22
|
&::before {
|
25
23
|
border: $icon-border-width solid currentColor;
|
26
24
|
border-radius: $border-radius;
|
27
|
-
content: "";
|
28
25
|
height: .8em;
|
29
26
|
width: 1em;
|
30
27
|
}
|
@@ -32,7 +29,6 @@
|
|
32
29
|
border: $icon-border-width solid currentColor;
|
33
30
|
border-right: 0;
|
34
31
|
border-top: 0;
|
35
|
-
content: "";
|
36
32
|
height: .5em;
|
37
33
|
transform: translate(-50%, -90%) rotate(-45deg) skew(10deg, 10deg);
|
38
34
|
width: .5em;
|
@@ -44,7 +40,6 @@
|
|
44
40
|
&::before {
|
45
41
|
border: $icon-border-width solid currentColor;
|
46
42
|
border-radius: 50%;
|
47
|
-
content: "";
|
48
43
|
height: .45em;
|
49
44
|
top: 25%;
|
50
45
|
width: .45em;
|
@@ -52,7 +47,6 @@
|
|
52
47
|
&::after {
|
53
48
|
border: $icon-border-width solid currentColor;
|
54
49
|
border-radius: 50% 50% 0 0;
|
55
|
-
content: "";
|
56
50
|
height: .4em;
|
57
51
|
top: 75%;
|
58
52
|
width: .9em;
|
@@ -70,7 +64,6 @@
|
|
70
64
|
border-bottom-right-radius: $border-radius;
|
71
65
|
border-left: 0;
|
72
66
|
border-top: 0;
|
73
|
-
content: "";
|
74
67
|
height: .8em;
|
75
68
|
left: 65%;
|
76
69
|
top: 40%;
|
@@ -79,7 +72,6 @@
|
|
79
72
|
&::after {
|
80
73
|
background: currentColor;
|
81
74
|
border-radius: $border-radius;
|
82
|
-
content: "";
|
83
75
|
height: .3em;
|
84
76
|
left: 10%;
|
85
77
|
top: 100%;
|
@@ -95,7 +87,6 @@
|
|
95
87
|
&::before {
|
96
88
|
border: $icon-border-width solid currentColor;
|
97
89
|
border-radius: 50%;
|
98
|
-
content: "";
|
99
90
|
height: .25em;
|
100
91
|
left: 35%;
|
101
92
|
top: 35%;
|
@@ -105,7 +96,6 @@
|
|
105
96
|
border: $icon-border-width solid currentColor;
|
106
97
|
border-bottom: 0;
|
107
98
|
border-left: 0;
|
108
|
-
content: "";
|
109
99
|
height: .5em;
|
110
100
|
left: 60%;
|
111
101
|
transform: translate(-50%, 25%) rotate(-45deg);
|
@@ -120,7 +110,6 @@
|
|
120
110
|
border: $icon-border-width solid currentColor;
|
121
111
|
border-radius: 5em 0 0 5em;
|
122
112
|
border-right: 0;
|
123
|
-
content: "";
|
124
113
|
height: .5em;
|
125
114
|
width: .75em;
|
126
115
|
}
|
@@ -137,7 +126,6 @@
|
|
137
126
|
&::before {
|
138
127
|
border: $icon-border-width solid currentColor;
|
139
128
|
border-radius: 50% 50% 50% 0;
|
140
|
-
content: "";
|
141
129
|
height: .8em;
|
142
130
|
transform: translate(-50%, -60%) rotate(-45deg);
|
143
131
|
width: .8em;
|
@@ -145,7 +133,6 @@
|
|
145
133
|
&::after {
|
146
134
|
border: $icon-border-width solid currentColor;
|
147
135
|
border-radius: 50%;
|
148
|
-
content: "";
|
149
136
|
height: .2em;
|
150
137
|
transform: translate(-50%, -80%);
|
151
138
|
width: .2em;
|
@@ -158,17 +145,15 @@
|
|
158
145
|
border-radius: 50%;
|
159
146
|
&::before {
|
160
147
|
border-radius: 50%;
|
161
|
-
box-shadow: -.17em -.
|
162
|
-
|
163
|
-
|
164
|
-
width: .1em;
|
148
|
+
box-shadow: -.17em -.1em, .17em -.1em;
|
149
|
+
height: .15em;
|
150
|
+
width: .15em;
|
165
151
|
}
|
166
152
|
&::after {
|
167
153
|
border: $icon-border-width solid currentColor;
|
168
154
|
border-bottom-color: transparent;
|
169
155
|
border-radius: 50%;
|
170
156
|
border-right-color: transparent;
|
171
|
-
content: "";
|
172
157
|
height: .5em;
|
173
158
|
transform: translate(-50%, -40%) rotate(-135deg);
|
174
159
|
width: .5em;
|
@@ -6,6 +6,7 @@
|
|
6
6
|
position: relative;
|
7
7
|
&::after {
|
8
8
|
animation: loading 500ms infinite linear;
|
9
|
+
background: transparent;
|
9
10
|
border: $border-width-lg solid $primary-color;
|
10
11
|
border-radius: 50%;
|
11
12
|
border-right-color: transparent;
|
@@ -16,6 +17,8 @@
|
|
16
17
|
left: 50%;
|
17
18
|
margin-left: -$unit-2;
|
18
19
|
margin-top: -$unit-2;
|
20
|
+
opacity: 1;
|
21
|
+
padding: 0;
|
19
22
|
position: absolute;
|
20
23
|
top: 50%;
|
21
24
|
width: $unit-4;
|
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.5.
|
4
|
+
version: 0.5.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zoran
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.1.0
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- vendor/assets/stylesheets/spectre/_empty.scss
|
93
93
|
- vendor/assets/stylesheets/spectre/_filters.scss
|
94
94
|
- vendor/assets/stylesheets/spectre/_forms.scss
|
95
|
+
- vendor/assets/stylesheets/spectre/_hero.scss
|
95
96
|
- vendor/assets/stylesheets/spectre/_icons.scss
|
96
97
|
- vendor/assets/stylesheets/spectre/_labels.scss
|
97
98
|
- vendor/assets/stylesheets/spectre/_layout.scss
|
@@ -120,6 +121,7 @@ files:
|
|
120
121
|
- vendor/assets/stylesheets/spectre/_typography.scss
|
121
122
|
- vendor/assets/stylesheets/spectre/_utilities.scss
|
122
123
|
- vendor/assets/stylesheets/spectre/_variables.scss
|
124
|
+
- vendor/assets/stylesheets/spectre/_viewer-360.scss
|
123
125
|
- vendor/assets/stylesheets/spectre/icons/_icons-action.scss
|
124
126
|
- vendor/assets/stylesheets/spectre/icons/_icons-core.scss
|
125
127
|
- vendor/assets/stylesheets/spectre/icons/_icons-navigation.scss
|
@@ -133,7 +135,6 @@ files:
|
|
133
135
|
- vendor/assets/stylesheets/spectre/mixins/_shadow.scss
|
134
136
|
- vendor/assets/stylesheets/spectre/mixins/_text.scss
|
135
137
|
- vendor/assets/stylesheets/spectre/mixins/_toast.scss
|
136
|
-
- vendor/assets/stylesheets/spectre/mixins/_transition.scss
|
137
138
|
- vendor/assets/stylesheets/spectre/spectre-exp.scss
|
138
139
|
- vendor/assets/stylesheets/spectre/spectre-icons.scss
|
139
140
|
- vendor/assets/stylesheets/spectre/spectre.scss
|
@@ -164,8 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
165
|
- !ruby/object:Gem::Version
|
165
166
|
version: '0'
|
166
167
|
requirements: []
|
167
|
-
|
168
|
-
rubygems_version: 2.7.6
|
168
|
+
rubygems_version: 3.0.3
|
169
169
|
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: Spectre is a lightweight, responsive and modern CSS framework.
|