aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/style.css
blob: 87ba63a4b64030a1286674c294d6bc466a93b9dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
@font-face {
  font-family: 'Source Serif';
  src: url(./SourceSerif4-Semibold.otf);
}

.card-print {
  border-color: #aaa;
  margin-bottom: 1em;
  margin-top: 2em;
  padding: 1em;
}

#print-area {
  display: none;
}

.details {
  display: flex;
  align-items: center;
}

.qrcode {
  max-width: 175px;
  padding: 1em;
}

.hidden {
  display: none;
}
textarea {
  background-color: #fff;
  border: solid 1px #ddd;
  font-family: 'Source Serif', serif !important;
  font-size: 1.2em !important;
  margin-bottom: 0;
  height: 40px !important;
  min-height: 0px !important;
  overflow: hidden;
  resize: none;
}
textarea#password {
  height: 60px !important;
}

hr {
  margin-top: 0;
}

button {
  height: 50px;
  width: 180px;
}

#settings {
  margin-bottom: 1em;
  padding: 1em;
}

#settings label span {
  margin-right: 8px;
}

@media print {
  body * {
    visibility: hidden;
  }
  #print-area,
  #print-area * {
    visibility: visible;
    /* For printing, use a font stack that prioritizes system fonts 
       to ensure CJK characters are rendered correctly in Chrome. */
    font-family:
      'PingFang SC', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans JP',
      'Noto Sans KR', 'Microsoft YaHei', serif;
    font-weight: 500;
    font-style: semibold;
  }
  #print-area {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    row-gap: 0em;
  }
  .card-print {
    border-style: dashed;
    box-shadow: none;
    margin-bottom: 0;
    margin-top: 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}