Docs: small fixes for css and templates

This commit is contained in:
neofelis2X
2025-01-23 03:16:43 +01:00
parent 2a2179f396
commit cd0429f8dd
3 changed files with 25 additions and 15 deletions

View File

@@ -144,9 +144,8 @@ div#searchbox {
div#sourcelink {
position: absolute;
bottom: 0;
font-style: italic;
font-size: small;
bottom: 0.2rem;
left: 0.5rem;
}
div.related {
@@ -551,9 +550,10 @@ cite, code, tt {
letter-spacing: 0.01em;
}
code.descname, code.descclassname, span.sig-name {
code.descname, code.descclassname, span.sig-name, span.sig-prename {
font-weight: bold;
}
a.headerlink {
color: #c60f0f;
font-size: 0.8em;
@@ -755,6 +755,14 @@ table.contentstable p.mybiglink {
line-height: 150%;
}
hr {
color: #ccc;
background-color: #ccc;
height: 1px;
border: none;
margin-bottom: 0.7rem;
}
hr.overloadsep {
color: #0000FF;
background-color: #0000FF;

View File

@@ -8,14 +8,14 @@
:license: BSD, see LICENSE for details.
#}
{%- if pagename != "search" and builder != "singlehtml" %}
<div id="searchbox" style="display: none" role="search">
<h4>{{ _('Search') }}</h4>
<search id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">{{ _('Search') }}</h3>
<div class="searchformwrapper">
<form class="search" action="{{ pathto('search') }}" method="get">
<input type="text" name="q" />
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="{{ _('Go') }}" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>
{%- endif %}

View File

@@ -8,8 +8,10 @@
:license: BSD, see LICENSE for details.
#}
{%- if show_source and has_source and sourcename %}
<div id="sourcelink" role="note" aria-label="source link">
<a href="{{ pathto('_sources/' + sourcename, true)|e }}"
rel="nofollow">{{ _('Show page source') }}</a>
</div>
<div id="sourcelink" role="note" aria-label="source link">
<ul class="this-page-menu">
<li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
rel="nofollow">{{ _('Show Source') }}</a></li>
</ul>
</div>
{%- endif %}