diff --git a/site/docs-brand.css b/site/docs-brand.css index e558a41..d84adaf 100644 --- a/site/docs-brand.css +++ b/site/docs-brand.css @@ -25,39 +25,27 @@ .menu-title { letter-spacing: -0.02em; font-weight: 600; } -/* Site bar: the way back up from the book to the caisson landing page, - rendered by theme/header.hbs above mdBook's own menu bar. */ -.caisson-sitebar { - display: flex; - align-items: center; - gap: 0.75rem; - padding: 0.4rem 1rem; - font-size: 0.85rem; - background: var(--sidebar-bg); - border-bottom: 1px solid var(--table-border-color, rgba(128, 128, 128, 0.25)); -} +/* 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. */ -.caisson-sitebar-home { +.caisson-site-link { display: inline-flex; align-items: center; - gap: 0.4rem; + gap: 0.35rem; + padding: 0 0.5rem; + height: var(--menu-bar-height); + color: var(--icons); + font-size: 0.9rem; font-weight: 600; - color: var(--links); text-decoration: none; } -.caisson-sitebar-home:hover { text-decoration: underline; } +.caisson-site-link:hover { color: var(--icons-hover); } -.caisson-sitebar-home img { display: block; } - -.caisson-sitebar-here { - color: var(--fg); - opacity: 0.65; -} +.caisson-site-link img { display: block; } -.caisson-sitebar-here::before { - content: "/"; - margin-right: 0.75rem; - opacity: 0.5; +/* On narrow screens the icon alone carries it. */ +@media only screen and (max-width: 500px) { + .caisson-site-link span { display: none; } } diff --git a/theme/header.hbs b/theme/header.hbs deleted file mode 100644 index d0bd21c..0000000 --- a/theme/header.hbs +++ /dev/null @@ -1,14 +0,0 @@ - -
- - - caisson - - Docs -
diff --git a/theme/index.hbs b/theme/index.hbs new file mode 100644 index 0000000..41a8937 --- /dev/null +++ b/theme/index.hbs @@ -0,0 +1,374 @@ + + + + + + {{ title }} + {{#if is_print }} + + {{/if}} + {{#if base_url}} + + {{/if}} + + + + {{> head}} + + + + + + {{#if favicon_svg}} + + {{/if}} + {{#if favicon_png}} + + {{/if}} + + + + {{#if print_enable}} + + {{/if}} + + + + + + + + + + + {{#each additional_css}} + + {{/each}} + + {{#if mathjax_support}} + + + {{/if}} + + + + + + + +
+
+

Keyboard shortcuts

+
+

Press or to navigate between chapters

+ {{#if search_enabled}} +

Press S or / to search in the book

+ {{/if}} +

Press ? to show this help

+

Press Esc to hide this help

+
+
+
+
+ + + + + + + + + + + + + +
+ +
+ {{> header}} +
+ + + {{#if search_enabled}} + + {{/if}} + + + + + +
+ + + +
+ + + + + + + + {{#if live_reload_endpoint}} + + + {{/if}} + + {{#if playground_line_numbers}} + + {{/if}} + + {{#if playground_copyable}} + + {{/if}} + + {{#if playground_js}} + + + + + + {{/if}} + + {{#if search_js}} + + + + {{/if}} + + + + + + + {{#each additional_js}} + + {{/each}} + + {{#if is_print}} + {{#if mathjax_support}} + + {{else}} + + {{/if}} + {{/if}} + + {{#if fragment_map}} + + {{/if}} + +
+ +