-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathstyle.css
72 lines (65 loc) · 1.8 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
/* Scroll Button Styling */
.scroll-button {
position: fixed;
bottom: 30px;
right: 35px;
background-color: #e74c3c; /* Changed to a warmer red color */
color: white;
border: none;
border-radius: 50%;
width: 60px; /* Slightly larger button */
height: 60px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px; /* Larger icon */
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
cursor: pointer;
opacity: 0;
visibility: hidden;
transition: all 0.4s ease; /* Smoother transition */
z-index: 1000; /* Ensure button stays on top */
}
/* Dark theme */
[data-theme="dark"] .scroll-button {
background-color: #ff6b6b; /* Brighter red for dark theme */
color: #ffffff;
box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}
/* Hover Effect */
.scroll-button:hover {
background-color: #c0392b; /* Darker red on hover */
transform: scale(1.15) translateY(-3px); /* More pronounced hover effect */
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); /* Enhanced shadow on hover */
}
/* Dark theme hover */
[data-theme="dark"] .scroll-button:hover {
background-color: #ff8787; /* Lighter red on hover for dark theme */
box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}
/* Active State */
.scroll-button:active {
transform: scale(0.95); /* Click effect */
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
/* Dark theme active */
[data-theme="dark"] .scroll-button:active {
box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}
/* Show Button When Scrolled */
.scroll-button.show {
opacity: 1;
visibility: visible;
animation: fadeInButton 0.5s ease-out; /* Smooth fade in animation */
}
/* Fade In Animation */
@keyframes fadeInButton {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}