-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
76 lines (76 loc) · 1.37 KB
/
style.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
* {
margin: 0;
padding: 0;
font-family: poppins;
box-sizing: border-box;
}
body {
background: #1e1f21;
color: #fff;
}
.wrapper {
padding: 10px 10%;
}
#card-area {
padding: 50px 0;
}
.box-area {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
grid-gap: 40px;
margin-top: 50px;
}
.box {
border-radius: 10px;
position: relative;
overflow: hidden;
box-shadow: 5px 5px 15px rgba(0, 0, 0, 0, 5);
}
.box img {
width: 100%;
border-radius: 10px;
display: block;
transition: transform 0.5s;
}
.overlay {
height: 0;
width: 100%;
background: linear-gradient(transparent, #1c1c1c 58%);
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;
}
.overlay h3 {
font-weight: 500;
margin-bottom: 5px;
margin-top: 80%;
font-family: bebas neue;
font-size: 30px;
letter-spacing: 2px;
}
.overlay a {
margin-top: 10px;
color: #262626;
text-decoration: none;
font-size: 14px;
background: #fff;
border-radius: 50px;
text-align: center;
padding: 5px 15px;
}
.boxLhover img {
transform: scale(1.2);
}
.box:hover .overlay {
height: 100%;
}