1 | @import '~@schibstedspain/sui-spinner/dist/index';
|
2 |
|
3 | $c-background: #dcdcdc;
|
4 | $c-nav-background: rgba(255, 255, 255, .8);
|
5 | $c-nav-color: #aaaaaa;
|
6 |
|
7 | @mixin arrow($symbol) {
|
8 | bottom: 0;
|
9 | color: $c-nav-color;
|
10 | content: $symbol;
|
11 | font-size: 65px;
|
12 | font-weight: 100;
|
13 | height: 100%;
|
14 | line-height: 45px;
|
15 | margin: auto;
|
16 | position: absolute;
|
17 | text-align: center;
|
18 | top: 0;
|
19 | width: 28px;
|
20 | z-index: 2;
|
21 | }
|
22 |
|
23 | .react-Slidy {
|
24 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
25 | background: $c-background;
|
26 | min-height: 175px;
|
27 | position: relative;
|
28 |
|
29 | &-next,
|
30 | &-prev {
|
31 | background: $c-nav-background;
|
32 | bottom: 0;
|
33 | cursor: pointer;
|
34 | height: 56px;
|
35 | margin: auto 0;
|
36 | opacity: 0;
|
37 | position: absolute;
|
38 | top: 0;
|
39 | transition: opacity .3s ease;
|
40 | width: 28px;
|
41 | z-index: 1;
|
42 |
|
43 | @media screen and (max-width: 850px) {
|
44 | display: none;
|
45 | }
|
46 | }
|
47 |
|
48 | &-next {
|
49 | border-radius: 10px 0 0 10px;
|
50 | right: 0;
|
51 |
|
52 | &::after {
|
53 | @include arrow('›');
|
54 | right: 0;
|
55 | }
|
56 | }
|
57 |
|
58 | &-prev {
|
59 | border-radius: 0 10px 10px 0;
|
60 | left: 0;
|
61 |
|
62 | &::after {
|
63 | @include arrow('‹');
|
64 | left: 0;
|
65 | }
|
66 | }
|
67 |
|
68 | &:hover &-next,
|
69 | &:hover &-prev {
|
70 | opacity: 1;
|
71 | }
|
72 |
|
73 | &-frame {
|
74 | -webkit-backface-visibility: hidden;
|
75 | backface-visibility: hidden;
|
76 | font-size: 0;
|
77 | overflow: hidden;
|
78 | position: relative;
|
79 | white-space: nowrap;
|
80 | width: 100%;
|
81 | }
|
82 |
|
83 | &-slides {
|
84 | backface-visibility: hidden;
|
85 | display: block;
|
86 | list-style: none;
|
87 | padding: 0;
|
88 | position: absolute;
|
89 | width: 100%;
|
90 | will-change: transform, transition-timing, transition-duration;
|
91 | }
|
92 |
|
93 | &-item {
|
94 | display: inline-block;
|
95 | position: relative;
|
96 | transform: translateZ(0);
|
97 | user-select: none;
|
98 | vertical-align: top;
|
99 | width: 100%;
|
100 | }
|
101 |
|
102 | img {
|
103 | display: block;
|
104 | height: auto;
|
105 | pointer-events: none;
|
106 | touch-action: none;
|
107 | user-select: none;
|
108 | width: 100%;
|
109 | }
|
110 |
|
111 | .sui-Spinner {
|
112 | bottom: 0;
|
113 | display: block;
|
114 | left: 0;
|
115 | margin: auto;
|
116 | pointer-events: none;
|
117 | position: absolute;
|
118 | right: 0;
|
119 | top: 0;
|
120 | }
|
121 | }
|