summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-29 18:36:27 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-29 18:36:27 +0200
commit55414c617e1ea4e656dac48e88f99eb560f54abd (patch)
tree12c19305d7261a3ef93c23f5afa6283d1e080939
parentc2bf5fedfd7c703b3cb807f34655f3bb39f80840 (diff)
downloadmerchant-55414c617e1ea4e656dac48e88f99eb560f54abd.tar.gz
merchant-55414c617e1ea4e656dac48e88f99eb560f54abd.tar.bz2
merchant-55414c617e1ea4e656dac48e88f99eb560f54abd.zip
style fixes thanks to Torsten Grothoff
-rw-r--r--contrib/request_payment.must15
-rw-r--r--src/backend/taler-merchant-httpd_get-orders-ID.c12
2 files changed, 16 insertions, 11 deletions
diff --git a/contrib/request_payment.must b/contrib/request_payment.must
index 28508086..7d6effcc 100644
--- 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
index 6b0b981a..471c2ba7 100644
--- 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);
}