Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions site/docs-brand.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,32 @@
/* The way back up to the landing page, in mdBook's sticky menu bar so
it stays reachable while reading. theme/index.hbs places it. */

/* A flex row centers the mark against the word. The box is exactly
as tall as the bar and aligns to the top of the line box, so it
fills the bar the way mdBook's own buttons do with their
line-height; without the top alignment an inline-flex box sits on
the baseline and rides high. */
.caisson-site-link {
display: inline-flex;
align-items: center;
vertical-align: top;
gap: 0.35rem;
padding: 0 0.5rem;
height: var(--menu-bar-height);
/* The sibling icons bring their own 8px of left padding, so this
side needs less to sit the same distance from the next button. */
padding: 0 2px 0 8px;
color: var(--icons);
font-size: 0.9rem;
font-weight: 600;
line-height: 1;
text-decoration: none;
white-space: nowrap;
}

.caisson-site-link:hover { color: var(--icons-hover); }

.caisson-site-link img { display: block; }

.caisson-site-link:hover { color: var(--icons-hover); }

/* On narrow screens the icon alone carries it. */
@media only screen and (max-width: 500px) {
.caisson-site-link span { display: none; }
Expand Down