Skip to content

Commit 0b2b16b

Browse files
authored
Merge pull request #227 from javaevolved/brunoborges-potential-doodle
Improve article accessibility and mobile layout
2 parents b982ff6 + b3e3837 commit 0b2b16b

1 file changed

Lines changed: 99 additions & 2 deletions

File tree

site/styles.css

Lines changed: 99 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ button { font: inherit; cursor: pointer; border: none; background: none; }
4545
ul, ol { list-style: none; }
4646
code, pre { font-family: 'JetBrains Mono', monospace; }
4747

48+
:where(a, button, [role="button"], [role="option"]):focus-visible {
49+
outline: 3px solid var(--blue);
50+
outline-offset: 3px;
51+
}
52+
4853
/* ---------- Root Variables (Dark) ---------- */
4954
:root {
5055
--bg: #0b0b0f;
@@ -53,7 +58,7 @@ code, pre { font-family: 'JetBrains Mono', monospace; }
5358
--border: #25252f;
5459
--border-light: #2f2f3a;
5560
--text: #e4e4e7;
56-
--text-muted: #6b6b76;
61+
--text-muted: #7d7d89;
5762
--accent: #fb923c;
5863
--accent-dim: #f97316;
5964
--green: #34d399;
@@ -127,7 +132,7 @@ code, pre { font-family: 'JetBrains Mono', monospace; }
127132
--border: #25252f;
128133
--border-light: #2f2f3a;
129134
--text: #e4e4e7;
130-
--text-muted: #6b6b76;
135+
--text-muted: #7d7d89;
131136
--accent: #fb923c;
132137
--accent-dim: #f97316;
133138
--green: #34d399;
@@ -204,6 +209,32 @@ nav {
204209
gap: 16px;
205210
}
206211

212+
.nav-arrows {
213+
display: flex;
214+
align-items: center;
215+
gap: 4px;
216+
}
217+
218+
.nav-arrows a,
219+
.nav-arrow-disabled {
220+
display: inline-flex;
221+
align-items: center;
222+
justify-content: center;
223+
min-width: 28px;
224+
min-height: 28px;
225+
border-radius: 6px;
226+
}
227+
228+
.nav-arrows a:hover {
229+
color: var(--accent);
230+
background: var(--surface-2);
231+
}
232+
233+
.nav-arrow-disabled {
234+
color: var(--text-muted);
235+
opacity: 0.5;
236+
}
237+
207238
.plugin-nav-link {
208239
color: var(--text);
209240
font-size: 0.85rem;
@@ -1997,6 +2028,10 @@ footer a:hover {
19972028
display: none;
19982029
}
19992030

2031+
.github-link {
2032+
display: none;
2033+
}
2034+
20002035
.nav-inner {
20012036
padding: 0 12px;
20022037
}
@@ -2140,6 +2175,43 @@ footer a:hover {
21402175

21412176
/* ---------- Responsive: ≤ 500px ---------- */
21422177
@media (max-width: 500px) {
2178+
.nav-right {
2179+
gap: 4px;
2180+
}
2181+
2182+
.theme-toggle,
2183+
.locale-toggle,
2184+
.back-link,
2185+
.nav-arrows a,
2186+
.nav-arrow-disabled {
2187+
min-width: 44px;
2188+
min-height: 44px;
2189+
}
2190+
2191+
.back-link {
2192+
display: inline-flex;
2193+
align-items: center;
2194+
justify-content: center;
2195+
width: 44px;
2196+
overflow: hidden;
2197+
border-radius: var(--radius-sm);
2198+
font-size: 0;
2199+
white-space: nowrap;
2200+
}
2201+
2202+
.back-link::before {
2203+
content: "←";
2204+
font-size: 1rem;
2205+
}
2206+
2207+
[dir="rtl"] .back-link::before {
2208+
content: "→";
2209+
}
2210+
2211+
.nav-arrows {
2212+
gap: 0;
2213+
}
2214+
21432215
.hero-actions,
21442216
.plugin-hero-actions {
21452217
align-items: stretch;
@@ -2158,11 +2230,36 @@ footer a:hover {
21582230
min-width: unset;
21592231
}
21602232

2233+
.article {
2234+
padding-inline: 16px;
2235+
}
2236+
2237+
.breadcrumb {
2238+
flex-wrap: wrap;
2239+
}
2240+
2241+
.bs-card {
2242+
align-items: flex-start;
2243+
flex-direction: column;
2244+
gap: 8px;
2245+
padding: 18px;
2246+
}
2247+
2248+
.bs-desc {
2249+
line-height: 1.55;
2250+
}
2251+
21612252
.hero-compare-side {
21622253
padding: 20px 16px;
21632254
}
21642255
}
21652256

2257+
@media (max-width: 400px) {
2258+
.nav-arrows {
2259+
display: none;
2260+
}
2261+
}
2262+
21662263
/* Copilot callout banner */
21672264
.copilot-callout {
21682265
max-width: 960px;

0 commit comments

Comments
 (0)