kb: style warning notice on old revisions

This commit is contained in:
Frédéric Péters 2015-11-30 10:28:48 +01:00
parent 8402fcccd7
commit 818c1d0e8b
2 changed files with 30 additions and 0 deletions

View File

@ -9,6 +9,7 @@
{% block content %}
<div class="old-version warning-notice">
<p>
{% trans 'Warning: this is an old version of this page.' %}
</p>
@ -17,6 +18,7 @@
{% csrf_token %}
<button>{% trans 'Revert to this version' %}</button>
</form>
</div>
{{block.super}}

View File

@ -534,3 +534,31 @@ div.counter a.button {
div.useful-links {
margin-top: 2em;
}
div.warning-notice {
background: #F9DEDE;
margin: 1em 0;
padding: 1em;
padding-left: 4em;
position: relative;
position: relative;
}
div.warning-notice p {
margin: 0.5ex 0;
}
div.warning-notice::before {
content: "\f06a";
font-family: FontAwesome;
font-size: 2em;
position: absolute;
left: 1ex;
top: 0.5ex;
}
div.old-version.warning-notice form {
position: absolute;
right: 1ex;
top: 1ex;
}