forked from livebloggerofficial/Image-Gallery-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
134 lines (113 loc) · 2.55 KB
/
style.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
h2 {
font-family: "Roboto", sans-serif;
text-align: center;
font-size: 40px;
}
.image-gallery-container {
font-family: "Roboto", sans-serif;
}
.image-gallery-container .images {
max-width: 800px;
display: grid;
margin: 0 auto;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 8px;
}
.image-gallery-container .images .image {
cursor: pointer;
}
.image-gallery-container .images img {
width: 100%;
height: 100%;
object-fit: cover;
}
.image-gallery-container .images .title {
display: none;
}
.image-gallery-container .lightbox {
position: fixed;
top: -100%;
left: 0;
height: 100vh;
width: 100%;
background: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
transition: all 400ms;
}
.image-gallery-container .lightbox.active {
top: 0;
}
.image-gallery-container .lightbox img {
height: 80vh;
border-radius: 10px;
border: 10px solid white;
}
.image-gallery-container .lightbox .image {
position: relative;
}
.image-gallery-container .lightbox .title {
position: absolute;
background: white;
padding: 24px 32px;
left: 32px;
right: 32px;
bottom: -6px;
font-size: 16px;
font-weight: bold;
border-radius: 8px;
}
.image-gallery-container .lightbox .next-btn,
.image-gallery-container .lightbox .previous-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
font-size: 24px;
padding: 8px 16px;
background: white;
border-radius: 8px;
box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.4);
cursor: pointer;
}
.image-gallery-container .lightbox .next-btn {
right: -20px;
}
.image-gallery-container .lightbox .previous-btn {
left: -20px;
}
.image-gallery-container .lightbox .options {
position: fixed;
top: 32px;
right: 32px;
background: white;
display: none;
align-items: center;
font-size: 28px;
padding: 6px 24px;
border-radius: 20px;
box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.4);
}
.image-gallery-container .lightbox.active .options {
display: flex;
}
.image-gallery-container .lightbox .close-btn {
margin-left: 20px;
cursor: pointer;
}
.image-gallery-container .lightbox .download-btn {
color: black;
font-size: 24px;
}
@media (max-width: 900px) {
.image-gallery-container .lightbox img {
width: 90vw;
object-fit: cover;
}
.image-gallery-container .lightbox .next-btn {
right: -10px;
}
.image-gallery-container .lightbox .previous-btn {
left: -10px;
}
}