Skip to content

Commit

Permalink
css and template clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamSH-LLK committed Jun 16, 2024
1 parent c8eab09 commit 2be4a02
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
13 changes: 1 addition & 12 deletions source/_static/css/frc-furo.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
padding: 15px;
}

.rst-versions {
width: 320px;
}

.document img {
margin-bottom: 10px;
}
Expand All @@ -21,19 +17,12 @@

/* Tweaks for sphinx panels */

/* Reduces the added margin to card footers due to a conflict in RTD CSS styles */
/* Reduces the added margin to card footers due to a conflict in theme CSS styles */
.sd-card-footer > p.sd-card-text {
margin-bottom: 5px;
}


@media screen and (max-width: 768px) {
/* Fix sidebar adjust */
.rst-versions {
width: 85%;
max-width: 320px;
}
}
@media (max-width: 67em) {
.nav-overlay-icon .icon, .theme-toggle svg {
height: 1rem!important;
Expand Down
2 changes: 1 addition & 1 deletion source/_static/css/frc-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ div.content-icon-container {
text-align: right;
}

/* Furo uses padding-left by default, which looks wrong on RTL */
/* Furo uses padding-left in the heading TOC by default, which looks wrong on RTL */
.toc-tree > ul > li:first-child > ul {
padding-inline-start: 0;
padding-left: initial;
Expand Down
15 changes: 10 additions & 5 deletions source/_templates/base.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{% extends '!base.html' %} {% block extrabody %}

{% extends '!base.html' %}
{% block extrabody %}
<div class="header-bar">
<!-- Color Strip -->
<div class="link-bar-container">
<div id="link-bar" class="collapse">
<ul>
Expand All @@ -28,8 +27,13 @@
</div>
</div>
</div>
{% 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 %}
<script>
if (typeof READTHEDOCS_DATA !== "undefined") {
if (!READTHEDOCS_DATA.features) {
Expand All @@ -39,6 +43,7 @@
}
</script>
{%- endif %}

<script defer>
const button = Object.assign(document.createElement("a"), {
href: "?present",
Expand Down

0 comments on commit 2be4a02

Please sign in to comment.