-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
106 lines (89 loc) · 1.74 KB
/
style.css
File metadata and controls
106 lines (89 loc) · 1.74 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
#floating-nav {
position: fixed;
top: 10px;
left: 50%;
transform: translate(-50%, -16px) scale(.96);
opacity: 0;
pointer-events: none;
display: flex;
max-width: fit-content !important;
flex-direction: row !important;
gap: 12px;
padding: 10px 16px;
border-radius: 16px;
z-index: 999999;
transition: all .35s cubic-bezier(.22, 1, .36, 1);
}
#floating-nav.show {
opacity: 1;
transform: translate(-50%, 0) scale(1);
pointer-events: auto;
}
#floating-nav button {
width: 38px !important;
height: 38px !important;
border-radius: 12px;
border: none;
cursor: pointer;
display: grid;
place-items: center;
position: relative;
transition: transform .15s ease, box-shadow .2s ease;
}
#floating-nav svg {
width: 20px;
height: 20px;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
#floating-nav button:hover {
transform: translateY(-2px);
}
#floating-nav button.tap {
transform: scale(.92);
}
/* Tooltips */
.tooltip {
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%) translateY(6px);
opacity: 0;
padding: 5px 10px;
font-size: 0.8rempx;
border-radius: 8px;
white-space: nowrap;
pointer-events: none;
transition: all .2s ease;
}
button:hover .tooltip {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
:root {
--accent: #ffffff;
}
@media (prefers-color-scheme: dark) {
:root {
--accent: #d8d8d8;
}
}
/* ===== Scrollbar ===== */
::-webkit-scrollbar {
width: 4px;
height: 4px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--accent);
border-radius: 4px;
cursor: grab;
}
::-webkit-scrollbar-thumb:active {
cursor: grabbing;
}