cloudflare/vinext

Public

mirrored from https://github.com/cloudflare/vinextAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.0.9

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

examples/nextra-docs-template/app/globals.css

232lines · modecode

1:root {
2 --bg: #fff;
3 --bg-secondary: #fafafa;
4 --text: #111;
5 --text-secondary: #666;
6 --text-muted: #999;
7 --border: #e5e7eb;
8 --link: #0070f3;
9 --link-hover: #0050cc;
10 --code-bg: #f3f4f6;
11 --sidebar-width: 260px;
12 --navbar-height: 56px;
13 --content-max-width: 780px;
14}
15
16@media (prefers-color-scheme: dark) {
17 :root {
18 --bg: #111;
19 --bg-secondary: #1a1a1a;
20 --text: #eee;
21 --text-secondary: #a0a0a0;
22 --text-muted: #666;
23 --border: #2a2a2a;
24 --link: #3b82f6;
25 --link-hover: #60a5fa;
26 --code-bg: #1e1e1e;
27 }
28}
29
30* {
31 box-sizing: border-box;
32 margin: 0;
33 padding: 0;
34}
35
36html {
37 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
38 "Helvetica Neue", Arial, sans-serif;
39 background: var(--bg);
40 color: var(--text);
41}
42
43body {
44 min-height: 100vh;
45}
46
47a {
48 color: var(--link);
49 text-decoration: none;
50}
51
52a:hover {
53 color: var(--link-hover);
54 text-decoration: underline;
55}
56
57/* Navbar */
58.navbar {
59 position: sticky;
60 top: 0;
61 z-index: 100;
62 display: flex;
63 align-items: center;
64 justify-content: space-between;
65 height: var(--navbar-height);
66 padding: 0 1.5rem;
67 border-bottom: 1px solid var(--border);
68 background: var(--bg);
69}
70
71.navbar-logo {
72 font-weight: 700;
73 font-size: 1.1rem;
74 color: var(--text);
75 text-decoration: none;
76}
77
78.navbar-logo:hover {
79 color: var(--text);
80 text-decoration: none;
81}
82
83.navbar-links {
84 display: flex;
85 gap: 1.5rem;
86 list-style: none;
87}
88
89.navbar-links a {
90 color: var(--text-secondary);
91 font-size: 0.875rem;
92}
93
94.navbar-links a:hover {
95 color: var(--text);
96 text-decoration: none;
97}
98
99/* Layout */
100.docs-layout {
101 display: flex;
102 min-height: calc(100vh - var(--navbar-height));
103}
104
105/* Sidebar */
106.sidebar {
107 position: sticky;
108 top: var(--navbar-height);
109 width: var(--sidebar-width);
110 height: calc(100vh - var(--navbar-height));
111 overflow-y: auto;
112 padding: 1rem 0;
113 border-right: 1px solid var(--border);
114 flex-shrink: 0;
115}
116
117.sidebar-section {
118 padding: 0.25rem 1rem;
119}
120
121.sidebar-section-title {
122 font-size: 0.75rem;
123 font-weight: 600;
124 text-transform: uppercase;
125 letter-spacing: 0.05em;
126 color: var(--text-muted);
127 margin-bottom: 0.5rem;
128 padding: 0.25rem 0;
129}
130
131.sidebar-link {
132 display: block;
133 padding: 0.35rem 0.75rem;
134 border-radius: 6px;
135 font-size: 0.875rem;
136 color: var(--text-secondary);
137 transition: background 0.15s, color 0.15s;
138}
139
140.sidebar-link:hover {
141 background: var(--bg-secondary);
142 color: var(--text);
143 text-decoration: none;
144}
145
146.sidebar-link.active {
147 background: var(--bg-secondary);
148 color: var(--link);
149 font-weight: 500;
150}
151
152.sidebar-link.nested {
153 padding-left: 1.5rem;
154}
155
156/* Content */
157.docs-content {
158 flex: 1;
159 min-width: 0;
160 max-width: var(--content-max-width);
161 margin: 0 auto;
162 padding: 2rem 2.5rem 4rem;
163}
164
165/* MDX typography */
166.docs-content h1 {
167 font-size: 2rem;
168 font-weight: 700;
169 margin-bottom: 1rem;
170 line-height: 1.3;
171}
172
173.docs-content h2 {
174 font-size: 1.5rem;
175 font-weight: 600;
176 margin-top: 2.5rem;
177 margin-bottom: 0.75rem;
178 padding-bottom: 0.5rem;
179 border-bottom: 1px solid var(--border);
180}
181
182.docs-content h3 {
183 font-size: 1.25rem;
184 font-weight: 600;
185 margin-top: 2rem;
186 margin-bottom: 0.5rem;
187}
188
189.docs-content p {
190 line-height: 1.75;
191 margin-bottom: 1rem;
192 color: var(--text-secondary);
193}
194
195.docs-content ul,
196.docs-content ol {
197 padding-left: 1.5rem;
198 margin-bottom: 1rem;
199}
200
201.docs-content li {
202 line-height: 1.75;
203 color: var(--text-secondary);
204 margin-bottom: 0.25rem;
205}
206
207.docs-content strong {
208 color: var(--text);
209 font-weight: 600;
210}
211
212.docs-content blockquote {
213 border-left: 3px solid var(--border);
214 padding-left: 1rem;
215 margin: 1rem 0;
216 color: var(--text-muted);
217}
218
219.docs-content hr {
220 border: none;
221 border-top: 1px solid var(--border);
222 margin: 2rem 0;
223}
224
225/* Footer */
226.footer {
227 border-top: 1px solid var(--border);
228 padding: 2rem 1.5rem;
229 text-align: center;
230 color: var(--text-muted);
231 font-size: 0.875rem;
232}
233