aboutsummaryrefslogtreecommitdiffstats
path: root/data/style.scss
diff options
context:
space:
mode:
authorcyqsimon <28627918+cyqsimon@users.noreply.github.com>2022-07-26 04:27:14 +0000
committercyqsimon <28627918+cyqsimon@users.noreply.github.com>2022-08-22 10:51:17 +0000
commita99d8bdcadf4f822bb86a2710e5d73783ac7097a (patch)
tree49bfe13380e8a747f57d4928ade34032c5899cb6 /data/style.scss
parentDisable broken tests for Windows (diff)
downloadminiserve-a99d8bdcadf4f822bb86a2710e5d73783ac7097a.tar.gz
miniserve-a99d8bdcadf4f822bb86a2710e5d73783ac7097a.zip
Move QR code page style to `style.scss`
Diffstat (limited to '')
-rw-r--r--data/style.scss22
1 files changed, 22 insertions, 0 deletions
diff --git a/data/style.scss b/data/style.scss
index 0fcc90d..a5b3707 100644
--- a/data/style.scss
+++ b/data/style.scss
@@ -17,7 +17,29 @@ $themes: squirrel, archlinux, monokai, zenburn;
@return $s;
}
+// make QR code expand and fill page
+// --------------------------------------------------
+html.qr_code_page {
+ width: 100vw;
+ height: 100vh;
+}
+
+html.qr_code_page body {
+ width: 100%;
+ height: 100%;
+ margin: 0;
+ display: grid;
+ align-items: center;
+ justify-items: center;
+}
+
+html.qr_code_page svg {
+ width: 80%;
+ height: 80%;
+}
+
+// --------------------------------------------------
html {
font-smoothing: antialiased;