-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
117 lines (101 loc) · 1.89 KB
/
main.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
.body {
margin: 1em;
text-align: center;
}
.container {
display: grid;
grid-template-columns: repeat(6,1fr);
grid-auto-rows: 200px 250px;
grid-auto-flow: dense;
}
.gallery-item {
width: 100%;
height: 100%;;
padding: 0.1em;
position: relative;
overflow: hidden;
}
.gallery-item .image {
width: 100%;
height: 100%;
/* overflow: hidden; */
}
.gallery-item .image img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 50%;
cursor: pointer;
transition: all .5s ease-in-out;
}
.gallery-item:hover .image img {
transform: scale(1.5);
}
.gallery-item .text {
opacity: 0;
position: absolute;
top: 50%;
left: 50%;
width: 100%;
text-align: center;
transform:translate(-50%, -50%);
color: #fff;
font-size: 10pt;
pointer-events: none;
z-index: 4;
transition: 0.3s ease-in-out;
-webkit-backdrop-filter: blur(4px) saturate(0.25);
backdrop-filter: blur(4px) saturate(0.25);
outline: 2px solid black;
}
.gallery-item:hover .text {
opacity: 1;
animation: move-down .4s linear;
padding: 0.25em;
}
.size-small {
grid-row: span 1;
grid-column: span 1;
}
.size-medium-1 {
grid-row: span 2;
grid-column: span 1;
}
.size-medium-2 {
grid-row: span 1;
grid-column: span 2;
}
.size-large-1 {
grid-row: span 2;
grid-column: span 3;
}
.size-large-2 {
grid-row: span 3;
grid-column: span 2;
}
@media screen and (max-width:500px) {
.container{
grid-template-columns: repeat(3,1fr);
}
}
@media screen and (max-width:600px) {
.container{
grid-template-columns: repeat(4,1fr);
}
}
@media screen and (max-width:800px) {
.container{
grid-template-columns: repeat(5,1fr);
}
}
@keyframes move-down {
0%{
top:10%;
}
50%{
top:35%;
}
100%{
top:50%;
}
}