-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrid-style.css
More file actions
127 lines (120 loc) · 2.02 KB
/
grid-style.css
File metadata and controls
127 lines (120 loc) · 2.02 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
body{
margin: 30px;
padding: 0;
text-align: center;
}
.container{
display: grid;
gap:3%;
grid-template-columns: repeat(6, 1fr);
grid-auto-rows: 100px 200px;
grid-auto-flow: dense;
}
.gallery-item{
width: 100%;
height: 100%;
position: relative;
}
.gallery-item .image{
width: 100%;
height: 100%;
overflow: hidden;
border: 5px solid #5B6DCD;
border-radius: 20px;
box-sizing: content-box;
box-shadow: 4px 7px 3px rgba(0, 0, 0, 0.45);
}
.gallery-item .image img{
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 50%;
cursor:pointer;
transition: .5s ease-in-out;
}
.gallery-item:hover .image img{
transform: scale(1.5);
}
.gallery-item .img-title{
position: absolute;
top: 50%;
left: 50%;
font-size: 1rem;
text-transform: uppercase;
transform: translate(-50%, -50%);
color: #000;
transition: .3s ease-in-out;
-webkit-backdrop-filter: blur(5px) saturate(1.8);
backdrop-filter: blur(5px) saturate(1.8);
opacity: 0;
padding: 10px 20px;
}
.gallery-item:hover .img-title{
opacity: 1;;
}
.w{
grid-column: 1;
}
.h{
grid-row: 1;
}
.w-1{
grid-column: span 1;
}
.w-2{
grid-column: span 2;
}
.w-3{
grid-column: span 3;
}
.w-4{
grid-column: span 4;
}
.w-5{
grid-column: span 5;
}
.w-6{
grid-column: span 6;
}
.h-1{
grid-row: span 1;
}
.h-2{
grid-row: span 2;
}
.h-3{
grid-row: span 3;
}
.h-4{
grid-row: span 4;
}
.h-5{
grid-row: span 5;
}
.h-6{
grid-row: span 6;
}
@media (max-width:768px){
.container{
grid-template-columns: repeat(2,1fr);
}
.w-1,.w-2,.w-3,.w-4,.w-5,.w-6
{
grid-column:span 1;
}
.h, .h-1,.h-2, .h-3, .h-4, .h-5{
grid-row: span 2;
}
}
@media (max-width:425px){
.container{
grid-template-columns: repeat(1,1fr);
}
.w-1,.w-2,.w-3,.w-4,.w-5,.w-6
{
grid-column:span 1;
}
.h, .h-1,.h-2, .h-3, .h-4, .h-5{
grid-row: span 2;
}
}