Skip to content

Commit acf7c0c

Browse files
committed
Step 1: split port picker hint into separate blue info-box
- Port picker hint ('select USB JTAG/serial debug unit') now in a blue .info-box (replaces old .skip-link CSS) - BOOT hint stays in its own yellow .hint-box below - Added dark mode support for .info-box - Applied to both stable and staging pages
1 parent f5a75ed commit acf7c0c

2 files changed

Lines changed: 30 additions & 24 deletions

File tree

docs/flash/10_stable_channel.rst

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -185,21 +185,16 @@ All releases are on `GitHub <https://github.com/dadamachines/ctag-tbd/releases>`
185185
color: #374151;
186186
display: none;
187187
}
188-
.sd-recovery .skip-link {
189-
font-size: 0.9em;
190-
color: #2563EB;
191-
cursor: pointer;
192-
text-decoration: underline;
188+
.sd-recovery .info-box {
189+
font-size: 0.88em;
190+
color: #1e40af;
193191
margin-top: 0.5em;
194-
display: inline-block;
195-
padding: 0.3em 0.6em;
192+
display: block;
193+
padding: 0.5em 0.7em;
196194
background: #eff6ff;
197195
border-radius: 4px;
198196
border: 1px solid #bfdbfe;
199-
}
200-
.sd-recovery .skip-link:hover {
201-
color: #1d4ed8;
202-
background: #dbeafe;
197+
line-height: 1.5;
203198
}
204199
.sd-recovery .complete-card {
205200
border: 2px solid #10b981;
@@ -251,6 +246,9 @@ All releases are on `GitHub <https://github.com/dadamachines/ctag-tbd/releases>`
251246
body[data-theme="dark"] .sd-recovery .hint-box {
252247
background: #422006; color: #fbbf24; border-color: #78350f;
253248
}
249+
body[data-theme="dark"] .sd-recovery .info-box {
250+
background: #1e3a5f; color: #93c5fd; border-color: #1e3a5f;
251+
}
254252
body[data-theme="dark"] .sd-recovery .file-log {
255253
background: #0f172a; border-color: #334155; color: #cbd5e1;
256254
}
@@ -287,6 +285,9 @@ All releases are on `GitHub <https://github.com/dadamachines/ctag-tbd/releases>`
287285
body:not([data-theme="light"]) .sd-recovery .hint-box {
288286
background: #422006; color: #fbbf24; border-color: #78350f;
289287
}
288+
body:not([data-theme="light"]) .sd-recovery .info-box {
289+
background: #1e3a5f; color: #93c5fd; border-color: #1e3a5f;
290+
}
290291
body:not([data-theme="light"]) .sd-recovery .file-log {
291292
background: #0f172a; border-color: #334155; color: #cbd5e1;
292293
}
@@ -417,8 +418,10 @@ All releases are on `GitHub <https://github.com/dadamachines/ctag-tbd/releases>`
417418
Connect both USB-C cables: <b>front JTAG port</b> (serial) and <b>back Port&nbsp;#1</b> (SD card drive).
418419
This step flashes the USB Mass Storage firmware via the front port. After reboot the
419420
SD card will appear as a removable drive on the <b>back port</b>.
421+
<div class="info-box">
422+
📌 In the port picker, select <b>"USB JTAG/serial debug unit"</b> (not "Debug Probe").
423+
</div>
420424
<div class="hint-box">
421-
📌 In the port picker, select <b>"USB JTAG/serial debug unit"</b> (not "Debug Probe").<br>
422425
<b>Port not showing?</b> Hold <b>BOOT</b> (between Port&nbsp;#1 and #2) → press <b>Reset</b> → release <b>BOOT</b> → press <b>Reset</b> again.
423426
</div>
424427
</div>

docs/flash/20_staging_channel.rst

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -182,21 +182,16 @@ or any active feature-test branch build.
182182
color: #374151;
183183
display: none;
184184
}
185-
.sd-recovery .skip-link {
186-
font-size: 0.9em;
187-
color: #2563EB;
188-
cursor: pointer;
189-
text-decoration: underline;
185+
.sd-recovery .info-box {
186+
font-size: 0.88em;
187+
color: #1e40af;
190188
margin-top: 0.5em;
191-
display: inline-block;
192-
padding: 0.3em 0.6em;
189+
display: block;
190+
padding: 0.5em 0.7em;
193191
background: #eff6ff;
194192
border-radius: 4px;
195193
border: 1px solid #bfdbfe;
196-
}
197-
.sd-recovery .skip-link:hover {
198-
color: #1d4ed8;
199-
background: #dbeafe;
194+
line-height: 1.5;
200195
}
201196
.sd-recovery .complete-card {
202197
border: 2px solid #10b981;
@@ -248,6 +243,9 @@ or any active feature-test branch build.
248243
body[data-theme="dark"] .sd-recovery .hint-box {
249244
background: #422006; color: #fbbf24; border-color: #78350f;
250245
}
246+
body[data-theme="dark"] .sd-recovery .info-box {
247+
background: #1e3a5f; color: #93c5fd; border-color: #1e3a5f;
248+
}
251249
body[data-theme="dark"] .sd-recovery .file-log {
252250
background: #0f172a; border-color: #334155; color: #cbd5e1;
253251
}
@@ -281,6 +279,9 @@ or any active feature-test branch build.
281279
body:not([data-theme="light"]) .sd-recovery .hint-box {
282280
background: #422006; color: #fbbf24; border-color: #78350f;
283281
}
282+
body:not([data-theme="light"]) .sd-recovery .info-box {
283+
background: #1e3a5f; color: #93c5fd; border-color: #1e3a5f;
284+
}
284285
body:not([data-theme="light"]) .sd-recovery .file-log {
285286
background: #0f172a; border-color: #334155; color: #cbd5e1;
286287
}
@@ -412,8 +413,10 @@ or any active feature-test branch build.
412413
Connect both USB-C cables: <b>front JTAG port</b> (serial) and <b>back Port&nbsp;#1</b> (SD card drive).
413414
This step flashes the USB Mass Storage firmware via the front port. After reboot the
414415
SD card will appear as a removable drive on the <b>back port</b>.
416+
<div class="info-box">
417+
📌 In the port picker, select <b>"USB JTAG/serial debug unit"</b> (not "Debug Probe").
418+
</div>
415419
<div class="hint-box">
416-
📌 In the port picker, select <b>"USB JTAG/serial debug unit"</b> (not "Debug Probe").<br>
417420
<b>Port not showing?</b> Hold <b>BOOT</b> (between Port&nbsp;#1 and #2) → press <b>Reset</b> → release <b>BOOT</b> → press <b>Reset</b> again.
418421
</div>
419422
</div>

0 commit comments

Comments
 (0)