aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/style.css
diff options
context:
space:
mode:
authorguicamest <guicamest@gmail.com>2023-08-15 17:32:18 +0200
committerGitHub <noreply@github.com>2023-08-15 08:32:18 -0700
commitf1d79a17f615a9cd34b15dd7b96764e4bb99486a (patch)
treeadbaf3522176ad3240a47183388d5d8127abd3a8 /src/components/style.css
parent7f2413d3d08b5da7a30c17ecfc1586f5bc7b1219 (diff)
Allow setting additional cards to print (#275)
* Add setting for additional cards to print * Render additional cards to print * Do not render additional cards if amount is less than 1 * Render additional cards when printing * Improve layout for portrait printing * Render eap and identity textfields conditionally so that they dont use space * Use all width in print-area * Change additionalCards setting to Input and react to changes * Allow hiding tip (legend) on card * Print only full cards * Move print-area - not-displayed - to the bottom of the page * Set default ssid back to empty, additional cards to 0 * Lower marginBottom of password field to 5 instead of 24 (default) * Use conditional rendering instead of class to hide password * Set marginBottom to QR code only on portrait mode * Set row-gap to 0 to allow up to 6 cards to fit in portrait mode in A4 * Move hideTip setting right after hiddenSSID
Diffstat (limited to 'src/components/style.css')
-rw-r--r--src/components/style.css24
1 files changed, 18 insertions, 6 deletions
diff --git a/src/components/style.css b/src/components/style.css
index 5275770..10eac9b 100644
--- a/src/components/style.css
+++ b/src/components/style.css
@@ -3,21 +3,25 @@
3 src: url(./SourceSerif4-Semibold.otf); 3 src: url(./SourceSerif4-Semibold.otf);
4} 4}
5 5
6#print-area { 6.card-print {
7 border-color: #aaa; 7 border-color: #aaa;
8 margin-bottom: 1em; 8 margin-bottom: 1em;
9 margin-top: 2em; 9 margin-top: 2em;
10 padding: 1em; 10 padding: 1em;
11} 11}
12 12
13#print-area {
14 display: none;
15}
16
13.details { 17.details {
14 display: flex; 18 display: flex;
15 align-items: center; 19 align-items: center;
16} 20}
17 21
18.qrcode { 22.qrcode {
19 margin-bottom: 1em;
20 max-width: 175px; 23 max-width: 175px;
24 padding: 1em;
21} 25}
22 26
23.hidden { 27.hidden {
@@ -65,12 +69,20 @@ button {
65 visibility: visible; 69 visibility: visible;
66 } 70 }
67 #print-area { 71 #print-area {
68 border-style: dashed;
69 box-shadow: none;
70 }
71 #print-area {
72 position: absolute; 72 position: absolute;
73 left: 0; 73 left: 0;
74 top: 0; 74 top: 0;
75 display: flex;
76 flex-wrap: wrap;
77 justify-content: space-evenly;
78 row-gap: 0em;
79 }
80 .card-print {
81 border-style: dashed;
82 box-shadow: none;
83 margin-bottom: 0;
84 margin-top: 0;
85 break-inside: avoid;
86 page-break-inside: avoid;
75 } 87 }
76} 88}