-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgallery.css
More file actions
50 lines (49 loc) · 774 Bytes
/
Copy pathgallery.css
File metadata and controls
50 lines (49 loc) · 774 Bytes
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
body{
margin:0;
}
div{
width:100%;
height:100%;
}
.js-gallery{
width:500px;
height:500px;
display:grid;
border: 1px solid #000;
}
.js-gallery div{
box-sizing:border-box;
}
.js-gallery img{
object-fit: cover;
width:100%;
height:100%;
box-sizing:border-box;
}
.more{
background:radial-gradient(#000 ,#fff 70%);
position: relative;
}
.more img{
opacity:.5;
}
.more p{
font-size:2.5rem;
font-weight: 600;
line-height: 0;
margin:0;
display:block;
position: absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%);
cursor: pointer;
}
.more a{
text-decoration: none;
color:rgb(255, 255, 255);
}
.more p:hover{
transition: .2s ease-in-out;
font-size:2.8rem;
}