Skip to content

Commit 2be4a02

Browse files
committed
css and template clean up
1 parent c8eab09 commit 2be4a02

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed

source/_static/css/frc-furo.css

+1-12
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
padding: 15px;
88
}
99

10-
.rst-versions {
11-
width: 320px;
12-
}
13-
1410
.document img {
1511
margin-bottom: 10px;
1612
}
@@ -21,19 +17,12 @@
2117

2218
/* Tweaks for sphinx panels */
2319

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

2925

30-
@media screen and (max-width: 768px) {
31-
/* Fix sidebar adjust */
32-
.rst-versions {
33-
width: 85%;
34-
max-width: 320px;
35-
}
36-
}
3726
@media (max-width: 67em) {
3827
.nav-overlay-icon .icon, .theme-toggle svg {
3928
height: 1rem!important;

source/_static/css/frc-rtl.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ div.content-icon-container {
102102
text-align: right;
103103
}
104104

105-
/* Furo uses padding-left by default, which looks wrong on RTL */
105+
/* Furo uses padding-left in the heading TOC by default, which looks wrong on RTL */
106106
.toc-tree > ul > li:first-child > ul {
107107
padding-inline-start: 0;
108108
padding-left: initial;

source/_templates/base.html

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
{% extends '!base.html' %} {% block extrabody %}
2-
1+
{% extends '!base.html' %}
2+
{% block extrabody %}
33
<div class="header-bar">
4-
<!-- Color Strip -->
54
<div class="link-bar-container">
65
<div id="link-bar" class="collapse">
76
<ul>
@@ -28,8 +27,13 @@
2827
</div>
2928
</div>
3029
</div>
31-
{% endblock %} {%- block regular_scripts -%} {% for path in script_files -%} {{
32-
js_tag(path) }} {% endfor -%} {%- if READTHEDOCS %}
30+
{% endblock %}
31+
32+
{%- block regular_scripts -%}
33+
{% for path in script_files -%}
34+
{{ js_tag(path) }}
35+
{% endfor -%}
36+
{%- if READTHEDOCS %}
3337
<script>
3438
if (typeof READTHEDOCS_DATA !== "undefined") {
3539
if (!READTHEDOCS_DATA.features) {
@@ -39,6 +43,7 @@
3943
}
4044
</script>
4145
{%- endif %}
46+
4247
<script defer>
4348
const button = Object.assign(document.createElement("a"), {
4449
href: "?present",

0 commit comments

Comments
 (0)