Move LAMMPS version string to side bar

This commit is contained in:
Richard Berger 2020-03-18 18:09:55 -04:00
parent 3d66167f64
commit 572eeae549
3 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,4 @@
<div role="navigation" aria-label="breadcrumbs navigation"> <div role="navigation" aria-label="breadcrumbs navigation">
<div style="text-align: center; margin-bottom: -1.5em; display: block"><b>LAMMPS</b> {{ version }}</div>
<ul class="wy-breadcrumbs"> <ul class="wy-breadcrumbs">
<li><a href="{{ pathto(master_doc) }}">Docs</a> &raquo;</li> <li><a href="{{ pathto(master_doc) }}">Docs</a> &raquo;</li>
{% for doc in parents %} {% for doc in parents %}

View File

@ -100,6 +100,8 @@
{% endif %} {% endif %}
</a> </a>
<div class="lammps_version">Version: <b>{{ version }}</b></div>
{% include "searchbox.html" %} {% include "searchbox.html" %}
{% endblock %} {% endblock %}

View File

@ -4411,7 +4411,7 @@ div[class^='highlight'] pre {
font-weight: bold; font-weight: bold;
display: inline-block; display: inline-block;
padding: 4px 6px; padding: 4px 6px;
margin-bottom: 0.809em; /*margin-bottom: 0.809em;*/
} }
.wy-side-nav-search > a:hover, .wy-side-nav-search .wy-dropdown > a:hover { .wy-side-nav-search > a:hover, .wy-side-nav-search .wy-dropdown > a:hover {
background: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.1);
@ -5105,4 +5105,10 @@ span[id*='MathJax-Span'] {
padding: 0; padding: 0;
} }
.lammps_version {
text-align: center;
display: block;
margin-bottom: 0.809em;
}
/*# sourceMappingURL=theme.css.map */ /*# sourceMappingURL=theme.css.map */