Skip to content

Commit

Permalink
third pass through /generate: "{base,generate}.html" styling
Browse files Browse the repository at this point in the history
  • Loading branch information
cfm committed Jul 15, 2021
1 parent 3626a5c commit 746d029
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 27 deletions.
4 changes: 2 additions & 2 deletions securedrop/sass/modules/_aside.sass
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
=aside
aside
.aside
background-color: #fffbe6
color: #82572d
border-radius: 10px
padding: 10px
padding: 10px + 2*8px // cf. hr.no-line
margin: 10px
text-align: left
font-size: medium
Expand Down
2 changes: 1 addition & 1 deletion securedrop/sass/modules/_header.sass
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=header
#header
header
float: left

&:dir(rtl)
Expand Down
1 change: 1 addition & 0 deletions securedrop/sass/modules/_headline.sass
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
h1
text-align: left
font-size: 30px
padding-top: 10px + 2*8px // cf. hr.no-line

&:dir(rtl)
text-align: right
Expand Down
19 changes: 12 additions & 7 deletions securedrop/sass/modules/_panel.sass
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
=panel
.panel
max-width: 800px
width: 100%
margin: 0 auto
padding: 16px 30px
border: 1px solid #e1e1e1
float: right
body:not(#source-index)
main
max-width: 800px
width: 100%
margin: 0 auto
padding: 16px 30px
border: 1px solid #e1e1e1
float: right

section
display: flow-root
margin-top: 10px + 2*8px // cf. hr.no-line
5 changes: 1 addition & 4 deletions securedrop/source_templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
<header>
{% block header %}
<a href="{% if 'logged_in' in session %}{{ url_for('main.lookup') }}{% else %}{{ url_for('main.index') }}{% endif %}" class="no-bottom-border">
{# FIXME:
<img src="{{ g.logo }}" class="logo small" alt="{{ g.organization_name }} | {{ gettext('SecureDrop Home') }}" width="250">
#}
{{ g.organization_name }} | {{ gettext('SecureDrop Home')}}
<img src="{{ g.logo }}" class="logo small" alt="{{ g.organization_name }} logo" width="250">
</a>
{% include 'locales.html' %}
{% endblock %}
Expand Down
14 changes: 1 addition & 13 deletions securedrop/source_templates/generate.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@
{% block body %}
<h1>{{ gettext('Welcome') }}</h1>

{# FIXME: aside.center #}
<p id="codename-instructions" class="center">{{ gettext('Please either write this codename down and keep it in a safe place, or memorize it.') }}</p>
<p id="codename-instructions" class="aside center">{{ gettext('Please either write this codename down and keep it in a safe place, or memorize it.') }}</p>

<p id="codename-explanation" class="explanation">{{ gettext('This codename is what you will use in future visits to receive messages from our team in response to what you submit on the next screen.') }}</p>

{# FIXME:
<hr class="no-line">
#}

<section class="code">
{# FIXME:
<img class="pull-left" src="{{ url_for('static', filename='i/font-awesome/lock-black.png') }}" alt="" width="20" height="23">
Expand All @@ -32,14 +27,7 @@ <h1>{{ gettext('Welcome') }}</h1>
</form>
</div>
</section>
{# FIXME:
<div class="clearfix"></div>
</div>

<div class="clearfix"></div>

<hr class="no-line">
#}
<p class="explanation">{{ gettext('Because we do not track users of our <strong>SecureDrop</strong>
service, in future visits, using this codename will be the only way we have to communicate with you should we have
questions or are interested in additional information. Unlike passwords, there is no way to retrieve a lost codename.') }}
Expand Down

0 comments on commit 746d029

Please sign in to comment.