Skip to content

Commit

Permalink
increased codename letter spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
heartsucker committed Feb 4, 2017
1 parent bed052e commit b636e62
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions securedrop/sass/source.sass
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,17 @@ input#show
font-size: 100%
height: auto

input.codename
input.codename-box
width: 400px
padding: 10px
font-weight: bold

p#codename
.codename
font-family: monospace
letter-spacing: 0.15em
font-weight: normal

p#codename
/*
* HACK: Firefox likes to add non-existent leading and/or trailing whitespace
* to <span>s, but never does it to <p>s. This hack uses a <p> for the
Expand Down
2 changes: 1 addition & 1 deletion securedrop/source_templates/generate.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h1>Remember this codename and keep it secret</h1>
<hr class="no-line" />

<div class="code">
<p id="codename">{{ codename }}</p>
<p id="codename" class="codename">{{ codename }}</p>
<div class="pull-right">
<form id="regenerate-form" method="post">
<input name="csrf_token" type="hidden" value="{{ csrf_token() }}">
Expand Down
2 changes: 1 addition & 1 deletion securedrop/source_templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h1>Enter Codename</h1>

<form method="post" action="/login" autocomplete="off">
<input name="csrf_token" type="hidden" value="{{ csrf_token() }}">
<p class="center"><input id="login-with-existing-codename" type="password" name="codename" class="codename" autocomplete="off" placeholder="Enter your codename" autofocus /></p>
<p class="center"><input id="login-with-existing-codename" type="password" name="codename" class="codename-box" autocomplete="off" placeholder="Enter your codename" autofocus /></p>
<div class="pull-right">
<a href="{{ url_for('index') }}" class="btn secondary" id="cancel">CANCEL</a>
<button type="submit" class="sd-button btn primary">CONTINUE</button>
Expand Down
2 changes: 1 addition & 1 deletion securedrop/source_templates/lookup.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h2 class="headline">Get Replies</h2>
<div class="code-reminder">
<img class="pull-left" src="{{ url_for('static', filename='i/font-awesome/black/lock.svg') }}" width="20px" height="20px"> Remember your codename is:
<div id="show" class="show pull-right"></div>
<span id="content"><p class="alert"><strong>{{ codename }}</strong></p></span>
<span id="content" class="codename"><p class="alert">{{ codename }}</p></span>
</div>

{% endblock %}

0 comments on commit b636e62

Please sign in to comment.