-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyle.css
137 lines (136 loc) · 2.91 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
132
133
134
135
136
137
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500&display=swap');
*{
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
.container{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
width: 100%;
background: #1b1f29;
}
.card{
position: relative;
width: 400px;
height: 90px;
background: #f66335;
border-radius: 20px;
transition: 0.5s ease-in-out;
filter: drop-shadow(-20px 20px 40px #f6633544);
}
.card.active{
height: 450px;
}
.toggle{
position: absolute;
cursor: pointer;
bottom: -60px;
left: 50%;
transform: translate(-50%);
width: 70px;
height: 60px;
background-color: #f66335;
border-bottom-left-radius: 35px;
border-bottom-right-radius: 35px;
display: flex;
align-items: center;
justify-content: center;
font-size: 30px;
}
.toggle::before{
content: '';
position: absolute;
left: -34px;
width: 35px;
height: 35px;
background: transparent;
border-top-right-radius: 35px;
box-shadow: 11px -10px 0 10px #f66335;
}
.toggle::after{
content: '';
position: absolute;
right: -34px;
width: 35px;
height: 35px;
background: transparent;
border-top-left-radius: 35px;
box-shadow: -11px -10px 0 10px #f66335;
}
.card .toggle span{
transition: 0.5s ease-in-out;
}
.card.active .toggle span{
transform: rotate(180deg);
}
.inner-box{
position: absolute;
inset: 0;
overflow: hidden;
}
.inner-box .content{
position: relative;
padding: 20px;
text-align: center;
z-index: 5;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.inner-box .content h2{
color: #fff;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05em;
line-height: 1.1em;
}
.inner-box .content h2 span{
font-size: 0.75em;
font-weight: 400;
text-transform: initial;
}
.img{
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;
}
.img img{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.content .links{
margin-top: 40px;
}
.content a{
position: relative;
padding: 10px 30px;
text-decoration: none;
color: #fff;
background: transparent;
font-size: 14px;
border: 2px solid #000;
border-radius: 30px;
border-top-right-radius: 0;
transition: 0.5s;
cursor: pointer;
}
.content a:first-child{
background-image: linear-gradient(45deg, #df4881, #c430d7);
margin-right: 10px;
}
.content a:hover{
border-top-right-radius: 30px;
}