[matrix] Display navbar links on mobile

This commit is contained in:
Josh
2020-06-30 09:47:15 +10:00
committed by Rapptz
parent e257617d1d
commit 29103c08ab
6 changed files with 50 additions and 42 deletions

View File

@ -9,6 +9,7 @@
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="{{ pathto('_static/style.css', 1)|e }}" type="text/css" />
<link rel="stylesheet" href="{{ pathto('_static/codeblocks.css', 1) }}" type="text/css" />
<link rel="stylesheet" href="{{ pathto('_static/icons.css', 1)|e }}" type="text/css" />
{%- block css %}
{%- for css in css_files %}
{%- if css|attr("filename") %}
@ -58,9 +59,10 @@
<header class="grid-item">
<nav>
<a href="{{ pathto(master_doc)|e }}" class="main-heading">discord.py</a>
<a href="https://github.com/Rapptz/discord.py">GitHub</a>
<a href="{{ discord_invite }}">{{ _('Discord') }}</a>
<a href="{{ pathto('faq') }}">FAQ</a>
<a href="https://github.com/Rapptz/discord.py" title="GitHub"><span class="material-icons custom-icons">github</span></a>
<a href="{{ discord_invite }}" title="{{ _('Discord') }}"><span class="material-icons custom-icons">discord</span></a>
<a href="{{ pathto('faq') }}" title="FAQ"><span class="material-icons">help_center</span></a>
<a href="{{ pathto('search') }}" title="{{ _('Search') }}" class='mobile-only'><span class="material-icons">search</span></a>
{#- If we have more links we can put them here #}
</nav>
</header>