]> git.proxmox.com Git - mirror_novnc.git/blame - include/base.css
* Don't check specific html elements from the display code (Fixes #446)
[mirror_novnc.git] / include / base.css
CommitLineData
d58f8b51
JM
1/*
2 * noVNC base CSS
3 * Copyright (C) 2012 Joel Martin
0019d3b0 4 * Copyright (C) 2013 Samuel Mannehed for Cendio AB
1d728ace 5 * noVNC is licensed under the MPL 2.0 (see LICENSE.txt)
d58f8b51
JM
6 * This file is licensed under the 2-Clause BSD license (see LICENSE.txt).
7 */
8
c327865b 9body {
01a9eee9
JM
10 margin:0;
11 padding:0;
12 font-family: Helvetica;
13 /*Background image with light grey curve.*/
14 background-color:#494949;
15 background-repeat:no-repeat;
16 background-position:right bottom;
17 height:100%;
c327865b
CG
18}
19
20html {
01a9eee9 21 height:100%;
c327865b
CG
22}
23
24#noVNC_controls ul {
01a9eee9
JM
25 list-style: none;
26 margin: 0px;
27 padding: 0px;
c327865b
CG
28}
29#noVNC_controls li {
01a9eee9 30 padding-bottom:8px;
c327865b
CG
31}
32
33#noVNC_host {
01a9eee9
JM
34 width:150px;
35}
c327865b 36#noVNC_port {
01a9eee9 37 width: 80px;
c327865b
CG
38}
39#noVNC_password {
01a9eee9 40 width: 150px;
c327865b
CG
41}
42#noVNC_encrypt {
43}
6209639f
JM
44#noVNC_path {
45 width: 100px;
46}
c327865b 47#noVNC_connect_button {
01a9eee9
JM
48 width: 110px;
49 float:right;
c327865b
CG
50}
51
fb35d50f
MS
52#noVNC_buttons {
53 white-space: nowrap;
54}
55
a5df24b4
JM
56#noVNC_view_drag_button {
57 display: none;
58}
59#sendCtrlAltDelButton {
60 display: none;
61}
fb35d50f
MS
62#noVNC_xvp_buttons {
63 display: none;
64}
c327865b 65#noVNC_mobile_buttons {
608e0f52
JM
66 display: none;
67}
68
53c01a23 69#noVNC_extra_keys {
70 display: inline;
71 list-style-type: none;
72 padding: 0px;
73 margin: 0px;
74 position: relative;
75}
76
608e0f52 77.noVNC-buttons-left {
a5df24b4 78 float: left;
0fa4e0a9
SM
79 z-index: 1;
80 position: relative;
c327865b 81}
01a9eee9 82
608e0f52
JM
83.noVNC-buttons-right {
84 float:right;
85 right: 0px;
35b29c98 86 z-index: 2;
0fa4e0a9 87 position: absolute;
c327865b
CG
88}
89
35b29c98 90#noVNC_status {
01a9eee9
JM
91 font-size: 12px;
92 padding-top: 4px;
9e97231a 93 height:32px;
01a9eee9 94 text-align: center;
7ab02c7f 95 font-weight: bold;
96 color: #fff;
c327865b 97}
35b29c98 98
c327865b 99#noVNC_settings_menu {
01a9eee9
JM
100 margin: 3px;
101 text-align: left;
c327865b
CG
102}
103#noVNC_settings_menu ul {
01a9eee9
JM
104 list-style: none;
105 margin: 0px;
106 padding: 0px;
c327865b
CG
107}
108
109#noVNC_apply {
01a9eee9 110 float:right;
c327865b
CG
111}
112
c327865b
CG
113/* Do not set width/height for VNC_screen or VNC_canvas or incorrect
114 * scaling will occur. Canvas resizes to remote VNC settings */
115#noVNC_screen {
01a9eee9
JM
116 display: table;
117 width:100%;
118 height:100%;
119 background-color:#313131;
120 border-bottom-right-radius: 800px 600px;
121 /*border-top-left-radius: 800px 600px;*/
c327865b 122}
a5df24b4 123
fdedbafb 124#noVNC_container {
125 display: none;
126 position: absolute;
5299db1a
JM
127 margin: 0px;
128 padding: 0px;
fdedbafb 129 bottom: 0px;
130 top: 36px; /* the height of the control bar */
131 left: 0px;
132 right: 0px;
133 width: auto;
134 height: auto;
a5df24b4
JM
135}
136
137#noVNC_canvas {
fdedbafb 138 position: absolute;
139 left: 0;
140 right: 0;
141 margin-left: auto;
142 margin-right: auto;
c327865b
CG
143}
144
145#VNC_clipboard_clear_button {
01a9eee9 146 float:right;
c327865b
CG
147}
148#VNC_clipboard_text {
01a9eee9 149 font-size: 11px;
c327865b
CG
150}
151
c327865b 152#noVNC_clipboard_clear_button {
01a9eee9 153 float:right;
c327865b
CG
154}
155
f4bce783
JM
156/*Bubble contents divs*/
157#noVNC_settings {
158 display:none;
9e97231a 159 margin-top:73px;
f4bce783
JM
160 right:20px;
161 position:fixed;
162}
163
164#noVNC_controls {
0ce93900 165 display:none;
9e97231a 166 margin-top:73px;
f4bce783
JM
167 right:12px;
168 position:fixed;
169}
170#noVNC_controls.top:after {
171 right:15px;
172}
173
0ce93900
JM
174#noVNC_description {
175 display:none;
176 position:fixed;
177
9e97231a 178 margin-top:73px;
0ce93900
JM
179 right:20px;
180 left:20px;
181 padding:15px;
182 color:#000;
183 background:#eee; /* default background for browsers without gradient support */
184
185 border:2px solid #E0E0E0;
186 -webkit-border-radius:10px;
187 -moz-border-radius:10px;
188 border-radius:10px;
189}
190
0fa4e0a9
SM
191#noVNC_popup_status_panel {
192 display:none;
193 position: fixed;
6ca8a2c0 194 z-index: 1;
0fa4e0a9
SM
195
196 margin:15px;
197 margin-top:60px;
198 padding:15px;
199 width:auto;
200
201 text-align:center;
202 font-weight:bold;
203 word-wrap:break-word;
204 color:#fff;
205 background:rgba(0,0,0,0.65);
206
207 -webkit-border-radius:10px;
208 -moz-border-radius:10px;
209 border-radius:10px;
210}
211
fb35d50f
MS
212#noVNC_xvp {
213 display:none;
214 margin-top:73px;
215 right:30px;
216 position:fixed;
217}
218#noVNC_xvp.top:after {
219 right:125px;
220}
221
f4bce783
JM
222#noVNC_clipboard {
223 display:none;
9e97231a 224 margin-top:73px;
f4bce783
JM
225 right:30px;
226 position:fixed;
227}
228#noVNC_clipboard.top:after {
229 right:85px;
230}
231
232#keyboardinput {
233 width:1px;
234 height:1px;
235 background-color:#fff;
236 color:#fff;
237 border:0;
238 position: relative;
239 left: -40px;
240 z-index: -1;
241}
242
f4bce783
JM
243/*
244 * Advanced Styling
245 */
246
35b29c98 247.noVNC_status_normal {
f4bce783
JM
248 background: #b2bdcd; /* Old browsers */
249 background: -moz-linear-gradient(top, #b2bdcd 0%, #899cb3 49%, #7e93af 51%, #6e84a3 100%); /* FF3.6+ */
250 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+ */
251 background: -webkit-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Chrome10+,Safari5.1+ */
252 background: -o-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Opera11.10+ */
253 background: -ms-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* IE10+ */
254 background: linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* W3C */
35b29c98 255}
256.noVNC_status_error {
257 background: #f04040; /* Old browsers */
258 background: -moz-linear-gradient(top, #f04040 0%, #899cb3 49%, #7e93af 51%, #6e84a3 100%); /* FF3.6+ */
259 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f04040), color-stop(49%,#899cb3), color-stop(51%,#7e93af), color-stop(100%,#6e84a3)); /* Chrome,Safari4+ */
260 background: -webkit-linear-gradient(top, #f04040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Chrome10+,Safari5.1+ */
261 background: -o-linear-gradient(top, #f04040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Opera11.10+ */
262 background: -ms-linear-gradient(top, #f04040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* IE10+ */
263 background: linear-gradient(top, #f04040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* W3C */
264}
265.noVNC_status_warn {
266 background: #f0f040; /* Old browsers */
267 background: -moz-linear-gradient(top, #f0f040 0%, #899cb3 49%, #7e93af 51%, #6e84a3 100%); /* FF3.6+ */
268 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f0f040), color-stop(49%,#899cb3), color-stop(51%,#7e93af), color-stop(100%,#6e84a3)); /* Chrome,Safari4+ */
269 background: -webkit-linear-gradient(top, #f0f040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Chrome10+,Safari5.1+ */
270 background: -o-linear-gradient(top, #f0f040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Opera11.10+ */
271 background: -ms-linear-gradient(top, #f0f040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* IE10+ */
272 background: linear-gradient(top, #f0f040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* W3C */
273}
f4bce783 274
35b29c98 275/* Control bar */
276#noVNC-control-bar {
277 position:fixed;
278
f4bce783 279 display:block;
9e97231a 280 height:36px;
f4bce783
JM
281 left:0;
282 top:0;
283 width:100%;
284 z-index:200;
285}
286
287.noVNC_status_button {
288 padding: 4px 4px;
289 vertical-align: middle;
290 border:1px solid #869dbc;
291 -webkit-border-radius: 6px;
292 -moz-border-radius: 6px;
293 border-radius: 6px;
294 background: #b2bdcd; /* Old browsers */
295 background: -moz-linear-gradient(top, #b2bdcd 0%, #899cb3 49%, #7e93af 51%, #6e84a3 100%); /* FF3.6+ */
296 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+ */
297 background: -webkit-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Chrome10+,Safari5.1+ */
298 background: -o-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Opera11.10+ */
299 background: -ms-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* IE10+ */
300 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b2bdcd', endColorstr='#6e84a3',GradientType=0 ); /* IE6-9 */
301 background: linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* W3C */
302 /*box-shadow:inset 0.4px 0.4px 0.4px #000000;*/
303}
304
305.noVNC_status_button_selected {
306 padding: 4px 4px;
307 vertical-align: middle;
308 border:1px solid #4366a9;
309 -webkit-border-radius: 6px;
310 -moz-border-radius: 6px;
311 background: #779ced; /* Old browsers */
312 background: -moz-linear-gradient(top, #779ced 0%, #3970e0 49%, #2160dd 51%, #2463df 100%); /* FF3.6+ */
313 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+ */
314 background: -webkit-linear-gradient(top, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* Chrome10+,Safari5.1+ */
315 background: -o-linear-gradient(top, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* Opera11.10+ */
316 background: -ms-linear-gradient(top, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* IE10+ */
317 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#779ced', endColorstr='#2463df',GradientType=0 ); /* IE6-9 */
318 background: linear-gradient(top, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* W3C */
319 /*box-shadow:inset 0.4px 0.4px 0.4px #000000;*/
320}
321
322
c327865b
CG
323/*Settings Bubble*/
324.triangle-right {
01a9eee9
JM
325 position:relative;
326 padding:15px;
327 margin:1em 0 3em;
328 color:#fff;
329 background:#fff; /* default background for browsers without gradient support */
330 /* css3 */
331 /*background:-webkit-gradient(linear, 0 0, 0 100%, from(#2e88c4), to(#075698));
332 background:-moz-linear-gradient(#2e88c4, #075698);
333 background:-o-linear-gradient(#2e88c4, #075698);
334 background:linear-gradient(#2e88c4, #075698);*/
335 -webkit-border-radius:10px;
336 -moz-border-radius:10px;
337 border-radius:10px;
338 color:#000;
339 border:2px solid #E0E0E0;
c327865b
CG
340}
341
342.triangle-right.top:after {
01a9eee9
JM
343 border-color: transparent #E0E0E0;
344 border-width: 20px 20px 0 0;
345 bottom: auto;
346 left: auto;
347 right: 50px;
348 top: -20px;
c327865b
CG
349}
350
351.triangle-right:after {
01a9eee9
JM
352 content:"";
353 position:absolute;
354 bottom:-20px; /* value = - border-top-width - border-bottom-width */
355 left:50px; /* controls horizontal position */
356 border-width:20px 0 0 20px; /* vary these values to change the angle of the vertex */
357 border-style:solid;
5299db1a 358 border-color:#E0E0E0 transparent;
01a9eee9 359 /* reduce the damage in FF3.0 */
5299db1a 360 display:block;
01a9eee9 361 width:0;
c327865b
CG
362}
363
364.triangle-right.top:after {
01a9eee9
JM
365 top:-40px; /* value = - border-top-width - border-bottom-width */
366 right:50px; /* controls horizontal position */
367 bottom:auto;
368 left:auto;
369 border-width:40px 40px 0 0; /* vary these values to change the angle of the vertex */
5299db1a 370 border-color:transparent #E0E0E0;
c327865b
CG
371}
372
b70ce077 373/*Default noVNC logo.*/
479bfa99
JM
374/* From: http://fonts.googleapis.com/css?family=Orbitron:700 */
375@font-face {
376 font-family: 'Orbitron';
377 font-style: normal;
378 font-weight: 700;
379 src: local('?'), url('Orbitron700.woff') format('woff'),
380 url('Orbitron700.ttf') format('truetype');
381}
382
b70ce077 383#noVNC_logo {
a5df24b4
JM
384 margin-top: 170px;
385 margin-left: 10px;
01a9eee9
JM
386 color:yellow;
387 text-align:left;
479bfa99 388 font-family: 'Orbitron', 'OrbitronTTF', sans-serif;
01a9eee9
JM
389 line-height:90%;
390 text-shadow:
c327865b
CG
391 5px 5px 0 #000,
392 -1px -1px 0 #000,
393 1px -1px 0 #000,
394 -1px 1px 0 #000,
395 1px 1px 0 #000;
396}
397
a5df24b4 398
b70ce077 399#noVNC_logo span{
01a9eee9 400 color:green;
a7eb596d
CG
401}
402
a5df24b4
JM
403/* ----------------------------------------
404 * Media sizing
405 * ----------------------------------------
406 */
407
408
409.noVNC_status_button {
410 font-size: 12px;
a5df24b4 411}
938daad1 412
a5df24b4
JM
413#noVNC_clipboard_text {
414 width: 500px;
a5df24b4
JM
415}
416
417#noVNC_logo {
418 font-size: 180px;
419}
420
35b29c98 421.noVNC-buttons-left {
422 padding-left: 10px;
423}
424
425.noVNC-buttons-right {
426 padding-right: 10px;
427}
428
429#noVNC_status {
430 z-index: 0;
431 position: absolute;
432 width: 100%;
9d04096e 433 margin-left: 0px;
35b29c98 434}
435
9d04096e 436#showExtraKeysButton { display: none; }
437#toggleCtrlButton { display: inline; }
438#toggleAltButton { display: inline; }
439#sendTabButton { display: inline; }
440#sendEscButton { display: inline; }
441
442/* left-align the status text on lower resolutions */
443@media screen and (max-width: 800px){
444 #noVNC_status {
445 z-index: 1;
446 position: relative;
447 width: auto;
448 float: left;
449 margin-left: 4px;
450 }
53c01a23 451}
452
35b29c98 453@media screen and (max-width: 640px){
9d04096e 454 #noVNC_clipboard_text {
455 width: 410px;
456 }
457 #noVNC_logo {
458 font-size: 150px;
459 }
a5df24b4
JM
460 .noVNC_status_button {
461 font-size: 10px;
a5df24b4 462 }
35b29c98 463 .noVNC-buttons-left {
464 padding-left: 0px;
465 }
466 .noVNC-buttons-right {
467 padding-right: 0px;
468 }
bd88b943 469 /* collapse the extra keys on lower resolutions */
470 #showExtraKeysButton {
471 display: inline;
53c01a23 472 }
bd88b943 473 #toggleCtrlButton {
474 display: none;
475 position: absolute;
476 top: 30px;
477 left: 0px;
478 }
479 #toggleAltButton {
480 display: none;
481 position: absolute;
482 top: 65px;
483 left: 0px;
484 }
485 #sendTabButton {
486 display: none;
487 position: absolute;
488 top: 100px;
489 left: 0px;
490 }
491 #sendEscButton {
492 display: none;
493 position: absolute;
494 top: 135px;
495 left: 0px;
53c01a23 496 }
a5df24b4
JM
497}
498
499@media screen and (min-width: 321px) and (max-width: 480px) {
a5df24b4
JM
500 #noVNC_clipboard_text {
501 width: 250px;
a5df24b4
JM
502 }
503 #noVNC_logo {
504 font-size: 110px;
505 }
506}
507
508@media screen and (max-width: 320px) {
509 .noVNC_status_button {
510 font-size: 9px;
a5df24b4
JM
511 }
512 #noVNC_clipboard_text {
513 width: 220px;
a5df24b4
JM
514 }
515 #noVNC_logo {
516 font-size: 90px;
517 }
518}