base.css 12 KB

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