Skip to content

Commit 65ffd3a

Browse files
author
anon
committed
Fix crypto QR alignment
Aligned the crypto QR codes seen on the main page. Also added some padding to the images so that they don't touch the line at the bottom or the addresses.
1 parent 033ef09 commit 65ffd3a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

layouts/shortcodes/crypto.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
<div class=cryptocontainer>
22
<div class=cryptoinfo>
3+
<div class=cryptotext>
34
<img alt="" style="max-height:1em;max-width:1em;display:inline" src=/pix/xmr.svg> Monero <br>
45
<code style="font-size:xx-small;overflow-wrap:break-word;">84N9N3DMWhQ9cstHwGEjo8hEvm9bjeYgjV5fLrGK6TmA9iVPjnU7NMUT7gyAc22UgGAVTCUgReQ1J67znhWP3L52Usfw6jg</code><br>
6+
</div>
57
<a href=/pix/monero-based-cooking.png><img alt="Monero QR Code" class=qr src=/pix/monero-based-cooking.png></a>
68
</div>
79
<div class=cryptoinfo>
10+
<div class=cryptotext>
811
<img alt="" style="max-height:1em;max-width:1em;display:inline" src=/pix/btc.svg> Bitcoin <br>
912
<code style="font-size:small;overflow-wrap:break-word;">bc1q763s4ud0hgfa66ce64gyh6tsss49vyk5cqcm6w</code><br>
13+
</div>
1014
<a href=/pix/bitcoin-based-cooking.png><img alt="Bitcoin QR Code" class=qr src=/pix/bitcoin-based-cooking.png></a>
1115
</div>
1216
</div>

static/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,18 @@ button#clear-search:hover {
281281
text-align: center ;
282282
padding-left: 10px ;
283283
padding-right: 10px ;
284+
display: flex;
285+
flex-direction: column;
286+
justify-content: space-between;
284287
}
285288
.cryptoinfo code {
286289
font-size: small ;
287290
overflow-wrap: break-word ;
288291
}
289292
.qr {
290293
max-height: 150px; ;
294+
padding-top: 10px;
295+
padding-bottom: 10px;
291296
}
292297

293298
.js-only { display: none ; }

0 commit comments

Comments
 (0)