aboutsummaryrefslogtreecommitdiff
path: root/ui/css/style.css
blob: a3c1f38ccc2022a4493c7c0d2d5e2684a9ada649 (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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
/* CSS for styling */
body, html {
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: sans-serif;
}

* { user-select: none; }
*:focus { outline: none; }

.container {
	display: grid;
	grid-template-columns: 1fr 2fr;
	grid-template-rows: 1fr 2fr;
	gap: 10px;
	width: 100vw;
	height: 100vh;
}

.section {
	background-color: #f0f0f0;
	border: 1px solid #ccc;
	display: flex;
	flex-direction: column; /* Ensure content within sections stacks vertically */
	justify-content: center;
	align-items: center;
	font-size: 24px;
	overflow-y: auto; /* Add vertical scrolling */
}

.section.overview_control { 
	grid-row: 1 / span 2; /* Span the top left section across both rows */
	justify-content: unset;
	align-items: normal;
	padding: 8px;
	gap: 8px;
}

.table-wrapper {
	flex-grow: 1; /* Table wrapper takes remaining space */
	display: flex;
	justify-content: flex-start; /* Align content to the left */
	align-items: flex-start; /* Align content to the top */
	flex-direction: column; /* Content arranged in a column */
	overflow: auto; /* Enable scrolling within the table wrapper */
}

#myTable {
	background-color: #fff;
	width: 100%;
	border-collapse: collapse; /* Collapse table borders */
}

#myTable th {
	position: sticky;
	top: 0; /* Stick the table header to the top */
	background-color: #f0f0f0; /* Set background color for the sticky header */
	width: 100%; /* Ensure table header takes full width */
}

.button-wrapper {
	position: sticky;
	top: 0; /* Stick the button wrapper to the top */
	background-color: #f0f0f0; /* Set background color for the sticky wrapper */
	padding: 10px; /* Add padding for spacing */
	left: 10px;
}

ul {
	list-style-type: none;
	padding: 0;
}
.list-item {
	margin-bottom: 10px;
	display: flex;
	align-items: center;
}

.dot {
	height: 10px;
	width: 10px;
	border-radius: 999px;
	margin-right: 10px;
}
.dot.on { background-color: green; }
.dot.off { background-color: red; }

.buttons {
	margin-left: auto;
}
.dropdown {
	margin-left: 10px;
}

.bottom-right {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center; /* Align squares to the center horizontally */
	gap: 8px;
}

.bottom-right p {
	margin: 8px;
}
.canvas-square {
	border: 5px solid black;
	flex-grow: 1;
	height: calc(40% - 5px);
	background-color: #ccc;
	position: relative;
}
.traffic-light {
	width: 20px;
	height: 20px;
	background-color: red;
	position: absolute;
	bottom: 5px;
	right: 5px;
}
.barrier {
	width: 20px;
	height: 20px;
	background-color: red;
	position: absolute;
	bottom: 5px;
	left: 5px;
}

/* Styles for the inner content of the squares */
.inner-content {
	position: absolute;
	inset: 8px;
}

details {
	border: 1px solid #0008;
	padding: 4px;
}

details summary {
	user-select: none;
	cursor: pointer;
}

details[open] summary {
	border-bottom: 1px solid #0008;
}

input[type="range"] {
	width: 100%;
}

dialog {
	z-index: 999;
	min-width: 320px;
	text-align: center;
	border-radius: 12px;
	border: 1px solid #0006;
	box-shadow: 0 4px 32px -12px #000a;
}
::backdrop {
  background-color: #0008;
  /* opacity: 0.6; */
	backdrop-filter: blur(12px);
}

.blink {
	animation-name: blink;
	animation-duration: 150ms;
	animation-direction: alternate;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
}

@keyframes blink {
  from { color: red; }
  to { color: black; }
}

.padtop { margin-top: 16px; }
dialog h1 { margin-top: 0; }

button {
	font-size: 1rem;
	border-radius: 8px;
	border: 1px solid #0004;
	padding: 4px 8px;
	cursor: pointer;
	background-color: #0001;
}

button[disabled] {
	cursor: not-allowed;
}

button:not([disabled]):active {
	background-color: #0004;
}

.inputlabel {
	display: flex;
	gap: 8px;
	align-items: stretch;
}