-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
131 lines (130 loc) · 2.72 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
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
128
129
130
131
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.card{
position: relative;
width: 350px;
height: 85px;
background: #398cc0;
border-radius: 20px;
filter: drop-shadow(-20px 20px 40px #398cc055);
transition: 0.5s ease-in-out;
}
.card.active{
height: 420px;
}
.toggle{
position: absolute;
bottom: -60px;
left: 50%;
transform: translateX(-50%);
width: 70px;
height: 60px;
background: #398cc0;
border-bottom-left-radius: 35px;
border-bottom-right-radius: 35px;
cursor: pointer;
}
.toggle::before{
content: '';
position: absolute;
left: -34px;
width: 35px;
height: 35px;
background: transparent;
border-top-right-radius: 35px;
box-shadow: 11px -10px 0 10px #398cc0;
}
.toggle::after{
content: '';
position: absolute;
right: -34px;
width: 35px;
height: 35px;
background: transparent;
border-top-left-radius: 35px;
box-shadow: -11px -10px 0 10px #398cc0;
}
.toggle span{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(405deg);
width: 10px;
height: 10px;
border-bottom: 3px solid #fff;
border-right: 3px solid #fff;
}
.card.active .toggle span{
transform: translate(-50%, -70%) rotate(225deg);
}
.contentBox{
position: absolute;
inset: 0;
overflow: hidden;
}
.contentBox .content{
position: relative;
padding: 20px;
text-align: center;
z-index: 10;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.contentBox .content h2{
color: #fff;
font-weight: 500;
font-size: 1.25em;
text-transform: uppercase;
letter-spacing: 0.05em;
line-height: 1.1em;
}
.contentBox .content h2 span{
font-size: 0.75em;
font-weight: 400;
text-transform: initial;
}
.imgBox{
position: relative;
width: 250px;
height: 250px;
background: #fff;
margin-top: 20px;
box-shadow: -10px 10px 10px rgba(0, 0, 0, 0.15);
border: 5px solid #fff;
}
.imgBox img{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.content button{
position: relative;
margin-top: 20px;
padding: 10px 35px;
border-radius: 25px;
border: none;
outline: none;
cursor: pointer;
font-size: 1em;
text-transform: uppercase;
letter-spacing: 0.1em;
font-weight: 500;
color: #333;
box-shadow: -10px 10px 10px rgba(0, 0, 0, 0.15);
}