* Create settings modal * Fix issue with spacing after settings button * Fix issue with modal background on mobile devices * Add close button to modal * Add tooltip to close button * Support closing modal with escape key * Add missing semicolon to keydown event listener
58 lines
1.7 KiB
HTML
58 lines
1.7 KiB
HTML
{%- extends "basic/layout.html" %}
|
|
|
|
{% set show_source = False %}
|
|
{% set style = 'style.css' %}
|
|
|
|
{%- block extrahead %}
|
|
{{ super() }}
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
{% endblock %}
|
|
|
|
{%- block relbar2 %}{% endblock %}
|
|
|
|
{%- block rootrellink %}
|
|
{# Perhaps override the relbar() macro to place this on the right side of the link list? #}
|
|
<li class="right"{% if not rellinks %} style="margin-right: 10px"{% endif %}>
|
|
<a href="javascript:;" title="settings" accesskey="S" onclick="openModal(settings);">settings</a>{{ reldelim2 }}</li>
|
|
{{ super() }}
|
|
{% endblock %}
|
|
|
|
{% block header %}
|
|
{{ super() }}
|
|
{% if pagename == 'index' %}
|
|
<div class="indexwrapper">
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{%- block content %}
|
|
<div id="settings" class="modal" style="display: none;" onclick="if (event.target == this){ closeModal(settings); }">
|
|
<div class="modal-content">
|
|
<span class="close" onclick="closeModal(settings);" title="Close">×</span>
|
|
<h1>Settings</h1>
|
|
<!-- TODO: ADD OPTIONS HERE -->
|
|
</div>
|
|
</div>
|
|
{{ super() }}
|
|
{% endblock %}
|
|
|
|
|
|
{%- block footer %}
|
|
<div class="footer">
|
|
© Copyright {{ copyright }}.
|
|
{% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
|
|
</div>
|
|
{% if pagename == 'index' %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{%- if READTHEDOCS %}
|
|
<script>
|
|
if (typeof READTHEDOCS_DATA !== 'undefined') {
|
|
if (!READTHEDOCS_DATA.features) {
|
|
READTHEDOCS_DATA.features = {};
|
|
}
|
|
READTHEDOCS_DATA.features.docsearch_disabled = true;
|
|
}
|
|
</script>
|
|
{%- endif %}
|
|
{%- endblock %} |