kopia lustrzana https://github.com/wagtail/wagtail
Use icon tag instead of CSS for lock/unlock messages
rodzic
7b5c064a19
commit
90c806110b
|
@ -66,18 +66,6 @@
|
|||
.errorlist {
|
||||
margin: 0.5em 0 0 1em;
|
||||
}
|
||||
|
||||
.lock {
|
||||
&:before {
|
||||
content: map-get($icons, 'locked');
|
||||
}
|
||||
}
|
||||
|
||||
.unlock {
|
||||
&:before {
|
||||
content: map-get($icons, 'unlocked');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.messages.new > ul {
|
||||
|
|
|
@ -35,6 +35,10 @@
|
|||
{% if message.level_tag == "error" %}
|
||||
{# There is no error icon, use warning icon instead #}
|
||||
{% icon name="warning" class_name="messages-icon" %}
|
||||
{% elif message.extra_tags == "lock" %}
|
||||
{% icon name="lock" class_name="messages-icon" %}
|
||||
{% elif message.extra_tags == "unlock" %}
|
||||
{% icon name="lock-open" class_name="messages-icon" %}
|
||||
{% else %}
|
||||
{% icon name=message.level_tag class_name="messages-icon" %}
|
||||
{% endif %}
|
||||
|
|
Ładowanie…
Reference in New Issue