website: optimize logo size

fixes #110
This commit is contained in:
Changkun Ou
2020-07-26 10:57:26 +02:00
parent 5beea9797a
commit bfd2f7caaf
5 changed files with 8 additions and 3 deletions

View File

@@ -1,10 +1,10 @@
<div id="header">
<a id="logo" href="<%- url_for("/modern-cpp/") %>">
<% if (page.type == 'book-en-us') { %>
<img src="<%- url_for("/modern-cpp/assets/cover-2nd-en.png") %>">
<img src="<%- url_for("/modern-cpp/assets/cover-2nd-en-logo.png") %>">
<span>Modern C++ Tutorial: C++ 11/14/17/20 On the Fly</span>
<% } else {%>
<img src="<%- url_for("/modern-cpp/assets/cover-2nd.png") %>">
<img src="<%- url_for("/modern-cpp/assets/cover-2nd-logo.png") %>">
<span>现代 C++ 教程:高速上手 C++ 11/14/17/20</span>
<% } %>
</a>

View File

@@ -138,7 +138,7 @@ body.docs
position: absolute
width: 25px
height: 30px
background: url(../assets/cover-2nd-en.png) center center no-repeat
background: url(../assets/cover-2nd-en-logo.png) center center no-repeat
background-size: auto 100%
top: 12px
right: 12px