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

Skip to content

Commit ff61d60

Browse files
committed
Adjust font and selects
1 parent 10f4349 commit ff61d60

File tree

2 files changed

+16
-20
lines changed

2 files changed

+16
-20
lines changed

python_docs_theme/layout.html

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,17 @@
6060
</label>
6161
<nav class="nav-content" role="navigation">
6262
<img src="{{ pathto('_static/' + theme_root_icon, 1) }}" alt="Logo"/>
63-
<div class="version_switcher_placeholder">{{ release }}</div>
63+
<div class="version_switcher_placeholder"></div>
6464
{%- if pagename != "search" and builder != "singlehtml" %}
65-
<div id="searchbox" role="search">
66-
<form class="search" action="{{ pathto('search') }}" method="get">
67-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
68-
class="search-icon">
69-
<path fill-rule="nonzero"
70-
d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 001.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 00-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 005.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>
71-
</svg>
72-
<input type="text" name="q" aria-label="{{ _('Quick search') }}"/>
73-
<input type="submit" value="{{ _('Go') }}"/>
74-
</form>
75-
</div>
65+
<form id="searchbox" role="search" class="search" action="{{ pathto('search') }}" method="get">
66+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"
67+
class="search-icon">
68+
<path fill-rule="nonzero"
69+
d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 001.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 00-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 005.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>
70+
</svg>
71+
<input type="text" name="q" aria-label="{{ _('Quick search') }}"/>
72+
<input type="submit" value="{{ _('Go') }}"/>
73+
</form>
7674
{%- endif %}
7775
</nav>
7876
<div class="menu-wrapper">

python_docs_theme/static/pydoctheme.css

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,6 @@ dl > dt span ~ em {
208208
margin: 0;
209209
}
210210
/* Typography */
211-
div.body h1, div.body h2, div.body h3, div.body h4, div.body h5, div.body p {
212-
font-family: SourceSansProRegular, Arial, sans-serif;
213-
}
214211
div.body h1 {
215212
font-size: 1.625rem;
216213
}
@@ -265,17 +262,17 @@ dl > dt span ~ em {
265262
margin-right: 1rem;
266263
}
267264
.version_switcher_placeholder select {
268-
height: 24px;
269-
}
270-
.nav-content #searchbox {
271-
flex: 1 1 auto;
265+
height: 30px;
266+
border-radius: 0;
272267
}
273268
.nav-content .search {
274269
display: flex;
270+
flex: 1 1 auto;
275271
align-items: center;
276272
padding: 0 0 0 2px;
277273
border: 1px solid #a9a9a9;
278274
height: 30px;
275+
overflow: hidden;
279276
}
280277
.nav-content .search:hover {
281278
box-shadow: 0 1px 6px 0 rgba(32,33,36,0.28);
@@ -434,7 +431,8 @@ dl > dt span ~ em {
434431
}
435432
.language_switcher_placeholder select {
436433
width: 95%;
437-
height: 24px;
434+
height: 30px;
435+
border-radius: 0;
438436
}
439437
.document {
440438
padding-top: 40px;

0 commit comments

Comments
 (0)