Skip to content

Commit

Permalink
ENVELOPE PROTOTYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
quis committed May 8, 2017
1 parent 6d0516f commit def7ce4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
Binary file added app/assets/images/envelope.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/envelope.psd
Binary file not shown.
23 changes: 23 additions & 0 deletions app/assets/stylesheets/components/letter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,26 @@ $iso-paper-ratio: 141.42135624%;
}

}

.letter-wrapper {

position: relative;

&:before {
content: "";
position: absolute;
display: block;
width: 100%;
height: 100%;
background-image: file-url('envelope.png');
background-size: 100%;
z-index: 1000;
box-shadow: inset 0 -2px 0 0 rgba(0, 0, 0, 0.1);
}

.letter {
padding: ($iso-paper-ratio / 2) 0 0 0;
overflow: hidden;
}

}
5 changes: 3 additions & 2 deletions app/templates/views/check.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ <h1 class="heading-large">
{% endif %}
</div> <!-- close pull-up -->
{% else %}

{{ template|string }}
<div class="letter-wrapper">
{{ template|string }}
</div>

<form method="post" enctype="multipart/form-data" action="{{url_for('main.start_job', service_id=current_service.id, upload_id=upload_id)}}">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
Expand Down

0 comments on commit def7ce4

Please sign in to comment.