Skip to content

Commit 9ae8428

Browse files
authored
fix white on white text in getting-started-heading (#5272)
1 parent 784eb35 commit 9ae8428

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

content/components/nrf52.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Support for all aspects of ESPHome on the NRF52 is still in development.
1717
```yaml
1818
# Example configuration entry
1919
nrf52:
20-
board: adafruit_feather_nrf52840
20+
board: adafruit_feather_nrf52840
2121
```
2222
2323
## Configuration variables
@@ -41,7 +41,7 @@ Flashing this bootloader requires an SWD connection, for which a programmer is n
4141
```yaml
4242
# Example configuration entry
4343
nrf52:
44-
board: adafruit_feather_nrf52840
44+
board: adafruit_feather_nrf52840
4545
```
4646

4747
## Flashing with Adafruit nRF52 Bootloader
@@ -61,7 +61,7 @@ This bootloader supports updates over USB CDC.
6161
```yaml
6262
# Example configuration entry
6363
nrf52:
64-
board: adafruit_itsybitsy_nrf52840
64+
board: adafruit_itsybitsy_nrf52840
6565
```
6666

6767
## GPIO Pin Numbering

themes/esphome-theme/assets/css/main.css

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
--dropdown-bg: #fff;
2727
--dropdown-text: #333;
2828
--footer-bg: #111;
29-
--footer-text: #333;
29+
--footer-text: #e1e1e1;
3030
--border-color: #e0e0e0;
3131
--link-accent: #007070;
3232
--component-card-bg: #fff;
@@ -239,7 +239,7 @@ img.align-right, figure.align-right, .figure.align-right, object.align-right {
239239
}
240240

241241
.sidebar-content.scroll-trap {
242-
top: var(--nav-height);
242+
top: calc(var(--nav-height) + 1em);
243243
max-height: calc(100vh - var(--nav-height) - 2em);
244244
position: sticky;
245245
overflow-y: auto;
@@ -777,9 +777,13 @@ img.align-right, figure.align-right, .figure.align-right, object.align-right {
777777
}
778778
}
779779

780-
.getting-started-heading, .footer-heading {
780+
.footer-heading {
781781
font-size: 1.5em;
782-
color: white;
782+
color: var(--footer-text);
783+
}
784+
.getting-started-heading {
785+
font-size: 1.5em;
786+
color: var(--getting-started-text);
783787
}
784788

785789
.page-container {
@@ -794,7 +798,10 @@ main {
794798
max-width: var(--max-page-width);
795799
width: 100%;
796800
margin: 0 auto;
797-
padding: 2em;
801+
padding-bottom: 2em;
802+
padding-left: 2em;
803+
padding-right: 2em;
804+
padding-top: 0;
798805
margin-top: var(--nav-height); /* Add space for the fixed header */
799806
flex: 1;
800807
}
@@ -805,10 +812,9 @@ main {
805812
}
806813

807814
.sidebar {
808-
background: var(--sidebar-background);
809815
width: 300px;
810816
flex-shrink: 0;
811-
background: var(--sidebar-background);
817+
background-color: var(--sidebar-background);
812818
color: var(--text-color);
813819
border-color: var(--border-color);
814820
}
@@ -1233,14 +1239,20 @@ figcaption {
12331239
display: none;
12341240
}
12351241
}
1242+
1243+
@media (max-width: 700px) {
1244+
.desktop-only {
1245+
display: none;
1246+
}
1247+
}
12361248
/* Responsive */
12371249
/* @media (max-width: var(--mobile-width-stop)) { // sadly does not work */
12381250
@media (max-width: 1000px) {
12391251
.sidebar-fixed {
12401252
display: none;
12411253
}
12421254
.sidebar-mobile {
1243-
margin-top: calc(var(--nav-height) + 32px); /* Add space for the fixed header */
1255+
margin-top: var(--nav-height); /* Add space for the fixed header */
12441256
}
12451257
.sticky-nav {
12461258
padding: 0.5em 1em;
@@ -1434,21 +1446,8 @@ details {
14341446
.build-info {
14351447
position: absolute;
14361448
text-align: left;
1437-
bottom: 0.5rem;
1438-
left: 0.5rem;
1439-
}
1440-
1441-
.print-button {
1442-
background-color: rgba(255, 255, 255, 0.1);
1443-
position: absolute;
14441449
top: 0.5rem;
14451450
left: 0.5rem;
1446-
width: 3rem;
1447-
padding: 0.5rem;
1448-
}
1449-
1450-
.print-button:hover {
1451-
background-color: rgba(255, 255, 255, 0.2);
14521451
}
14531452

14541453
.build-info-button {
@@ -1482,6 +1481,7 @@ details {
14821481

14831482
.build-info-content {
14841483
background-color: var(--background-color);
1484+
color: var(--text-color);
14851485
margin: 15% auto;
14861486
padding: 20px;
14871487
border: 1px solid var(--border-color);

themes/esphome-theme/layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
<line x1="12" y1="16" x2="12" y2="12"></line>
200200
<line x1="12" y1="8" x2="12" y2="8"></line>
201201
</svg>
202-
<span>Release {{ .Site.Data.version.release }}</span>
202+
<span class="desktop-only">Release</span><span> {{ .Site.Data.version.release }}</span>
203203
</button>
204204
</div>
205205
</div>

0 commit comments

Comments
 (0)