Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
93 lines (79 loc) · 3.82 KB
/
Copy pathstyle.css
File metadata and controls
93 lines (79 loc) · 3.82 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
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--bg: #0f172a;
--nav-bg: rgba(15, 23, 42, 0.85);
--text: #f1f5f9;
--text-muted: #94a3b8;
--accent: #6366f1;
--accent-light: #818cf8;
--card-bg: rgba(255,255,255,0.05);
--border: rgba(255,255,255,0.1);
}
body.light {
--bg: #f8fafc;
--nav-bg: rgba(255,255,255,0.85);
--text: #1e293b;
--text-muted: #64748b;
--card-bg: rgba(0,0,0,0.03);
--border: rgba(0,0,0,0.08);
}
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; transition: background 0.4s ease, color 0.4s ease; }
.navbar {
position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
width: calc(100% - 2rem); max-width: 700px; z-index: 100;
background: var(--nav-bg); backdrop-filter: blur(20px);
border: 1px solid var(--border); border-radius: 50px;
transition: all 0.4s ease;
}
.navbar.scrolled { box-shadow: 0 10px 40px rgba(0,0,0,0.15); }
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.5rem 0.5rem 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.1rem; }
.logo i { color: var(--accent); font-size: 1.3rem; transition: transform 0.4s ease; }
.logo:hover i { transform: rotate(360deg); }
.nav-links {
display: flex; align-items: center; gap: 0.25rem; list-style: none;
position: relative; background: var(--card-bg); border-radius: 50px; padding: 0.35rem;
}
.nav-link {
display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.85rem;
text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.85rem;
border-radius: 50px; transition: color 0.3s ease; position: relative; z-index: 2;
}
.nav-link i { font-size: 0.85rem; }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--accent); }
.nav-indicator {
position: absolute; height: calc(100% - 0.7rem); background: var(--accent);
border-radius: 50px; opacity: 0.15; z-index: 1;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-toggle, .menu-toggle {
width: 40px; height: 40px; border: none; border-radius: 50%;
background: var(--card-bg); color: var(--text); font-size: 1rem; cursor: pointer;
transition: all 0.25s ease; display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: var(--accent); color: #fff; transform: rotate(15deg); }
.menu-toggle { display: none; }
.content { padding: 6rem 2rem 2rem; max-width: 900px; margin: 0 auto; }
.page { display: none; animation: pageIn 0.5s ease; }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.page-content { text-align: center; }
.page-content h1 { font-size: 3rem; margin-bottom: 1rem; }
.page-content p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.6; max-width: 500px; margin: 0 auto 2rem; }
.hero-icons { font-size: 6rem; color: var(--accent); opacity: 0.3; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@media (max-width: 600px) {
.nav-links {
position: fixed; top: 5rem; left: 1rem; right: 1rem; flex-direction: column;
background: var(--nav-bg); border-radius: 20px; padding: 1rem; gap: 0.5rem;
border: 1px solid var(--border); backdrop-filter: blur(20px);
transform: translateY(-150%); transition: transform 0.4s ease; opacity: 0;
}
.nav-links.open { transform: translateY(0); opacity: 1; }
.nav-link { width: 100%; justify-content: center; padding: 0.75rem; }
.nav-indicator { display: none; }
.menu-toggle { display: flex; }
.page-content h1 { font-size: 2rem; }
}