-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathcursor.css
More file actions
51 lines (45 loc) · 983 Bytes
/
cursor.css
File metadata and controls
51 lines (45 loc) · 983 Bytes
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
:root {
--primary-color: #6c5ce7;
--accent-color: #fd79a8;
--dark-color: #2d3436;
--light-color: #f5f6fa;
--success-color: #00b894;
--warning-color: #fdcb6e;
--danger-color: #d63031;
}
.cursor-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 9999;
}
.cursor-dot {
position: fixed;
width: 28px;
height: 28px;
background: var(--accent-color);
border-radius: 50%;
pointer-events: none;
transform: translate(-50%, -50%);
transition: transform 0.2s ease-out, opacity 0.2s ease-out;
will-change: transform, opacity;
}
/* Light Mode Cursor */
body.light-mode .cursor-dot {
background-color: var(--primary-color);
}
/* OLED Mode Cursor */
body.oled-mode .cursor-dot {
background-color: #ffffff;
}
@media (max-width: 768px) {
.cursor-container {
display: none;
}
}
body.cursor-disabled .cursor-container {
display: none !important;
}