mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-12 08:49:48 +00:00
Create settings icon for mobile
This commit is contained in:
parent
74bdd8485e
commit
b78f6a310b
12
docs/_static/style.css
vendored
12
docs/_static/style.css
vendored
@ -225,8 +225,13 @@ aside h3 {
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fa-bars, .fa-times {
|
#settings-toggle {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fa-bars, .fa-times, .fa-cog {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-toggle {
|
.sidebar-toggle {
|
||||||
@ -321,9 +326,7 @@ div.modal-content {
|
|||||||
div.modal-content > span.close {
|
div.modal-content > span.close {
|
||||||
color: #888;
|
color: #888;
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 24px;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
cursor: pointer;
|
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
}
|
}
|
||||||
@ -813,8 +816,9 @@ div.code-block-caption {
|
|||||||
color: var(--nav-hover-text);
|
color: var(--nav-hover-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
#hamburger-toggle {
|
#hamburger-toggle, #settings-toggle {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
15
docs/_templates/layout.html
vendored
15
docs/_templates/layout.html
vendored
@ -56,19 +56,22 @@
|
|||||||
{#- The relative links component #}
|
{#- The relative links component #}
|
||||||
<header class="grid-item">
|
<header class="grid-item">
|
||||||
<nav>
|
<nav>
|
||||||
{%- for rellink in rellinks | reverse %}
|
<!--{%- for rellink in rellinks | reverse %}
|
||||||
<a href="{{ pathto(rellink[0])|e }}" title="{{ rellink[1]|striptags|e }}"
|
<a href="{{ pathto(rellink[0])|e }}" title="{{ rellink[1]|striptags|e }}"
|
||||||
{{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a> |
|
{{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a> |
|
||||||
{%- endfor %}
|
{%- endfor %}-->
|
||||||
<a title="settings" accesskey="S" onclick="openModal(settingsModal);">settings</a>
|
<a title="settings" accesskey="S" onclick="openModal(settingsModal);"><i class='fas fa-cog'></i></a>
|
||||||
{#- No breadcrumbs. But if they're gonna appear they'll be here #}
|
{#- No breadcrumbs. But if they're gonna appear they'll be here #}
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
{#- The sidebar component #}
|
{#- The sidebar component #}
|
||||||
<aside class="grid-item">
|
<aside class="grid-item">
|
||||||
<div id="hamburger-toggle">
|
<span id="hamburger-toggle">
|
||||||
<i class="fa fa-bars"></i>
|
<i class="fa fa-bars"></i>
|
||||||
</div>
|
</span>
|
||||||
|
<span id="settings-toggle" onclick="openModal(settingsModal);">
|
||||||
|
<i class='fas fa-cog'></i>
|
||||||
|
</span>
|
||||||
<div id="sidebar">
|
<div id="sidebar">
|
||||||
{#- This is manually unrolled from the original layout #}
|
{#- This is manually unrolled from the original layout #}
|
||||||
<div id="searchbox" role="search">
|
<div id="searchbox" role="search">
|
||||||
@ -125,7 +128,7 @@
|
|||||||
|
|
||||||
<div id="settings" class="modal" onclick="if (event.target == this){ closeModal(settingsModal); }" hidden>
|
<div id="settings" class="modal" onclick="if (event.target == this){ closeModal(settingsModal); }" hidden>
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<span class="close" onclick="closeModal(settingsModal);" title="Close">×</span>
|
<span class="close" onclick="closeModal(settingsModal);" title="Close"><i class='fas fa-times'></i></span>
|
||||||
<h1>Settings</h1>
|
<h1>Settings</h1>
|
||||||
|
|
||||||
<div class='setting'>
|
<div class='setting'>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user