3 * Copyright (C) 2012 Joel Martin
4 * Copyright (C) 2016 Samuel Mannehed for Cendio AB
5 * Copyright (C) 2016 Pierre Ossman for Cendio AB
6 * noVNC is licensed under the MPL 2.0 (see LICENSE.txt)
7 * This file is licensed under the 2-Clause BSD license (see LICENSE.txt).
15 * 50: Transition blocker
16 * 60: Connection popups
19 * 1000: Javascript crash
21 * 10000: Max (used for polyfills)
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
;
40 .noVNC_only_touch.noVNC_hidden {
45 color: rgb
(128, 128, 128);
48 /* ----------------------------------------
50 * ----------------------------------------
56 .noVNC_spinner, .noVNC_spinner::before, .noVNC_spinner::after {
60 box-shadow: -60px 10px 0 rgba
(255, 255, 255, 0);
61 animation: noVNC_spinner
1.0s linear infinite
;
63 .noVNC_spinner::before {
68 animation-delay: -0.1s;
70 .noVNC_spinner::after {
75 animation-delay: 0.1s;
77 @keyframes noVNC_spinner
{
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; }
83 /* ----------------------------------------
85 * ----------------------------------------
88 input
[type
=input
], input
[type
=password
], input
[type
=number
],
89 input:not
([type
]), textarea
{
90 /* Disable default rendering */
91 -webkit-appearance: none
;
92 -moz-appearance: none
;
97 border: 1px solid rgb
(192, 192, 192);
100 background: linear-gradient
(to top
, rgb
(255, 255, 255) 80%, rgb
(240, 240, 240));
103 input
[type
=button
], input
[type
=submit
], select
{
104 /* Disable default rendering */
105 -webkit-appearance: none
;
106 -moz-appearance: none
;
111 border: 1px solid rgb
(192, 192, 192);
112 border-bottom-width: 2px;
115 background: linear-gradient
(to top
, rgb
(255, 255, 255), rgb
(240, 240, 240));
117 /* This avoids it jumping around when :active */
118 vertical-align: middle
;
121 input
[type
=button
], input
[type
=submit
] {
131 input
[type
=input
]:focus
, input
[type
=password
]:focus
,
132 input:not
([type
]):focus
, input
[type
=button
]:focus
,
133 input
[type
=submit
]:focus
,
134 textarea:focus
, select:focus
{
135 box-shadow: 0px 0px 3px rgba
(74, 144, 217, 0.5);
136 border-color: rgb
(74, 144, 217);
140 input
[type
=button
]::-moz-focus-inner
,
141 input
[type
=submit
]::-moz-focus-inner
{
145 input
[type
=input
]:disabled
, input
[type
=password
]:disabled
,
146 input:not
([type
]):disabled
, input
[type
=button
]:disabled
,
147 input
[type
=submit
]:disabled
, input
[type
=number
]:disabled
,
148 textarea:disabled
, select:disabled
{
149 color: rgb
(128, 128, 128);
150 background: rgb
(240, 240, 240);
153 input
[type
=button
]:active
, input
[type
=submit
]:active
,
155 border-bottom-width: 1px;
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
) {
162 background: linear-gradient
(to top
, rgb
(255, 255, 255), rgb
(250, 250, 250));
165 /* ----------------------------------------
166 * WebKit centering hacks
167 * ----------------------------------------
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.
179 justify-content: center
;
185 pointer-events: none
;
188 pointer-events: auto
;
192 flex-direction: column
;
193 justify-content: center
;
198 pointer-events: none
;
201 pointer-events: auto
;
204 /* ----------------------------------------
206 * ----------------------------------------
209 .noVNC_connect_layer {
213 /* ----------------------------------------
215 * ----------------------------------------
218 #noVNC_fallback_error {
222 #noVNC_fallback_error.noVNC_open
{
226 #noVNC_fallback_error > div
{
230 transition: 0.5s ease-in-out
;
232 transform: translateY
(-50px);
240 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
241 background: rgba
(200,55,55,0.8);
243 #noVNC_fallback_error.noVNC_open
> div
{
244 transform: translateY
(0);
248 #noVNC_fallback_errormsg {
252 #noVNC_fallback_errormsg .noVNC_message
{
253 display: inline-block
;
255 font-family: monospace
;
256 white-space: pre-wrap
;
259 #noVNC_fallback_error .noVNC_location
{
262 color: rgba
(255, 255, 255, 0.8);
265 #noVNC_fallback_error .noVNC_stack
{
270 font-family: monospace
;
271 white-space: pre-wrap
;
272 border: 1px solid rgba
(0, 0, 0, 0.5);
273 background: rgba
(0, 0, 0, 0.2);
276 /* ----------------------------------------
278 * ----------------------------------------
281 #noVNC_control_bar_anchor {
282 /* The anchor is needed to get z-stacking to work */
286 transition: 0.5s ease-in-out
;
288 /* Edge misrenders animations wihthout this */
289 transform: translateX
(0);
291 :root
.noVNC_connected #noVNC_control_bar_anchor
.noVNC_idle
{
294 #noVNC_control_bar_anchor.noVNC_right
{
303 transition: 0.5s ease-in-out
;
305 background-color: rgb
(110, 132, 163);
306 border-radius: 0 10px 10px 0;
309 #noVNC_control_bar.noVNC_open
{
310 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
313 #noVNC_control_bar::before
{
314 /* This extra element is to get a proper shadow */
321 transition: box-shadow
0.5s ease-in-out
;
323 #noVNC_control_bar.noVNC_open::before
{
324 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
326 .noVNC_right #noVNC_control_bar {
328 border-radius: 10px 0 0 10px;
330 .noVNC_right #noVNC_control_bar.noVNC_open {
333 .noVNC_right #noVNC_control_bar::before {
337 #noVNC_control_bar_handle {
341 transform: translateY
(35px);
342 width: calc
(100% + 30px);
347 background-color: rgb
(83, 99, 122);
348 background-image: url
("../images/handle_bg.svg");
349 background-repeat: no-repeat
;
350 background-position: right
;
351 box-shadow: 3px 3px 0px rgba
(0, 0, 0, 0.5);
353 #noVNC_control_bar_handle:after
{
355 transition: transform
0.5s ease-in-out
;
356 background: url
("../images/handle.svg");
358 top: 22px; /* (50px-6px)/2 */
363 #noVNC_control_bar.noVNC_open #
noVNC_control_bar_handle:after
{
364 transform: translateX
(1px) rotate
(180deg);
366 :root:not
(.noVNC_connected
) #noVNC_control_bar_handle
{
369 .noVNC_right #noVNC_control_bar_handle {
370 background-position: left
;
372 .noVNC_right #noVNC_control_bar_handle:after {
375 transform: translateX
(1px) rotate
(180deg);
377 .noVNC_right #noVNC_control_bar.noVNC_open #noVNC_control_bar_handle:after {
380 #noVNC_control_bar_handle div
{
387 :root:not
(.noVNC_touch
) #noVNC_control_bar_handle div
{
390 .noVNC_right #noVNC_control_bar_handle div {
395 #noVNC_control_bar .noVNC_scroll
{
396 max-height: 100vh; /* Chrome is buggy with 100% */
399 padding: 0 10px 0 5px;
401 .noVNC_right #noVNC_control_bar .noVNC_scroll {
402 padding: 0 5px 0 10px;
405 /* Control bar hint */
406 #noVNC_control_bar_hint {
408 left: calc
(100vw - 50px);
416 transition: 0.2s ease-in-out
;
417 background: transparent
;
418 box-shadow: 0 0 10px black
, inset
0 0 10px 10px rgba
(110, 132, 163, 0.8);
420 transition-delay: 0s;
423 #noVNC_control_bar_anchor.noVNC_right #noVNC_control_bar_hint
{
425 right: calc
(100vw - 50px);
427 #noVNC_control_bar_hint.noVNC_active
{
430 transition-delay: 0.2s;
434 /* General button style */
439 vertical-align: middle
;
440 border:1px solid rgba
(255, 255, 255, 0.2);
443 .noVNC_button.noVNC_selected {
444 border-color: rgba
(0, 0, 0, 0.8);
445 background: rgba
(0, 0, 0, 0.5);
447 .noVNC_button:disabled {
450 .noVNC_button:focus {
453 .noVNC_button:active {
457 :root:not
(.noVNC_touch
) .noVNC_button
.noVNC_selected:hover
{
458 border-color: rgba
(0, 0, 0, 0.4);
459 background: rgba
(0, 0, 0, 0.2);
461 :root:not
(.noVNC_touch
) .noVNC_button:hover
{
462 background: rgba
(255, 255, 255, 0.2);
464 .noVNC_button.noVNC_hidden {
470 transform: translateX
(25px);
472 transition: 0.5s ease-in-out
;
474 max-height: 100vh; /* Chrome is buggy with 100% */
486 border: 2px solid
#E0E0E0;
487 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
489 .noVNC_panel.noVNC_open {
492 transform: translateX
(75px);
494 .noVNC_right .noVNC_vcenter {
498 .noVNC_right .noVNC_panel {
499 transform: translateX
(-25px);
501 .noVNC_right .noVNC_panel.noVNC_open {
502 transform: translateX
(-75px);
507 border-top: 1px solid rgb
(192, 192, 192);
515 .noVNC_panel .noVNC_heading {
516 background-color: rgb
(110, 132, 163);
519 /* Compensate for padding in image */
526 .noVNC_panel .noVNC_heading img {
527 vertical-align: bottom
;
538 .noVNC_expander::before {
539 content: url
("../images/expander.svg");
540 display: inline-block
;
542 transition: 0.2s ease-in-out
;
544 .noVNC_expander.noVNC_open::before {
545 transform: rotateZ
(90deg);
547 .noVNC_expander ~ * {
551 background: rgba
(0, 0, 0, 0.05);
554 .noVNC_expander:not(.noVNC_open) ~ * {
558 /* Control bar content */
560 #noVNC_control_bar .noVNC_logo
{
564 :root:not
(.noVNC_connected
) #noVNC_view_drag_button
{
568 /* noVNC Touch Device only buttons */
569 :root:not
(.noVNC_connected
) #noVNC_mobile_buttons
{
572 :root:not
(.noVNC_touch
) #noVNC_mobile_buttons
{
576 /* Extra manual keys */
577 :root:not
(.noVNC_connected
) #noVNC_extra_keys
{
582 background-color: rgb
(92, 92, 92);
587 /* XVP Shutdown/Reboot */
588 :root:not
(.noVNC_connected
) #noVNC_xvp_button
{
597 #noVNC_xvp input
[type
=button
] {
602 :root:not
(.noVNC_connected
) #noVNC_clipboard_button
{
606 /* Full screen, minus padding and left and right margins */
607 max-width: calc
(100vw - 2*15px - 75px - 25px);
609 #noVNC_clipboard_text {
622 #noVNC_setting_port {
625 #noVNC_setting_path {
629 /* Connection Controls */
630 :root:not
(.noVNC_connected
) #noVNC_disconnect_button
{
634 /* ----------------------------------------
636 * ----------------------------------------
645 transform: translateY
(-100%);
649 transition: 0.5s ease-in-out
;
658 justify-content: center
;
659 align-content: center
;
662 word-wrap: break-word
;
665 border-bottom: 1px solid rgba
(0, 0, 0, 0.9);
667 #noVNC_status.noVNC_open
{
668 transform: translateY
(0);
673 #noVNC_status::before
{
675 display: inline-block
;
681 #noVNC_status.noVNC_status_normal
{
682 background: rgba
(128,128,128,0.9);
684 #noVNC_status.noVNC_status_normal::before
{
685 content: url
("../images/info.svg") " ";
687 #noVNC_status.noVNC_status_error
{
688 background: rgba
(200,55,55,0.9);
690 #noVNC_status.noVNC_status_error::before
{
691 content: url
("../images/error.svg") " ";
693 #noVNC_status.noVNC_status_warn
{
694 background: rgba
(180,180,30,0.9);
696 #noVNC_status.noVNC_status_warn::before
{
697 content: url
("../images/warning.svg") " ";
700 /* ----------------------------------------
702 * ----------------------------------------
706 transition: 0.5s ease-in-out
;
708 transform: scale
(0, 0);
712 #noVNC_connect_dlg.noVNC_open
{
713 transform: scale
(1, 1);
717 #noVNC_connect_dlg .noVNC_logo
{
718 transition: 0.5s ease-in-out
;
727 @media (max-width: 440px) {
729 max-width: calc
(100vw - 100px);
731 #noVNC_connect_dlg .noVNC_logo
{
732 font-size: calc
(25vw - 30px);
735 #noVNC_connect_button {
741 background-color: rgb
(110, 132, 163);
747 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
749 #noVNC_connect_button div
{
752 border: 1px solid rgb
(83, 99, 122);
753 border-bottom-width: 2px;
755 background: linear-gradient
(to top
, rgb
(110, 132, 163), rgb
(99, 119, 147));
757 /* This avoids it jumping around when :active */
758 vertical-align: middle
;
760 #noVNC_connect_button div:active
{
761 border-bottom-width: 1px;
764 :root:not
(.noVNC_touch
) #noVNC_connect_button
div:hover
{
765 background: linear-gradient
(to top
, rgb
(110, 132, 163), rgb
(105, 125, 155));
768 #noVNC_connect_button img
{
769 vertical-align: bottom
;
773 /* ----------------------------------------
775 * ----------------------------------------
778 #noVNC_password_dlg {
781 transform: translateY
(-50px);
783 #noVNC_password_dlg.noVNC_open
{
784 transform: translateY
(0);
786 #noVNC_password_dlg ul
{
792 /* ----------------------------------------
794 * ----------------------------------------
797 /* Transition screen */
808 background: rgba
(0, 0, 0, 0.5);
813 justify-content: center
;
814 flex-direction: column
;
816 :root
.noVNC_loading #noVNC_transition
,
817 :root
.noVNC_connecting #noVNC_transition
,
818 :root
.noVNC_disconnecting #noVNC_transition
,
819 :root
.noVNC_reconnecting #noVNC_transition
{
822 :root:not
(.noVNC_reconnecting
) #noVNC_cancel_reconnect_button
{
825 #noVNC_transition_text {
833 background-color: #313131;
834 border-bottom-right-radius: 800px 600px;
835 /*border-top-left-radius: 800px 600px;*/
838 #noVNC_keyboardinput {
841 background-color: #fff;
856 background-color: rgb
(40, 40, 40);
858 :root:not
(.noVNC_connected
) #noVNC_screen
{
862 /* Do not set width/height for VNC_canvas or incorrect
863 * scaling will occur. Canvas size depends on remote VNC
864 * settings and noVNC settings. */
867 /* IE miscalculates width without this :( */
871 /*Default noVNC logo.*/
872 /* From: http://fonts.googleapis.com/css?family=Orbitron:700 */
874 font-family: 'Orbitron';
877 src: local
('?'), url
('Orbitron700.woff') format
('woff'),
878 url
('Orbitron700.ttf') format
('truetype');
883 font-family: 'Orbitron', 'OrbitronTTF', sans-serif
;
885 text-shadow: 0.1em 0.1em 0 black
;
895 /* ----------------------------------------
897 * ----------------------------------------
900 @media screen and
(max-width: 640px){
906 @media screen and
(min-width: 321px) and
(max-width: 480px) {
912 @media screen and
(max-width: 320px) {