-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.css
121 lines (98 loc) · 2 KB
/
main.css
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
* {
box-sizing: border-box;
}
@import url('https://fonts.googleapis.com/css2?family=Anton&family=IBM+Plex+Mono&family=Open+Sans:wght@500;700&family=Prompt:wght@300;800;900&display=swap');
body {
margin: 0;
font-family: 'Open Sans', sans-serif;
min-width: 320px;
}
.header {
font-family: 'Prompt', sans-serif;
text-align: center;
padding: 32px;
}
.header h1{
font-size:xx-large;
font-weight: 800;
}
.header p {
font-weight: 300;
}
.grid-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 8px;
grid-gap: 10px;
}
.barcode-container {
flex: 1 1 30%;
min-width: 120px;
min-height: 120px;
margin: 5px;
position: relative;
}
@media screen and (max-width: 320px){
.barcode-container {
flex: 1 0 100%;
margin: 5px;
position: relative;
}
}
@media screen and (max-width: 800px){
.barcode-container {
flex: 1 0 50%;
margin: 5px;
position: relative;
}
}
/*TODO: make this work with bothe themes*/
.barcode-image {
width: 100%;
height: 100%;
object-fit: contain; /* Preserve aspect ratio */
position: absolute;
padding: 8px;
background-color: rgb(214, 232, 255);
}
@media (min-width: 320px) {
body {
min-width: 320px;
}
}
.column {
float: left;
width: 20%;
padding: 5px;
margin: 16px;
}
li {
list-style-type: square;
margin-bottom: 8px;
}
/* Clearfix (clear floats) */
.row::after {
content: "";
clear: both;
display: table;
}
/* Responsive layout - makes the columns stack on top of each other instead of next to each other */
@media screen and (max-width: 500px) {
.column {
width: 100%;
}
}
@media print {
body * {
visibility: hidden;
}
#barcodesContainer, #barcodesContainer * {
visibility: visible;
}
#barcodesContainer {
position: absolute;
left: 0;
top: 0;
}
}