forked from ML-Fusion-Lab/ML-Fusion-Lab-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scroll.css
61 lines (54 loc) · 1.17 KB
/
scroll.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
#scrollTopBtn {
position: fixed;
bottom: 20px;
right: 98px;
display: none;
width: 60px;
height: 60px;
border-radius: 50%;
background-color: #00A6FF;
color: white;
border: none;
font-size: 20px;
display: flex;
justify-content: center;
align-items: center;
line-height: 60px;
padding: 5px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
cursor: pointer;
z-index: 100;
transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
#scrollTopBtn:hover {
background-color: #007BBF;
box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.25);
transform: translateY(-2px);
}
#scrollTopBtn i {
font-size: 25px;
margin: 0;
padding: 0;
line-height: 1;
}
#scrollTopBtn:focus {
outline: none;
box-shadow: 0px 0px 0px 4px rgba(0, 166, 255, 0.5);
}
::-webkit-scrollbar {
width: 0.8em;
}
::-webkit-scrollbar-track {
background: #333333;
border-radius: 100vw;
margin-block: 0.5em;
}
::-webkit-scrollbar-thumb {
background-color: #00A6FF;
border-radius: 10vw;
}
@supports (scrollbar-color: #00A6FF) {
* {
scrollbar-color: #00A6FF #333333;
}
}