-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathportfolio.css
56 lines (48 loc) · 1011 Bytes
/
portfolio.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
.portfolio-section-photos {
background-color: white;
}
.portfolio-section-photos h2 {
color: #242424;
margin-bottom: 60px;
}
.grid-portraits {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 150px 150px;
gap: 10px;
}
.grid-portraits img {
width: 100%;
height: 100%;
object-fit: cover;
}
.lien-conteneur-photo {
position: relative;
}
.photo-hover {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5em;
color: white;
background-color: rgba(0, 0, 0, 0.7);
display: none;
}
p{
color: black;
}
.lien-conteneur-photo:hover .photo-hover {
display: flex;
}
@media screen and (max-width: 996px) {
.grid-portraits {
/* grid-template-columns: 1fr;
gap: 15px; */
display: inline;
}
}