-
Notifications
You must be signed in to change notification settings - Fork 56
/
index.css
179 lines (156 loc) · 2.83 KB
/
index.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
.purchase-available,
.product-inventory,
.cashbox-change,
.cashbox-remaining {
border-collapse: collapse;
border-spacing: 0;
text-align: center;
vertical-align: top;
table-layout: fixed;
}
.cashbox-change,
.cashbox-remaining {
width: 100%;
max-width: 300px;
}
.product-inventory {
width: 340px;
}
.purchase-available {
width: 445px;
}
.cashbox-change col,
.cashbox-remaining col {
width: 65px;
}
.purchase-available td,
.product-inventory td,
.cashbox-change td,
.cashbox-remaining td {
border-color: black;
border-style: solid;
border-width: 1px;
font-family: Arial, sans-serif;
font-size: 14px;
overflow: hidden;
padding: 10px 5px;
word-break: normal;
}
.purchase-available th,
.product-inventory th,
.cashbox-change th,
.cashbox-remaining th {
border-color: black;
border-style: solid;
border-width: 1px;
font-family: Arial, sans-serif;
font-size: 14px;
font-weight: normal;
overflow: hidden;
padding: 10px 5px;
word-break: normal;
}
body {
text-align: center;
margin: 0;
padding: 2rem 1rem;
word-break: keep-all;
overflow-wrap: break-word;
font-size: 1.0625rem;
overflow-anchor: none;
background-color: #f4f3f5;
}
section {
width: 28rem;
}
section:last-child {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 1rem;
}
#app {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
input[type='number'],
input[type='text'] {
all: unset;
font-size: 0.825rem;
padding: 0.5rem;
background: white;
text-align: left;
border: 1px solid #afafaf;
border-radius: 6px;
width: calc(100% - 6.125rem);
}
#charge-button,
#product-add-button,
#vending-machine-charge-button {
padding: 0.5rem;
margin-left: 0.5rem;
}
button {
all: unset;
font-size: 0.825rem;
cursor: pointer;
border: 1px solid #afafaf;
border-radius: 6px;
padding: 0.3rem 0.45rem;
}
section p {
border: 1px dashed rgb(70, 70, 70);
border-radius: 6px;
padding: 8px 0;
border-radius: 6px;
width: 65%;
font-size: 14px;
}
.purchase-container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.product-inventory {
margin-top: 1rem;
}
.product-container input:not(:first-child) {
margin-top: 0.5rem;
}
.vending-machine-wrapper {
width: 65%;
}
#product-add-button {
margin-left: 0;
margin-top: 0.5rem;
width: 78%;
}
#coin-return-button {
margin-bottom: 1rem;
}
button:active {
box-shadow: 1px 1px 2px 1px #d8d8d8 inset;
}
.cashbox-remaining,
.purchase-available,
.cashbox-change,
.product-inventory {
border-radius: 10px;
border-collapse: collapse;
border-style: hidden;
box-shadow: 0 0 0 1px rgb(66, 66, 66);
}
.purchase-available td,
.product-inventory td,
.cashbox-change td,
.cashbox-remaining td,
.purchase-available th,
.product-inventory th,
.cashbox-change th,
.cashbox-remaining th {
border: 1px solid rgb(66, 66, 66);
}