]> git.proxmox.com Git - mirror_novnc.git/blame - app/styles/base.css
Move resize handling in to RFB object
[mirror_novnc.git] / app / styles / base.css
CommitLineData
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 24body {
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
36html {
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
88input[type=input], input[type=password], input[type=number],
89input: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 103input[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 121input[type=button], input[type=submit] {
79fd3b1f
PO
122 padding-left: 20px;
123 padding-right: 20px;
124}
125
126option {
127 color: black;
128 background: white;
129}
130
131input[type=input]:focus, input[type=password]:focus,
132input:not([type]):focus, input[type=button]:focus,
84b05d24 133input[type=submit]:focus,
79fd3b1f
PO
134textarea: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
140input[type=button]::-moz-focus-inner,
141input[type=submit]::-moz-focus-inner {
79fd3b1f
PO
142 border: none;
143}
144
145input[type=input]:disabled, input[type=password]:disabled,
146input:not([type]):disabled, input[type=button]:disabled,
6c857dc5 147input[type=submit]:disabled, input[type=number]:disabled,
79fd3b1f
PO
148textarea:disabled, select:disabled {
149 color: rgb(128, 128, 128);
150 background: rgb(240, 240, 240);
151}
152
84b05d24
PO
153input[type=button]:active, input[type=submit]:active,
154select: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;
74a29f3f
SM
412 top: 50%;
413 transform: translateY(-50%) scale(0);
bbc1648c
SM
414 width: 100px;
415 height: 50%;
416 max-height: 600px;
417
418 visibility: hidden;
419 opacity: 0;
420 transition: 0.2s ease-in-out;
421 background: transparent;
422 box-shadow: 0 0 10px black, inset 0 0 10px 10px rgba(110, 132, 163, 0.8);
423 border-radius: 10px;
424 transition-delay: 0s;
bbc1648c
SM
425}
426#noVNC_control_bar_anchor.noVNC_right #noVNC_control_bar_hint{
427 left: auto;
428 right: calc(100vw - 50px);
429}
430#noVNC_control_bar_hint.noVNC_active {
431 visibility: visible;
432 opacity: 1;
433 transition-delay: 0.2s;
74a29f3f 434 transform: translateY(-50%) scale(1);
bbc1648c
SM
435}
436
2869308c 437/* General button style */
a49d9298 438.noVNC_button {
fb7c3b3b 439 display: block;
2869308c 440 padding: 4px 4px;
fb7c3b3b 441 margin: 10px 0;
2869308c 442 vertical-align: middle;
fb7c3b3b 443 border:1px solid rgba(255, 255, 255, 0.2);
2869308c 444 border-radius: 6px;
01a9eee9 445}
d9e86214 446.noVNC_button.noVNC_selected {
fb7c3b3b
PO
447 border-color: rgba(0, 0, 0, 0.8);
448 background: rgba(0, 0, 0, 0.5);
c327865b 449}
a49d9298 450.noVNC_button:disabled {
2869308c 451 opacity: 0.4;
c327865b 452}
f7c725ce
PO
453.noVNC_button:focus {
454 outline: none;
455}
456.noVNC_button:active {
457 padding-top: 5px;
458 padding-bottom: 3px;
459}
e36f9586
PO
460/* Android browsers don't properly update hover state if touch events
461 * are intercepted, but focus should be safe to display */
462:root:not(.noVNC_touch) .noVNC_button.noVNC_selected:hover,
463.noVNC_button.noVNC_selected:focus {
1a15cb5b
PO
464 border-color: rgba(0, 0, 0, 0.4);
465 background: rgba(0, 0, 0, 0.2);
466}
e36f9586
PO
467:root:not(.noVNC_touch) .noVNC_button:hover,
468.noVNC_button:focus {
1a15cb5b
PO
469 background: rgba(255, 255, 255, 0.2);
470}
a49d9298 471.noVNC_button.noVNC_hidden {
e40978c7
PO
472 display: none;
473}
2869308c 474
475/* Panels */
286947cb 476.noVNC_panel {
fb7c3b3b 477 transform: translateX(25px);
24d8b311
PO
478
479 transition: 0.5s ease-in-out;
480
fb7c3b3b
PO
481 max-height: 100vh; /* Chrome is buggy with 100% */
482 overflow-x: hidden;
483 overflow-y: auto;
484
24d8b311
PO
485 visibility: hidden;
486 opacity: 0;
487
2869308c 488 padding: 15px;
24d8b311
PO
489
490 background: #fff;
2869308c 491 border-radius: 10px;
492 color: #000;
493 border: 2px solid #E0E0E0;
24d8b311 494 box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
c327865b 495}
e40978c7 496.noVNC_panel.noVNC_open {
24d8b311
PO
497 visibility: visible;
498 opacity: 1;
fb7c3b3b 499 transform: translateX(75px);
a5df24b4 500}
8ee432f1
PO
501.noVNC_right .noVNC_vcenter {
502 left: auto;
503 right: 0;
504}
505.noVNC_right .noVNC_panel {
506 transform: translateX(-25px);
507}
508.noVNC_right .noVNC_panel.noVNC_open {
509 transform: translateX(-75px);
510}
2869308c 511
1fe9faee
PO
512.noVNC_panel hr {
513 border: none;
514 border-top: 1px solid rgb(192, 192, 192);
515}
516
517.noVNC_panel label {
518 display: block;
81345892 519 white-space: nowrap;
1fe9faee
PO
520}
521
5454c345
PO
522.noVNC_panel .noVNC_heading {
523 background-color: rgb(110, 132, 163);
524 border-radius: 5px;
525 padding: 5px;
526 /* Compensate for padding in image */
527 padding-right: 8px;
528 color: white;
529 font-size: 20px;
530 margin-bottom: 10px;
531 white-space: nowrap;
532}
533.noVNC_panel .noVNC_heading img {
534 vertical-align: bottom;
535}
536
79fd3b1f
PO
537.noVNC_submit {
538 float: right;
539}
540
575f6983
PO
541/* Expanders */
542.noVNC_expander {
543 cursor: pointer;
544}
545.noVNC_expander::before {
546 content: url("../images/expander.svg");
547 display: inline-block;
548 margin-right: 5px;
549 transition: 0.2s ease-in-out;
550}
551.noVNC_expander.noVNC_open::before {
552 transform: rotateZ(90deg);
553}
554.noVNC_expander ~ * {
555 margin: 5px;
556 margin-left: 10px;
557 padding: 5px;
558 background: rgba(0, 0, 0, 0.05);
559 border-radius: 5px;
560}
561.noVNC_expander:not(.noVNC_open) ~ * {
562 display: none;
563}
564
565/* Control bar content */
566
b3c932c3
PO
567#noVNC_control_bar .noVNC_logo {
568 font-size: 13px;
569}
570
6244e383
PO
571:root:not(.noVNC_connected) #noVNC_view_drag_button {
572 display: none;
573}
574
2869308c 575/* noVNC Touch Device only buttons */
6244e383
PO
576:root:not(.noVNC_connected) #noVNC_mobile_buttons {
577 display: none;
578}
579:root:not(.noVNC_touch) #noVNC_mobile_buttons {
a6357e82 580 display: none;
581}
2869308c 582
fb7c3b3b 583/* Extra manual keys */
6244e383 584:root:not(.noVNC_connected) #noVNC_extra_keys {
608e0f52
JM
585 display: none;
586}
587
fb7c3b3b
PO
588#noVNC_modifiers {
589 background-color: rgb(92, 92, 92);
590 border: none;
591 padding: 0 10px;
592}
593
cd523e8f
PO
594/* Shutdown/Reboot */
595:root:not(.noVNC_connected) #noVNC_power_button {
6244e383
PO
596 display: none;
597}
cd523e8f 598#noVNC_power {
2869308c 599}
cd523e8f 600#noVNC_power_buttons {
2869308c 601 display: none;
f4bce783
JM
602}
603
cd523e8f 604#noVNC_power input[type=button] {
1fe9faee
PO
605 width: 100%;
606}
607
2869308c 608/* Clipboard */
6244e383
PO
609:root:not(.noVNC_connected) #noVNC_clipboard_button {
610 display: none;
611}
2869308c 612#noVNC_clipboard {
fb7c3b3b
PO
613 /* Full screen, minus padding and left and right margins */
614 max-width: calc(100vw - 2*15px - 75px - 25px);
2869308c 615}
616#noVNC_clipboard_text {
617 width: 500px;
fb7c3b3b 618 max-width: 100%;
2869308c 619}
f4bce783 620
2869308c 621/* Settings */
622#noVNC_settings {
2869308c 623}
eeb395dc 624#noVNC_settings ul {
2869308c 625 list-style: none;
1fe9faee 626 margin: 0px;
2869308c 627 padding: 0px;
628}
575f6983
PO
629#noVNC_setting_port {
630 width: 80px;
631}
2869308c 632#noVNC_setting_path {
633 width: 100px;
634}
f4bce783 635
2869308c 636/* Connection Controls */
6244e383
PO
637:root:not(.noVNC_connected) #noVNC_disconnect_button {
638 display: none;
2869308c 639}
c327865b 640
ca5c74ad 641/* ----------------------------------------
642 * Status Dialog
643 * ----------------------------------------
644 */
645
646#noVNC_status {
2869308c 647 position: fixed;
ca5c74ad 648 top: 0;
649 left: 0;
650 width: 100%;
cac935ff 651 z-index: 100;
24d8b311
PO
652 transform: translateY(-100%);
653
a7619faf
PO
654 cursor: pointer;
655
24d8b311
PO
656 transition: 0.5s ease-in-out;
657
658 visibility: hidden;
659 opacity: 0;
2869308c 660
ca5c74ad 661 padding: 5px;
2869308c 662
24d8b311 663 display: flex;
ca5c74ad 664 flex-direction: row;
665 justify-content: center;
666 align-content: center;
667
668 line-height: 25px;
2869308c 669 word-wrap: break-word;
670 color: #fff;
2869308c 671
ca5c74ad 672 border-bottom: 1px solid rgba(0, 0, 0, 0.9);
c327865b 673}
ca5c74ad 674#noVNC_status.noVNC_open {
24d8b311
PO
675 transform: translateY(0);
676 visibility: visible;
677 opacity: 1;
ca5c74ad 678}
679
680#noVNC_status::before {
681 content: "";
682 display: inline-block;
683 width: 25px;
684 height: 25px;
685 margin-right: 5px;
686}
687
688#noVNC_status.noVNC_status_normal {
689 background: rgba(128,128,128,0.9);
690}
691#noVNC_status.noVNC_status_normal::before {
692 content: url("../images/info.svg") " ";
693}
694#noVNC_status.noVNC_status_error {
695 background: rgba(200,55,55,0.9);
696}
697#noVNC_status.noVNC_status_error::before {
698 content: url("../images/error.svg") " ";
699}
700#noVNC_status.noVNC_status_warn {
701 background: rgba(180,180,30,0.9);
702}
703#noVNC_status.noVNC_status_warn::before {
704 content: url("../images/warning.svg") " ";
e40978c7 705}
c327865b 706
b3c932c3
PO
707/* ----------------------------------------
708 * Connect Dialog
709 * ----------------------------------------
710 */
711
712#noVNC_connect_dlg {
713 transition: 0.5s ease-in-out;
714
715 transform: scale(0, 0);
716 visibility: hidden;
717 opacity: 0;
718}
719#noVNC_connect_dlg.noVNC_open {
720 transform: scale(1, 1);
721 visibility: visible;
722 opacity: 1;
723}
724#noVNC_connect_dlg .noVNC_logo {
725 transition: 0.5s ease-in-out;
726 padding: 10px;
727 margin-bottom: 10px;
728
729 font-size: 80px;
730 text-align: center;
731
732 border-radius: 5px;
733}
734@media (max-width: 440px) {
735 #noVNC_connect_dlg {
736 max-width: calc(100vw - 100px);
737 }
738 #noVNC_connect_dlg .noVNC_logo {
739 font-size: calc(25vw - 30px);
740 }
741}
742#noVNC_connect_button {
743 cursor: pointer;
744
745 padding: 10px;
746
747 color: white;
748 background-color: rgb(110, 132, 163);
749 border-radius: 12px;
750
751 text-align: center;
752 font-size: 20px;
753
754 box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
755}
756#noVNC_connect_button div {
757 margin: 2px;
758 padding: 5px 30px;
759 border: 1px solid rgb(83, 99, 122);
760 border-bottom-width: 2px;
761 border-radius: 5px;
762 background: linear-gradient(to top, rgb(110, 132, 163), rgb(99, 119, 147));
763
764 /* This avoids it jumping around when :active */
765 vertical-align: middle;
766}
767#noVNC_connect_button div:active {
768 border-bottom-width: 1px;
769 margin-top: 3px;
770}
771:root:not(.noVNC_touch) #noVNC_connect_button div:hover {
772 background: linear-gradient(to top, rgb(110, 132, 163), rgb(105, 125, 155));
773}
774
775#noVNC_connect_button img {
776 vertical-align: bottom;
777 height: 1.3em;
778}
779
8a7ec6ea
SM
780/* ----------------------------------------
781 * Password Dialog
782 * ----------------------------------------
783 */
784
785#noVNC_password_dlg {
cac935ff
PO
786 position: relative;
787
8a7ec6ea
SM
788 transform: translateY(-50px);
789}
790#noVNC_password_dlg.noVNC_open {
791 transform: translateY(0);
792}
793#noVNC_password_dlg ul {
794 list-style: none;
795 margin: 0px;
796 padding: 0px;
797}
8a7ec6ea 798
2869308c 799/* ----------------------------------------
800 * Main Area
801 * ----------------------------------------
802 */
803
8d710e8b
PO
804/* Transition screen */
805#noVNC_transition {
806 display: none;
807
808 position: fixed;
809 top: 0;
810 left: 0;
811 bottom: 0;
812 right: 0;
813
814 color: white;
815 background: rgba(0, 0, 0, 0.5);
cac935ff 816 z-index: 50;
8d710e8b
PO
817
818 /*display: flex;*/
819 align-items: center;
820 justify-content: center;
821 flex-direction: column;
822}
e25f9c40 823:root.noVNC_loading #noVNC_transition,
8d710e8b 824:root.noVNC_connecting #noVNC_transition,
044d54ed
AN
825:root.noVNC_disconnecting #noVNC_transition,
826:root.noVNC_reconnecting #noVNC_transition {
8d710e8b
PO
827 display: flex;
828}
044d54ed
AN
829:root:not(.noVNC_reconnecting) #noVNC_cancel_reconnect_button {
830 display: none;
831}
8d710e8b
PO
832#noVNC_transition_text {
833 font-size: 1.5em;
834}
835
836/* Main container */
2869308c 837#noVNC_container {
2869308c 838 width: 100%;
839 height: 100%;
840 background-color: #313131;
841 border-bottom-right-radius: 800px 600px;
842 /*border-top-left-radius: 800px 600px;*/
843}
844
f6299e0a
PO
845#noVNC_keyboardinput {
846 width: 1px;
847 height: 1px;
848 background-color: #fff;
849 color: #fff;
850 border: 0;
851 position: absolute;
852 left: -40px;
853 z-index: -1;
854 ime-mode: disabled;
855}
856
b70ce077 857/*Default noVNC logo.*/
479bfa99
JM
858/* From: http://fonts.googleapis.com/css?family=Orbitron:700 */
859@font-face {
860 font-family: 'Orbitron';
861 font-style: normal;
862 font-weight: 700;
863 src: local('?'), url('Orbitron700.woff') format('woff'),
864 url('Orbitron700.ttf') format('truetype');
865}
866
4d3aa0ef 867.noVNC_logo {
01a9eee9 868 color:yellow;
479bfa99 869 font-family: 'Orbitron', 'OrbitronTTF', sans-serif;
01a9eee9 870 line-height:90%;
b0061a3c 871 text-shadow: 0.1em 0.1em 0 black;
4d3aa0ef
PO
872}
873.noVNC_logo span{
874 color:green;
875}
876
63bf2ba5
PO
877#noVNC_bell {
878 display: none;
879}
880
a5df24b4
JM
881/* ----------------------------------------
882 * Media sizing
883 * ----------------------------------------
884 */
885
35b29c98 886@media screen and (max-width: 640px){
9d04096e 887 #noVNC_logo {
888 font-size: 150px;
889 }
a5df24b4
JM
890}
891
892@media screen and (min-width: 321px) and (max-width: 480px) {
a5df24b4
JM
893 #noVNC_logo {
894 font-size: 110px;
895 }
896}
897
898@media screen and (max-width: 320px) {
a5df24b4
JM
899 #noVNC_logo {
900 font-size: 90px;
901 }
902}