Skip to content

Commit

Permalink
CSS for printing
Browse files Browse the repository at this point in the history
Add style for media print
Add classes to elements that should not show up in print
Compress Output to two separate pages
Display QRCodes on separate pages
Refs moneromooo-monero#12
  • Loading branch information
jenniferberger committed Nov 13, 2017
1 parent 901d21a commit dc43b14
Showing 1 changed file with 45 additions and 7 deletions.
52 changes: 45 additions & 7 deletions monero-wallet-generator.html
Original file line number Diff line number Diff line change
Expand Up @@ -6659,6 +6659,32 @@



</style>
<style>
.print-only {
display: none;
}
@media print {
.qrcode {
display: inline-block !important;
position: relative !important;
margin: auto !important;
left: initial !important;
}
#address_widget{
font-size: 0.6em !important;
}
.card-content table td{
display: inline-table;
}
.print_break_before {
margin-top: 25em;
}
.page-footer { display: none; }
input { display: none !important; }
.noprint { display: none; }
.print-only { display: block; }
}
</style>
</head>
<body>
Expand Down Expand Up @@ -10721,7 +10747,7 @@ <h4 style="color: #555;">Offline wallet generator</h4>
</div>


<div class="row">
<div class="row noprint">
<div class="col s12">
<p>
This page generates a new
Expand All @@ -10738,7 +10764,7 @@ <h4 style="color: #555;">Offline wallet generator</h4>
</p>
</div>
</div>
<div class="row valign-wrapper">
<div class="row valign-wrapper noprint">
<div class="col s4 right-align ">
<input class="btn orange" type="button" onclick="js:genwallet(null);"
value="Generate wallet" id="gen_with_custom_entropy_button" action=""/>
Expand All @@ -10755,7 +10781,7 @@ <h4 style="color: #555;">Offline wallet generator</h4>
</form>
</div>
</div>
<div class="row center-align">
<div class="row center-align noprint">
<div class="col s12">
<form>
<input class="waves-effect waves-light btn" type="button" onclick="js:genwallet('english');" value="English" action=""/ id=lang_en>
Expand Down Expand Up @@ -10785,12 +10811,14 @@ <h4 style="color: #555;">Offline wallet generator</h4>
</div>
<div class="card-action center-align">
<pre class="center-align" id="address_widget">generating...</pre>
</div>
<div class="card-action center-align">
<span class="qrcode" id="address_qr_widget" onclick="js:toggle_qr();"></span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="row print_break_before">
<div class="col s12">
<div class="card pink lighten-5">
<div class="card-content pink-text text-darken-5">
Expand Down Expand Up @@ -10841,9 +10869,19 @@ <h5 class="grey-text text-darken-4" id="mnemonic_widget">Generating... </h5>
</div>
</div>

<div class="row">&nbsp;</div>

<footer class="page-footer grey lighten-3 grey-text text-darken-4">
<div class="row noprint">&nbsp;</div>
<footer class="print-only">
<div class="container">
<div class="row">
<div class="col l12">
<p><b>Credits:</b>
Made by moneromooo, based on code from <a href="https://mymonero.com/">MyMonero</a>. Copyright notices in the source.
</p>
</div>
</div>
</div>
</footer>
<footer class="page-footer grey lighten-3 grey-text text-darken-4 noprint">
<div class="container">
<div class="row">
<div class="col l12">
Expand Down

0 comments on commit dc43b14

Please sign in to comment.