-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathportfolio.css
87 lines (77 loc) · 1.36 KB
/
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
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
#extra {
padding: 50px 40px;
background-color: black;
}
.extra-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
grid-gap: 80px;
margin-top: 50px;
}
.extra {
border-radius: 10px;
position: relative;
overflow: hidden;
}
.extra img {
width: 100%;
height: 35em;
border-radius: 10px;
display: block;
transition: transform 0.5s;
}
.layer {
width: 100%;
height: 0;
color: white;
background: linear-gradient(rgba(0, 0, 0, 0.6), #0ddff2bb);
border-radius: 10px;
position: absolute;
left: 0;
bottom: 0;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 0 40px;
text-align: center;
font-size: 14px;
transition: height 0.5s;
}
.layer h3 {
font-weight: 500;
margin-bottom: 20px;
}
.layer a {
margin-top: 20px;
color: #0ddff2bb;
text-decoration: none;
font-size: 18px;
line-height: 60px;
background: #fff;
width: 60px;
height: 60px;
border-radius: 50%;
text-align: center;
}
.extra:hover img {
transform: scale(1.1);
}
.extra:hover .layer {
height: 100%;
}
.btn {
display: block;
margin: 50px auto;
width: fit-content;
border: 1px solid #0ddff2bb;
padding: 14px 50px;
border-radius: 6px;
text-decoration: none;
color: white;
transition: background 0.5s;
}
.btn:hover {
background: #0ddff2bb;
}