]>
Commit | Line | Data |
---|---|---|
d58f8b51 JM |
1 | /* |
2 | * noVNC base CSS | |
3 | * Copyright (C) 2012 Joel Martin | |
682fd02b | 4 | * Copyright (C) 2016 Samuel Mannehed for Cendio AB |
6cba147d | 5 | * Copyright (C) 2016 Pierre Ossman for Cendio AB |
1d728ace | 6 | * noVNC is licensed under the MPL 2.0 (see LICENSE.txt) |
d58f8b51 JM |
7 | * This file is licensed under the 2-Clause BSD license (see LICENSE.txt). |
8 | */ | |
9 | ||
cac935ff PO |
10 | /* |
11 | * Z index layers: | |
12 | * | |
13 | * 0: Main screen | |
14 | * 10: Control bar | |
15 | * 50: Transition blocker | |
16 | * 60: Connection popups | |
17 | * 100: Status bar | |
18 | * ... | |
19 | * 1000: Javascript crash | |
20 | * ... | |
21 | * 10000: Max (used for polyfills) | |
22 | */ | |
23 | ||
c327865b | 24 | body { |
01a9eee9 JM |
25 | margin:0; |
26 | padding:0; | |
27 | font-family: Helvetica; | |
28 | /*Background image with light grey curve.*/ | |
29 | background-color:#494949; | |
30 | background-repeat:no-repeat; | |
31 | background-position:right bottom; | |
32 | height:100%; | |
b1358a1f | 33 | touch-action: none; |
c327865b CG |
34 | } |
35 | ||
36 | html { | |
01a9eee9 | 37 | height:100%; |
c327865b CG |
38 | } |
39 | ||
65e3d7d6 PO |
40 | .noVNC_only_touch.noVNC_hidden { |
41 | display: none; | |
42 | } | |
43 | ||
24584cca SM |
44 | .noVNC_disabled { |
45 | color: rgb(128, 128, 128); | |
46 | } | |
47 | ||
8d710e8b PO |
48 | /* ---------------------------------------- |
49 | * Spinner | |
50 | * ---------------------------------------- | |
51 | */ | |
52 | ||
53 | .noVNC_spinner { | |
54 | position: relative; | |
55 | } | |
56 | .noVNC_spinner, .noVNC_spinner::before, .noVNC_spinner::after { | |
57 | width: 10px; | |
58 | height: 10px; | |
3f48c701 | 59 | border-radius: 2px; |
7e192163 | 60 | box-shadow: -60px 10px 0 rgba(255, 255, 255, 0); |
3f48c701 | 61 | animation: noVNC_spinner 1.0s linear infinite; |
8d710e8b PO |
62 | } |
63 | .noVNC_spinner::before { | |
64 | content: ""; | |
65 | position: absolute; | |
3f48c701 PO |
66 | left: 0px; |
67 | top: 0px; | |
68 | animation-delay: -0.1s; | |
8d710e8b PO |
69 | } |
70 | .noVNC_spinner::after { | |
71 | content: ""; | |
72 | position: absolute; | |
3f48c701 PO |
73 | top: 0px; |
74 | left: 0px; | |
75 | animation-delay: 0.1s; | |
8d710e8b PO |
76 | } |
77 | @keyframes noVNC_spinner { | |
3f48c701 PO |
78 | 0% { box-shadow: -60px 10px 0 rgba(255, 255, 255, 0); width: 20px; } |
79 | 25% { box-shadow: 20px 10px 0 rgba(255, 255, 255, 1); width: 10px; } | |
80 | 50% { box-shadow: 60px 10px 0 rgba(255, 255, 255, 0); width: 10px; } | |
8d710e8b PO |
81 | } |
82 | ||
79fd3b1f PO |
83 | /* ---------------------------------------- |
84 | * Input Elements | |
85 | * ---------------------------------------- | |
86 | */ | |
87 | ||
6c857dc5 SM |
88 | input[type=input], input[type=password], input[type=number], |
89 | input:not([type]), textarea { | |
79fd3b1f PO |
90 | /* Disable default rendering */ |
91 | -webkit-appearance: none; | |
92 | -moz-appearance: none; | |
93 | background: none; | |
94 | ||
95 | margin: 2px; | |
96 | padding: 2px; | |
97 | border: 1px solid rgb(192, 192, 192); | |
98 | border-radius: 5px; | |
99 | color: black; | |
100 | background: linear-gradient(to top, rgb(255, 255, 255) 80%, rgb(240, 240, 240)); | |
101 | } | |
102 | ||
84b05d24 | 103 | input[type=button], input[type=submit], select { |
79fd3b1f PO |
104 | /* Disable default rendering */ |
105 | -webkit-appearance: none; | |
106 | -moz-appearance: none; | |
107 | background: none; | |
108 | ||
109 | margin: 2px; | |
110 | padding: 2px; | |
111 | border: 1px solid rgb(192, 192, 192); | |
112 | border-bottom-width: 2px; | |
113 | border-radius: 5px; | |
114 | color: black; | |
115 | background: linear-gradient(to top, rgb(255, 255, 255), rgb(240, 240, 240)); | |
116 | ||
117 | /* This avoids it jumping around when :active */ | |
118 | vertical-align: middle; | |
119 | } | |
120 | ||
84b05d24 | 121 | input[type=button], input[type=submit] { |
79fd3b1f PO |
122 | padding-left: 20px; |
123 | padding-right: 20px; | |
124 | } | |
125 | ||
126 | option { | |
127 | color: black; | |
128 | background: white; | |
129 | } | |
130 | ||
131 | input[type=input]:focus, input[type=password]:focus, | |
132 | input:not([type]):focus, input[type=button]:focus, | |
84b05d24 | 133 | input[type=submit]:focus, |
79fd3b1f PO |
134 | textarea:focus, select:focus { |
135 | box-shadow: 0px 0px 3px rgba(74, 144, 217, 0.5); | |
136 | border-color: rgb(74, 144, 217); | |
137 | outline: none; | |
138 | } | |
139 | ||
84b05d24 PO |
140 | input[type=button]::-moz-focus-inner, |
141 | input[type=submit]::-moz-focus-inner { | |
79fd3b1f PO |
142 | border: none; |
143 | } | |
144 | ||
145 | input[type=input]:disabled, input[type=password]:disabled, | |
146 | input:not([type]):disabled, input[type=button]:disabled, | |
6c857dc5 | 147 | input[type=submit]:disabled, input[type=number]:disabled, |
79fd3b1f PO |
148 | textarea:disabled, select:disabled { |
149 | color: rgb(128, 128, 128); | |
150 | background: rgb(240, 240, 240); | |
151 | } | |
152 | ||
84b05d24 PO |
153 | input[type=button]:active, input[type=submit]:active, |
154 | select:active { | |
79fd3b1f PO |
155 | border-bottom-width: 1px; |
156 | margin-top: 3px; | |
157 | } | |
158 | ||
84b05d24 PO |
159 | :root:not(.noVNC_touch) input[type=button]:hover:not(:disabled), |
160 | :root:not(.noVNC_touch) input[type=submit]:hover:not(:disabled), | |
161 | :root:not(.noVNC_touch) select:hover:not(:disabled) { | |
1a15cb5b PO |
162 | background: linear-gradient(to top, rgb(255, 255, 255), rgb(250, 250, 250)); |
163 | } | |
164 | ||
8a7ec6ea SM |
165 | /* ---------------------------------------- |
166 | * WebKit centering hacks | |
167 | * ---------------------------------------- | |
168 | */ | |
169 | ||
170 | .noVNC_center { | |
171 | /* | |
172 | * This is a workaround because webkit misrenders transforms and | |
173 | * uses non-integer coordinates, resulting in blurry content. | |
174 | * Ideally we'd use "top: 50%; transform: translateY(-50%);" on | |
175 | * the objects instead. | |
176 | */ | |
177 | display: flex; | |
178 | align-items: center; | |
179 | justify-content: center; | |
180 | position: fixed; | |
181 | top: 0; | |
182 | left: 0; | |
183 | width: 100%; | |
184 | height: 100%; | |
185 | pointer-events: none; | |
186 | } | |
187 | .noVNC_center > * { | |
188 | pointer-events: auto; | |
189 | } | |
fb7c3b3b PO |
190 | .noVNC_vcenter { |
191 | display: flex; | |
192 | flex-direction: column; | |
193 | justify-content: center; | |
194 | position: fixed; | |
195 | top: 0; | |
196 | left: 0; | |
197 | height: 100%; | |
198 | pointer-events: none; | |
199 | } | |
200 | .noVNC_vcenter > * { | |
201 | pointer-events: auto; | |
202 | } | |
8a7ec6ea | 203 | |
cac935ff PO |
204 | /* ---------------------------------------- |
205 | * Layering | |
206 | * ---------------------------------------- | |
207 | */ | |
208 | ||
209 | .noVNC_connect_layer { | |
210 | z-index: 60; | |
211 | } | |
212 | ||
d24de750 SM |
213 | /* ---------------------------------------- |
214 | * Fallback error | |
215 | * ---------------------------------------- | |
216 | */ | |
217 | ||
218 | #noVNC_fallback_error { | |
cac935ff | 219 | z-index: 1000; |
d24de750 | 220 | visibility: hidden; |
13c558e3 PO |
221 | } |
222 | #noVNC_fallback_error.noVNC_open { | |
223 | visibility: visible; | |
224 | } | |
d24de750 | 225 | |
13c558e3 PO |
226 | #noVNC_fallback_error > div { |
227 | max-width: 90%; | |
d24de750 | 228 | padding: 15px; |
13c558e3 PO |
229 | |
230 | transition: 0.5s ease-in-out; | |
231 | ||
232 | transform: translateY(-50px); | |
233 | opacity: 0; | |
d24de750 SM |
234 | |
235 | text-align: center; | |
236 | font-weight: bold; | |
d24de750 SM |
237 | color: #fff; |
238 | ||
239 | border-radius: 10px; | |
240 | box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5); | |
241 | background: rgba(200,55,55,0.8); | |
242 | } | |
13c558e3 PO |
243 | #noVNC_fallback_error.noVNC_open > div { |
244 | transform: translateY(0); | |
d24de750 SM |
245 | opacity: 1; |
246 | } | |
d8ff7c9e | 247 | |
d24de750 SM |
248 | #noVNC_fallback_errormsg { |
249 | font-weight: normal; | |
250 | } | |
251 | ||
adfc9d3f SR |
252 | #noVNC_fallback_errormsg .noVNC_message { |
253 | display: inline-block; | |
254 | text-align: left; | |
c361080b PO |
255 | font-family: monospace; |
256 | white-space: pre-wrap; | |
adfc9d3f SR |
257 | } |
258 | ||
d8ff7c9e SM |
259 | #noVNC_fallback_error .noVNC_location { |
260 | font-style: italic; | |
261 | font-size: 0.8em; | |
262 | color: rgba(255, 255, 255, 0.8); | |
263 | } | |
264 | ||
265 | #noVNC_fallback_error .noVNC_stack { | |
637a282b | 266 | max-height: 50vh; |
d8ff7c9e SM |
267 | padding: 10px; |
268 | margin: 10px; | |
269 | font-size: 0.8em; | |
270 | text-align: left; | |
c361080b | 271 | font-family: monospace; |
637a282b | 272 | white-space: pre; |
d8ff7c9e SM |
273 | border: 1px solid rgba(0, 0, 0, 0.5); |
274 | background: rgba(0, 0, 0, 0.2); | |
637a282b | 275 | overflow: auto; |
d8ff7c9e SM |
276 | } |
277 | ||
2869308c | 278 | /* ---------------------------------------- |
279 | * Control Bar | |
280 | * ---------------------------------------- | |
281 | */ | |
282 | ||
fb7c3b3b PO |
283 | #noVNC_control_bar_anchor { |
284 | /* The anchor is needed to get z-stacking to work */ | |
2869308c | 285 | position: fixed; |
cac935ff | 286 | z-index: 10; |
ca5c74ad | 287 | |
728b5d9e PO |
288 | transition: 0.5s ease-in-out; |
289 | ||
fb7c3b3b PO |
290 | /* Edge misrenders animations wihthout this */ |
291 | transform: translateX(0); | |
292 | } | |
728b5d9e PO |
293 | :root.noVNC_connected #noVNC_control_bar_anchor.noVNC_idle { |
294 | opacity: 0.8; | |
295 | } | |
8ee432f1 PO |
296 | #noVNC_control_bar_anchor.noVNC_right { |
297 | left: auto; | |
298 | right: 0; | |
299 | } | |
fb7c3b3b PO |
300 | |
301 | #noVNC_control_bar { | |
302 | position: relative; | |
8ee432f1 | 303 | left: -100%; |
38323d4d PO |
304 | |
305 | transition: 0.5s ease-in-out; | |
fb7c3b3b PO |
306 | |
307 | background-color: rgb(110, 132, 163); | |
308 | border-radius: 0 10px 10px 0; | |
309 | ||
fb7c3b3b | 310 | } |
38323d4d PO |
311 | #noVNC_control_bar.noVNC_open { |
312 | box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5); | |
8ee432f1 PO |
313 | left: 0; |
314 | } | |
315 | #noVNC_control_bar::before { | |
316 | /* This extra element is to get a proper shadow */ | |
317 | content: ""; | |
318 | position: absolute; | |
319 | z-index: -1; | |
320 | height: 100%; | |
321 | width: 30px; | |
38323d4d | 322 | left: -30px; |
8ee432f1 PO |
323 | transition: box-shadow 0.5s ease-in-out; |
324 | } | |
325 | #noVNC_control_bar.noVNC_open::before { | |
326 | box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5); | |
327 | } | |
328 | .noVNC_right #noVNC_control_bar { | |
329 | left: 100%; | |
330 | border-radius: 10px 0 0 10px; | |
331 | } | |
332 | .noVNC_right #noVNC_control_bar.noVNC_open { | |
333 | left: 0; | |
334 | } | |
335 | .noVNC_right #noVNC_control_bar::before { | |
336 | visibility: hidden; | |
38323d4d PO |
337 | } |
338 | ||
339 | #noVNC_control_bar_handle { | |
340 | position: absolute; | |
8ee432f1 | 341 | left: -15px; |
04b399e2 SM |
342 | top: 0; |
343 | transform: translateY(35px); | |
8ee432f1 | 344 | width: calc(100% + 30px); |
38323d4d | 345 | height: 50px; |
cac935ff | 346 | z-index: -1; |
38323d4d | 347 | cursor: pointer; |
8ee432f1 | 348 | border-radius: 5px; |
38323d4d PO |
349 | background-color: rgb(83, 99, 122); |
350 | background-image: url("../images/handle_bg.svg"); | |
351 | background-repeat: no-repeat; | |
352 | background-position: right; | |
353 | box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5); | |
354 | } | |
355 | #noVNC_control_bar_handle:after { | |
356 | content: ""; | |
8ee432f1 | 357 | transition: transform 0.5s ease-in-out; |
38323d4d PO |
358 | background: url("../images/handle.svg"); |
359 | position: absolute; | |
360 | top: 22px; /* (50px-6px)/2 */ | |
361 | right: 5px; | |
362 | width: 5px; | |
363 | height: 6px; | |
364 | } | |
365 | #noVNC_control_bar.noVNC_open #noVNC_control_bar_handle:after { | |
366 | transform: translateX(1px) rotate(180deg); | |
367 | } | |
368 | :root:not(.noVNC_connected) #noVNC_control_bar_handle { | |
369 | display: none; | |
370 | } | |
8ee432f1 PO |
371 | .noVNC_right #noVNC_control_bar_handle { |
372 | background-position: left; | |
373 | } | |
374 | .noVNC_right #noVNC_control_bar_handle:after { | |
375 | left: 5px; | |
376 | right: 0; | |
377 | transform: translateX(1px) rotate(180deg); | |
378 | } | |
379 | .noVNC_right #noVNC_control_bar.noVNC_open #noVNC_control_bar_handle:after { | |
380 | transform: none; | |
381 | } | |
65e3d7d6 PO |
382 | #noVNC_control_bar_handle div { |
383 | position: absolute; | |
384 | right: -35px; | |
385 | top: 0; | |
386 | width: 50px; | |
387 | height: 50px; | |
388 | } | |
389 | :root:not(.noVNC_touch) #noVNC_control_bar_handle div { | |
390 | display: none; | |
391 | } | |
8ee432f1 PO |
392 | .noVNC_right #noVNC_control_bar_handle div { |
393 | left: -35px; | |
394 | right: auto; | |
395 | } | |
fb7c3b3b PO |
396 | |
397 | #noVNC_control_bar .noVNC_scroll { | |
398 | max-height: 100vh; /* Chrome is buggy with 100% */ | |
399 | overflow-x: hidden; | |
400 | overflow-y: auto; | |
401 | padding: 0 10px 0 5px; | |
c327865b | 402 | } |
8ee432f1 PO |
403 | .noVNC_right #noVNC_control_bar .noVNC_scroll { |
404 | padding: 0 5px 0 10px; | |
405 | } | |
c327865b | 406 | |
bbc1648c SM |
407 | /* Control bar hint */ |
408 | #noVNC_control_bar_hint { | |
409 | position: fixed; | |
410 | left: calc(100vw - 50px); | |
411 | right: auto; | |
412 | width: 100px; | |
413 | height: 50%; | |
414 | max-height: 600px; | |
415 | ||
416 | visibility: hidden; | |
417 | opacity: 0; | |
418 | transition: 0.2s ease-in-out; | |
419 | background: transparent; | |
420 | box-shadow: 0 0 10px black, inset 0 0 10px 10px rgba(110, 132, 163, 0.8); | |
421 | border-radius: 10px; | |
422 | transition-delay: 0s; | |
423 | transform: scale(0); | |
424 | } | |
425 | #noVNC_control_bar_anchor.noVNC_right #noVNC_control_bar_hint{ | |
426 | left: auto; | |
427 | right: calc(100vw - 50px); | |
428 | } | |
429 | #noVNC_control_bar_hint.noVNC_active { | |
430 | visibility: visible; | |
431 | opacity: 1; | |
432 | transition-delay: 0.2s; | |
433 | transform: scale(1); | |
434 | } | |
435 | ||
2869308c | 436 | /* General button style */ |
a49d9298 | 437 | .noVNC_button { |
fb7c3b3b | 438 | display: block; |
2869308c | 439 | padding: 4px 4px; |
fb7c3b3b | 440 | margin: 10px 0; |
2869308c | 441 | vertical-align: middle; |
fb7c3b3b | 442 | border:1px solid rgba(255, 255, 255, 0.2); |
2869308c | 443 | border-radius: 6px; |
01a9eee9 | 444 | } |
d9e86214 | 445 | .noVNC_button.noVNC_selected { |
fb7c3b3b PO |
446 | border-color: rgba(0, 0, 0, 0.8); |
447 | background: rgba(0, 0, 0, 0.5); | |
c327865b | 448 | } |
a49d9298 | 449 | .noVNC_button:disabled { |
2869308c | 450 | opacity: 0.4; |
c327865b | 451 | } |
f7c725ce PO |
452 | .noVNC_button:focus { |
453 | outline: none; | |
454 | } | |
455 | .noVNC_button:active { | |
456 | padding-top: 5px; | |
457 | padding-bottom: 3px; | |
458 | } | |
1a15cb5b PO |
459 | :root:not(.noVNC_touch) .noVNC_button.noVNC_selected:hover { |
460 | border-color: rgba(0, 0, 0, 0.4); | |
461 | background: rgba(0, 0, 0, 0.2); | |
462 | } | |
463 | :root:not(.noVNC_touch) .noVNC_button:hover { | |
464 | background: rgba(255, 255, 255, 0.2); | |
465 | } | |
a49d9298 | 466 | .noVNC_button.noVNC_hidden { |
e40978c7 PO |
467 | display: none; |
468 | } | |
2869308c | 469 | |
470 | /* Panels */ | |
286947cb | 471 | .noVNC_panel { |
fb7c3b3b | 472 | transform: translateX(25px); |
24d8b311 PO |
473 | |
474 | transition: 0.5s ease-in-out; | |
475 | ||
fb7c3b3b PO |
476 | max-height: 100vh; /* Chrome is buggy with 100% */ |
477 | overflow-x: hidden; | |
478 | overflow-y: auto; | |
479 | ||
24d8b311 PO |
480 | visibility: hidden; |
481 | opacity: 0; | |
482 | ||
2869308c | 483 | padding: 15px; |
24d8b311 PO |
484 | |
485 | background: #fff; | |
2869308c | 486 | border-radius: 10px; |
487 | color: #000; | |
488 | border: 2px solid #E0E0E0; | |
24d8b311 | 489 | box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5); |
c327865b | 490 | } |
e40978c7 | 491 | .noVNC_panel.noVNC_open { |
24d8b311 PO |
492 | visibility: visible; |
493 | opacity: 1; | |
fb7c3b3b | 494 | transform: translateX(75px); |
a5df24b4 | 495 | } |
8ee432f1 PO |
496 | .noVNC_right .noVNC_vcenter { |
497 | left: auto; | |
498 | right: 0; | |
499 | } | |
500 | .noVNC_right .noVNC_panel { | |
501 | transform: translateX(-25px); | |
502 | } | |
503 | .noVNC_right .noVNC_panel.noVNC_open { | |
504 | transform: translateX(-75px); | |
505 | } | |
2869308c | 506 | |
1fe9faee PO |
507 | .noVNC_panel hr { |
508 | border: none; | |
509 | border-top: 1px solid rgb(192, 192, 192); | |
510 | } | |
511 | ||
512 | .noVNC_panel label { | |
513 | display: block; | |
81345892 | 514 | white-space: nowrap; |
1fe9faee PO |
515 | } |
516 | ||
5454c345 PO |
517 | .noVNC_panel .noVNC_heading { |
518 | background-color: rgb(110, 132, 163); | |
519 | border-radius: 5px; | |
520 | padding: 5px; | |
521 | /* Compensate for padding in image */ | |
522 | padding-right: 8px; | |
523 | color: white; | |
524 | font-size: 20px; | |
525 | margin-bottom: 10px; | |
526 | white-space: nowrap; | |
527 | } | |
528 | .noVNC_panel .noVNC_heading img { | |
529 | vertical-align: bottom; | |
530 | } | |
531 | ||
79fd3b1f PO |
532 | .noVNC_submit { |
533 | float: right; | |
534 | } | |
535 | ||
575f6983 PO |
536 | /* Expanders */ |
537 | .noVNC_expander { | |
538 | cursor: pointer; | |
539 | } | |
540 | .noVNC_expander::before { | |
541 | content: url("../images/expander.svg"); | |
542 | display: inline-block; | |
543 | margin-right: 5px; | |
544 | transition: 0.2s ease-in-out; | |
545 | } | |
546 | .noVNC_expander.noVNC_open::before { | |
547 | transform: rotateZ(90deg); | |
548 | } | |
549 | .noVNC_expander ~ * { | |
550 | margin: 5px; | |
551 | margin-left: 10px; | |
552 | padding: 5px; | |
553 | background: rgba(0, 0, 0, 0.05); | |
554 | border-radius: 5px; | |
555 | } | |
556 | .noVNC_expander:not(.noVNC_open) ~ * { | |
557 | display: none; | |
558 | } | |
559 | ||
560 | /* Control bar content */ | |
561 | ||
b3c932c3 PO |
562 | #noVNC_control_bar .noVNC_logo { |
563 | font-size: 13px; | |
564 | } | |
565 | ||
6244e383 PO |
566 | :root:not(.noVNC_connected) #noVNC_view_drag_button { |
567 | display: none; | |
568 | } | |
569 | ||
2869308c | 570 | /* noVNC Touch Device only buttons */ |
6244e383 PO |
571 | :root:not(.noVNC_connected) #noVNC_mobile_buttons { |
572 | display: none; | |
573 | } | |
574 | :root:not(.noVNC_touch) #noVNC_mobile_buttons { | |
a6357e82 | 575 | display: none; |
576 | } | |
2869308c | 577 | |
fb7c3b3b | 578 | /* Extra manual keys */ |
6244e383 | 579 | :root:not(.noVNC_connected) #noVNC_extra_keys { |
608e0f52 JM |
580 | display: none; |
581 | } | |
582 | ||
fb7c3b3b PO |
583 | #noVNC_modifiers { |
584 | background-color: rgb(92, 92, 92); | |
585 | border: none; | |
586 | padding: 0 10px; | |
587 | } | |
588 | ||
2869308c | 589 | /* XVP Shutdown/Reboot */ |
6244e383 PO |
590 | :root:not(.noVNC_connected) #noVNC_xvp_button { |
591 | display: none; | |
592 | } | |
2869308c | 593 | #noVNC_xvp { |
2869308c | 594 | } |
595 | #noVNC_xvp_buttons { | |
596 | display: none; | |
f4bce783 JM |
597 | } |
598 | ||
1fe9faee PO |
599 | #noVNC_xvp input[type=button] { |
600 | width: 100%; | |
601 | } | |
602 | ||
2869308c | 603 | /* Clipboard */ |
6244e383 PO |
604 | :root:not(.noVNC_connected) #noVNC_clipboard_button { |
605 | display: none; | |
606 | } | |
2869308c | 607 | #noVNC_clipboard { |
fb7c3b3b PO |
608 | /* Full screen, minus padding and left and right margins */ |
609 | max-width: calc(100vw - 2*15px - 75px - 25px); | |
2869308c | 610 | } |
611 | #noVNC_clipboard_text { | |
612 | width: 500px; | |
fb7c3b3b | 613 | max-width: 100%; |
2869308c | 614 | } |
f4bce783 | 615 | |
2869308c | 616 | /* Settings */ |
617 | #noVNC_settings { | |
2869308c | 618 | } |
eeb395dc | 619 | #noVNC_settings ul { |
2869308c | 620 | list-style: none; |
1fe9faee | 621 | margin: 0px; |
2869308c | 622 | padding: 0px; |
623 | } | |
575f6983 PO |
624 | #noVNC_setting_port { |
625 | width: 80px; | |
626 | } | |
2869308c | 627 | #noVNC_setting_path { |
628 | width: 100px; | |
629 | } | |
f4bce783 | 630 | |
2869308c | 631 | /* Connection Controls */ |
6244e383 PO |
632 | :root:not(.noVNC_connected) #noVNC_disconnect_button { |
633 | display: none; | |
2869308c | 634 | } |
c327865b | 635 | |
ca5c74ad | 636 | /* ---------------------------------------- |
637 | * Status Dialog | |
638 | * ---------------------------------------- | |
639 | */ | |
640 | ||
641 | #noVNC_status { | |
2869308c | 642 | position: fixed; |
ca5c74ad | 643 | top: 0; |
644 | left: 0; | |
645 | width: 100%; | |
cac935ff | 646 | z-index: 100; |
24d8b311 PO |
647 | transform: translateY(-100%); |
648 | ||
a7619faf PO |
649 | cursor: pointer; |
650 | ||
24d8b311 PO |
651 | transition: 0.5s ease-in-out; |
652 | ||
653 | visibility: hidden; | |
654 | opacity: 0; | |
2869308c | 655 | |
ca5c74ad | 656 | padding: 5px; |
2869308c | 657 | |
24d8b311 | 658 | display: flex; |
ca5c74ad | 659 | flex-direction: row; |
660 | justify-content: center; | |
661 | align-content: center; | |
662 | ||
663 | line-height: 25px; | |
2869308c | 664 | word-wrap: break-word; |
665 | color: #fff; | |
2869308c | 666 | |
ca5c74ad | 667 | border-bottom: 1px solid rgba(0, 0, 0, 0.9); |
c327865b | 668 | } |
ca5c74ad | 669 | #noVNC_status.noVNC_open { |
24d8b311 PO |
670 | transform: translateY(0); |
671 | visibility: visible; | |
672 | opacity: 1; | |
ca5c74ad | 673 | } |
674 | ||
675 | #noVNC_status::before { | |
676 | content: ""; | |
677 | display: inline-block; | |
678 | width: 25px; | |
679 | height: 25px; | |
680 | margin-right: 5px; | |
681 | } | |
682 | ||
683 | #noVNC_status.noVNC_status_normal { | |
684 | background: rgba(128,128,128,0.9); | |
685 | } | |
686 | #noVNC_status.noVNC_status_normal::before { | |
687 | content: url("../images/info.svg") " "; | |
688 | } | |
689 | #noVNC_status.noVNC_status_error { | |
690 | background: rgba(200,55,55,0.9); | |
691 | } | |
692 | #noVNC_status.noVNC_status_error::before { | |
693 | content: url("../images/error.svg") " "; | |
694 | } | |
695 | #noVNC_status.noVNC_status_warn { | |
696 | background: rgba(180,180,30,0.9); | |
697 | } | |
698 | #noVNC_status.noVNC_status_warn::before { | |
699 | content: url("../images/warning.svg") " "; | |
e40978c7 | 700 | } |
c327865b | 701 | |
b3c932c3 PO |
702 | /* ---------------------------------------- |
703 | * Connect Dialog | |
704 | * ---------------------------------------- | |
705 | */ | |
706 | ||
707 | #noVNC_connect_dlg { | |
708 | transition: 0.5s ease-in-out; | |
709 | ||
710 | transform: scale(0, 0); | |
711 | visibility: hidden; | |
712 | opacity: 0; | |
713 | } | |
714 | #noVNC_connect_dlg.noVNC_open { | |
715 | transform: scale(1, 1); | |
716 | visibility: visible; | |
717 | opacity: 1; | |
718 | } | |
719 | #noVNC_connect_dlg .noVNC_logo { | |
720 | transition: 0.5s ease-in-out; | |
721 | padding: 10px; | |
722 | margin-bottom: 10px; | |
723 | ||
724 | font-size: 80px; | |
725 | text-align: center; | |
726 | ||
727 | border-radius: 5px; | |
728 | } | |
729 | @media (max-width: 440px) { | |
730 | #noVNC_connect_dlg { | |
731 | max-width: calc(100vw - 100px); | |
732 | } | |
733 | #noVNC_connect_dlg .noVNC_logo { | |
734 | font-size: calc(25vw - 30px); | |
735 | } | |
736 | } | |
737 | #noVNC_connect_button { | |
738 | cursor: pointer; | |
739 | ||
740 | padding: 10px; | |
741 | ||
742 | color: white; | |
743 | background-color: rgb(110, 132, 163); | |
744 | border-radius: 12px; | |
745 | ||
746 | text-align: center; | |
747 | font-size: 20px; | |
748 | ||
749 | box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5); | |
750 | } | |
751 | #noVNC_connect_button div { | |
752 | margin: 2px; | |
753 | padding: 5px 30px; | |
754 | border: 1px solid rgb(83, 99, 122); | |
755 | border-bottom-width: 2px; | |
756 | border-radius: 5px; | |
757 | background: linear-gradient(to top, rgb(110, 132, 163), rgb(99, 119, 147)); | |
758 | ||
759 | /* This avoids it jumping around when :active */ | |
760 | vertical-align: middle; | |
761 | } | |
762 | #noVNC_connect_button div:active { | |
763 | border-bottom-width: 1px; | |
764 | margin-top: 3px; | |
765 | } | |
766 | :root:not(.noVNC_touch) #noVNC_connect_button div:hover { | |
767 | background: linear-gradient(to top, rgb(110, 132, 163), rgb(105, 125, 155)); | |
768 | } | |
769 | ||
770 | #noVNC_connect_button img { | |
771 | vertical-align: bottom; | |
772 | height: 1.3em; | |
773 | } | |
774 | ||
8a7ec6ea SM |
775 | /* ---------------------------------------- |
776 | * Password Dialog | |
777 | * ---------------------------------------- | |
778 | */ | |
779 | ||
780 | #noVNC_password_dlg { | |
cac935ff PO |
781 | position: relative; |
782 | ||
8a7ec6ea SM |
783 | transform: translateY(-50px); |
784 | } | |
785 | #noVNC_password_dlg.noVNC_open { | |
786 | transform: translateY(0); | |
787 | } | |
788 | #noVNC_password_dlg ul { | |
789 | list-style: none; | |
790 | margin: 0px; | |
791 | padding: 0px; | |
792 | } | |
8a7ec6ea | 793 | |
2869308c | 794 | /* ---------------------------------------- |
795 | * Main Area | |
796 | * ---------------------------------------- | |
797 | */ | |
798 | ||
8d710e8b PO |
799 | /* Transition screen */ |
800 | #noVNC_transition { | |
801 | display: none; | |
802 | ||
803 | position: fixed; | |
804 | top: 0; | |
805 | left: 0; | |
806 | bottom: 0; | |
807 | right: 0; | |
808 | ||
809 | color: white; | |
810 | background: rgba(0, 0, 0, 0.5); | |
cac935ff | 811 | z-index: 50; |
8d710e8b PO |
812 | |
813 | /*display: flex;*/ | |
814 | align-items: center; | |
815 | justify-content: center; | |
816 | flex-direction: column; | |
817 | } | |
e25f9c40 | 818 | :root.noVNC_loading #noVNC_transition, |
8d710e8b | 819 | :root.noVNC_connecting #noVNC_transition, |
044d54ed AN |
820 | :root.noVNC_disconnecting #noVNC_transition, |
821 | :root.noVNC_reconnecting #noVNC_transition { | |
8d710e8b PO |
822 | display: flex; |
823 | } | |
044d54ed AN |
824 | :root:not(.noVNC_reconnecting) #noVNC_cancel_reconnect_button { |
825 | display: none; | |
826 | } | |
8d710e8b PO |
827 | #noVNC_transition_text { |
828 | font-size: 1.5em; | |
829 | } | |
830 | ||
831 | /* Main container */ | |
2869308c | 832 | #noVNC_container { |
2869308c | 833 | width: 100%; |
834 | height: 100%; | |
835 | background-color: #313131; | |
836 | border-bottom-right-radius: 800px 600px; | |
837 | /*border-top-left-radius: 800px 600px;*/ | |
838 | } | |
839 | ||
f6299e0a PO |
840 | #noVNC_keyboardinput { |
841 | width: 1px; | |
842 | height: 1px; | |
843 | background-color: #fff; | |
844 | color: #fff; | |
845 | border: 0; | |
846 | position: absolute; | |
847 | left: -40px; | |
848 | z-index: -1; | |
849 | ime-mode: disabled; | |
850 | } | |
851 | ||
2869308c | 852 | /* HTML5 Canvas */ |
853 | #noVNC_screen { | |
9865432a PO |
854 | display: flex; |
855 | width: 100%; | |
856 | height: 100%; | |
648c8398 | 857 | overflow: auto; |
9865432a | 858 | background-color: rgb(40, 40, 40); |
2869308c | 859 | } |
6244e383 | 860 | :root:not(.noVNC_connected) #noVNC_screen { |
e40978c7 PO |
861 | display: none; |
862 | } | |
2869308c | 863 | |
864 | /* Do not set width/height for VNC_canvas or incorrect | |
865 | * scaling will occur. Canvas size depends on remote VNC | |
866 | * settings and noVNC settings. */ | |
867 | #noVNC_canvas { | |
47fbdced | 868 | margin: auto; |
f3b77275 SM |
869 | /* IE miscalculates width without this :( */ |
870 | flex-shrink: 0; | |
c327865b CG |
871 | } |
872 | ||
b70ce077 | 873 | /*Default noVNC logo.*/ |
479bfa99 JM |
874 | /* From: http://fonts.googleapis.com/css?family=Orbitron:700 */ |
875 | @font-face { | |
876 | font-family: 'Orbitron'; | |
877 | font-style: normal; | |
878 | font-weight: 700; | |
879 | src: local('?'), url('Orbitron700.woff') format('woff'), | |
880 | url('Orbitron700.ttf') format('truetype'); | |
881 | } | |
882 | ||
4d3aa0ef | 883 | .noVNC_logo { |
01a9eee9 | 884 | color:yellow; |
479bfa99 | 885 | font-family: 'Orbitron', 'OrbitronTTF', sans-serif; |
01a9eee9 | 886 | line-height:90%; |
b0061a3c | 887 | text-shadow: 0.1em 0.1em 0 black; |
4d3aa0ef PO |
888 | } |
889 | .noVNC_logo span{ | |
890 | color:green; | |
891 | } | |
892 | ||
63bf2ba5 PO |
893 | #noVNC_bell { |
894 | display: none; | |
895 | } | |
896 | ||
a5df24b4 JM |
897 | /* ---------------------------------------- |
898 | * Media sizing | |
899 | * ---------------------------------------- | |
900 | */ | |
901 | ||
35b29c98 | 902 | @media screen and (max-width: 640px){ |
9d04096e | 903 | #noVNC_logo { |
904 | font-size: 150px; | |
905 | } | |
a5df24b4 JM |
906 | } |
907 | ||
908 | @media screen and (min-width: 321px) and (max-width: 480px) { | |
a5df24b4 JM |
909 | #noVNC_logo { |
910 | font-size: 110px; | |
911 | } | |
912 | } | |
913 | ||
914 | @media screen and (max-width: 320px) { | |
a5df24b4 JM |
915 | #noVNC_logo { |
916 | font-size: 90px; | |
917 | } | |
918 | } |