]>
git.proxmox.com Git - mirror_novnc.git/blob - app/styles/base.css
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
;
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
;
126 /* ----------------------------------------
128 * ----------------------------------------
140 background: #b2bdcd; /* Old browsers */
141 background: -moz-linear-gradient
(top
, #b2bdcd 0%, #899cb3 49%, #7e93af 51%, #6e84a3 100%); /* FF3.6+ */
142 background: -webkit-gradient
(linear
, left top
, left bottom
, color-stop
(0%,#b2bdcd), color-stop
(49%,#899cb3), color-stop
(51%,#7e93af), color-stop
(100%,#6e84a3)); /* Chrome,Safari4+ */
143 background: -webkit-linear-gradient
(top
, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Chrome10+,Safari5.1+ */
144 background: -o-linear-gradient
(top
, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Opera11.10+ */
145 background: -ms-linear-gradient
(top
, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* IE10+ */
146 background: linear-gradient
(top
, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* W3C */
149 /* General button style */
152 vertical-align: middle
;
153 border:1px solid
#869dbc;
154 -webkit-border-radius: 6px;
155 -moz-border-radius: 6px;
157 background: #b2bdcd; /* Old browsers */
158 background: -moz-linear-gradient
(top
, #b2bdcd 0%, #899cb3 49%, #7e93af 51%, #6e84a3 100%); /* FF3.6+ */
159 background: -webkit-gradient
(linear
, left top
, left bottom
, color-stop
(0%,#b2bdcd), color-stop
(49%,#899cb3), color-stop
(51%,#7e93af), color-stop
(100%,#6e84a3)); /* Chrome,Safari4+ */
160 background: -webkit-linear-gradient
(top
, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Chrome10+,Safari5.1+ */
161 background: -o-linear-gradient
(top
, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Opera11.10+ */
162 background: -ms-linear-gradient
(top
, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* IE10+ */
163 filter: progid:DXImageTransform
.Microsoft
.gradient
( startColorstr
='#b2bdcd', endColorstr
='#6e84a3',GradientType
=0 ); /* IE6-9 */
164 background: linear-gradient
(top
, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* W3C */
165 /*box-shadow:inset 0.4px 0.4px 0.4px #000000;*/
168 .noVNC_button.noVNC_selected {
169 border-color: #4366a9;
170 background: #779ced; /* Old browsers */
171 background: -moz-linear-gradient
(top
, #779ced 0%, #3970e0 49%, #2160dd 51%, #2463df 100%); /* FF3.6+ */
172 background: -webkit-gradient
(linear
, left top
, left bottom
, color-stop
(0%,#779ced), color-stop
(49%,#3970e0), color-stop
(51%,#2160dd), color-stop
(100%,#2463df)); /* Chrome,Safari4+ */
173 background: -webkit-linear-gradient
(top
, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* Chrome10+,Safari5.1+ */
174 background: -o-linear-gradient
(top
, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* Opera11.10+ */
175 background: -ms-linear-gradient
(top
, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* IE10+ */
176 filter: progid:DXImageTransform
.Microsoft
.gradient
( startColorstr
='#779ced', endColorstr
='#2463df',GradientType
=0 ); /* IE6-9 */
177 background: linear-gradient
(top
, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* W3C */
179 .noVNC_button:disabled {
182 .noVNC_button.noVNC_hidden {
191 transform: translate
(0, -50px);
193 transition: 0.5s ease-in-out
;
201 -webkit-border-radius: 10px;
202 -moz-border-radius: 10px;
205 border: 2px solid
#E0E0E0;
206 box-shadow: 6px 6px 0px rgba
(0, 0, 0, 0.5);
208 .noVNC_panel.noVNC_open {
211 transform: translate
(0, 0);
218 /* noVNC Touch Device only buttons */
219 #noVNC_mobile_buttons {
222 #noVNC_mobile_buttons.noVNC_hidden
{
226 #noVNC_keyboardinput {
229 background-color: #fff;
238 #noVNC_toggle_extra_keys_button {
244 list-style-type: none
;
249 #noVNC_extra_keys.noVNC_hidden
{
252 #noVNC_toggle_ctrl_button {
255 #noVNC_toggle_alt_button {
258 #noVNC_send_tab_button {
261 #noVNC_send_esc_button {
276 /* XVP Shutdown/Reboot */
286 #noVNC_clipboard_text {
298 #noVNC_setting_path {
302 /* Connection Controls */
303 #noVNC_connect_controls {
305 #noVNC_connect_controls ul
{
310 #noVNC_connect_controls li
{
313 #noVNC_setting_host {
316 #noVNC_setting_port {
319 #noVNC_setting_password {
323 /* ----------------------------------------
325 * ----------------------------------------
334 transform: translateY
(-100%);
336 transition: 0.5s ease-in-out
;
345 justify-content: center
;
346 align-content: center
;
349 word-wrap: break-word
;
352 border-bottom: 1px solid rgba
(0, 0, 0, 0.9);
354 #noVNC_status.noVNC_open
{
355 transform: translateY
(0);
360 #noVNC_status::before
{
362 display: inline-block
;
368 #noVNC_status.noVNC_status_normal
{
369 background: rgba
(128,128,128,0.9);
371 #noVNC_status.noVNC_status_normal::before
{
372 content: url
("../images/info.svg") " ";
374 #noVNC_status.noVNC_status_error
{
375 background: rgba
(200,55,55,0.9);
377 #noVNC_status.noVNC_status_error::before
{
378 content: url
("../images/error.svg") " ";
380 #noVNC_status.noVNC_status_warn
{
381 background: rgba
(180,180,30,0.9);
383 #noVNC_status.noVNC_status_warn::before
{
384 content: url
("../images/warning.svg") " ";
387 /* ----------------------------------------
389 * ----------------------------------------
392 #noVNC_password_dlg {
393 transform: translateY
(-50px);
395 #noVNC_password_dlg.noVNC_open
{
396 transform: translateY
(0);
398 #noVNC_password_dlg ul
{
403 #noVNC_password_dlg li
{
406 #noVNC_password_input {
410 /* ----------------------------------------
412 * ----------------------------------------
419 background-color: #313131;
420 border-bottom-right-radius: 800px 600px;
421 /*border-top-left-radius: 800px 600px;*/
430 top: 36px; /* the height of the control bar */
436 #noVNC_screen.noVNC_hidden
{
440 /* Do not set width/height for VNC_canvas or incorrect
441 * scaling will occur. Canvas size depends on remote VNC
442 * settings and noVNC settings. */
451 /*Default noVNC logo.*/
452 /* From: http://fonts.googleapis.com/css?family=Orbitron:700 */
454 font-family: 'Orbitron';
457 src: local
('?'), url
('Orbitron700.woff') format
('woff'),
458 url
('Orbitron700.ttf') format
('truetype');
466 font-family: 'Orbitron', 'OrbitronTTF', sans-serif
;
476 #noVNC_logo.noVNC_hidden
{
484 /* ----------------------------------------
486 * ----------------------------------------
489 @media screen and
(max-width: 640px){
490 #noVNC_clipboard_text {
499 .noVNC_buttons_left {
502 .noVNC_buttons_right {
505 /* collapse the extra keys on lower resolutions */
506 #noVNC_toggle_extra_keys_button {
512 #noVNC_modifiers.noVNC_open
{
515 #noVNC_toggle_ctrl_button {
520 #noVNC_toggle_alt_button {
525 #noVNC_send_tab_button {
530 #noVNC_send_esc_button {
537 @media screen and
(min-width: 321px) and
(max-width: 480px) {
538 #noVNC_clipboard_text {
546 @media screen and
(max-width: 320px) {
550 #noVNC_clipboard_text {