base.css 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. /*
  2. * noVNC base CSS
  3. * Copyright (C) 2012 Joel Martin
  4. * noVNC is licensed under the LGPL-3 (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. padding-top:4px;
  62. }
  63. .noVNC-buttons-right {
  64. float:right;
  65. right: 0px;
  66. padding-right:10px;
  67. padding-top:4px;
  68. }
  69. #noVNC_status_bar {
  70. margin-top: 0px;
  71. padding: 0px;
  72. }
  73. #noVNC_status_bar div {
  74. font-size: 12px;
  75. padding-top: 4px;
  76. width:100%;
  77. }
  78. #noVNC_status {
  79. height:20px;
  80. text-align: center;
  81. }
  82. #noVNC_settings_menu {
  83. margin: 3px;
  84. text-align: left;
  85. }
  86. #noVNC_settings_menu ul {
  87. list-style: none;
  88. margin: 0px;
  89. padding: 0px;
  90. }
  91. #noVNC_apply {
  92. float:right;
  93. }
  94. .noVNC_status_normal {
  95. background: #eee;
  96. }
  97. .noVNC_status_error {
  98. background: #f44;
  99. }
  100. .noVNC_status_warn {
  101. background: #ff4;
  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_pad {
  106. margin: 0px;
  107. padding: 0px;
  108. height: 44px;
  109. }
  110. #noVNC_screen {
  111. text-align: center;
  112. display: table;
  113. width:100%;
  114. height:100%;
  115. background-color:#313131;
  116. border-bottom-right-radius: 800px 600px;
  117. /*border-top-left-radius: 800px 600px;*/
  118. }
  119. #noVNC_container, #noVNC_canvas {
  120. margin: 0px;
  121. padding: 0px;
  122. }
  123. #noVNC_canvas {
  124. left: 0px;
  125. }
  126. #VNC_clipboard_clear_button {
  127. float:right;
  128. }
  129. #VNC_clipboard_text {
  130. font-size: 11px;
  131. }
  132. #noVNC_clipboard_clear_button {
  133. float:right;
  134. }
  135. /*Bubble contents divs*/
  136. #noVNC_settings {
  137. display:none;
  138. margin-top:77px;
  139. right:20px;
  140. position:fixed;
  141. }
  142. #noVNC_controls {
  143. display:none;
  144. margin-top:77px;
  145. right:12px;
  146. position:fixed;
  147. }
  148. #noVNC_controls.top:after {
  149. right:15px;
  150. }
  151. #noVNC_description {
  152. display:none;
  153. position:fixed;
  154. margin-top:77px;
  155. right:20px;
  156. left:20px;
  157. padding:15px;
  158. color:#000;
  159. background:#eee; /* default background for browsers without gradient support */
  160. border:2px solid #E0E0E0;
  161. -webkit-border-radius:10px;
  162. -moz-border-radius:10px;
  163. border-radius:10px;
  164. }
  165. #noVNC_clipboard {
  166. display:none;
  167. margin-top:77px;
  168. right:30px;
  169. position:fixed;
  170. }
  171. #noVNC_clipboard.top:after {
  172. right:85px;
  173. }
  174. #keyboardinput {
  175. width:1px;
  176. height:1px;
  177. background-color:#fff;
  178. color:#fff;
  179. border:0;
  180. position: relative;
  181. left: -40px;
  182. z-index: -1;
  183. }
  184. .noVNC_status_warn {
  185. background-color:yellow;
  186. }
  187. /*
  188. * Advanced Styling
  189. */
  190. /* Control bar */
  191. #noVNC-control-bar {
  192. position:fixed;
  193. background: #b2bdcd; /* Old browsers */
  194. background: -moz-linear-gradient(top, #b2bdcd 0%, #899cb3 49%, #7e93af 51%, #6e84a3 100%); /* FF3.6+ */
  195. 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+ */
  196. background: -webkit-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Chrome10+,Safari5.1+ */
  197. background: -o-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Opera11.10+ */
  198. background: -ms-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* IE10+ */
  199. background: linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* W3C */
  200. display:block;
  201. height:44px;
  202. left:0;
  203. top:0;
  204. width:100%;
  205. z-index:200;
  206. }
  207. .noVNC_status_button {
  208. padding: 4px 4px;
  209. vertical-align: middle;
  210. border:1px solid #869dbc;
  211. -webkit-border-radius: 6px;
  212. -moz-border-radius: 6px;
  213. border-radius: 6px;
  214. background: #b2bdcd; /* Old browsers */
  215. background: -moz-linear-gradient(top, #b2bdcd 0%, #899cb3 49%, #7e93af 51%, #6e84a3 100%); /* FF3.6+ */
  216. 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+ */
  217. background: -webkit-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Chrome10+,Safari5.1+ */
  218. background: -o-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Opera11.10+ */
  219. background: -ms-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* IE10+ */
  220. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b2bdcd', endColorstr='#6e84a3',GradientType=0 ); /* IE6-9 */
  221. background: linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* W3C */
  222. /*box-shadow:inset 0.4px 0.4px 0.4px #000000;*/
  223. }
  224. .noVNC_status_button_selected {
  225. padding: 4px 4px;
  226. vertical-align: middle;
  227. border:1px solid #4366a9;
  228. -webkit-border-radius: 6px;
  229. -moz-border-radius: 6px;
  230. background: #779ced; /* Old browsers */
  231. background: -moz-linear-gradient(top, #779ced 0%, #3970e0 49%, #2160dd 51%, #2463df 100%); /* FF3.6+ */
  232. 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+ */
  233. background: -webkit-linear-gradient(top, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* Chrome10+,Safari5.1+ */
  234. background: -o-linear-gradient(top, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* Opera11.10+ */
  235. background: -ms-linear-gradient(top, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* IE10+ */
  236. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#779ced', endColorstr='#2463df',GradientType=0 ); /* IE6-9 */
  237. background: linear-gradient(top, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* W3C */
  238. /*box-shadow:inset 0.4px 0.4px 0.4px #000000;*/
  239. }
  240. /*Settings Bubble*/
  241. .triangle-right {
  242. position:relative;
  243. padding:15px;
  244. margin:1em 0 3em;
  245. color:#fff;
  246. background:#fff; /* default background for browsers without gradient support */
  247. /* css3 */
  248. /*background:-webkit-gradient(linear, 0 0, 0 100%, from(#2e88c4), to(#075698));
  249. background:-moz-linear-gradient(#2e88c4, #075698);
  250. background:-o-linear-gradient(#2e88c4, #075698);
  251. background:linear-gradient(#2e88c4, #075698);*/
  252. -webkit-border-radius:10px;
  253. -moz-border-radius:10px;
  254. border-radius:10px;
  255. color:#000;
  256. border:2px solid #E0E0E0;
  257. }
  258. .triangle-right.top:after {
  259. border-color: transparent #E0E0E0;
  260. border-width: 20px 20px 0 0;
  261. bottom: auto;
  262. left: auto;
  263. right: 50px;
  264. top: -20px;
  265. }
  266. .triangle-right:after {
  267. content:"";
  268. position:absolute;
  269. bottom:-20px; /* value = - border-top-width - border-bottom-width */
  270. left:50px; /* controls horizontal position */
  271. border-width:20px 0 0 20px; /* vary these values to change the angle of the vertex */
  272. border-style:solid;
  273. border-color:#E0E0E0 transparent;
  274. /* reduce the damage in FF3.0 */
  275. display:block;
  276. width:0;
  277. }
  278. .triangle-right.top:after {
  279. top:-40px; /* value = - border-top-width - border-bottom-width */
  280. right:50px; /* controls horizontal position */
  281. bottom:auto;
  282. left:auto;
  283. border-width:40px 40px 0 0; /* vary these values to change the angle of the vertex */
  284. border-color:transparent #E0E0E0;
  285. }
  286. /*Default noVNC logo.*/
  287. /* From: http://fonts.googleapis.com/css?family=Orbitron:700 */
  288. @font-face {
  289. font-family: 'Orbitron';
  290. font-style: normal;
  291. font-weight: 700;
  292. src: local('?'), url('Orbitron700.woff') format('woff'),
  293. url('Orbitron700.ttf') format('truetype');
  294. }
  295. #noVNC_logo {
  296. margin-top: 170px;
  297. margin-left: 10px;
  298. color:yellow;
  299. text-align:left;
  300. font-family: 'Orbitron', 'OrbitronTTF', sans-serif;
  301. line-height:90%;
  302. text-shadow:
  303. 5px 5px 0 #000,
  304. -1px -1px 0 #000,
  305. 1px -1px 0 #000,
  306. -1px 1px 0 #000,
  307. 1px 1px 0 #000;
  308. }
  309. #noVNC_logo span{
  310. color:green;
  311. }
  312. /* ----------------------------------------
  313. * Media sizing
  314. * ----------------------------------------
  315. */
  316. .noVNC_status_button {
  317. font-size: 12px;
  318. }
  319. #noVNC_clipboard_text {
  320. width: 500px;
  321. }
  322. #noVNC_logo {
  323. font-size: 180px;
  324. }
  325. @media screen and (min-width: 481px) and (max-width: 640px) {
  326. .noVNC_status_button {
  327. font-size: 10px;
  328. }
  329. #noVNC_clipboard_text {
  330. width: 410px;
  331. }
  332. #noVNC_logo {
  333. font-size: 150px;
  334. }
  335. }
  336. @media screen and (min-width: 321px) and (max-width: 480px) {
  337. .noVNC_status_button {
  338. font-size: 10px;
  339. }
  340. #noVNC_clipboard_text {
  341. width: 250px;
  342. }
  343. #noVNC_logo {
  344. font-size: 110px;
  345. }
  346. }
  347. @media screen and (max-width: 320px) {
  348. .noVNC_status_button {
  349. font-size: 9px;
  350. }
  351. #noVNC_clipboard_text {
  352. width: 220px;
  353. }
  354. #noVNC_logo {
  355. font-size: 90px;
  356. }
  357. }