home · contact · privacy
Improve printable view.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 15 Nov 2020 18:48:22 +0000 (19:48 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 15 Nov 2020 18:48:22 +0000 (19:48 +0100)
views/_card.css
views/_card.tpl
views/cards_print.tpl

index 9e712950185ddd46c80e6884565c42fe4257ec0a..0d6bc153b8f4a1bb7e517305c949433788e62241 100644 (file)
@@ -2,4 +2,11 @@
     box-sizing: border-box;
     border: 30px solid #aaaaaa;
     width: 200px;
-    height: 400px; }
+    height: 400px;
+}
+.answers {
+    list-style-type: none;
+}
+.answers li:before {
+    content: "[ ] ";
+}
index e7533dde7fc48397858c8506cf13b4d616e9751d..36d8c829f7181fa01d4938a085b622c25b665dd0 100644 (file)
@@ -4,14 +4,14 @@
   <p class="prompt">Choose at least one of these guilts as your own:</p>
   <ul class="answers">
   % for answer in card["answers"]:
-    <li>{{ answer }}</li>
+    <li class="answer">{{ answer }}</li>
   % end
   <ul/>
   % end
   % if card["type"] == 'action':
   <h1 class="title">ACTION CARD<br />{{ card["title"] }}</h1>
   % for paragraph in card["paragraphs"]:
-  <p>{{ paragraph }}</p>
+  <p class="paragraph">{{ paragraph }}</p>
   % end
   % end
 </div>
index b7b63a1aa19975e3d3c5abc13f68a56be4eb4d67..2c4d76b1472088559851fdf58844e08c0f75dc6f 100644 (file)
@@ -1,9 +1,24 @@
 % include('_meta_head.tpl')
 <style>
 % include('_card.css')
-  .card {
-      page-break-before: always;
-  }
+.card {
+    page-break-before: always;
+    width: 100vw;
+    min-height: 100vh;
+    border: 5vw solid #aaaaaa;
+}
+.title {
+    text-align: center;
+    font-size: 7vw;
+}
+.answer {
+    padding: 2vw;
+}
+.paragraph, .answer, .prompt {
+    font-size: 4vw;
+    padding-left: 4vw;
+    padding-right: 4vw;
+}
 </style>
 <body>
 % for card in cards: