Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit214e06a

Browse files
Fix: searchbox is wrapping under the separation line on few screen sizes
Fixes#7.
1 parentb862f11 commit214e06a

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

‎python_docs_theme/layout.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313
{# modified from sphinx/themes/basic/searchbox.html #}
1414
{%- if builder != "htmlhelp" %}
1515
<divclass="inline-search"style="display: none"role="search">
16-
<formclass="inline-search"action="{{ pathto('search') }}"method="get">
17-
<inputplaceholder="{{ _('Quick search') }}"type="text"name="q"/>
18-
<inputtype="submit"value="{{ _('Go') }}"/>
19-
<inputtype="hidden"name="check_keywords"value="yes"/>
20-
<inputtype="hidden"name="area"value="default"/>
16+
<divclass="flex-container">
17+
<formclass="inline-search"action="{{ pathto('search') }}"method="get">
18+
<inputplaceholder="{{ _('Quick search') }}"type="text"name="q"/>
19+
<inputtype="submit"value="{{ _('Go') }}"/>
20+
<inputtype="hidden"name="check_keywords"value="yes"/>
21+
<inputtype="hidden"name="area"value="default"/>
2122
</form>
22-
</div>
23+
</div>
24+
</div>
2325
<scripttype="text/javascript">$('.inline-search').show(0);</script>
2426
{%- endif %}
2527
{%- endmacro %}

‎python_docs_theme/static/pydoctheme.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ div.related:first-child {
2222
border-bottom:1px solid#ccc;
2323
}
2424

25+
.flex.container {
26+
display: flex;
27+
}
28+
29+
.fill-width {
30+
flex:1;
31+
}
32+
2533
.inline-search {
2634
display: inline;
2735
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp