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).
13 font-family: Helvetica
;
14 /*Background image with light grey curve.*/
15 background-color:#494949;
16 background-repeat:no-repeat
;
17 background-position:right bottom
;
26 .noVNC_only_touch.noVNC_hidden {
30 /* ----------------------------------------
32 * ----------------------------------------
38 .noVNC_spinner, .noVNC_spinner::before, .noVNC_spinner::after {
42 animation: noVNC_spinner
1.0s ease-in-out alternate infinite
;
44 .noVNC_spinner::before {
48 animation-delay: -0.2s;
50 .noVNC_spinner::after {
54 animation-delay: 0.2s;
56 @keyframes noVNC_spinner
{
57 0% { box-shadow: 0 10px 0 white
; }
58 100% { box-shadow: 0 30px 0 white
; }
61 /* ----------------------------------------
63 * ----------------------------------------
66 input
[type
=input
], input
[type
=password
], input:not
([type
]), textarea
{
67 /* Disable default rendering */
68 -webkit-appearance: none
;
69 -moz-appearance: none
;
74 border: 1px solid rgb
(192, 192, 192);
77 background: linear-gradient
(to top
, rgb
(255, 255, 255) 80%, rgb
(240, 240, 240));
80 input
[type
=button
], select
{
81 /* Disable default rendering */
82 -webkit-appearance: none
;
83 -moz-appearance: none
;
88 border: 1px solid rgb
(192, 192, 192);
89 border-bottom-width: 2px;
92 background: linear-gradient
(to top
, rgb
(255, 255, 255), rgb
(240, 240, 240));
94 /* This avoids it jumping around when :active */
95 vertical-align: middle
;
108 input
[type
=input
]:focus
, input
[type
=password
]:focus
,
109 input:not
([type
]):focus
, input
[type
=button
]:focus
,
110 textarea:focus
, select:focus
{
111 box-shadow: 0px 0px 3px rgba
(74, 144, 217, 0.5);
112 border-color: rgb
(74, 144, 217);
116 input
[type
=button
]::-moz-focus-inner
{
120 input
[type
=input
]:disabled
, input
[type
=password
]:disabled
,
121 input:not
([type
]):disabled
, input
[type
=button
]:disabled
,
122 textarea:disabled
, select:disabled
{
123 color: rgb
(128, 128, 128);
124 background: rgb
(240, 240, 240);
127 input
[type
=button
]:active
, select:active
{
128 border-bottom-width: 1px;
132 :root:not
(.noVNC_touch
) input
[type
=button
]:hover:not
(:disabled
), :root:not
(.noVNC_touch
) select:hover:not
(:disabled
) {
133 background: linear-gradient
(to top
, rgb
(255, 255, 255), rgb
(250, 250, 250));
136 /* ----------------------------------------
137 * WebKit centering hacks
138 * ----------------------------------------
143 * This is a workaround because webkit misrenders transforms and
144 * uses non-integer coordinates, resulting in blurry content.
145 * Ideally we'd use "top: 50%; transform: translateY(-50%);" on
146 * the objects instead.
150 justify-content: center
;
156 pointer-events: none
;
159 pointer-events: auto
;
163 flex-direction: column
;
164 justify-content: center
;
169 pointer-events: none
;
172 pointer-events: auto
;
175 /* ----------------------------------------
177 * ----------------------------------------
180 #noVNC_fallback_error {
184 transform: translate
(-50%, -50px);
185 transition: 0.5s ease-in-out
;
196 word-wrap: break-word
;
200 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
201 background: rgba
(200,55,55,0.8);
203 #noVNC_fallback_error.noVNC_open
{
204 transform: translate
(-50%, 0);
208 #noVNC_fallback_errormsg {
212 /* ----------------------------------------
214 * ----------------------------------------
217 #noVNC_control_bar_anchor {
218 /* The anchor is needed to get z-stacking to work */
222 transition: 0.5s ease-in-out
;
224 /* Edge misrenders animations wihthout this */
225 transform: translateX
(0);
227 :root
.noVNC_connected #noVNC_control_bar_anchor
.noVNC_idle
{
233 /* left: calc(-35px - 10px - 5px - 30px), but IE doesn't animate calc */
236 transition: 0.5s ease-in-out
;
238 background-color: rgb
(110, 132, 163);
239 border-radius: 0 10px 10px 0;
241 /* The extra border is to get a proper shadow */
242 border-color: rgb
(110, 132, 163);
244 border-width: 0 0 0 30px;
246 #noVNC_control_bar.noVNC_open
{
247 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
251 #noVNC_control_bar_handle {
255 transform: translateY
(35px);
260 border-radius: 0 5px 5px 0;
261 background-color: rgb
(83, 99, 122);
262 background-image: url
("../images/handle_bg.svg");
263 background-repeat: no-repeat
;
264 background-position: right
;
265 box-shadow: 3px 3px 0px rgba
(0, 0, 0, 0.5);
267 #noVNC_control_bar_handle:after
{
269 transition: 0.5s ease-in-out
;
270 background: url
("../images/handle.svg");
272 top: 22px; /* (50px-6px)/2 */
277 #noVNC_control_bar.noVNC_open #
noVNC_control_bar_handle:after
{
278 transform: translateX
(1px) rotate
(180deg);
280 :root:not
(.noVNC_connected
) #noVNC_control_bar_handle
{
283 #noVNC_control_bar_handle div
{
290 :root:not
(.noVNC_touch
) #noVNC_control_bar_handle div
{
294 #noVNC_control_bar .noVNC_scroll
{
295 max-height: 100vh; /* Chrome is buggy with 100% */
298 padding: 0 10px 0 5px;
301 /* General button style */
306 vertical-align: middle
;
307 border:1px solid rgba
(255, 255, 255, 0.2);
308 -webkit-border-radius: 6px;
309 -moz-border-radius: 6px;
312 .noVNC_button.noVNC_selected {
313 border-color: rgba
(0, 0, 0, 0.8);
314 background: rgba
(0, 0, 0, 0.5);
316 .noVNC_button:disabled {
319 .noVNC_button:focus {
322 .noVNC_button:active {
326 :root:not
(.noVNC_touch
) .noVNC_button
.noVNC_selected:hover
{
327 border-color: rgba
(0, 0, 0, 0.4);
328 background: rgba
(0, 0, 0, 0.2);
330 :root:not
(.noVNC_touch
) .noVNC_button:hover
{
331 background: rgba
(255, 255, 255, 0.2);
333 .noVNC_button.noVNC_hidden {
339 transform: translateX
(25px);
341 transition: 0.5s ease-in-out
;
343 max-height: 100vh; /* Chrome is buggy with 100% */
353 -webkit-border-radius: 10px;
354 -moz-border-radius: 10px;
357 border: 2px solid
#E0E0E0;
358 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
360 .noVNC_panel.noVNC_open {
363 transform: translateX
(75px);
368 border-top: 1px solid rgb
(192, 192, 192);
375 .noVNC_panel .noVNC_heading {
376 background-color: rgb
(110, 132, 163);
379 /* Compensate for padding in image */
386 .noVNC_panel .noVNC_heading img {
387 vertical-align: bottom
;
394 :root:not
(.noVNC_connected
) #noVNC_view_drag_button
{
398 /* noVNC Touch Device only buttons */
399 :root:not
(.noVNC_connected
) #noVNC_mobile_buttons
{
402 :root:not
(.noVNC_touch
) #noVNC_mobile_buttons
{
406 #noVNC_keyboardinput {
409 background-color: #fff;
418 /* Extra manual keys */
419 :root:not
(.noVNC_connected
) #noVNC_extra_keys
{
424 background-color: rgb
(92, 92, 92);
429 /* XVP Shutdown/Reboot */
430 :root:not
(.noVNC_connected
) #noVNC_xvp_button
{
439 #noVNC_xvp input
[type
=button
] {
444 :root:not
(.noVNC_connected
) #noVNC_clipboard_button
{
448 /* Full screen, minus padding and left and right margins */
449 max-width: calc
(100vw - 2*15px - 75px - 25px);
451 #noVNC_clipboard_text {
464 #noVNC_setting_path {
468 /* Connection Controls */
469 :root
.noVNC_connected #noVNC_connect_controls_button
{
472 :root:not
(.noVNC_connected
) #noVNC_disconnect_button
{
475 #noVNC_connect_controls ul
{
480 #noVNC_setting_port {
484 /* ----------------------------------------
486 * ----------------------------------------
495 transform: translateY
(-100%);
497 transition: 0.5s ease-in-out
;
506 justify-content: center
;
507 align-content: center
;
510 word-wrap: break-word
;
513 border-bottom: 1px solid rgba
(0, 0, 0, 0.9);
515 #noVNC_status.noVNC_open
{
516 transform: translateY
(0);
521 #noVNC_status::before
{
523 display: inline-block
;
529 #noVNC_status.noVNC_status_normal
{
530 background: rgba
(128,128,128,0.9);
532 #noVNC_status.noVNC_status_normal::before
{
533 content: url
("../images/info.svg") " ";
535 #noVNC_status.noVNC_status_error
{
536 background: rgba
(200,55,55,0.9);
538 #noVNC_status.noVNC_status_error::before
{
539 content: url
("../images/error.svg") " ";
541 #noVNC_status.noVNC_status_warn
{
542 background: rgba
(180,180,30,0.9);
544 #noVNC_status.noVNC_status_warn::before
{
545 content: url
("../images/warning.svg") " ";
548 /* ----------------------------------------
550 * ----------------------------------------
553 #noVNC_password_dlg {
554 transform: translateY
(-50px);
556 #noVNC_password_dlg.noVNC_open
{
557 transform: translateY
(0);
559 #noVNC_password_dlg ul
{
565 /* ----------------------------------------
567 * ----------------------------------------
570 /* Transition screen */
581 background: rgba
(0, 0, 0, 0.5);
586 justify-content: center
;
587 flex-direction: column
;
589 :root
.noVNC_connecting #noVNC_transition
,
590 :root
.noVNC_disconnecting #noVNC_transition
{
593 #noVNC_transition_text {
602 background-color: #313131;
603 border-bottom-right-radius: 800px 600px;
604 /*border-top-left-radius: 800px 600px;*/
619 :root:not
(.noVNC_connected
) #noVNC_screen
{
623 /* Do not set width/height for VNC_canvas or incorrect
624 * scaling will occur. Canvas size depends on remote VNC
625 * settings and noVNC settings. */
634 /*Default noVNC logo.*/
635 /* From: http://fonts.googleapis.com/css?family=Orbitron:700 */
637 font-family: 'Orbitron';
640 src: local
('?'), url
('Orbitron700.woff') format
('woff'),
641 url
('Orbitron700.ttf') format
('truetype');
647 font-family: 'Orbitron', 'OrbitronTTF', sans-serif
;
650 text-shadow: 1px 1px 0 #000;
667 :root
.noVNC_connected #noVNC_logo
{
675 /* ----------------------------------------
677 * ----------------------------------------
680 @media screen and
(max-width: 640px){
686 @media screen and
(min-width: 321px) and
(max-width: 480px) {
692 @media screen and
(max-width: 320px) {