Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d96713e

Browse files
committed
Make logo in mobile version link to 'http://0.0.0.0:8000/3.9/'
1 parent ed7b948 commit d96713e

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

python_docs_theme/layout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ <h3>{{ _('Navigation') }}</h3>
8686
</label>
8787
<nav class="nav-content" role="navigation">
8888
<a href="{{ pathto(theme_root_url) }}" class="nav-logo">
89-
<img src="{{ pathto('_static/' + 'py.svg', 1) }}" alt="Logo"/>
89+
<img src="{{ pathto('_static/py.svg', 1) }}" alt="Logo"/>
9090
</a>
9191
<div class="version_switcher_placeholder"></div>
9292
{%- if pagename != "search" and builder != "singlehtml" %}
@@ -105,7 +105,7 @@ <h3>{{ _('Navigation') }}</h3>
105105
<div class="language_switcher_placeholder"></div>
106106
{%- if logo %}
107107
<p class="logo">
108-
<a href="{{ pathto(master_doc)|e }}">
108+
<a href="{{ pathto('index') }}">
109109
<img class="logo" src="{{ pathto('_static/' + logo, 1)|e }}" alt="Logo"/>
110110
</a>
111111
</p>

python_docs_theme/static/pydoctheme.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,14 +266,19 @@ dl > dt span ~ em {
266266
top: 0;
267267
height: 40px;
268268
width: 100%;
269-
padding: 0 1rem 0 50px;
269+
padding: 0 1rem 0 45px;
270270
display: flex;
271271
align-items: center;
272272
background-color: white;
273273
}
274-
.nav-content img {
275-
flex: 0 0 auto;
274+
.nav-logo {
276275
margin-right: 0.7rem;
276+
display: flex;
277+
flex: 0 0 auto;
278+
}
279+
.nav-content img {
280+
width: 20px;
281+
height: auto;
277282
}
278283
.version_switcher_placeholder {
279284
flex: 0 1 0;

0 commit comments

Comments
 (0)