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 /* General button style */
410 vertical-align: middle
;
411 border:1px solid rgba
(255, 255, 255, 0.2);
414 .noVNC_button.noVNC_selected {
415 border-color: rgba
(0, 0, 0, 0.8);
416 background: rgba
(0, 0, 0, 0.5);
418 .noVNC_button:disabled {
421 .noVNC_button:focus {
424 .noVNC_button:active {
428 :root:not
(.noVNC_touch
) .noVNC_button
.noVNC_selected:hover
{
429 border-color: rgba
(0, 0, 0, 0.4);
430 background: rgba
(0, 0, 0, 0.2);
432 :root:not
(.noVNC_touch
) .noVNC_button:hover
{
433 background: rgba
(255, 255, 255, 0.2);
435 .noVNC_button.noVNC_hidden {
441 transform: translateX
(25px);
443 transition: 0.5s ease-in-out
;
445 max-height: 100vh; /* Chrome is buggy with 100% */
457 border: 2px solid
#E0E0E0;
458 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
460 .noVNC_panel.noVNC_open {
463 transform: translateX
(75px);
465 .noVNC_right .noVNC_vcenter {
469 .noVNC_right .noVNC_panel {
470 transform: translateX
(-25px);
472 .noVNC_right .noVNC_panel.noVNC_open {
473 transform: translateX
(-75px);
478 border-top: 1px solid rgb
(192, 192, 192);
486 .noVNC_panel .noVNC_heading {
487 background-color: rgb
(110, 132, 163);
490 /* Compensate for padding in image */
497 .noVNC_panel .noVNC_heading img {
498 vertical-align: bottom
;
509 .noVNC_expander::before {
510 content: url
("../images/expander.svg");
511 display: inline-block
;
513 transition: 0.2s ease-in-out
;
515 .noVNC_expander.noVNC_open::before {
516 transform: rotateZ
(90deg);
518 .noVNC_expander ~ * {
522 background: rgba
(0, 0, 0, 0.05);
525 .noVNC_expander:not(.noVNC_open) ~ * {
529 /* Control bar content */
531 #noVNC_control_bar .noVNC_logo
{
535 :root:not
(.noVNC_connected
) #noVNC_view_drag_button
{
539 /* noVNC Touch Device only buttons */
540 :root:not
(.noVNC_connected
) #noVNC_mobile_buttons
{
543 :root:not
(.noVNC_touch
) #noVNC_mobile_buttons
{
547 /* Extra manual keys */
548 :root:not
(.noVNC_connected
) #noVNC_extra_keys
{
553 background-color: rgb
(92, 92, 92);
558 /* XVP Shutdown/Reboot */
559 :root:not
(.noVNC_connected
) #noVNC_xvp_button
{
568 #noVNC_xvp input
[type
=button
] {
573 :root:not
(.noVNC_connected
) #noVNC_clipboard_button
{
577 /* Full screen, minus padding and left and right margins */
578 max-width: calc
(100vw - 2*15px - 75px - 25px);
580 #noVNC_clipboard_text {
593 #noVNC_setting_port {
596 #noVNC_setting_path {
600 /* Connection Controls */
601 :root:not
(.noVNC_connected
) #noVNC_disconnect_button
{
605 /* ----------------------------------------
607 * ----------------------------------------
616 transform: translateY
(-100%);
620 transition: 0.5s ease-in-out
;
629 justify-content: center
;
630 align-content: center
;
633 word-wrap: break-word
;
636 border-bottom: 1px solid rgba
(0, 0, 0, 0.9);
638 #noVNC_status.noVNC_open
{
639 transform: translateY
(0);
644 #noVNC_status::before
{
646 display: inline-block
;
652 #noVNC_status.noVNC_status_normal
{
653 background: rgba
(128,128,128,0.9);
655 #noVNC_status.noVNC_status_normal::before
{
656 content: url
("../images/info.svg") " ";
658 #noVNC_status.noVNC_status_error
{
659 background: rgba
(200,55,55,0.9);
661 #noVNC_status.noVNC_status_error::before
{
662 content: url
("../images/error.svg") " ";
664 #noVNC_status.noVNC_status_warn
{
665 background: rgba
(180,180,30,0.9);
667 #noVNC_status.noVNC_status_warn::before
{
668 content: url
("../images/warning.svg") " ";
671 /* ----------------------------------------
673 * ----------------------------------------
677 transition: 0.5s ease-in-out
;
679 transform: scale
(0, 0);
683 #noVNC_connect_dlg.noVNC_open
{
684 transform: scale
(1, 1);
688 #noVNC_connect_dlg .noVNC_logo
{
689 transition: 0.5s ease-in-out
;
698 @media (max-width: 440px) {
700 max-width: calc
(100vw - 100px);
702 #noVNC_connect_dlg .noVNC_logo
{
703 font-size: calc
(25vw - 30px);
706 #noVNC_connect_button {
712 background-color: rgb
(110, 132, 163);
718 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
720 #noVNC_connect_button div
{
723 border: 1px solid rgb
(83, 99, 122);
724 border-bottom-width: 2px;
726 background: linear-gradient
(to top
, rgb
(110, 132, 163), rgb
(99, 119, 147));
728 /* This avoids it jumping around when :active */
729 vertical-align: middle
;
731 #noVNC_connect_button div:active
{
732 border-bottom-width: 1px;
735 :root:not
(.noVNC_touch
) #noVNC_connect_button
div:hover
{
736 background: linear-gradient
(to top
, rgb
(110, 132, 163), rgb
(105, 125, 155));
739 #noVNC_connect_button img
{
740 vertical-align: bottom
;
744 /* ----------------------------------------
746 * ----------------------------------------
749 #noVNC_password_dlg {
752 transform: translateY
(-50px);
754 #noVNC_password_dlg.noVNC_open
{
755 transform: translateY
(0);
757 #noVNC_password_dlg ul
{
763 /* ----------------------------------------
765 * ----------------------------------------
768 /* Transition screen */
779 background: rgba
(0, 0, 0, 0.5);
784 justify-content: center
;
785 flex-direction: column
;
787 :root
.noVNC_loading #noVNC_transition
,
788 :root
.noVNC_connecting #noVNC_transition
,
789 :root
.noVNC_disconnecting #noVNC_transition
,
790 :root
.noVNC_reconnecting #noVNC_transition
{
793 :root:not
(.noVNC_reconnecting
) #noVNC_cancel_reconnect_button
{
796 #noVNC_transition_text {
804 background-color: #313131;
805 border-bottom-right-radius: 800px 600px;
806 /*border-top-left-radius: 800px 600px;*/
809 #noVNC_keyboardinput {
812 background-color: #fff;
827 background-color: rgb
(40, 40, 40);
829 :root:not
(.noVNC_connected
) #noVNC_screen
{
833 /* Do not set width/height for VNC_canvas or incorrect
834 * scaling will occur. Canvas size depends on remote VNC
835 * settings and noVNC settings. */
838 /* IE miscalculates width without this :( */
842 /*Default noVNC logo.*/
843 /* From: http://fonts.googleapis.com/css?family=Orbitron:700 */
845 font-family: 'Orbitron';
848 src: local
('?'), url
('Orbitron700.woff') format
('woff'),
849 url
('Orbitron700.ttf') format
('truetype');
854 font-family: 'Orbitron', 'OrbitronTTF', sans-serif
;
865 /* ----------------------------------------
867 * ----------------------------------------
870 @media screen and
(max-width: 640px){
876 @media screen and
(min-width: 321px) and
(max-width: 480px) {
882 @media screen and
(max-width: 320px) {