-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
139 lines (116 loc) · 2.38 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
/* Bullets */
.bullet {
position: relative;
width: 2.1rem;
height: 2.1rem;
display: inline-block;
}
.bullet::before {
content: '';
position: absolute;
width: 0.6rem;
height: 0.6rem;
border-radius: 50%;
background-color: #b6b6b6;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.bullet.isActive::before {
width: 0.8rem;
height: 0.8rem;
background-color: #222222;
}
.bulletContainerDefault {
z-index: 2;
display: flex;
justify-content: center;
}
.bulletContainerInfinite {
position: relative;
width: 9rem;
height: 2rem;
overflow: hidden;
display: inline-block;
justify-content: center;
white-space: nowrap;
}
.bulletMoveInfinite {
position: absolute;
top: 0;
left: 0;
transition: transform 200ms;
}
.bulletInfinite {
position: relative;
width: 0.8rem;
height: 0.8rem;
margin: 0.5rem;
transform: scale(0.5);
display: inline-block;
border-radius: 50%;
transition: transform 200ms;
background-color: #b6b6b6;
}
.bulletInfinite.isActive {
transform: scale(1);
background-color: #222222;
}
.bulletInfinite.isSecondary {
transform: scale(0.75);
background-color: #b6b6b6;
}
/* Wrapper */
.wrapper {
position: relative;
width: 100%;
overflow: hidden;
touch-action: manipulation;
}
/* ScrollSlider */
.scrollSliderContainer {
overflow-x: scroll;
overflow-y: hidden;
/* Hide scrollbar on Firefox */
scrollbar-width: none;
/* Hide scrollbar on IE */
-ms-overflow-style: none;
}
/* Hide scrollbar on Chrome and Safari */
.scrollSliderContainer::-webkit-scrollbar {
width: 0;
display: none;
}
/* Slider */
.slider {
position: relative;
width: 100%;
display: flex;
flex-flow: row nowrap;
transition: transform 300ms;
}
.slide {
flex: 0 0 auto;
}
/* SnapSlider */
.snapSliderContainer {
scroll-snap-type: x mandatory;
/* Older spec implementation (for ios9/10) */
scroll-snap-destination: 0% 100%;
scroll-snap-points-x: repeat(100%);
-webkit-overflow-scrolling: touch; /* For safari */
}
.snapSliderContainer > * {
scroll-snap-align: center;
}
/* UnevenItemsScrollSlider */
.unevenItemsContainer {
overflow: hidden;
}
.unevenItemsWrapper {
position: relative;
width: auto;
display: flex;
flex: 0 0 auto;
touch-action: none;
}