base.css 9.3 KB

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