Skip to content

Commit 47445a8

Browse files
committed
small styling and language updates to the web flashing tool
1 parent 883ddcd commit 47445a8

2 files changed

Lines changed: 22 additions & 4 deletions

File tree

docs/javascript/firmware_selector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const config = [
33
{
44
title: 'Select Satellite1 Firmware',
5-
description: 'Choose which firmware you\'ll be using with your Satellite1.',
5+
description: 'Which firmware should we flash to your Satellite1?',
66
choices: [
77
{
88
id: "stable",

docs/stylesheets/firmware_selector.css

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ nav.progress {
1818
width: var(--dot-size);
1919
height: var(--dot-size);
2020
margin: 0 var(--dot-gap);
21-
background-color: var(--md-primary-fg-color--dark);
21+
background-color: var(--md-default-fg-color--lighter);
2222
border-radius: 50%;
2323
transition: background-color 200ms;
2424
}
2525

2626
.dot.active {
27-
background-color: var(--md-primary-fg-color);
27+
background-color: #1f2933;
2828
}
2929

3030
.dot.done {
31-
background-color: var(--md-primary-fg-color--light);
31+
background-color: var(--md-default-fg-color--light);
3232
}
3333

3434
.choices {
@@ -189,6 +189,18 @@ nav.progress {
189189
color: var(--md-default-fg-color);
190190
}
191191

192+
[data-md-color-scheme="slate"] #firmware-selector .dot {
193+
background-color: rgba(255, 255, 255, .32);
194+
}
195+
196+
[data-md-color-scheme="slate"] #firmware-selector .dot.active {
197+
background-color: var(--md-primary-fg-color);
198+
}
199+
200+
[data-md-color-scheme="slate"] #firmware-selector .dot.done {
201+
background-color: rgba(255, 255, 255, .58);
202+
}
203+
192204
[data-md-color-scheme="slate"] #firmware-selector .choice-btn:hover {
193205
border-color: #fff;
194206
background-color: rgba(255, 255, 255, .08);
@@ -262,6 +274,12 @@ esp-web-install-button[install-unsupported] > .admonition {
262274
margin: 0 !important;
263275
}
264276

277+
.admonition.example:has(#firmware-selector) {
278+
border: .05rem solid var(--md-default-fg-color--lightest);
279+
border-radius: .1rem;
280+
box-shadow: none;
281+
}
282+
265283
.admonition.example > p:empty:first-of-type {
266284
display: none;
267285
}

0 commit comments

Comments
 (0)