summaryrefslogtreecommitdiff
path: root/www/css/index.scss
blob: 5b5d2afeeec1283804bb759fb87d292464a62236 (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
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
$yellow: #E5B217;
$red: #80181A;

* {
	box-sizing: border-box;
}

html {
	height: 100%;
	body {
		font-size: 4vw;
		margin: 0;
		padding: 0;
		
		background-color: $red;
		color: $yellow;
		font-family: sans-serif;
		font-weight: bolder;
		h1 {
			text-align: center;
		}
		a {
			text-decoration: none;
			color: $yellow;
			/* no :hover or :focus because touch screens */
			&:active {
				text-decoration: underline;
				background-color: $yellow;
				color: $red;
			}
		}
		input[type=text], input[type=password], input[type=email], select {
			padding: 0 0.25em;
			border: none;
			background: bottom left   linear-gradient(#a9a9a9, #a9a9a9) no-repeat,
			            bottom center linear-gradient(#a9a9a9, #a9a9a9) repeat-x,
			            bottom right  linear-gradient(#a9a9a9, #a9a9a9) no-repeat;
			background-size: 1px 6px, 1px 1px, 1px 6px;
			color: $yellow;
			&:hover, &:active, &:focus {
				background: bottom left   linear-gradient($yellow, $yellow) no-repeat,
				            bottom center linear-gradient($yellow, $yellow) repeat-x,
				            bottom right  linear-gradient($yellow, $yellow) no-repeat;
				background-size: 1px 6px, 1px 1px, 1px 6px;
				color: $yellow;
			}
		}
		option[disabled] { display: none; }
	}
}
body#index {
	height: 100%;
	table {
		width: 100%;
		height: 100%;

		padding: 0;
		margin: 0;
		border-collapse: collapse;

		td, th {
			border: solid 1px $yellow;
		}
		td {
			text-align: center;
			vertical-align: middle;
		}

		tbody {
			th {
				height: 10%;
				background-color: $yellow;
				color: $red;
			}
			td {
				width: 33%;
				height: 30%;
				div {
					/* A wrapper round cell contents allowing us to use fancy
					   table-positioning inside of the cell */
					display: table;

					width: 100%;
					height: 100%;
					a {
						display: table-cell;
						height: 100%;
						width: 100%;
						vertical-align: middle;
					}
					&.logo {
						background-image: url("../img/logo.png");
						background-size: contain;
						background-position: center center;
						background-repeat: no-repeat;
					}
				}
			}
		}
	}
}

body#report {
	margin: 0.5em;
	form {
		width: 100%;
		label {
			display: table;
			//border: solid 1px #0000FF;
			width: 100%;
			margin-bottom: 0.25em;
			span {
				display: table-cell;
				width: 8em;
			}
			input, select {
				display: table-cell;
				width: 100%;
			}
			textarea {
				display: inline-block;
				width: 100%;
				height: 3em;
				border: 0;
			}
		}
		input[type=submit] {
			width: 100%;
			height: 3em;
		}
	}
	#camera-ui {
		border: solid 1px $yellow;
		text-align: center;
		padding: 0.5em;
		min-height: 5em;
		a {
			border: solid 1px $yellow;
			border-radius: 3px;
			padding: 0.5em;
			display: inline-block;
		}
		img {
			display: block;
			margin-left: auto;
			margin-right: auto;
			max-width: 50%;
			height: auto;
		}
	}
	& > video {
		/* Camera feed for browser */
		position: absolute;
		left: 0;
		width: 100%;

		top: 0;
		height: auto;
		max-height: 100%;
		display: block;
	}
	& > button {
		/* Camera capture button for browser */
		position: absolute;
		left: 0;
		width: 100%;

		bottom: 0;
		height: 3em;
	}
}

body#msds, body#alert {
	a {
		display: inline-block;
		width: 100%;
		padding-left: 1em;
		line-height: 3em;
		border: solid 1px #a9a9a9;
		margin-top: -1px;
	}
}

body#ppe {
	margin: 1em;
}

body#emergency {
	img {
		width: 100%;
		height: auto;
	}
}