mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 12:44:40 +03:00
fix: mobile header multi-lang
This commit is contained in:
@@ -23,10 +23,17 @@
|
|||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body class="<%- isIndex ? '' : 'docs' -%>">
|
<body class="<%- isIndex ? '' : 'docs' -%>">
|
||||||
|
<% if (page.type == 'book-en-us') { %>
|
||||||
|
<div id="mobile-bar" data-bg-text="C++ 11/14/17/20 On the Fly" <%- isIndex ? 'class="top"' : '' %>>
|
||||||
|
<a class="menu-button"></a>
|
||||||
|
<a class="logo" href="/modern-cpp/"></a>
|
||||||
|
</div>
|
||||||
|
<% } else {%>
|
||||||
<div id="mobile-bar" data-bg-text="高速上手 C++ 11/14/17/20" <%- isIndex ? 'class="top"' : '' %>>
|
<div id="mobile-bar" data-bg-text="高速上手 C++ 11/14/17/20" <%- isIndex ? 'class="top"' : '' %>>
|
||||||
<a class="menu-button"></a>
|
<a class="menu-button"></a>
|
||||||
<a class="logo" href="/modern-cpp/"></a>
|
<a class="logo" href="/modern-cpp/"></a>
|
||||||
</div>
|
</div>
|
||||||
|
<% } %>
|
||||||
<%- partial('partials/header') %>
|
<%- partial('partials/header') %>
|
||||||
<% if (!isIndex) { %>
|
<% if (!isIndex) { %>
|
||||||
<div id="main" class="fix-sidebar">
|
<div id="main" class="fix-sidebar">
|
||||||
|
|||||||
@@ -125,6 +125,7 @@ body.docs
|
|||||||
z-index: 100
|
z-index: 100
|
||||||
display: none
|
display: none
|
||||||
box-shadow: 0 0 2px rgba(0,0,0,.25)
|
box-shadow: 0 0 2px rgba(0,0,0,.25)
|
||||||
|
font-size: 0.9em
|
||||||
.menu-button
|
.menu-button
|
||||||
position: absolute
|
position: absolute
|
||||||
width: 24px
|
width: 24px
|
||||||
@@ -137,7 +138,7 @@ body.docs
|
|||||||
position: absolute
|
position: absolute
|
||||||
width: 25px
|
width: 25px
|
||||||
height: 30px
|
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%
|
background-size: auto 100%
|
||||||
top: 12px
|
top: 12px
|
||||||
right: 12px
|
right: 12px
|
||||||
|
|||||||
Reference in New Issue
Block a user