Skip to content

Commit

Permalink
Fix mismatched box sizes on source interface index
Browse files Browse the repository at this point in the history
  • Loading branch information
redshiftzero authored and heartsucker committed Feb 4, 2017
1 parent 10c937a commit b14c5ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion securedrop/sass/_base.sass
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@
display: inline-block
width: 30%
min-width: 300px
min-height: 290px
min-height: 310px
margin: 1%
padding: 25px
border: 1px solid #c3c3c3
Expand Down
7 changes: 7 additions & 0 deletions securedrop/sass/_button-rules.sass
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@
color: $color_purple_medium_darker
border: 1px solid $color_purple_medium_darker

&.index
display: block
position: absolute
bottom: 5%
left: 10%
right: 10%

button.block, a.btn.block
text-decoration: none
min-width: 250px
Expand Down
3 changes: 1 addition & 2 deletions securedrop/source_templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ <h2 class="welcome-text">
</h2>
<hr class="cut-out" />
<p>If this is your first time submitting documents to journalists, start here.</p>
{# adding a break between 'submit' and 'documents' to make both containers equal sized #}
<a href="/generate" class="sd-button btn alt block" id="submit-documents-button">SUBMIT<br/>DOCUMENTS</a>
<a href="/generate" class="sd-button btn alt index" id="submit-documents-button">SUBMIT<br/>DOCUMENTS</a>
</div>
<div class="grid-item option">
<h2 class="welcome-text">
Expand Down

0 comments on commit b14c5ec

Please sign in to comment.