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 #12
  • Loading branch information
jenniferberger authored and moneromooo-monero committed Mar 19, 2021
1 parent 1c5335d commit 000ccd9
Showing 1 changed file with 45 additions and 7 deletions.
52 changes: 45 additions & 7 deletions monero-wallet-generator.html
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 @@ -10946,7 +10972,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 @@ -10964,7 +10990,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 @@ -10981,7 +11007,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 @@ -11012,12 +11038,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 @@ -11068,9 +11096,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 000ccd9

Please sign in to comment.