From 5d91caaac1ff0da642141edc17f75f60d63ba4a0 Mon Sep 17 00:00:00 2001 From: rebortg Date: Mon, 10 May 2021 21:32:00 +0200 Subject: Template: add version warning banner --- docs/_static/css/custom.css | 14 ++++++++++++++ docs/_templates/layout.html | 4 ++++ 2 files changed, 18 insertions(+) (limited to 'docs') diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css index 6d36283d..4d14a55d 100644 --- a/docs/_static/css/custom.css +++ b/docs/_static/css/custom.css @@ -174,4 +174,18 @@ a.cmdlink span:hover{ .rst-content table.docutils td.coverage-fail { background-color: red; color: black; +} + + +p.devwarning { + top: 10px; + position: sticky; + margin: 10px 10px 10px 310px; + padding: 5px 10px; + border-radius: 4px; + letter-spacing: 1px; + color: #000; + text-align: center; + background: #d40 repeating-linear-gradient( 135deg, transparent, transparent 56px, rgba(255, 255, 255, 0.2) 56px, rgba(255, 255, 255, 0.2) 112px ); + background-color: #fdab10; } \ No newline at end of file diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index 5f3f38c2..a5873ce8 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -3,3 +3,7 @@ {% block extrahead %} {% endblock %} +{% block extrabody %} +

Warning: This is the dev version. The latest stable version is + Crux 1.2.x. Or the current release candidate version is Equuleus 1.3.x

+{% endblock %} -- cgit v1.2.3