base.css 12 KB

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