-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcaspone.css
More file actions
47 lines (41 loc) · 1.01 KB
/
caspone.css
File metadata and controls
47 lines (41 loc) · 1.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
/* Floating Button Styles */
:root {
--floating-button-bg: sandybrown;
--floating-button-color: white;
--floating-button-flipped-bg: gray;
}
.floating-button {
position: fixed;
bottom: 20px;
left: 20px;
width: 55px;
height: 55px;
background-color: var(--floating-button-bg);
color: white;
border-radius: 50%;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
z-index: 9999; /* Ensure the button is on top */
transition: transform 0.6s, background-color 0.3s;
transform: perspective(600px) rotateY(0);
}
.floating-button.is-flipped {
background-color: var(--floating-button-flipped-bg);
transform: perspective(600px) rotateY(180deg);
}
.floating-button-hidden {
display: none;
}
/* Cookie Icon Styles */
.floating-button svg {
width: 40px;
height: 40px;
fill: white;
transition: transform 0.6s;
}
.is-flipped #cookieIcon {
transform: rotate(180deg);
}