Skip to content

Commit

Permalink
third pass through /lookup: fix "flashed.html" styling
Browse files Browse the repository at this point in the history
  • Loading branch information
cfm committed Jul 19, 2021
1 parent f37fc17 commit 876bfa2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
13 changes: 13 additions & 0 deletions securedrop/sass/modules/_flash.sass
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
text-align: left
font-size: medium

background-position-y: center
background-position-x: 10px
background-repeat: no-repeat

&:dir(rtl)
text-align: right

Expand All @@ -25,15 +29,21 @@
&.notification
border: 1px solid #8ed9f6
background-color: #e3f7fc
background-image: url(/static/i/font-awesome/info-circle-black.png)
background-size: 20px 16px
font-size: medium
font-weight: normal
padding-left: 10px + 20px

i
color: #4f7685

&.error
border: 1px solid $color_error_border
background-color: $color_error_background
background-image: url(/static/i/font-awesome/exclamation-triangle-black.png)
background-size: 20px 17px
padding-left: 10px + 20px

i
color: #D62727
Expand All @@ -52,6 +62,9 @@
padding-left: 20px
padding-right: 8px
background-color: #FDFDFD
background-image: url(/static/i/bang-stop.png)
background-size: 22px 22px
padding-left: 10px + 22px
color: #383838
align-items: center

Expand Down
9 changes: 0 additions & 9 deletions securedrop/source_templates/flashed.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@
{% for category, message in messages %}
{% if category != 'banner-warning' %}
<li class="flash {{ category }}">
{# FIXME:
{% if category == 'notification' %}
<img src="{{ url_for('static', filename='i/font-awesome/info-circle-black.png') }}" alt="{{ gettext('Notification') }} width="20" height="16">
{% elif category == 'error' %}
<img class="pull-left" src="{{ url_for('static', filename='i/font-awesome/exclamation-triangle-black.png') }}" alt="{{ gettext('Error') }}" width="20" height="17">
{% elif category == 'important' %}
<img src="{{ url_for('static', filename='i/bang-stop.png') }}" alt="{{ gettext('Important') }}" width="22" height="22">
{% endif %}
#}
{{ message }}
</li>
{% endif %}
Expand Down

0 comments on commit 876bfa2

Please sign in to comment.