Skip to content

Commit

Permalink
third pass through /generate: "Refresh Codename" button styling
Browse files Browse the repository at this point in the history
  • Loading branch information
cfm committed Jul 15, 2021
1 parent 746d029 commit 3ad7b2e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
22 changes: 22 additions & 0 deletions securedrop/sass/source.sass
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,25 @@ p#max-file-size
image-rendering: crisp-edges
margin-bottom: 10px
margin-top: 5px

#regenerate-submit
span
font-size: 0

&:after
content: ""
display: inline-block
background:
image: url(/static/i/font-awesome/refresh-white.png)
position: center
repeat: no-repeat
size: contain
opacity: 0.9
height: 20px
width: 20px

&:hover, &:active
span
&:active
background:
image: url(/static/i/font-awesome/refresh-white.png)
6 changes: 1 addition & 5 deletions securedrop/source_templates/generate.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ <h1>{{ gettext('Welcome') }}</h1>
<form id="regenerate-form" method="post">
<input name="csrf_token" type="hidden" value="{{ csrf_token() }}">
<button type="submit" id="regenerate-submit" class="small">
{# FIXME:
<img class="icon pull-left off-hover" src="{{ url_for('static', filename='i/font-awesome/refresh-white.png') }}" alt="{{ gettext('Refresh codename') }}" width="20" height="20">
<img class="icon pull-left on-hover" src="{{ url_for('static', filename='i/font-awesome/refresh-white.png') }}" alt="{{ gettext('Refresh codename') }}" width="20" height="20">
#}
{{ gettext('Refresh codename') }}
<span>{{ gettext('Refresh codename') }}</span>
</button>
</form>
</div>
Expand Down

0 comments on commit 3ad7b2e

Please sign in to comment.