-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom.css
More file actions
168 lines (135 loc) · 3.25 KB
/
custom.css
File metadata and controls
168 lines (135 loc) · 3.25 KB
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
:root {
--next: url('data:image/svg+xml;charset=utf-8,<svg width="18" height="18" viewBox="0 0 34 34" xmlns="http://www.w3.org/2000/svg"><title>Shape</title><path d="M25.557 14.7L13.818 2.961 16.8 0l16.8 16.8-16.8 16.8-2.961-2.961L25.557 18.9H0v-4.2z" fill="%23FFF" fill-rule="evenodd"/></svg>');
--prev: url('data:image/svg+xml;charset=utf-8,<svg width="18" height="18" viewBox="0 0 34 34" xmlns="http://www.w3.org/2000/svg"><title>Shape</title><path d="M33.6 14.7H8.043L19.782 2.961 16.8 0 0 16.8l16.8 16.8 2.961-2.961L8.043 18.9H33.6z" fill="%23FFF" fill-rule="evenodd"/></svg>')
}
/* CSS files add styling rules to your content */
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
padding: 0;
font-size: 20px;
}
body {
font-family: "Helvetica Neue", helvetica, arial, sans-serif;
margin: 1em;
}
h1 {
font-style: italic;
color: #373fff;
}
li {
padding: 0.5em 0;
}
p {
margin-block: 0.5em;
}
/* Palette generated by Material Palette - materialpalette.com/light-green/blue */
.gallery {
position: relative;
max-width: 800px;
padding: 0 10;
}
.gallery_scroller {
/* snap mandatory on horizontal axis */
scroll-snap-type: x mandatory;
overflow-x: scroll;
overflow-y: hidden;
display: flex;
align-items: center;
height: 50vh;
/* Enable Safari touch scrolling physics */
-webkit-overflow-scrolling: touch;
}
.gallery_scroller div {
/* snap align center */
scroll-snap-align: center;
scroll-snap-stop: always;
margin: 0;
position: relative;
}
.gallery_scroller div.colored_card {
min-width: 100%;
min-height: 95%;
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
margin: 10px;
}
.gallery_scroller div.colored_card > p {
font-size: 10em;
margin: 0;
padding: 0;
}
.gallery .btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
height: 30px;
width: 30px;
border-radius: 2px;
background-color: rgba(0, 0, 0, 0.5);
background-position: 50% 50%;
background-repeat: no-repeat;
z-index: 1;
}
.gallery .btn.next {
background-image: var(--next);
right: 10px;
}
.gallery .btn.prev {
background-image: var(--prev);
left: 10px;
}
.thumbnail {
display: flex;
list-style: none;
align-items: center;
margin-bottom: 0;
padding-left: 0;
margin-left: 0;
margin-top: 20px;
font-size: 20px;
color: #fff;
overflow-y: hidden;
overflow-x: scroll;
margin-left: auto;
margin-right: auto;
/* snap mandatory on horizontal axis */
scroll-snap-type: x mandatory;
overflow-x: scroll;
overflow-y: hidden;
}
.thumbnail__item {
margin: 4px 10px;
flex: 0 0 calc(100% / 3 - 20px);
height: 100px;
background-color: #707070;
cursor: pointer;
scroll-snap-align: start;
scroll-snap-stop: always;
}
.thumbnail__item.active {
background-color: #363636;
border: 1px solid black;
}
.gallery_scroller > div.colored_card:nth-of-type(1) {
background-color: #e8eaf6;
}
.gallery_scroller > div.colored_card:nth-of-type(2) {
background-color: #c5cae9;
}
.gallery_scroller > div.colored_card:nth-of-type(3) {
background-color: #9fa8da;
}
.gallery_scroller > div.colored_card:nth-of-type(4) {
background-color: #7986cb;
}
.gallery_scroller > div.colored_card:nth-of-type(5) {
background-color: #5c6bc0;
}