Skip to content

Commit 547ede2

Browse files
authored
Ensure code in a link adopts link text color. (#245)
1 parent 19ac581 commit 547ede2

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

docs/en/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Sidebar links exist, and point to the `beeware-docs-tools` repo. This confirms t
8181

8282
## Link colors
8383

84-
This link to [the main BeeWare website](https://beeware.org) should be blue in *both* light mode and dark mode.
84+
This link to [the main BeeWare website](https://beeware.org) should be blue in *both* light mode and dark mode. This link [that `INCLUDES CODE` markup](https://beeware.org) should use blue with a shaded background for the code content.
8585

8686
The links in the left and right sidebars should also be blue in both modes.
8787

src/beeware_docs_tools/overrides/assets/stylesheets/beeware_theme.css

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -214,18 +214,6 @@ input.md-search__input, .md-search__suggest, .md-search-result__meta {
214214
color: unset;
215215
}
216216

217-
/* Only color section header links as links */
218-
.md-typeset a,
219-
a.md-nav__link,
220-
a.md-nav__link[for]:focus,
221-
a.md-nav__link[for]:hover {
222-
color: light-dark(#084AFF, #526CFE);
223-
}
224-
225-
.md-nav__item a.md-nav__link--active {
226-
color: light-dark(#30314B, #96ACEE)
227-
}
228-
229217
/* Bump the font weight slightly for h1 and h2. This will make fonts in some scripts,
230218
e.g. Chinese have more consistent weights with Cutive, which is thicker than most
231219
typical 300-weight fonts. Cutive itself does not get emboldened by using 400. */
@@ -292,6 +280,7 @@ a.md-nav__link[for]:hover {
292280
}
293281

294282
.md-typeset a,
283+
.md-typeset a code,
295284
a.md-nav__link,
296285
a.md-nav__link[for]:focus,
297286
a.md-nav__link[for]:hover {

0 commit comments

Comments
 (0)