From 942dd4b528afd24f243fb62ecad1d35e1c1a97ae Mon Sep 17 00:00:00 2001 From: Changkun Ou Date: Tue, 9 Jul 2019 16:13:38 +0200 Subject: [PATCH] fix: mobile header multi-lang --- website/themes/moderncpp/layout/layout.ejs | 15 +++++++++++---- .../moderncpp/source/modern-cpp/css/_header.styl | 3 ++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/website/themes/moderncpp/layout/layout.ejs b/website/themes/moderncpp/layout/layout.ejs index cd4483e..aab1b00 100755 --- a/website/themes/moderncpp/layout/layout.ejs +++ b/website/themes/moderncpp/layout/layout.ejs @@ -23,10 +23,17 @@ -
> - - -
+ <% if (page.type == 'book-en-us') { %> +
> + + +
+ <% } else {%> +
> + + +
+ <% } %> <%- partial('partials/header') %> <% if (!isIndex) { %>
diff --git a/website/themes/moderncpp/source/modern-cpp/css/_header.styl b/website/themes/moderncpp/source/modern-cpp/css/_header.styl index ec44591..f22f9d5 100755 --- a/website/themes/moderncpp/source/modern-cpp/css/_header.styl +++ b/website/themes/moderncpp/source/modern-cpp/css/_header.styl @@ -125,6 +125,7 @@ body.docs z-index: 100 display: none box-shadow: 0 0 2px rgba(0,0,0,.25) + font-size: 0.9em .menu-button position: absolute width: 24px @@ -137,7 +138,7 @@ body.docs position: absolute width: 25px height: 30px - background: url(../assets/cover-2nd.png) center center no-repeat + background: url(../assets/cover-2nd-en.png) center center no-repeat background-size: auto 100% top: 12px right: 12px