base.css 12 KB

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