aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/style.css
diff options
context:
space:
mode:
authorBen Woodward <ben@bdw.to>2021-07-11 10:49:28 -0700
committerGitHub <noreply@github.com>2021-07-11 10:49:28 -0700
commitd2dd54caca19d3660e49c729828d52aa2bbb5716 (patch)
treeac08cce8dfe4ab541fe82ea7b4034cff2cf0a10a /src/components/style.css
parent3c777e31e5f01b543a8bf213c6c9733920ee53fb (diff)
Portrait orientation (#35)
* Portrait orientation Adds a rotate button that toggle landscape and portrait orientation. Fixes #30 * Fix QRCode padding in portait orientation * Default to portrait on small screens
Diffstat (limited to 'src/components/style.css')
-rw-r--r--src/components/style.css37
1 files changed, 24 insertions, 13 deletions
diff --git a/src/components/style.css b/src/components/style.css
index 4feb1d6..c1b78be 100644
--- a/src/components/style.css
+++ b/src/components/style.css
@@ -1,20 +1,23 @@
1@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro'); 1@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro');
2 2
3#print-area { 3#print-area {
4 border-color: #aaa;
5 border-style: dashed;
6 margin-bottom: 2em;
4 margin-top: 2em; 7 margin-top: 2em;
5 padding: 1em; 8 padding: 1em;
6} 9}
10
7.details { 11.details {
8 display: flex; 12 display: flex;
9 padding: 1em; 13 align-items: center;
10} 14}
11.details .text { 15
12 margin: 0; 16.qrcode {
13} 17 margin-bottom: 1em;
14.details .text * {
15 margin: 0 1em;
16} 18}
17.details .text textarea { 19
20textarea {
18 background-color: #fff; 21 background-color: #fff;
19 border: solid 1px #ddd; 22 border: solid 1px #ddd;
20 font-family: 'Source Code Pro', serif; 23 font-family: 'Source Code Pro', serif;
@@ -24,14 +27,22 @@
24 overflow: hidden; 27 overflow: hidden;
25 resize: none; 28 resize: none;
26} 29}
27.print-btn { 30
28 padding-top: 2em; 31button {
29}
30.print-btn button {
31 color: #fff;
32 height: 50px; 32 height: 50px;
33 width: 180px; 33 width: 180px;
34}
35
36button#print {
37 color: #fff;
34 background-color: #0074d9; 38 background-color: #0074d9;
39 border-color: #0074d9;
40}
41
42button#rotate {
43 color: #fff;
44 background-color: #6c757d;
45 border-color: #6c757d;
35} 46}
36 47
37@media print { 48@media print {
@@ -42,7 +53,7 @@
42 #print-area * { 53 #print-area * {
43 visibility: visible; 54 visibility: visible;
44 } 55 }
45 #print-area input { 56 #print-area textarea {
46 border: none; 57 border: none;
47 } 58 }
48 #print-area { 59 #print-area {