Skip to content

Commit b186f42

Browse files
authored
Add base styles and layout for sidebar and content
1 parent 6b33e79 commit b186f42

File tree

1 file changed

+276
-0
lines changed

1 file changed

+276
-0
lines changed

assets/style.css

Lines changed: 276 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,282 @@ table {
182182
padding: 10px;
183183
}
184184

185+
* Base */
186+
* {
187+
box-sizing: border-box;
188+
}
189+
190+
body {
191+
margin: 0;
192+
font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
193+
color: #222;
194+
background: #ffffff;
195+
line-height: 1.6;
196+
}
197+
198+
/* Layout wrapper */
199+
.site-wrapper {
200+
display: flex;
201+
min-height: 100vh;
202+
}
203+
204+
/* Sidebar */
205+
.sidebar {
206+
width: 250px;
207+
background: #f7f9fc;
208+
border-right: 1px solid #e2e6f0;
209+
padding: 20px 18px;
210+
position: sticky;
211+
top: 0;
212+
align-self: flex-start;
213+
max-height: 100vh;
214+
overflow-y: auto;
215+
}
216+
217+
.sidebar-header .brand {
218+
display: flex;
219+
align-items: center;
220+
gap: 10px;
221+
text-decoration: none;
222+
}
223+
224+
.sidebar-header img {
225+
height: 40px;
226+
}
227+
228+
.sidebar-header span {
229+
font-weight: 700;
230+
font-size: 1.1rem;
231+
color: #003d99;
232+
}
233+
234+
.sidebar-tagline {
235+
margin-top: 12px;
236+
font-size: 0.85rem;
237+
color: #555;
238+
}
239+
240+
/* Sidebar nav */
241+
.sidebar-nav ul {
242+
list-style: none;
243+
padding: 0;
244+
margin: 20px 0 0;
245+
}
246+
247+
.sidebar-nav li {
248+
margin-bottom: 4px;
249+
}
250+
251+
.sidebar-nav a {
252+
text-decoration: none;
253+
color: #222;
254+
font-size: 0.95rem;
255+
display: block;
256+
padding: 5px 4px;
257+
border-radius: 4px;
258+
transition: background 0.2s, color 0.2s;
259+
}
260+
261+
.sidebar-nav a:hover {
262+
background: #e4ecff;
263+
color: #003d99;
264+
}
265+
266+
.nav-section-title {
267+
font-size: 0.8rem;
268+
text-transform: uppercase;
269+
letter-spacing: 0.08em;
270+
color: #888;
271+
margin: 14px 0 6px;
272+
}
273+
274+
.nav-parent > span {
275+
font-size: 0.9rem;
276+
font-weight: 600;
277+
color: #003d99;
278+
display: block;
279+
margin: 8px 0 4px;
280+
}
281+
282+
.nav-parent ul {
283+
margin-left: 10px;
284+
margin-bottom: 6px;
285+
}
286+
287+
/* Main content */
288+
.main-content {
289+
flex: 1;
290+
padding: 40px 40px 30px;
291+
}
292+
293+
/* Hero / index sections */
294+
.hero {
295+
max-width: 820px;
296+
margin: 0 auto 50px;
297+
background: #f7f9fc;
298+
text-align: center;
299+
border-bottom: 1px solid #e5e9f2;
300+
}
301+
302+
.hero h1 {
303+
font-size: 2.6rem;
304+
margin-bottom: 10px;
305+
}
306+
307+
.hero p.subtitle {
308+
font-size: 1.15rem;
309+
color: #555;
310+
margin-top: 0;
311+
}
312+
313+
.hero p.lead {
314+
font-size: 1rem;
315+
color: #555;
316+
margin-top: 18px;
317+
max-width: 680px;
318+
}
319+
320+
.btn-primary {
321+
display: inline-block;
322+
margin-top: 24px;
323+
padding: 10px 20px;
324+
background: #003d99;
325+
color: #fff;
326+
border-radius: 6px;
327+
text-decoration: none;
328+
font-size: 0.95rem;
329+
font-weight: 500;
330+
transition: background 0.2s;
331+
}
332+
333+
.btn-primary:hover {
334+
background: #002f73;
335+
}
336+
.btn-container {
337+
margin-top: 25px;
338+
}
339+
.btn {
340+
display: inline-block;
341+
background: #0055cc;
342+
color: white;
343+
text-decoration: none;
344+
padding: 10px 20px;
345+
border-radius: 6px;
346+
margin: 6px;
347+
font-weight: 500;
348+
transition: background 0.3s;
349+
}
350+
.btn:hover { background: #003f99; }
351+
section {
352+
width: 85%;
353+
max-width: 950px;
354+
margin: auto;
355+
padding: 40px 0;
356+
}
357+
358+
table {
359+
width: 100%;
360+
border-collapse: collapse;
361+
margin-top: 20px;
362+
}
363+
table th, table td {
364+
border-bottom: 1px solid #eee;
365+
text-align: left;
366+
padding: 10px;
367+
}
368+
369+
/* Pillars / cards */
370+
.section-title {
371+
font-size: 1.6rem;
372+
margin: 40px 0 18px;
373+
}
374+
375+
.pillar-grid {
376+
display: flex;
377+
flex-wrap: wrap;
378+
gap: 20px;
379+
margin-bottom: 40px;
380+
}
381+
382+
.pillar-card {
383+
flex: 1 1 260px;
384+
background: #ffffff;
385+
border-radius: 10px;
386+
padding: 18px 20px;
387+
box-shadow: 0 1px 6px rgba(0,0,0,0.07);
388+
}
389+
390+
.pillar-card h3 {
391+
margin-top: 0;
392+
font-size: 1.1rem;
393+
color: #003d99;
394+
}
395+
396+
.pillar-card p {
397+
font-size: 0.95rem;
398+
color: #444;
399+
margin-bottom: 8px;
400+
}
401+
402+
.pillar-card a {
403+
font-size: 0.9rem;
404+
text-decoration: none;
405+
color: #003d99;
406+
}
407+
408+
/* Footer */
409+
.footer {
410+
margin-top: 60px;
411+
border-top: 1px solid #eee;
412+
padding-top: 18px;
413+
font-size: 0.85rem;
414+
color: #777;
415+
}
416+
417+
/* Mobile toggle */
418+
.sidebar-toggle {
419+
display: none;
420+
position: fixed;
421+
top: 10px;
422+
left: 10px;
423+
z-index: 1100;
424+
border: none;
425+
background: #003d99;
426+
color: white;
427+
border-radius: 4px;
428+
padding: 6px 10px;
429+
font-size: 1.1rem;
430+
}
431+
432+
/* Responsive */
433+
@media (max-width: 900px) {
434+
.site-wrapper {
435+
flex-direction: column;
436+
}
437+
438+
.sidebar {
439+
position: fixed;
440+
left: 0;
441+
top: 0;
442+
bottom: 0;
443+
transform: translateX(-100%);
444+
transition: transform 0.2s ease-out;
445+
z-index: 1000;
446+
}
447+
448+
.site-wrapper.sidebar-open .sidebar {
449+
transform: translateX(0);
450+
}
451+
452+
.main-content {
453+
padding: 60px 16px 24px;
454+
}
455+
456+
.sidebar-toggle {
457+
display: inline-block;
458+
}
459+
}
460+
185461
/* Pillars / cards */
186462
.section-title {
187463
font-size: 1.6rem;

0 commit comments

Comments
 (0)