Repository navigation
Expand file tree
/
Copy pathStyle.css
More file actions
121 lines (106 loc) · 2.01 KB
/
Copy pathStyle.css
File metadata and controls
121 lines (106 loc) · 2.01 KB
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
*{
box-sizing:border-box;
margin: 0;
padding: 0;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.container{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.button{
cursor: pointer;
background-color: rgb(32, 32, 32);
color: aliceblue;
text-align: center;
padding: 1rem;
margin: 1rem;
border: none;
outline: none;
box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.1);
z-index: 999;
transition: 0.5s;
font-size: 2rem;
}
.button:active{
transform: translateY(10%) translateX(10%);
box-shadow: 0px 0px 0px #fff;
}
.notification{
width: 50px;
display: flex;
justify-content: center;
align-items: center;
height: inherit;
position: relative;
color: #f2f2f2;
}
.notification::after{
min-width: 20px;
height: 20px;
content: attr(data-count);
display: flex;
justify-content: center;
align-items: center;
background-color: rgb(236, 36, 170);
position: absolute;
top: -5px;
right: 5px;
transition: 0.3s;
border-radius: 50%;
opacity: 0;
transform: scale(0.5);
}
.notification::before{
content: "\f0f3";
font-family: "Font Awesome 6 Free";
font-weight: 900;
display: block;
color: black;
font-size: 3rem;
margin-bottom: 1rem;
}
.notification.count::after{
opacity: 1;
transform: scale(1);
}
.notification.notify::before{
animation:bell 1s ease-out;
transform-origin: center top ;
}
@keyframes bell {
0% {
transform: rotate(40deg);
}
12.5% {
transform: rotate(-35deg);
}
25% {
transform: rotate(30deg);
}
37.5% {
transform: rotate(-25deg);
}
50% {
transform: rotate(20deg);
}
62.5% {
transform: rotate(-15deg);
}
75% {
transform: rotate(10deg);
}
87.5% {
transform: rotate(-5deg);
}
100% {
transform: rotate(0deg);
}
}