-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
92 lines (82 loc) · 2.09 KB
/
Copy pathstyle.css
File metadata and controls
92 lines (82 loc) · 2.09 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
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");
/* Text Selection */
::selection {
background-color: #3b82f6; /* blue-500 */
color: #ffffff;
}
.dark ::selection {
background-color: #60a5fa; /* blue-400 */
color: #0f172a; /* slate-900 */
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: #cbd5e1; /* slate-300 */
border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
background: #475569; /* slate-600 */
}
::-webkit-scrollbar-thumb:hover {
background: #94a3b8; /* slate-400 */
}
.dark ::-webkit-scrollbar-thumb:hover {
background: #64748b; /* slate-500 */
}
/* Glassmorphism Utilities */
.glass {
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.5);
}
.dark .glass {
background: rgba(15, 23, 42, 0.6); /* slate-900 with opacity */
border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Navigation Sliding Marker */
.nav-marker {
position: absolute;
left: 0;
width: 2px;
background-color: #3b82f6; /* blue-500 */
border-radius: 99px;
/* Animates Position, Height, Opacity, and Transform */
transition:
top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
opacity 0.3s ease-out,
transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28); /* Subtle spring effect */
transform: translateY(0) scaleY(1);
opacity: 1;
}
/* Hidden State (managed by JS via Tailwind's opacity-0 class, but we override functionality here if needed,
active JS adds 'opacity-0' class which typically just sets opacity: 0.
We hook into that state to add transform properties) */
.nav-marker.opacity-0 {
opacity: 0;
transform: translateY(-8px) scaleY(0.8);
}
.dark .nav-marker {
background-color: #60a5fa; /* blue-400 */
}
/* Enhancements */
.animate-fade-in {
animation: fadeIn 0.5s ease-out forwards;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}