merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 55414c617e1ea4e656dac48e88f99eb560f54abd
parent c2bf5fedfd7c703b3cb807f34655f3bb39f80840
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 29 Jul 2020 18:36:27 +0200

style fixes thanks to Torsten Grothoff

Diffstat:
Mcontrib/request_payment.must | 15+++++++++------
Msrc/backend/taler-merchant-httpd_get-orders-ID.c | 12+++++++-----
2 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/contrib/request_payment.must b/contrib/request_payment.must @@ -51,13 +51,16 @@ .qr { margin: auto; text-align: center; - transition: transform .2s; - height: 25vh; - width: 25vh; - font-size: 0.43vh; } -.qr:hover { - transform: scale(1.5); +.qrtext { + width: max-content; + margin: auto; + transition: font-size 0.2s; + font-family: 'Lucida Console', Monaco, monospace; + font-size: 0.5em; +} +.qrtext:hover { + font-size: 1em; } .talerbar { margin: 0; diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.c b/src/backend/taler-merchant-httpd_get-orders-ID.c @@ -554,23 +554,25 @@ create_qrcode (const char *uri) QRinput_free (qri); /* FIXME-Dold: generate <img> with inline SVG instead of <pre> here! */ GNUNET_buffer_write_str (&buf, - "<pre><br>\n<br>\n<br>\n<br>\n"); + "<p class=\"qrtext\"><br>\n<br>\n<br>\n<br>\n"); for (unsigned int y = 0; y<qrc->width; y++) { GNUNET_buffer_write_str (&buf, - " "); + "&nbsp;&nbsp;&nbsp;&nbsp;"); for (unsigned int x = 0; x<qrc->width; x++) { unsigned int off = x + y * qrc->width; GNUNET_buffer_write_fstr (&buf, "%s", - (0 != (qrc->data[off] & 1)) ? "██" : " "); + (0 != (qrc->data[off] & 1)) + ? "██" + : "&nbsp;&nbsp;"); } GNUNET_buffer_write_str (&buf, - " <br>"); + "&nbsp;&nbsp;&nbsp;&nbsp;<br>"); } GNUNET_buffer_write_str (&buf, - "<br>\n<br>\n<br>\n<br>\n</pre>"); + "<br>\n<br>\n<br>\n<br>\n</p>"); QRcode_free (qrc); return GNUNET_buffer_reap_str (&buf); }