Skip to content

Commit 9ad893d

Browse files
authored
Add base CSS styles for layout and components
1 parent 2c870d4 commit 9ad893d

File tree

1 file changed

+240
-0
lines changed

1 file changed

+240
-0
lines changed

assets/style.css

Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
/* Base */
2+
* {
3+
box-sizing: border-box;
4+
}
5+
6+
body {
7+
margin: 0;
8+
font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
9+
color: #222;
10+
background: #ffffff;
11+
line-height: 1.6;
12+
}
13+
14+
/* Layout wrapper */
15+
.site-wrapper {
16+
display: flex;
17+
min-height: 100vh;
18+
}
19+
20+
/* Sidebar */
21+
.sidebar {
22+
width: 250px;
23+
background: #f7f9fc;
24+
border-right: 1px solid #e2e6f0;
25+
padding: 20px 18px;
26+
position: sticky;
27+
top: 0;
28+
align-self: flex-start;
29+
max-height: 100vh;
30+
overflow-y: auto;
31+
}
32+
33+
.sidebar-header .brand {
34+
display: flex;
35+
align-items: center;
36+
gap: 10px;
37+
text-decoration: none;
38+
}
39+
40+
.sidebar-header img {
41+
height: 40px;
42+
}
43+
44+
.sidebar-header span {
45+
font-weight: 700;
46+
font-size: 1.1rem;
47+
color: #003d99;
48+
}
49+
50+
.sidebar-tagline {
51+
margin-top: 12px;
52+
font-size: 0.85rem;
53+
color: #555;
54+
}
55+
56+
/* Sidebar nav */
57+
.sidebar-nav ul {
58+
list-style: none;
59+
padding: 0;
60+
margin: 20px 0 0;
61+
}
62+
63+
.sidebar-nav li {
64+
margin-bottom: 4px;
65+
}
66+
67+
.sidebar-nav a {
68+
text-decoration: none;
69+
color: #222;
70+
font-size: 0.95rem;
71+
display: block;
72+
padding: 5px 4px;
73+
border-radius: 4px;
74+
transition: background 0.2s, color 0.2s;
75+
}
76+
77+
.sidebar-nav a:hover {
78+
background: #e4ecff;
79+
color: #003d99;
80+
}
81+
82+
.nav-section-title {
83+
font-size: 0.8rem;
84+
text-transform: uppercase;
85+
letter-spacing: 0.08em;
86+
color: #888;
87+
margin: 14px 0 6px;
88+
}
89+
90+
.nav-parent > span {
91+
font-size: 0.9rem;
92+
font-weight: 600;
93+
color: #003d99;
94+
display: block;
95+
margin: 8px 0 4px;
96+
}
97+
98+
.nav-parent ul {
99+
margin-left: 10px;
100+
margin-bottom: 6px;
101+
}
102+
103+
/* Main content */
104+
.main-content {
105+
flex: 1;
106+
padding: 40px 40px 30px;
107+
}
108+
109+
/* Hero / index sections */
110+
.hero {
111+
max-width: 820px;
112+
margin: 0 auto 50px;
113+
}
114+
115+
.hero h1 {
116+
font-size: 2.6rem;
117+
margin-bottom: 10px;
118+
}
119+
120+
.hero p.subtitle {
121+
font-size: 1.15rem;
122+
color: #555;
123+
margin-top: 0;
124+
}
125+
126+
.hero p.lead {
127+
font-size: 1rem;
128+
color: #555;
129+
margin-top: 18px;
130+
max-width: 680px;
131+
}
132+
133+
.btn-primary {
134+
display: inline-block;
135+
margin-top: 24px;
136+
padding: 10px 20px;
137+
background: #003d99;
138+
color: #fff;
139+
border-radius: 6px;
140+
text-decoration: none;
141+
font-size: 0.95rem;
142+
font-weight: 500;
143+
transition: background 0.2s;
144+
}
145+
146+
.btn-primary:hover {
147+
background: #002f73;
148+
}
149+
150+
/* Pillars / cards */
151+
.section-title {
152+
font-size: 1.6rem;
153+
margin: 40px 0 18px;
154+
}
155+
156+
.pillar-grid {
157+
display: flex;
158+
flex-wrap: wrap;
159+
gap: 20px;
160+
margin-bottom: 40px;
161+
}
162+
163+
.pillar-card {
164+
flex: 1 1 260px;
165+
background: #ffffff;
166+
border-radius: 10px;
167+
padding: 18px 20px;
168+
box-shadow: 0 1px 6px rgba(0,0,0,0.07);
169+
}
170+
171+
.pillar-card h3 {
172+
margin-top: 0;
173+
font-size: 1.1rem;
174+
color: #003d99;
175+
}
176+
177+
.pillar-card p {
178+
font-size: 0.95rem;
179+
color: #444;
180+
margin-bottom: 8px;
181+
}
182+
183+
.pillar-card a {
184+
font-size: 0.9rem;
185+
text-decoration: none;
186+
color: #003d99;
187+
}
188+
189+
/* Footer */
190+
.footer {
191+
margin-top: 60px;
192+
border-top: 1px solid #eee;
193+
padding-top: 18px;
194+
font-size: 0.85rem;
195+
color: #777;
196+
}
197+
198+
/* Mobile toggle */
199+
.sidebar-toggle {
200+
display: none;
201+
position: fixed;
202+
top: 10px;
203+
left: 10px;
204+
z-index: 1100;
205+
border: none;
206+
background: #003d99;
207+
color: white;
208+
border-radius: 4px;
209+
padding: 6px 10px;
210+
font-size: 1.1rem;
211+
}
212+
213+
/* Responsive */
214+
@media (max-width: 900px) {
215+
.site-wrapper {
216+
flex-direction: column;
217+
}
218+
219+
.sidebar {
220+
position: fixed;
221+
left: 0;
222+
top: 0;
223+
bottom: 0;
224+
transform: translateX(-100%);
225+
transition: transform 0.2s ease-out;
226+
z-index: 1000;
227+
}
228+
229+
.site-wrapper.sidebar-open .sidebar {
230+
transform: translateX(0);
231+
}
232+
233+
.main-content {
234+
padding: 60px 16px 24px;
235+
}
236+
237+
.sidebar-toggle {
238+
display: inline-block;
239+
}
240+
}

0 commit comments

Comments
 (0)