From 6226ba8b1054a274b1d0b9dfeeae81f302eaddef Mon Sep 17 00:00:00 2001 From: GrahamSH Date: Wed, 12 Jun 2024 12:43:23 -0400 Subject: [PATCH] add present button back, fix rtl sidebar --- source/_static/css/frc-furo.css | 4 ++ source/_static/css/frc-rtl.css | 7 ++- source/_templates/base.html | 76 +++++++++++++++++------------- source/_templates/breadcrumbs.html | 11 ----- 4 files changed, 54 insertions(+), 44 deletions(-) delete mode 100644 source/_templates/breadcrumbs.html diff --git a/source/_static/css/frc-furo.css b/source/_static/css/frc-furo.css index 69cef5162b..0ba68d1238 100644 --- a/source/_static/css/frc-furo.css +++ b/source/_static/css/frc-furo.css @@ -84,4 +84,8 @@ body { } aside.sidebar-drawer { width: revert; +} +.present svg { + height: 1rem; + width: 1rem; } \ No newline at end of file diff --git a/source/_static/css/frc-rtl.css b/source/_static/css/frc-rtl.css index 4454218f43..5a1f2daa35 100644 --- a/source/_static/css/frc-rtl.css +++ b/source/_static/css/frc-rtl.css @@ -45,7 +45,7 @@ aside.sidebar-drawer, margin-right: 320px; margin-left: 0; } -@media screen and (max-width: 768px) { +@media screen and (max-width: 67em) { aside.sidebar-drawer, .rst-versions { right: -300px; @@ -55,6 +55,11 @@ aside.sidebar-drawer, right: 0; left: unset; } + #__navigation:checked ~ .page aside.sidebar-drawer { + right: 0; + top: 0; + left: unset !important; + } } .content .admonition-title:before { diff --git a/source/_templates/base.html b/source/_templates/base.html index 15470eb8df..951d23d469 100644 --- a/source/_templates/base.html +++ b/source/_templates/base.html @@ -1,40 +1,52 @@ -{% extends '!base.html' %} - -{% block extrabody %} - +{% extends '!base.html' %} {% block extrabody %}
- - + +
-{% endblock %} - -{%- block regular_scripts -%} -{% for path in script_files -%} - {{ js_tag(path) }} -{% endfor -%} -{%- if READTHEDOCS %} +{% endblock %} {%- block regular_scripts -%} {% for path in script_files -%} {{ +js_tag(path) }} {% endfor -%} {%- if READTHEDOCS %} + READTHEDOCS_DATA.features.docsearch_disabled = false; + } + {%- endif %} + {%- endblock regular_scripts -%} - diff --git a/source/_templates/breadcrumbs.html b/source/_templates/breadcrumbs.html deleted file mode 100644 index 65b321f458..0000000000 --- a/source/_templates/breadcrumbs.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends '!breadcrumbs.html' %} - -{%- block breadcrumbs_aside %} -
  • - - Present - - -
  • -{{ super() }} -{%- endblock %} \ No newline at end of file