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
;
25 .noVNC_only_touch.noVNC_hidden {
29 /* ----------------------------------------
31 * ----------------------------------------
34 input
[type
=input
], input
[type
=password
], input:not
([type
]), textarea
{
35 /* Disable default rendering */
36 -webkit-appearance: none
;
37 -moz-appearance: none
;
42 border: 1px solid rgb
(192, 192, 192);
45 background: linear-gradient
(to top
, rgb
(255, 255, 255) 80%, rgb
(240, 240, 240));
48 input
[type
=button
], select
{
49 /* Disable default rendering */
50 -webkit-appearance: none
;
51 -moz-appearance: none
;
56 border: 1px solid rgb
(192, 192, 192);
57 border-bottom-width: 2px;
60 background: linear-gradient
(to top
, rgb
(255, 255, 255), rgb
(240, 240, 240));
62 /* This avoids it jumping around when :active */
63 vertical-align: middle
;
76 input
[type
=input
]:focus
, input
[type
=password
]:focus
,
77 input:not
([type
]):focus
, input
[type
=button
]:focus
,
78 textarea:focus
, select:focus
{
79 box-shadow: 0px 0px 3px rgba
(74, 144, 217, 0.5);
80 border-color: rgb
(74, 144, 217);
84 input
[type
=button
]::-moz-focus-inner
{
88 input
[type
=input
]:disabled
, input
[type
=password
]:disabled
,
89 input:not
([type
]):disabled
, input
[type
=button
]:disabled
,
90 textarea:disabled
, select:disabled
{
91 color: rgb
(128, 128, 128);
92 background: rgb
(240, 240, 240);
95 input
[type
=button
]:active
, select:active
{
96 border-bottom-width: 1px;
100 /* ----------------------------------------
101 * WebKit centering hacks
102 * ----------------------------------------
107 * This is a workaround because webkit misrenders transforms and
108 * uses non-integer coordinates, resulting in blurry content.
109 * Ideally we'd use "top: 50%; transform: translateY(-50%);" on
110 * the objects instead.
114 justify-content: center
;
120 pointer-events: none
;
123 pointer-events: auto
;
127 flex-direction: column
;
128 justify-content: center
;
133 pointer-events: none
;
136 pointer-events: auto
;
139 /* ----------------------------------------
141 * ----------------------------------------
144 #noVNC_control_bar_anchor {
145 /* The anchor is needed to get z-stacking to work */
149 transition: 0.5s ease-in-out
;
151 /* Edge misrenders animations wihthout this */
152 transform: translateX
(0);
154 :root
.noVNC_connected #noVNC_control_bar_anchor
.noVNC_idle
{
160 /* left: calc(-35px - 10px - 5px - 30px), but IE doesn't animate calc */
163 transition: 0.5s ease-in-out
;
165 background-color: rgb
(110, 132, 163);
166 border-radius: 0 10px 10px 0;
168 /* The extra border is to get a proper shadow */
169 border-color: rgb
(110, 132, 163);
171 border-width: 0 0 0 30px;
173 #noVNC_control_bar.noVNC_open
{
174 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
178 #noVNC_control_bar_handle {
186 border-radius: 0 5px 5px 0;
187 background-color: rgb
(83, 99, 122);
188 background-image: url
("../images/handle_bg.svg");
189 background-repeat: no-repeat
;
190 background-position: right
;
191 box-shadow: 3px 3px 0px rgba
(0, 0, 0, 0.5);
193 #noVNC_control_bar_handle:after
{
195 transition: 0.5s ease-in-out
;
196 background: url
("../images/handle.svg");
198 top: 22px; /* (50px-6px)/2 */
203 #noVNC_control_bar.noVNC_open #
noVNC_control_bar_handle:after
{
204 transform: translateX
(1px) rotate
(180deg);
206 :root:not
(.noVNC_connected
) #noVNC_control_bar_handle
{
209 #noVNC_control_bar_handle div
{
216 :root:not
(.noVNC_touch
) #noVNC_control_bar_handle div
{
220 #noVNC_control_bar .noVNC_scroll
{
221 max-height: 100vh; /* Chrome is buggy with 100% */
224 padding: 0 10px 0 5px;
227 /* General button style */
232 vertical-align: middle
;
233 border:1px solid rgba
(255, 255, 255, 0.2);
234 -webkit-border-radius: 6px;
235 -moz-border-radius: 6px;
238 .noVNC_button.noVNC_selected {
239 border-color: rgba
(0, 0, 0, 0.8);
240 background: rgba
(0, 0, 0, 0.5);
242 .noVNC_button:disabled {
245 .noVNC_button:focus {
248 .noVNC_button:active {
252 .noVNC_button.noVNC_hidden {
258 transform: translateX
(25px);
260 transition: 0.5s ease-in-out
;
262 max-height: 100vh; /* Chrome is buggy with 100% */
272 -webkit-border-radius: 10px;
273 -moz-border-radius: 10px;
276 border: 2px solid
#E0E0E0;
277 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
279 .noVNC_panel.noVNC_open {
282 transform: translateX
(75px);
289 :root:not
(.noVNC_connected
) #noVNC_view_drag_button
{
293 /* noVNC Touch Device only buttons */
294 :root:not
(.noVNC_connected
) #noVNC_mobile_buttons
{
297 :root:not
(.noVNC_touch
) #noVNC_mobile_buttons
{
301 #noVNC_keyboardinput {
304 background-color: #fff;
313 /* Extra manual keys */
314 :root:not
(.noVNC_connected
) #noVNC_extra_keys
{
318 /* Send Ctrl+Alt+Delete */
319 :root:not
(.noVNC_connected
) #noVNC_send_ctrl_alt_del_button
{
324 background-color: rgb
(92, 92, 92);
329 /* XVP Shutdown/Reboot */
330 :root:not
(.noVNC_connected
) #noVNC_xvp_button
{
340 :root:not
(.noVNC_connected
) #noVNC_clipboard_button
{
344 /* Full screen, minus padding and left and right margins */
345 max-width: calc
(100vw - 2*15px - 75px - 25px);
347 #noVNC_clipboard_text {
360 #noVNC_setting_path {
364 /* Connection Controls */
365 :root
.noVNC_connected #noVNC_connect_controls_button
{
368 :root:not
(.noVNC_connected
) #noVNC_disconnect_button
{
371 #noVNC_connect_controls ul
{
376 #noVNC_connect_controls li
{
379 #noVNC_setting_host {
382 #noVNC_setting_port {
385 #noVNC_setting_password {
389 /* ----------------------------------------
391 * ----------------------------------------
400 transform: translateY
(-100%);
402 transition: 0.5s ease-in-out
;
411 justify-content: center
;
412 align-content: center
;
415 word-wrap: break-word
;
418 border-bottom: 1px solid rgba
(0, 0, 0, 0.9);
420 #noVNC_status.noVNC_open
{
421 transform: translateY
(0);
426 #noVNC_status::before
{
428 display: inline-block
;
434 #noVNC_status.noVNC_status_normal
{
435 background: rgba
(128,128,128,0.9);
437 #noVNC_status.noVNC_status_normal::before
{
438 content: url
("../images/info.svg") " ";
440 #noVNC_status.noVNC_status_error
{
441 background: rgba
(200,55,55,0.9);
443 #noVNC_status.noVNC_status_error::before
{
444 content: url
("../images/error.svg") " ";
446 #noVNC_status.noVNC_status_warn
{
447 background: rgba
(180,180,30,0.9);
449 #noVNC_status.noVNC_status_warn::before
{
450 content: url
("../images/warning.svg") " ";
453 /* ----------------------------------------
455 * ----------------------------------------
458 #noVNC_password_dlg {
459 transform: translateY
(-50px);
461 #noVNC_password_dlg.noVNC_open
{
462 transform: translateY
(0);
464 #noVNC_password_dlg ul
{
469 #noVNC_password_dlg li
{
472 #noVNC_password_input {
476 /* ----------------------------------------
478 * ----------------------------------------
485 background-color: #313131;
486 border-bottom-right-radius: 800px 600px;
487 /*border-top-left-radius: 800px 600px;*/
502 :root:not
(.noVNC_connected
) #noVNC_screen
{
506 /* Do not set width/height for VNC_canvas or incorrect
507 * scaling will occur. Canvas size depends on remote VNC
508 * settings and noVNC settings. */
517 /*Default noVNC logo.*/
518 /* From: http://fonts.googleapis.com/css?family=Orbitron:700 */
520 font-family: 'Orbitron';
523 src: local
('?'), url
('Orbitron700.woff') format
('woff'),
524 url
('Orbitron700.ttf') format
('truetype');
530 font-family: 'Orbitron', 'OrbitronTTF', sans-serif
;
533 text-shadow: 1px 1px 0 #000;
550 :root
.noVNC_connected #noVNC_logo
{
554 /* ----------------------------------------
556 * ----------------------------------------
559 @media screen and
(max-width: 640px){
565 @media screen and
(min-width: 321px) and
(max-width: 480px) {
571 @media screen and
(max-width: 320px) {