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 {
182 transform: translateY
(35px);
187 border-radius: 0 5px 5px 0;
188 background-color: rgb
(83, 99, 122);
189 background-image: url
("../images/handle_bg.svg");
190 background-repeat: no-repeat
;
191 background-position: right
;
192 box-shadow: 3px 3px 0px rgba
(0, 0, 0, 0.5);
194 #noVNC_control_bar_handle:after
{
196 transition: 0.5s ease-in-out
;
197 background: url
("../images/handle.svg");
199 top: 22px; /* (50px-6px)/2 */
204 #noVNC_control_bar.noVNC_open #
noVNC_control_bar_handle:after
{
205 transform: translateX
(1px) rotate
(180deg);
207 :root:not
(.noVNC_connected
) #noVNC_control_bar_handle
{
210 #noVNC_control_bar_handle div
{
217 :root:not
(.noVNC_touch
) #noVNC_control_bar_handle div
{
221 #noVNC_control_bar .noVNC_scroll
{
222 max-height: 100vh; /* Chrome is buggy with 100% */
225 padding: 0 10px 0 5px;
228 /* General button style */
233 vertical-align: middle
;
234 border:1px solid rgba
(255, 255, 255, 0.2);
235 -webkit-border-radius: 6px;
236 -moz-border-radius: 6px;
239 .noVNC_button.noVNC_selected {
240 border-color: rgba
(0, 0, 0, 0.8);
241 background: rgba
(0, 0, 0, 0.5);
243 .noVNC_button:disabled {
246 .noVNC_button:focus {
249 .noVNC_button:active {
253 .noVNC_button.noVNC_hidden {
259 transform: translateX
(25px);
261 transition: 0.5s ease-in-out
;
263 max-height: 100vh; /* Chrome is buggy with 100% */
273 -webkit-border-radius: 10px;
274 -moz-border-radius: 10px;
277 border: 2px solid
#E0E0E0;
278 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
280 .noVNC_panel.noVNC_open {
283 transform: translateX
(75px);
288 border-top: 1px solid rgb
(192, 192, 192);
295 .noVNC_panel .noVNC_heading {
296 background-color: rgb
(110, 132, 163);
299 /* Compensate for padding in image */
306 .noVNC_panel .noVNC_heading img {
307 vertical-align: bottom
;
314 :root:not
(.noVNC_connected
) #noVNC_view_drag_button
{
318 /* noVNC Touch Device only buttons */
319 :root:not
(.noVNC_connected
) #noVNC_mobile_buttons
{
322 :root:not
(.noVNC_touch
) #noVNC_mobile_buttons
{
326 #noVNC_keyboardinput {
329 background-color: #fff;
338 /* Extra manual keys */
339 :root:not
(.noVNC_connected
) #noVNC_extra_keys
{
344 background-color: rgb
(92, 92, 92);
349 /* XVP Shutdown/Reboot */
350 :root:not
(.noVNC_connected
) #noVNC_xvp_button
{
359 #noVNC_xvp input
[type
=button
] {
364 :root:not
(.noVNC_connected
) #noVNC_clipboard_button
{
368 /* Full screen, minus padding and left and right margins */
369 max-width: calc
(100vw - 2*15px - 75px - 25px);
371 #noVNC_clipboard_text {
384 #noVNC_setting_path {
388 /* Connection Controls */
389 :root
.noVNC_connected #noVNC_connect_controls_button
{
392 :root:not
(.noVNC_connected
) #noVNC_disconnect_button
{
395 #noVNC_connect_controls ul
{
400 #noVNC_setting_port {
404 /* ----------------------------------------
406 * ----------------------------------------
415 transform: translateY
(-100%);
417 transition: 0.5s ease-in-out
;
426 justify-content: center
;
427 align-content: center
;
430 word-wrap: break-word
;
433 border-bottom: 1px solid rgba
(0, 0, 0, 0.9);
435 #noVNC_status.noVNC_open
{
436 transform: translateY
(0);
441 #noVNC_status::before
{
443 display: inline-block
;
449 #noVNC_status.noVNC_status_normal
{
450 background: rgba
(128,128,128,0.9);
452 #noVNC_status.noVNC_status_normal::before
{
453 content: url
("../images/info.svg") " ";
455 #noVNC_status.noVNC_status_error
{
456 background: rgba
(200,55,55,0.9);
458 #noVNC_status.noVNC_status_error::before
{
459 content: url
("../images/error.svg") " ";
461 #noVNC_status.noVNC_status_warn
{
462 background: rgba
(180,180,30,0.9);
464 #noVNC_status.noVNC_status_warn::before
{
465 content: url
("../images/warning.svg") " ";
468 /* ----------------------------------------
470 * ----------------------------------------
473 #noVNC_password_dlg {
474 transform: translateY
(-50px);
476 #noVNC_password_dlg.noVNC_open
{
477 transform: translateY
(0);
479 #noVNC_password_dlg ul
{
485 /* ----------------------------------------
487 * ----------------------------------------
494 background-color: #313131;
495 border-bottom-right-radius: 800px 600px;
496 /*border-top-left-radius: 800px 600px;*/
511 :root:not
(.noVNC_connected
) #noVNC_screen
{
515 /* Do not set width/height for VNC_canvas or incorrect
516 * scaling will occur. Canvas size depends on remote VNC
517 * settings and noVNC settings. */
526 /*Default noVNC logo.*/
527 /* From: http://fonts.googleapis.com/css?family=Orbitron:700 */
529 font-family: 'Orbitron';
532 src: local
('?'), url
('Orbitron700.woff') format
('woff'),
533 url
('Orbitron700.ttf') format
('truetype');
539 font-family: 'Orbitron', 'OrbitronTTF', sans-serif
;
542 text-shadow: 1px 1px 0 #000;
559 :root
.noVNC_connected #noVNC_logo
{
563 /* ----------------------------------------
565 * ----------------------------------------
568 @media screen and
(max-width: 640px){
574 @media screen and
(min-width: 321px) and
(max-width: 480px) {
580 @media screen and
(max-width: 320px) {