Skip to content

Commit

Permalink
Improve breadcrumb styling
Browse files Browse the repository at this point in the history
Use a consistent color for both links and regular text and provide
a little more margin from for the header.
  • Loading branch information
philwebb authored and oodamien committed Mar 14, 2024
1 parent f30ab11 commit 7e3b08a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/css/spring/spring-doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,7 @@ mark {

.doc > h1#page-title {
font-size: calc(42 / var(--rem-base) * 1rem);
margin: 0.2rem 0;
}

@media screen and (min-width: 769px) {
.doc > h1#page-title {
margin-top: 0.2rem;
}
margin: 0.8rem 0 0.2rem 0;
}

.doc > h1#page-title + aside.toc.embedded {
Expand Down Expand Up @@ -309,3 +303,14 @@ mark {
.admonitionblock.latest {
padding: 1.5rem 1rem 0;
}

/* Improve Breadcrumbs */

.breadcrumbs,
.breadcrumbs a {
color: var(--breadcrumb-font-color);
}

.breadcrumbs a:hover {
color: var(--breadcrumb-hover-font-color);
}
4 changes: 4 additions & 0 deletions src/css/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@
--page-version-menu-background: var(--color-smoke-70);
--page-version-missing-font-color: var(--color-gray-30);

/* Breadcrumbs */
--breadcrumb-font-color: var(--body-font-light-color);
--breadcrumb-hover-font-color: var(--link_hover-font-color);

/* Doc */
--doc-font-color: var(--body-font-color);
--doc-font-size: inherit;
Expand Down

0 comments on commit 7e3b08a

Please sign in to comment.