mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 14:13:41 +08:00
docs: Make TOC appear first on narrow screens
This used to put the TOC last, which is the last place you'd want it. It's not perfect and we do some hacky layoutery to achieve it, but it should generally be usable.
This commit is contained in:
parent
711fa31871
commit
3d180b7c50
@ -37,6 +37,8 @@
|
||||
{%- endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar1 %}{{ sidebar() }}{% endblock %}
|
||||
{% block sidebar2 %} {% endblock %}
|
||||
{% block extrahead %}
|
||||
<link rel="shortcut icon" type="image/png" href="{{ pathto('_static/' + theme_root_icon, 1) }}" />
|
||||
{% if builder != "htmlhelp" %}
|
||||
|
@ -241,6 +241,19 @@ dl > dt span ~ em {
|
||||
height: auto;
|
||||
position: relative;
|
||||
}
|
||||
div.sphinxsidebar ul {
|
||||
flex-basis: content;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
div.sphinxsidebarwrapper {
|
||||
display: flex;
|
||||
}
|
||||
div.sphinxsidebarwrapper > h3:nth-child(5) {
|
||||
display: none;
|
||||
}
|
||||
div#searchbox {
|
||||
display: none !important;
|
||||
}
|
||||
div.content {margin-left: 0;}
|
||||
|
||||
div.bodywrapper {
|
||||
|
Loading…
x
Reference in New Issue
Block a user