Skip to content

Commit 29e1a79

Browse files
authored
Refactor CSS for content sections and styling
1 parent b186f42 commit 29e1a79

File tree

1 file changed

+30
-170
lines changed

1 file changed

+30
-170
lines changed

assets/style.css

Lines changed: 30 additions & 170 deletions
Original file line numberDiff line numberDiff line change
@@ -182,189 +182,49 @@ 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;
185+
/* Standard section styling */
186+
.content-section {
187+
width: 85%;
188+
max-width: 850px;
189+
margin: 0 auto 50px;
190+
padding: 20px 0;
191+
line-height: 1.75;
259192
}
260193

261-
.sidebar-nav a:hover {
262-
background: #e4ecff;
194+
.content-section h2,
195+
.content-section h3 {
263196
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;
197+
margin-top: 40px;
198+
margin-bottom: 12px;
276199
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;
291200
}
292201

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 {
202+
.content-section p {
314203
font-size: 1rem;
315-
color: #555;
316-
margin-top: 18px;
317-
max-width: 680px;
204+
color: #333;
205+
margin: 14px 0;
318206
}
319207

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;
208+
/* Image styling – modern + responsive */
209+
.content-section img {
210+
width: 100%;
211+
height: auto;
212+
max-width: 700px;
213+
display: block;
214+
margin: 24px auto;
215+
border-radius: 8px;
216+
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
331217
}
332218

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;
219+
/* Optional small caption styling */
220+
.img-caption {
221+
text-align: center;
222+
font-size: 0.82rem;
223+
color: #666;
224+
margin-top: -10px;
225+
margin-bottom: 20px;
356226
}
357227

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-
}
368228

369229
/* Pillars / cards */
370230
.section-title {

0 commit comments

Comments
 (0)