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