-
Notifications
You must be signed in to change notification settings - Fork 11
/
gellery.css
138 lines (110 loc) · 2.01 KB
/
gellery.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
/* styles.css */
body {
font-family: Arial, sans-serif;
background: #b6b9bb;
background-image: url('images/s.jpg');
/*background-size: cover;*/
background-blend-mode: lighten;
background-color: rgba(255, 255, 255, 0.8);
}
.gallery {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 20px;
margin-right: 10px;
}
.gallery-item {
margin: 5px;
}
.thumbnail {
width: 150px;
height: auto;
cursor: pointer;
transition: 0.3s;
}
.thumbnail:hover {
transform: scale(1.1);
}
/* The Modal (background) */
.modal {
display: none;
position: fixed;
z-index: 1;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.9);
}
/* Modal Content */
.modal-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.modal-content .mySlides {
display: flex;
}
.modal-content img {
max-width: 90%;
max-height: 80vh;
}
/* Next & previous buttons */
.prev,
.next {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
padding: 16px;
margin-top: -50px;
color: white;
font-weight: bold;
font-size: 20px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
}
.next {
right: 0;
border-radius: 3px 0 0 3px;
}
.prev:hover,
.next:hover {
background-color: rgba(54, 45, 45, 0.8);
}
/* Caption text */
.caption-container {
text-align: center;
background-color: black;
padding: 2px 16px;
color: white;
}
/* Number text (1/3 etc) */
.numbertext {
color: #f2f2f2;
font-size: 12px;
padding: 8px 12px;
position: absolute;
top: 0;
}
/* Close button */
.close {
position: absolute;
top: 15px;
right: 35px;
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
}
.close:hover,
.close:focus {
color: #bbb;
text-decoration: none;
cursor: pointer;
}