Skip to content

Commit 48c1984

Browse files
Jared-dzclaude
andauthored
Add DoubleZero icon to site header (#182)
* chore(theme): use DZ color icon SVG as header logo Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix(theme): show DZ icon alongside Malbec logo instead of replacing it Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix(theme): keep DZ icon out of the mobile nav drawer Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * chore(theme): put DZ icon left of Malbec logo in header Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent d4eb1e4 commit 48c1984

4 files changed

Lines changed: 42 additions & 0 deletions

File tree

docs/logo.svg

Lines changed: 26 additions & 0 deletions
Loading

docs/stylesheets/extra.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,16 @@
8686
flex-wrap: wrap;
8787
}
8888
}
89+
90+
/* Header shows two logos (Malbec + DoubleZero); lay them out side by side.
91+
The logo partial is also reused by the mobile nav drawer — keep the DZ icon
92+
out of there. */
93+
.md-header__button.md-logo {
94+
display: flex;
95+
align-items: center;
96+
gap: 0.4rem;
97+
}
98+
99+
.md-nav__button.md-logo img[alt="DoubleZero"] {
100+
display: none;
101+
}

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ site_description: >-
66
contributor operations.
77
theme:
88
name: material
9+
custom_dir: overrides
910
logo: logo.png
1011
favicon: logo.png
1112
# Use a language-style globe icon for the language selector

overrides/partials/logo.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<img src="{{ 'logo.svg' | url }}" alt="DoubleZero" />
2+
<img src="{{ config.theme.logo | url }}" alt="{{ config.site_name }}" />

0 commit comments

Comments
 (0)