Skip to content

Commit 93f816e

Browse files
committed
site: use condensed header logo on small screens
Signed-off-by: David Karlsson <[email protected]>
1 parent a0bb017 commit 93f816e

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
Lines changed: 4 additions & 0 deletions
Loading

hugo_stats.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@
471471
"self-start",
472472
"shadow",
473473
"shadow-lg",
474+
"sm:block",
474475
"sm:flex",
475476
"sm:flex-row",
476477
"sm:hidden",

layouts/partials/header.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
<div>
1111
{{/* main logo */}}
1212
<a title="Docker Docs home page" href="{{ site.BaseURL }}">
13-
<div>
13+
<div class="hidden sm:block">
1414
{{- (resources.Get "images/docker-docs-white.svg").Content | safe.HTML -}}
1515
</div>
16+
<div class="block sm:hidden">
17+
{{- (resources.Get "images/docker-docs-white-condensed.svg").Content | safe.HTML -}}
18+
</div>
1619
</a>
1720
</div>
1821
<nav class="mt-1 hidden md:block">

0 commit comments

Comments
 (0)