mirror of https://github.com/streamlink/streamlink
docs: add version warning message
and fix font sizes+weights of the admonition component
This commit is contained in:
parent
5a2ae34965
commit
a5af0d1be6
|
@ -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;
|
||||
|
|
|
@ -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 %}
|
Loading…
Reference in New Issue