-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
205 lines (184 loc) · 3.63 KB
/
style.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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
body {
margin: 1vh 1vw;
background-color: #ffffff;
max-height: 100vh;
}
h1 {
cursor: pointer;
}
ul,
fieldset,
legend {
border: 1px solid;
background-color: #ffffff;
}
ul {
padding: 0;
font-family: monospace;
}
li,
legend {
list-style-type: none;
padding: 0.2em 0.5em;
background-color: #ACE1AF;
}
li:nth-of-type(even) {
background-color: inherit;
}
/* Saved inventory li style */
.savedinv {
display: flex;
justify-content: space-between;
}
.savedinv a {
margin: 0 5px;
text-decoration: underline;
cursor: pointer;
}
/* Fix height of rows form */
.rows-fieldset {
max-height: 50vh;
overflow-y: auto;
}
/* Custom row style */
.inv-row{
border-radius: 5px;
}
.inv-row input {
margin: 5px;
}
.inv-row:nth-of-type(even){
background-color: #D5D4D4;
}
.inv-row:nth-of-type(odd){
background-color: #F5F5F5;
}
/* Define the selected row background color */
.selected {background-color: #93E7FC !important;}
.autocomplete {
/*the container must be positioned relative:*/
position: relative;
display: inline-block;
}
.autocomplete-items {
position: absolute;
border: 1px solid #d4d4d4;
border-bottom: none;
border-top: none;
z-index: 99;
/*position the autocomplete items to be the same width as the container:*/
top: 100%;
left: 0;
right: 0;
}
.autocomplete-items div {
padding: 10px;
cursor: pointer;
background-color: #ffffff;
border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
/*when hovering an item:*/
background-color: #e9e9e9;
}
.autocomplete-active {
/*when navigating through the items using the arrow keys:*/
background-color: DodgerBlue !important;
color: #ffffff;
}
/* Image panel */
.img-container {
background-color: #d4d4d4;
border: 2px solid black;
border-radius: 5px;
font-size: 1.3em;
/* Centering the div */
/* height/2 + padding-top + top = 50vh */
height: 60vh;
padding: 5vh 5vw;
top: 15vh;
/* width/2 + padding-lef + left = 50vw */
width: 86vw;
left: 2vw;
position: absolute;
overflow: auto;
z-index: 5;
}
.img-container-controlls {
display: flex;
justify-content: space-around;
}
.img-preview {
border: 2px dashed grey;
border-radius: 5px;
margin: auto;
padding: 5px;
}
.img-preview p {
display: flex;
align-items: center;
justify-content: space-around;
font-size: 0.8em;
}
.img-preview img {
display: block;
height: auto;
margin: auto;
width: 40vw;
}
/* Fake button */
/* Hide an input element (transparent 100%) */
/* Put then a 'fake' button with custom style */
/* When the user taps the button first input will be clicked. */
.fakebtn-container {
position: relative;
}
/* Displayed button (style to show) */
.fakebtn {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
z-index: 1;
}
.fakebtn button {
padding: 3px 10px;
background-color: white;
border-radius: 5px;
border: none;
appearance: none;
text-decoration: none;
color: black;
font-weight: 400;
}
/* Input file type*/
.transparent {
position: relative;
opacity: 0;
width: 100%;
z-index: 2;
}
/* Put a div below the add image box to block the app */
.block-app-div {
background-color: #0009;
width: 100vw;
height: 100vh;
padding: 0;
margin: 0;
position: fixed;
top: 0;
left: 0;
}
/* Cross to close styling */
.cross-to-close {
position: relative;
top: -4%;
left: -3%;
}
.cross-to-close span {
color: black;
cursor: pointer;
font-family: monospace;
font-weight: bold;
font-size: 1.4em;
}