-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgallery.css
117 lines (100 loc) · 1.76 KB
/
gallery.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
.gallery {
display: flex;
flex-flow: row nowrap;
width: 100%;
}
.thumbnails-wrapper {
max-width: calc(100% / 6);
flex-basis: calc(100% / 6);
padding: 0.5rem;
}
.thumbnails-overflow-container {
position: relative;
height: 100%;
}
.thumbnails-overflow {
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
}
.image-display-wrapper {
max-width: calc(5 * 100% / 6);
flex-basis: calc(5 * 100% / 6);
}
.thumbnails-list-container {
height: 100%;
}
.thumbnails-list {
display: flex;
flex-direction: column;
list-style: none;
overflow-y: scroll;
scrollbar-width: none;
scroll-padding-top: 0px;
scroll-behavior: smooth;
scroll-snap-type: y;
margin: 0;
padding: 0;
height: 100%;
}
.thumbnail-button {
appearance: none;
border: 2px solid transparent;
width: 100%;
background: transparent;
padding: 0;
}
.thumbnail-button:focus {
outline: none;
border: 2px solid black;
}
.images-display-container {
padding: 0 0.5rem;
}
.images-list {
display: flex;
flex-flow: row nowrap;
list-style: none;
overflow-x: scroll;
scroll-padding-left: 0px;
scroll-snap-type: x mandatory;
margin: 0;
padding: 0;
scrollbar-width: none;
}
.images-list:focus-visible {
outline: 2px solid black;
}
.image-item {
flex: 0 0 100%;
scroll-snap-align: start;
}
.aspect-ratio-4-3-wrapper {
position: relative;
overflow: hidden;
height: 0;
padding-top: calc(400% / 3);
}
.aspect-ratio-child {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
display: flex;
align-items: center;
}
img {
width: 100%;
display: block;
}
@media screen and (max-width: 40rem) {
.thumbnails-wrapper {
display: none;
}
.image-display-wrapper {
max-width: 100%;
flex-basis: 100%;
}
}