Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
181 lines (161 loc) · 7.14 KB
/
Copy pathstyle.css
File metadata and controls
181 lines (161 loc) · 7.14 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background-color: #0d1117;
color: #c9d1d9;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.6;
display: flex;
flex-direction: column;
min-height: 100vh;
}
a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
height: 60px; background-color: #161b22; border-bottom: 1px solid #30363d;
display: flex; justify-content: space-between; align-items: center;
padding: 0 24px; position: sticky; top: 0; z-index: 100;
}
.header-left { display: flex; align-items: center; gap: 30px; }
.logo-link { display: flex; align-items: baseline; text-decoration: none; }
.logo-link:hover { text-decoration: none; }
.logo { font-weight: 600; font-size: 1.2rem; color: #f0f6fc; transition: color 0.2s; }
.logo-link:hover .logo { color: #58a6ff; }
.logo-docs { color: #8b949e; font-size: 0.9rem; font-weight: 400; }
.header-nav { display: flex; gap: 20px; }
.header-nav a {
color: #8b949e; font-size: 0.95rem; font-weight: 500;
transition: color 0.2s;
}
.header-nav a:hover { color: #f0f6fc; text-decoration: none; }
.header-right { display: flex; align-items: center; gap: 20px; }
.breadcrumbs { font-size: 0.9rem; color: #8b949e; display: flex; gap: 8px; align-items: center; }
.breadcrumbs .sep { color: #30363d; }
.breadcrumbs .current { color: #c9d1d9; }
.github-link { font-size: 0.9rem; color: #8b949e; }
.github-link:hover { color: #c9d1d9; }
.layout { display: flex; flex: 1; width: 100%; max-width: 1600px; margin: 0 auto; }
.sidebar-left {
width: 280px; padding: 20px 10px 20px 24px;
border-right: 1px solid #30363d; flex-shrink: 0;
height: calc(100vh - 60px - 60px);
overflow-y: auto; position: sticky; top: 60px;
}
.sidebar-left::-webkit-scrollbar { width: 6px; }
.sidebar-left::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }
.project-group { margin-bottom: 5px; }
.project-title {
font-size: 0.9rem; text-transform: uppercase; color: #f0f6fc;
letter-spacing: 1px; margin-bottom: 0px; padding: 8px 10px;
cursor: pointer; display: flex; justify-content: space-between; align-items: center;
font-weight: 600; border-radius: 6px;
}
.project-title:hover { background-color: #161b22; }
.project-title .toggle-icon { color: #8b949e; font-size: 0.8rem; transition: transform 0.2s; }
.project-title.open .toggle-icon { transform: rotate(90deg); }
.project-files {
border-left: 2px solid #30363d; margin-left: 19px;
padding-left: 10px; display: none; margin-top: 4px; margin-bottom: 10px;
}
.project-files.open { display: block; }
.nav-item {
display: block; padding: 6px 10px; color: #c9d1d9;
border-radius: 6px; margin-bottom: 2px; font-size: 0.9rem;
cursor: pointer; transition: background 0.2s; border: none;
background: transparent; text-align: left; width: 100%;
}
.nav-item:hover { background-color: #161b22; }
.nav-item.active { background-color: #1f6feb; color: #fff; font-weight: 500; }
.loading-text { color: #8b949e; font-size: 0.9rem; margin-top: 20px; text-align: center; }
.content { flex-grow: 1; padding: 40px 40px; height: calc(100vh - 60px - 60px); overflow-y: auto; }
.content::-webkit-scrollbar { width: 8px; }
.content::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; }
.content-inner { max-width: 800px; margin: 0 auto; }
.home-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-top: 30px;
}
.home-card {
background-color: #161b22;
border: 1px solid #30363d;
border-radius: 8px;
padding: 20px;
transition: transform 0.2s, border-color 0.2s;
cursor: pointer;
}
.home-card:hover {
border-color: #58a6ff;
transform: translateY(-3px);
}
.home-card h3 { color: #f0f6fc; margin-bottom: 8px; font-size: 1.2rem; }
.home-card p { color: #8b949e; font-size: 0.9rem; margin: 0; }
.content-inner h1 { font-size: 2rem; font-weight: 600; color: #f0f6fc; margin-bottom: 16px; border-bottom: 1px solid #30363d; padding-bottom: 8px; }
.content-inner h2 { font-size: 1.5rem; font-weight: 600; color: #f0f6fc; margin-top: 32px; margin-bottom: 16px; border-bottom: 1px solid #30363d; padding-bottom: 8px; }
.content-inner h3 { font-size: 1.25rem; font-weight: 600; color: #f0f6fc; margin-top: 24px; margin-bottom: 16px; }
.content-inner p { margin-bottom: 16px; }
.content-inner ul, .content-inner ol { margin-bottom: 16px; padding-left: 2em; }
.content-inner li { margin-bottom: 4px; }
.content-inner blockquote { margin: 0 0 16px 0; padding: 0 1em; color: #8b949e; border-left: 0.25em solid #30363d; }
.content-inner pre { background-color: #161b22; border: 1px solid #30363d; border-radius: 6px; padding: 16px; overflow-x: auto; margin-bottom: 16px; }
.content-inner code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.9rem; background-color: rgba(110,118,129,0.4); padding: 0.2em 0.4em; border-radius: 6px; }
.content-inner pre code { background-color: transparent; padding: 0; border-radius: 0; }
.content-inner img { max-width: 100%; height: auto; border-radius: 6px; }
.content-inner table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.content-inner th, .content-inner td { padding: 6px 13px; border: 1px solid #30363d; }
.content-inner th { font-weight: 600; background-color: #161b22; }
.sidebar-right {
width: 240px; padding: 40px 24px 40px 10px;
flex-shrink: 0; position: sticky; top: 60px; height: calc(100vh - 60px - 60px);
overflow-y: auto;
}
.toc-container {
border: 1px solid #30363d; border-radius: 8px;
padding: 16px; background-color: rgba(22, 27, 34, 0.3);
}
.toc-title {
font-size: 0.75rem; text-transform: uppercase; color: #8b949e;
font-weight: 600; letter-spacing: 1px; margin-bottom: 12px;
}
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 6px; }
.toc-list a {
color: #8b949e; font-size: 0.85rem; display: block;
border-left: 2px solid transparent; padding-left: 10px;
transition: color 0.2s, border-color 0.2s;
}
.toc-list a:hover { color: #f0f6fc; text-decoration: none; }
.toc-list a.active { color: #58a6ff; border-left-color: #58a6ff; }
.site-footer {
height: 60px; background-color: #161b22; border-top: 1px solid #30363d;
display: flex; align-items: center; padding: 0 24px;
font-size: 0.85rem; color: #8b949e;
}
.footer-content {
display: flex; justify-content: space-between;
width: 100%; max-width: 1600px; margin: 0 auto;
}
.footer-left a { color: #8b949e; }
.footer-left a:hover { color: #f0f6fc; text-decoration: none; }
.footer-right { display: flex; gap: 20px; }
.folder-title {
display: flex;
align-items: center;
padding: 6px 10px;
color: #c9d1d9;
cursor: pointer;
border-radius: 6px;
font-size: 0.9rem;
user-select: none;
}
.folder-title:hover { background-color: #161b22; }
.folder-title .icon { margin-right: 8px; font-size: 0.8rem; color: #8b949e; }
.folder-content {
display: none;
border-left: 1px solid #30363d;
margin-left: 15px;
padding-left: 10px;
}
.folder-content.open { display: block; }
.folder-title.open .icon { transform: rotate(90deg); }