Update messages styling
This commit is contained in:
parent
8dd29be8bf
commit
ffc0fa3ce1
2 changed files with 24 additions and 2 deletions
|
@ -194,3 +194,25 @@ main h2.new {
|
|||
p {
|
||||
margin: 0.5em 0;
|
||||
}
|
||||
|
||||
ul.messages {
|
||||
font-weight: 550;
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
background: var(--bg-01);
|
||||
padding: 0;
|
||||
}
|
||||
ul.messages li {
|
||||
padding: calc(var(--gap) / 2) var(--gap);
|
||||
border-left: var(--border) solid var(--gray);
|
||||
}
|
||||
|
||||
ul.messages li.msg-level-25 {
|
||||
border-left-color: var(--green-1);
|
||||
}
|
||||
ul.messages li.msg-level-30 {
|
||||
border-left-color: var(--red-1);
|
||||
}
|
||||
ul.messages li.msg-level-40 {
|
||||
border-left-color: var(--red);
|
||||
}
|
||||
|
|
|
@ -89,8 +89,8 @@
|
|||
{% endblock %}
|
||||
<main id="main">
|
||||
{% if messages %}
|
||||
<ul>
|
||||
{% for message in messages %}<li>{{ message }}</li>{% endfor %}
|
||||
<ul class="messages">
|
||||
{% for message in messages %}<li class="msg-level-{{ message.level }}">{{ message }}</li>{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% block body %}{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue