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);
209 #noVNC_fallback_errormsg {
213 #noVNC_fallback_error .noVNC_location
{
216 color: rgba
(255, 255, 255, 0.8);
219 #noVNC_fallback_error .noVNC_stack
{
225 border: 1px solid rgba
(0, 0, 0, 0.5);
226 background: rgba
(0, 0, 0, 0.2);
229 /* ----------------------------------------
231 * ----------------------------------------
234 #noVNC_control_bar_anchor {
235 /* The anchor is needed to get z-stacking to work */
239 transition: 0.5s ease-in-out
;
241 /* Edge misrenders animations wihthout this */
242 transform: translateX
(0);
244 :root
.noVNC_connected #noVNC_control_bar_anchor
.noVNC_idle
{
250 /* left: calc(-35px - 10px - 5px - 30px), but IE doesn't animate calc */
253 transition: 0.5s ease-in-out
;
255 background-color: rgb
(110, 132, 163);
256 border-radius: 0 10px 10px 0;
258 /* The extra border is to get a proper shadow */
259 border-color: rgb
(110, 132, 163);
261 border-width: 0 0 0 30px;
263 #noVNC_control_bar.noVNC_open
{
264 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
268 #noVNC_control_bar_handle {
272 transform: translateY
(35px);
277 border-radius: 0 5px 5px 0;
278 background-color: rgb
(83, 99, 122);
279 background-image: url
("../images/handle_bg.svg");
280 background-repeat: no-repeat
;
281 background-position: right
;
282 box-shadow: 3px 3px 0px rgba
(0, 0, 0, 0.5);
284 #noVNC_control_bar_handle:after
{
286 transition: 0.5s ease-in-out
;
287 background: url
("../images/handle.svg");
289 top: 22px; /* (50px-6px)/2 */
294 #noVNC_control_bar.noVNC_open #
noVNC_control_bar_handle:after
{
295 transform: translateX
(1px) rotate
(180deg);
297 :root:not
(.noVNC_connected
) #noVNC_control_bar_handle
{
300 #noVNC_control_bar_handle div
{
307 :root:not
(.noVNC_touch
) #noVNC_control_bar_handle div
{
311 #noVNC_control_bar .noVNC_scroll
{
312 max-height: 100vh; /* Chrome is buggy with 100% */
315 padding: 0 10px 0 5px;
318 /* General button style */
323 vertical-align: middle
;
324 border:1px solid rgba
(255, 255, 255, 0.2);
325 -webkit-border-radius: 6px;
326 -moz-border-radius: 6px;
329 .noVNC_button.noVNC_selected {
330 border-color: rgba
(0, 0, 0, 0.8);
331 background: rgba
(0, 0, 0, 0.5);
333 .noVNC_button:disabled {
336 .noVNC_button:focus {
339 .noVNC_button:active {
343 :root:not
(.noVNC_touch
) .noVNC_button
.noVNC_selected:hover
{
344 border-color: rgba
(0, 0, 0, 0.4);
345 background: rgba
(0, 0, 0, 0.2);
347 :root:not
(.noVNC_touch
) .noVNC_button:hover
{
348 background: rgba
(255, 255, 255, 0.2);
350 .noVNC_button.noVNC_hidden {
356 transform: translateX
(25px);
358 transition: 0.5s ease-in-out
;
360 max-height: 100vh; /* Chrome is buggy with 100% */
370 -webkit-border-radius: 10px;
371 -moz-border-radius: 10px;
374 border: 2px solid
#E0E0E0;
375 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
377 .noVNC_panel.noVNC_open {
380 transform: translateX
(75px);
385 border-top: 1px solid rgb
(192, 192, 192);
392 .noVNC_panel .noVNC_heading {
393 background-color: rgb
(110, 132, 163);
396 /* Compensate for padding in image */
403 .noVNC_panel .noVNC_heading img {
404 vertical-align: bottom
;
411 :root:not
(.noVNC_connected
) #noVNC_view_drag_button
{
415 /* noVNC Touch Device only buttons */
416 :root:not
(.noVNC_connected
) #noVNC_mobile_buttons
{
419 :root:not
(.noVNC_touch
) #noVNC_mobile_buttons
{
423 #noVNC_keyboardinput {
426 background-color: #fff;
435 /* Extra manual keys */
436 :root:not
(.noVNC_connected
) #noVNC_extra_keys
{
441 background-color: rgb
(92, 92, 92);
446 /* XVP Shutdown/Reboot */
447 :root:not
(.noVNC_connected
) #noVNC_xvp_button
{
456 #noVNC_xvp input
[type
=button
] {
461 :root:not
(.noVNC_connected
) #noVNC_clipboard_button
{
465 /* Full screen, minus padding and left and right margins */
466 max-width: calc
(100vw - 2*15px - 75px - 25px);
468 #noVNC_clipboard_text {
481 #noVNC_setting_path {
485 /* Connection Controls */
486 :root
.noVNC_connected #noVNC_connect_controls_button
{
489 :root:not
(.noVNC_connected
) #noVNC_disconnect_button
{
492 #noVNC_connect_controls ul
{
497 #noVNC_setting_port {
501 /* ----------------------------------------
503 * ----------------------------------------
512 transform: translateY
(-100%);
514 transition: 0.5s ease-in-out
;
523 justify-content: center
;
524 align-content: center
;
527 word-wrap: break-word
;
530 border-bottom: 1px solid rgba
(0, 0, 0, 0.9);
532 #noVNC_status.noVNC_open
{
533 transform: translateY
(0);
538 #noVNC_status::before
{
540 display: inline-block
;
546 #noVNC_status.noVNC_status_normal
{
547 background: rgba
(128,128,128,0.9);
549 #noVNC_status.noVNC_status_normal::before
{
550 content: url
("../images/info.svg") " ";
552 #noVNC_status.noVNC_status_error
{
553 background: rgba
(200,55,55,0.9);
555 #noVNC_status.noVNC_status_error::before
{
556 content: url
("../images/error.svg") " ";
558 #noVNC_status.noVNC_status_warn
{
559 background: rgba
(180,180,30,0.9);
561 #noVNC_status.noVNC_status_warn::before
{
562 content: url
("../images/warning.svg") " ";
565 /* ----------------------------------------
567 * ----------------------------------------
570 #noVNC_password_dlg {
571 transform: translateY
(-50px);
573 #noVNC_password_dlg.noVNC_open
{
574 transform: translateY
(0);
576 #noVNC_password_dlg ul
{
582 /* ----------------------------------------
584 * ----------------------------------------
587 /* Transition screen */
598 background: rgba
(0, 0, 0, 0.5);
603 justify-content: center
;
604 flex-direction: column
;
606 :root
.noVNC_connecting #noVNC_transition
,
607 :root
.noVNC_disconnecting #noVNC_transition
{
610 #noVNC_transition_text {
619 background-color: #313131;
620 border-bottom-right-radius: 800px 600px;
621 /*border-top-left-radius: 800px 600px;*/
636 :root:not
(.noVNC_connected
) #noVNC_screen
{
640 /* Do not set width/height for VNC_canvas or incorrect
641 * scaling will occur. Canvas size depends on remote VNC
642 * settings and noVNC settings. */
651 /*Default noVNC logo.*/
652 /* From: http://fonts.googleapis.com/css?family=Orbitron:700 */
654 font-family: 'Orbitron';
657 src: local
('?'), url
('Orbitron700.woff') format
('woff'),
658 url
('Orbitron700.ttf') format
('truetype');
664 font-family: 'Orbitron', 'OrbitronTTF', sans-serif
;
667 text-shadow: 1px 1px 0 #000;
684 :root
.noVNC_connected #noVNC_logo
{
692 /* ----------------------------------------
694 * ----------------------------------------
697 @media screen and
(max-width: 640px){
703 @media screen and
(min-width: 321px) and
(max-width: 480px) {
709 @media screen and
(max-width: 320px) {