docs: add version warning message

and fix font sizes+weights of the admonition component
This commit is contained in:
bastimeyer 2020-11-13 12:52:49 +01:00 committed by Forrest
parent 5a2ae34965
commit a5af0d1be6
2 changed files with 22 additions and 0 deletions

View File

@ -12,6 +12,8 @@
--color-brand-content: rgb(0, 115, 189); /* bright icon color */
/* misc */
--sidebar-item-spacing-vertical: .4rem;
--admonition-font-size: var(--font-size--small);
--admonition-title-font-size: var(--font-size--normal);
}
@media (prefers-color-scheme: dark) {
@ -115,6 +117,17 @@ strong.command {
Components
*/
.admonition p.admonition-title {
font-weight: bold;
}
.admonition.version-warning {
padding-bottom: 0;
}
.admonition.version-warning > .admonition-title {
margin-bottom: 0;
font-weight: normal;
}
table.table-custom-layout {
width: 100%;
table-layout: fixed;

9
docs/_templates/page.html vendored Normal file
View File

@ -0,0 +1,9 @@
{% extends '!page.html' %}
{% block content %}
{% if release != version %}
<div class="admonition important version-warning">
<p class="admonition-title">You are reading the documentation for the in-development version of Streamlink.</p>
</div>
{% endif %}
{{ super() }}
{% endblock %}