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_control_bar_anchor {
181 /* The anchor is needed to get z-stacking to work */
185 transition: 0.5s ease-in-out
;
187 /* Edge misrenders animations wihthout this */
188 transform: translateX
(0);
190 :root
.noVNC_connected #noVNC_control_bar_anchor
.noVNC_idle
{
196 /* left: calc(-35px - 10px - 5px - 30px), but IE doesn't animate calc */
199 transition: 0.5s ease-in-out
;
201 background-color: rgb
(110, 132, 163);
202 border-radius: 0 10px 10px 0;
204 /* The extra border is to get a proper shadow */
205 border-color: rgb
(110, 132, 163);
207 border-width: 0 0 0 30px;
209 #noVNC_control_bar.noVNC_open
{
210 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
214 #noVNC_control_bar_handle {
218 transform: translateY
(35px);
223 border-radius: 0 5px 5px 0;
224 background-color: rgb
(83, 99, 122);
225 background-image: url
("../images/handle_bg.svg");
226 background-repeat: no-repeat
;
227 background-position: right
;
228 box-shadow: 3px 3px 0px rgba
(0, 0, 0, 0.5);
230 #noVNC_control_bar_handle:after
{
232 transition: 0.5s ease-in-out
;
233 background: url
("../images/handle.svg");
235 top: 22px; /* (50px-6px)/2 */
240 #noVNC_control_bar.noVNC_open #
noVNC_control_bar_handle:after
{
241 transform: translateX
(1px) rotate
(180deg);
243 :root:not
(.noVNC_connected
) #noVNC_control_bar_handle
{
246 #noVNC_control_bar_handle div
{
253 :root:not
(.noVNC_touch
) #noVNC_control_bar_handle div
{
257 #noVNC_control_bar .noVNC_scroll
{
258 max-height: 100vh; /* Chrome is buggy with 100% */
261 padding: 0 10px 0 5px;
264 /* General button style */
269 vertical-align: middle
;
270 border:1px solid rgba
(255, 255, 255, 0.2);
271 -webkit-border-radius: 6px;
272 -moz-border-radius: 6px;
275 .noVNC_button.noVNC_selected {
276 border-color: rgba
(0, 0, 0, 0.8);
277 background: rgba
(0, 0, 0, 0.5);
279 .noVNC_button:disabled {
282 .noVNC_button:focus {
285 .noVNC_button:active {
289 :root:not
(.noVNC_touch
) .noVNC_button
.noVNC_selected:hover
{
290 border-color: rgba
(0, 0, 0, 0.4);
291 background: rgba
(0, 0, 0, 0.2);
293 :root:not
(.noVNC_touch
) .noVNC_button:hover
{
294 background: rgba
(255, 255, 255, 0.2);
296 .noVNC_button.noVNC_hidden {
302 transform: translateX
(25px);
304 transition: 0.5s ease-in-out
;
306 max-height: 100vh; /* Chrome is buggy with 100% */
316 -webkit-border-radius: 10px;
317 -moz-border-radius: 10px;
320 border: 2px solid
#E0E0E0;
321 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
323 .noVNC_panel.noVNC_open {
326 transform: translateX
(75px);
331 border-top: 1px solid rgb
(192, 192, 192);
338 .noVNC_panel .noVNC_heading {
339 background-color: rgb
(110, 132, 163);
342 /* Compensate for padding in image */
349 .noVNC_panel .noVNC_heading img {
350 vertical-align: bottom
;
357 :root:not
(.noVNC_connected
) #noVNC_view_drag_button
{
361 /* noVNC Touch Device only buttons */
362 :root:not
(.noVNC_connected
) #noVNC_mobile_buttons
{
365 :root:not
(.noVNC_touch
) #noVNC_mobile_buttons
{
369 #noVNC_keyboardinput {
372 background-color: #fff;
381 /* Extra manual keys */
382 :root:not
(.noVNC_connected
) #noVNC_extra_keys
{
387 background-color: rgb
(92, 92, 92);
392 /* XVP Shutdown/Reboot */
393 :root:not
(.noVNC_connected
) #noVNC_xvp_button
{
402 #noVNC_xvp input
[type
=button
] {
407 :root:not
(.noVNC_connected
) #noVNC_clipboard_button
{
411 /* Full screen, minus padding and left and right margins */
412 max-width: calc
(100vw - 2*15px - 75px - 25px);
414 #noVNC_clipboard_text {
427 #noVNC_setting_path {
431 /* Connection Controls */
432 :root
.noVNC_connected #noVNC_connect_controls_button
{
435 :root:not
(.noVNC_connected
) #noVNC_disconnect_button
{
438 #noVNC_connect_controls ul
{
443 #noVNC_setting_port {
447 /* ----------------------------------------
449 * ----------------------------------------
458 transform: translateY
(-100%);
460 transition: 0.5s ease-in-out
;
469 justify-content: center
;
470 align-content: center
;
473 word-wrap: break-word
;
476 border-bottom: 1px solid rgba
(0, 0, 0, 0.9);
478 #noVNC_status.noVNC_open
{
479 transform: translateY
(0);
484 #noVNC_status::before
{
486 display: inline-block
;
492 #noVNC_status.noVNC_status_normal
{
493 background: rgba
(128,128,128,0.9);
495 #noVNC_status.noVNC_status_normal::before
{
496 content: url
("../images/info.svg") " ";
498 #noVNC_status.noVNC_status_error
{
499 background: rgba
(200,55,55,0.9);
501 #noVNC_status.noVNC_status_error::before
{
502 content: url
("../images/error.svg") " ";
504 #noVNC_status.noVNC_status_warn
{
505 background: rgba
(180,180,30,0.9);
507 #noVNC_status.noVNC_status_warn::before
{
508 content: url
("../images/warning.svg") " ";
511 /* ----------------------------------------
513 * ----------------------------------------
516 #noVNC_password_dlg {
517 transform: translateY
(-50px);
519 #noVNC_password_dlg.noVNC_open
{
520 transform: translateY
(0);
522 #noVNC_password_dlg ul
{
528 /* ----------------------------------------
530 * ----------------------------------------
533 /* Transition screen */
544 background: rgba
(0, 0, 0, 0.5);
549 justify-content: center
;
550 flex-direction: column
;
552 :root
.noVNC_connecting #noVNC_transition
,
553 :root
.noVNC_disconnecting #noVNC_transition
{
556 #noVNC_transition_text {
565 background-color: #313131;
566 border-bottom-right-radius: 800px 600px;
567 /*border-top-left-radius: 800px 600px;*/
582 :root:not
(.noVNC_connected
) #noVNC_screen
{
586 /* Do not set width/height for VNC_canvas or incorrect
587 * scaling will occur. Canvas size depends on remote VNC
588 * settings and noVNC settings. */
597 /*Default noVNC logo.*/
598 /* From: http://fonts.googleapis.com/css?family=Orbitron:700 */
600 font-family: 'Orbitron';
603 src: local
('?'), url
('Orbitron700.woff') format
('woff'),
604 url
('Orbitron700.ttf') format
('truetype');
610 font-family: 'Orbitron', 'OrbitronTTF', sans-serif
;
613 text-shadow: 1px 1px 0 #000;
630 :root
.noVNC_connected #noVNC_logo
{
638 /* ----------------------------------------
640 * ----------------------------------------
643 @media screen and
(max-width: 640px){
649 @media screen and
(min-width: 321px) and
(max-width: 480px) {
655 @media screen and
(max-width: 320px) {