base.css 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916
  1. /*
  2. * noVNC base CSS
  3. * Copyright (C) 2012 Joel Martin
  4. * Copyright (C) 2016 Samuel Mannehed for Cendio AB
  5. * Copyright (C) 2016 Pierre Ossman for Cendio AB
  6. * noVNC is licensed under the MPL 2.0 (see LICENSE.txt)
  7. * This file is licensed under the 2-Clause BSD license (see LICENSE.txt).
  8. */
  9. /*
  10. * Z index layers:
  11. *
  12. * 0: Main screen
  13. * 10: Control bar
  14. * 50: Transition blocker
  15. * 60: Connection popups
  16. * 100: Status bar
  17. * ...
  18. * 1000: Javascript crash
  19. * ...
  20. * 10000: Max (used for polyfills)
  21. */
  22. body {
  23. margin:0;
  24. padding:0;
  25. font-family: Helvetica;
  26. /*Background image with light grey curve.*/
  27. background-color:#494949;
  28. background-repeat:no-repeat;
  29. background-position:right bottom;
  30. height:100%;
  31. touch-action: none;
  32. }
  33. html {
  34. height:100%;
  35. }
  36. .noVNC_only_touch.noVNC_hidden {
  37. display: none;
  38. }
  39. .noVNC_disabled {
  40. color: rgb(128, 128, 128);
  41. }
  42. /* ----------------------------------------
  43. * Spinner
  44. * ----------------------------------------
  45. */
  46. .noVNC_spinner {
  47. position: relative;
  48. }
  49. .noVNC_spinner, .noVNC_spinner::before, .noVNC_spinner::after {
  50. width: 10px;
  51. height: 10px;
  52. border-radius: 2px;
  53. box-shadow: -60px 10px 0 rgba(255, 255, 255, 0);
  54. animation: noVNC_spinner 1.0s linear infinite;
  55. }
  56. .noVNC_spinner::before {
  57. content: "";
  58. position: absolute;
  59. left: 0px;
  60. top: 0px;
  61. animation-delay: -0.1s;
  62. }
  63. .noVNC_spinner::after {
  64. content: "";
  65. position: absolute;
  66. top: 0px;
  67. left: 0px;
  68. animation-delay: 0.1s;
  69. }
  70. @keyframes noVNC_spinner {
  71. 0% { box-shadow: -60px 10px 0 rgba(255, 255, 255, 0); width: 20px; }
  72. 25% { box-shadow: 20px 10px 0 rgba(255, 255, 255, 1); width: 10px; }
  73. 50% { box-shadow: 60px 10px 0 rgba(255, 255, 255, 0); width: 10px; }
  74. }
  75. /* ----------------------------------------
  76. * Input Elements
  77. * ----------------------------------------
  78. */
  79. input[type=input], input[type=password], input[type=number],
  80. input:not([type]), textarea {
  81. /* Disable default rendering */
  82. -webkit-appearance: none;
  83. -moz-appearance: none;
  84. background: none;
  85. margin: 2px;
  86. padding: 2px;
  87. border: 1px solid rgb(192, 192, 192);
  88. border-radius: 5px;
  89. color: black;
  90. background: linear-gradient(to top, rgb(255, 255, 255) 80%, rgb(240, 240, 240));
  91. }
  92. input[type=button], input[type=submit], select {
  93. /* Disable default rendering */
  94. -webkit-appearance: none;
  95. -moz-appearance: none;
  96. background: none;
  97. margin: 2px;
  98. padding: 2px;
  99. border: 1px solid rgb(192, 192, 192);
  100. border-bottom-width: 2px;
  101. border-radius: 5px;
  102. color: black;
  103. background: linear-gradient(to top, rgb(255, 255, 255), rgb(240, 240, 240));
  104. /* This avoids it jumping around when :active */
  105. vertical-align: middle;
  106. }
  107. input[type=button], input[type=submit] {
  108. padding-left: 20px;
  109. padding-right: 20px;
  110. }
  111. option {
  112. color: black;
  113. background: white;
  114. }
  115. input[type=input]:focus, input[type=password]:focus,
  116. input:not([type]):focus, input[type=button]:focus,
  117. input[type=submit]:focus,
  118. textarea:focus, select:focus {
  119. box-shadow: 0px 0px 3px rgba(74, 144, 217, 0.5);
  120. border-color: rgb(74, 144, 217);
  121. outline: none;
  122. }
  123. input[type=button]::-moz-focus-inner,
  124. input[type=submit]::-moz-focus-inner {
  125. border: none;
  126. }
  127. input[type=input]:disabled, input[type=password]:disabled,
  128. input:not([type]):disabled, input[type=button]:disabled,
  129. input[type=submit]:disabled, input[type=number]:disabled,
  130. textarea:disabled, select:disabled {
  131. color: rgb(128, 128, 128);
  132. background: rgb(240, 240, 240);
  133. }
  134. input[type=button]:active, input[type=submit]:active,
  135. select:active {
  136. border-bottom-width: 1px;
  137. margin-top: 3px;
  138. }
  139. :root:not(.noVNC_touch) input[type=button]:hover:not(:disabled),
  140. :root:not(.noVNC_touch) input[type=submit]:hover:not(:disabled),
  141. :root:not(.noVNC_touch) select:hover:not(:disabled) {
  142. background: linear-gradient(to top, rgb(255, 255, 255), rgb(250, 250, 250));
  143. }
  144. /* ----------------------------------------
  145. * WebKit centering hacks
  146. * ----------------------------------------
  147. */
  148. .noVNC_center {
  149. /*
  150. * This is a workaround because webkit misrenders transforms and
  151. * uses non-integer coordinates, resulting in blurry content.
  152. * Ideally we'd use "top: 50%; transform: translateY(-50%);" on
  153. * the objects instead.
  154. */
  155. display: flex;
  156. align-items: center;
  157. justify-content: center;
  158. position: fixed;
  159. top: 0;
  160. left: 0;
  161. width: 100%;
  162. height: 100%;
  163. pointer-events: none;
  164. }
  165. .noVNC_center > * {
  166. pointer-events: auto;
  167. }
  168. .noVNC_vcenter {
  169. display: flex;
  170. flex-direction: column;
  171. justify-content: center;
  172. position: fixed;
  173. top: 0;
  174. left: 0;
  175. height: 100%;
  176. pointer-events: none;
  177. }
  178. .noVNC_vcenter > * {
  179. pointer-events: auto;
  180. }
  181. /* ----------------------------------------
  182. * Layering
  183. * ----------------------------------------
  184. */
  185. .noVNC_connect_layer {
  186. z-index: 60;
  187. }
  188. /* ----------------------------------------
  189. * Fallback error
  190. * ----------------------------------------
  191. */
  192. #noVNC_fallback_error {
  193. z-index: 1000;
  194. visibility: hidden;
  195. }
  196. #noVNC_fallback_error.noVNC_open {
  197. visibility: visible;
  198. }
  199. #noVNC_fallback_error > div {
  200. max-width: 90%;
  201. padding: 15px;
  202. transition: 0.5s ease-in-out;
  203. transform: translateY(-50px);
  204. opacity: 0;
  205. text-align: center;
  206. font-weight: bold;
  207. color: #fff;
  208. border-radius: 10px;
  209. box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
  210. background: rgba(200,55,55,0.8);
  211. }
  212. #noVNC_fallback_error.noVNC_open > div {
  213. transform: translateY(0);
  214. opacity: 1;
  215. }
  216. #noVNC_fallback_errormsg {
  217. font-weight: normal;
  218. }
  219. #noVNC_fallback_errormsg .noVNC_message {
  220. display: inline-block;
  221. text-align: left;
  222. font-family: monospace;
  223. white-space: pre-wrap;
  224. }
  225. #noVNC_fallback_error .noVNC_location {
  226. font-style: italic;
  227. font-size: 0.8em;
  228. color: rgba(255, 255, 255, 0.8);
  229. }
  230. #noVNC_fallback_error .noVNC_stack {
  231. padding: 10px;
  232. margin: 10px;
  233. font-size: 0.8em;
  234. text-align: left;
  235. font-family: monospace;
  236. white-space: pre-wrap;
  237. border: 1px solid rgba(0, 0, 0, 0.5);
  238. background: rgba(0, 0, 0, 0.2);
  239. }
  240. /* ----------------------------------------
  241. * Control Bar
  242. * ----------------------------------------
  243. */
  244. #noVNC_control_bar_anchor {
  245. /* The anchor is needed to get z-stacking to work */
  246. position: fixed;
  247. z-index: 10;
  248. transition: 0.5s ease-in-out;
  249. /* Edge misrenders animations wihthout this */
  250. transform: translateX(0);
  251. }
  252. :root.noVNC_connected #noVNC_control_bar_anchor.noVNC_idle {
  253. opacity: 0.8;
  254. }
  255. #noVNC_control_bar_anchor.noVNC_right {
  256. left: auto;
  257. right: 0;
  258. }
  259. #noVNC_control_bar {
  260. position: relative;
  261. left: -100%;
  262. transition: 0.5s ease-in-out;
  263. background-color: rgb(110, 132, 163);
  264. border-radius: 0 10px 10px 0;
  265. }
  266. #noVNC_control_bar.noVNC_open {
  267. box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
  268. left: 0;
  269. }
  270. #noVNC_control_bar::before {
  271. /* This extra element is to get a proper shadow */
  272. content: "";
  273. position: absolute;
  274. z-index: -1;
  275. height: 100%;
  276. width: 30px;
  277. left: -30px;
  278. transition: box-shadow 0.5s ease-in-out;
  279. }
  280. #noVNC_control_bar.noVNC_open::before {
  281. box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
  282. }
  283. .noVNC_right #noVNC_control_bar {
  284. left: 100%;
  285. border-radius: 10px 0 0 10px;
  286. }
  287. .noVNC_right #noVNC_control_bar.noVNC_open {
  288. left: 0;
  289. }
  290. .noVNC_right #noVNC_control_bar::before {
  291. visibility: hidden;
  292. }
  293. #noVNC_control_bar_handle {
  294. position: absolute;
  295. left: -15px;
  296. top: 0;
  297. transform: translateY(35px);
  298. width: calc(100% + 30px);
  299. height: 50px;
  300. z-index: -1;
  301. cursor: pointer;
  302. border-radius: 5px;
  303. background-color: rgb(83, 99, 122);
  304. background-image: url("../images/handle_bg.svg");
  305. background-repeat: no-repeat;
  306. background-position: right;
  307. box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
  308. }
  309. #noVNC_control_bar_handle:after {
  310. content: "";
  311. transition: transform 0.5s ease-in-out;
  312. background: url("../images/handle.svg");
  313. position: absolute;
  314. top: 22px; /* (50px-6px)/2 */
  315. right: 5px;
  316. width: 5px;
  317. height: 6px;
  318. }
  319. #noVNC_control_bar.noVNC_open #noVNC_control_bar_handle:after {
  320. transform: translateX(1px) rotate(180deg);
  321. }
  322. :root:not(.noVNC_connected) #noVNC_control_bar_handle {
  323. display: none;
  324. }
  325. .noVNC_right #noVNC_control_bar_handle {
  326. background-position: left;
  327. }
  328. .noVNC_right #noVNC_control_bar_handle:after {
  329. left: 5px;
  330. right: 0;
  331. transform: translateX(1px) rotate(180deg);
  332. }
  333. .noVNC_right #noVNC_control_bar.noVNC_open #noVNC_control_bar_handle:after {
  334. transform: none;
  335. }
  336. #noVNC_control_bar_handle div {
  337. position: absolute;
  338. right: -35px;
  339. top: 0;
  340. width: 50px;
  341. height: 50px;
  342. }
  343. :root:not(.noVNC_touch) #noVNC_control_bar_handle div {
  344. display: none;
  345. }
  346. .noVNC_right #noVNC_control_bar_handle div {
  347. left: -35px;
  348. right: auto;
  349. }
  350. #noVNC_control_bar .noVNC_scroll {
  351. max-height: 100vh; /* Chrome is buggy with 100% */
  352. overflow-x: hidden;
  353. overflow-y: auto;
  354. padding: 0 10px 0 5px;
  355. }
  356. .noVNC_right #noVNC_control_bar .noVNC_scroll {
  357. padding: 0 5px 0 10px;
  358. }
  359. /* Control bar hint */
  360. #noVNC_control_bar_hint {
  361. position: fixed;
  362. left: calc(100vw - 50px);
  363. right: auto;
  364. width: 100px;
  365. height: 50%;
  366. max-height: 600px;
  367. visibility: hidden;
  368. opacity: 0;
  369. transition: 0.2s ease-in-out;
  370. background: transparent;
  371. box-shadow: 0 0 10px black, inset 0 0 10px 10px rgba(110, 132, 163, 0.8);
  372. border-radius: 10px;
  373. transition-delay: 0s;
  374. transform: scale(0);
  375. }
  376. #noVNC_control_bar_anchor.noVNC_right #noVNC_control_bar_hint{
  377. left: auto;
  378. right: calc(100vw - 50px);
  379. }
  380. #noVNC_control_bar_hint.noVNC_active {
  381. visibility: visible;
  382. opacity: 1;
  383. transition-delay: 0.2s;
  384. transform: scale(1);
  385. }
  386. /* General button style */
  387. .noVNC_button {
  388. display: block;
  389. padding: 4px 4px;
  390. margin: 10px 0;
  391. vertical-align: middle;
  392. border:1px solid rgba(255, 255, 255, 0.2);
  393. border-radius: 6px;
  394. }
  395. .noVNC_button.noVNC_selected {
  396. border-color: rgba(0, 0, 0, 0.8);
  397. background: rgba(0, 0, 0, 0.5);
  398. }
  399. .noVNC_button:disabled {
  400. opacity: 0.4;
  401. }
  402. .noVNC_button:focus {
  403. outline: none;
  404. }
  405. .noVNC_button:active {
  406. padding-top: 5px;
  407. padding-bottom: 3px;
  408. }
  409. :root:not(.noVNC_touch) .noVNC_button.noVNC_selected:hover {
  410. border-color: rgba(0, 0, 0, 0.4);
  411. background: rgba(0, 0, 0, 0.2);
  412. }
  413. :root:not(.noVNC_touch) .noVNC_button:hover {
  414. background: rgba(255, 255, 255, 0.2);
  415. }
  416. .noVNC_button.noVNC_hidden {
  417. display: none;
  418. }
  419. /* Panels */
  420. .noVNC_panel {
  421. transform: translateX(25px);
  422. transition: 0.5s ease-in-out;
  423. max-height: 100vh; /* Chrome is buggy with 100% */
  424. overflow-x: hidden;
  425. overflow-y: auto;
  426. visibility: hidden;
  427. opacity: 0;
  428. padding: 15px;
  429. background: #fff;
  430. border-radius: 10px;
  431. color: #000;
  432. border: 2px solid #E0E0E0;
  433. box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
  434. }
  435. .noVNC_panel.noVNC_open {
  436. visibility: visible;
  437. opacity: 1;
  438. transform: translateX(75px);
  439. }
  440. .noVNC_right .noVNC_vcenter {
  441. left: auto;
  442. right: 0;
  443. }
  444. .noVNC_right .noVNC_panel {
  445. transform: translateX(-25px);
  446. }
  447. .noVNC_right .noVNC_panel.noVNC_open {
  448. transform: translateX(-75px);
  449. }
  450. .noVNC_panel hr {
  451. border: none;
  452. border-top: 1px solid rgb(192, 192, 192);
  453. }
  454. .noVNC_panel label {
  455. display: block;
  456. white-space: nowrap;
  457. }
  458. .noVNC_panel .noVNC_heading {
  459. background-color: rgb(110, 132, 163);
  460. border-radius: 5px;
  461. padding: 5px;
  462. /* Compensate for padding in image */
  463. padding-right: 8px;
  464. color: white;
  465. font-size: 20px;
  466. margin-bottom: 10px;
  467. white-space: nowrap;
  468. }
  469. .noVNC_panel .noVNC_heading img {
  470. vertical-align: bottom;
  471. }
  472. .noVNC_submit {
  473. float: right;
  474. }
  475. /* Expanders */
  476. .noVNC_expander {
  477. cursor: pointer;
  478. }
  479. .noVNC_expander::before {
  480. content: url("../images/expander.svg");
  481. display: inline-block;
  482. margin-right: 5px;
  483. transition: 0.2s ease-in-out;
  484. }
  485. .noVNC_expander.noVNC_open::before {
  486. transform: rotateZ(90deg);
  487. }
  488. .noVNC_expander ~ * {
  489. margin: 5px;
  490. margin-left: 10px;
  491. padding: 5px;
  492. background: rgba(0, 0, 0, 0.05);
  493. border-radius: 5px;
  494. }
  495. .noVNC_expander:not(.noVNC_open) ~ * {
  496. display: none;
  497. }
  498. /* Control bar content */
  499. #noVNC_control_bar .noVNC_logo {
  500. font-size: 13px;
  501. }
  502. :root:not(.noVNC_connected) #noVNC_view_drag_button {
  503. display: none;
  504. }
  505. /* noVNC Touch Device only buttons */
  506. :root:not(.noVNC_connected) #noVNC_mobile_buttons {
  507. display: none;
  508. }
  509. :root:not(.noVNC_touch) #noVNC_mobile_buttons {
  510. display: none;
  511. }
  512. /* Extra manual keys */
  513. :root:not(.noVNC_connected) #noVNC_extra_keys {
  514. display: none;
  515. }
  516. #noVNC_modifiers {
  517. background-color: rgb(92, 92, 92);
  518. border: none;
  519. padding: 0 10px;
  520. }
  521. /* XVP Shutdown/Reboot */
  522. :root:not(.noVNC_connected) #noVNC_xvp_button {
  523. display: none;
  524. }
  525. #noVNC_xvp {
  526. }
  527. #noVNC_xvp_buttons {
  528. display: none;
  529. }
  530. #noVNC_xvp input[type=button] {
  531. width: 100%;
  532. }
  533. /* Clipboard */
  534. :root:not(.noVNC_connected) #noVNC_clipboard_button {
  535. display: none;
  536. }
  537. #noVNC_clipboard {
  538. /* Full screen, minus padding and left and right margins */
  539. max-width: calc(100vw - 2*15px - 75px - 25px);
  540. }
  541. #noVNC_clipboard_text {
  542. width: 500px;
  543. max-width: 100%;
  544. }
  545. /* Settings */
  546. #noVNC_settings {
  547. }
  548. #noVNC_settings ul {
  549. list-style: none;
  550. margin: 0px;
  551. padding: 0px;
  552. }
  553. #noVNC_setting_port {
  554. width: 80px;
  555. }
  556. #noVNC_setting_path {
  557. width: 100px;
  558. }
  559. /* Connection Controls */
  560. :root:not(.noVNC_connected) #noVNC_disconnect_button {
  561. display: none;
  562. }
  563. /* ----------------------------------------
  564. * Status Dialog
  565. * ----------------------------------------
  566. */
  567. #noVNC_status {
  568. position: fixed;
  569. top: 0;
  570. left: 0;
  571. width: 100%;
  572. z-index: 100;
  573. transform: translateY(-100%);
  574. cursor: pointer;
  575. transition: 0.5s ease-in-out;
  576. visibility: hidden;
  577. opacity: 0;
  578. padding: 5px;
  579. display: flex;
  580. flex-direction: row;
  581. justify-content: center;
  582. align-content: center;
  583. line-height: 25px;
  584. word-wrap: break-word;
  585. color: #fff;
  586. border-bottom: 1px solid rgba(0, 0, 0, 0.9);
  587. }
  588. #noVNC_status.noVNC_open {
  589. transform: translateY(0);
  590. visibility: visible;
  591. opacity: 1;
  592. }
  593. #noVNC_status::before {
  594. content: "";
  595. display: inline-block;
  596. width: 25px;
  597. height: 25px;
  598. margin-right: 5px;
  599. }
  600. #noVNC_status.noVNC_status_normal {
  601. background: rgba(128,128,128,0.9);
  602. }
  603. #noVNC_status.noVNC_status_normal::before {
  604. content: url("../images/info.svg") " ";
  605. }
  606. #noVNC_status.noVNC_status_error {
  607. background: rgba(200,55,55,0.9);
  608. }
  609. #noVNC_status.noVNC_status_error::before {
  610. content: url("../images/error.svg") " ";
  611. }
  612. #noVNC_status.noVNC_status_warn {
  613. background: rgba(180,180,30,0.9);
  614. }
  615. #noVNC_status.noVNC_status_warn::before {
  616. content: url("../images/warning.svg") " ";
  617. }
  618. /* ----------------------------------------
  619. * Connect Dialog
  620. * ----------------------------------------
  621. */
  622. #noVNC_connect_dlg {
  623. transition: 0.5s ease-in-out;
  624. transform: scale(0, 0);
  625. visibility: hidden;
  626. opacity: 0;
  627. }
  628. #noVNC_connect_dlg.noVNC_open {
  629. transform: scale(1, 1);
  630. visibility: visible;
  631. opacity: 1;
  632. }
  633. #noVNC_connect_dlg .noVNC_logo {
  634. transition: 0.5s ease-in-out;
  635. padding: 10px;
  636. margin-bottom: 10px;
  637. font-size: 80px;
  638. text-align: center;
  639. border-radius: 5px;
  640. }
  641. @media (max-width: 440px) {
  642. #noVNC_connect_dlg {
  643. max-width: calc(100vw - 100px);
  644. }
  645. #noVNC_connect_dlg .noVNC_logo {
  646. font-size: calc(25vw - 30px);
  647. }
  648. }
  649. #noVNC_connect_button {
  650. cursor: pointer;
  651. padding: 10px;
  652. color: white;
  653. background-color: rgb(110, 132, 163);
  654. border-radius: 12px;
  655. text-align: center;
  656. font-size: 20px;
  657. box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
  658. }
  659. #noVNC_connect_button div {
  660. margin: 2px;
  661. padding: 5px 30px;
  662. border: 1px solid rgb(83, 99, 122);
  663. border-bottom-width: 2px;
  664. border-radius: 5px;
  665. background: linear-gradient(to top, rgb(110, 132, 163), rgb(99, 119, 147));
  666. /* This avoids it jumping around when :active */
  667. vertical-align: middle;
  668. }
  669. #noVNC_connect_button div:active {
  670. border-bottom-width: 1px;
  671. margin-top: 3px;
  672. }
  673. :root:not(.noVNC_touch) #noVNC_connect_button div:hover {
  674. background: linear-gradient(to top, rgb(110, 132, 163), rgb(105, 125, 155));
  675. }
  676. #noVNC_connect_button img {
  677. vertical-align: bottom;
  678. height: 1.3em;
  679. }
  680. /* ----------------------------------------
  681. * Password Dialog
  682. * ----------------------------------------
  683. */
  684. #noVNC_password_dlg {
  685. position: relative;
  686. transform: translateY(-50px);
  687. }
  688. #noVNC_password_dlg.noVNC_open {
  689. transform: translateY(0);
  690. }
  691. #noVNC_password_dlg ul {
  692. list-style: none;
  693. margin: 0px;
  694. padding: 0px;
  695. }
  696. /* ----------------------------------------
  697. * Main Area
  698. * ----------------------------------------
  699. */
  700. /* Transition screen */
  701. #noVNC_transition {
  702. display: none;
  703. position: fixed;
  704. top: 0;
  705. left: 0;
  706. bottom: 0;
  707. right: 0;
  708. color: white;
  709. background: rgba(0, 0, 0, 0.5);
  710. z-index: 50;
  711. /*display: flex;*/
  712. align-items: center;
  713. justify-content: center;
  714. flex-direction: column;
  715. }
  716. :root.noVNC_loading #noVNC_transition,
  717. :root.noVNC_connecting #noVNC_transition,
  718. :root.noVNC_disconnecting #noVNC_transition,
  719. :root.noVNC_reconnecting #noVNC_transition {
  720. display: flex;
  721. }
  722. :root:not(.noVNC_reconnecting) #noVNC_cancel_reconnect_button {
  723. display: none;
  724. }
  725. #noVNC_transition_text {
  726. font-size: 1.5em;
  727. }
  728. /* Main container */
  729. #noVNC_container {
  730. width: 100%;
  731. height: 100%;
  732. background-color: #313131;
  733. border-bottom-right-radius: 800px 600px;
  734. /*border-top-left-radius: 800px 600px;*/
  735. }
  736. #noVNC_keyboardinput {
  737. width: 1px;
  738. height: 1px;
  739. background-color: #fff;
  740. color: #fff;
  741. border: 0;
  742. position: absolute;
  743. left: -40px;
  744. z-index: -1;
  745. ime-mode: disabled;
  746. }
  747. /* HTML5 Canvas */
  748. #noVNC_screen {
  749. display: flex;
  750. width: 100%;
  751. height: 100%;
  752. overflow: auto;
  753. background-color: rgb(40, 40, 40);
  754. }
  755. :root:not(.noVNC_connected) #noVNC_screen {
  756. display: none;
  757. }
  758. /* Do not set width/height for VNC_canvas or incorrect
  759. * scaling will occur. Canvas size depends on remote VNC
  760. * settings and noVNC settings. */
  761. #noVNC_canvas {
  762. margin: auto;
  763. /* IE miscalculates width without this :( */
  764. flex-shrink: 0;
  765. }
  766. /*Default noVNC logo.*/
  767. /* From: http://fonts.googleapis.com/css?family=Orbitron:700 */
  768. @font-face {
  769. font-family: 'Orbitron';
  770. font-style: normal;
  771. font-weight: 700;
  772. src: local('?'), url('Orbitron700.woff') format('woff'),
  773. url('Orbitron700.ttf') format('truetype');
  774. }
  775. .noVNC_logo {
  776. color:yellow;
  777. font-family: 'Orbitron', 'OrbitronTTF', sans-serif;
  778. line-height:90%;
  779. text-shadow: 0.1em 0.1em 0 black;
  780. }
  781. .noVNC_logo span{
  782. color:green;
  783. }
  784. #noVNC_bell {
  785. display: none;
  786. }
  787. /* ----------------------------------------
  788. * Media sizing
  789. * ----------------------------------------
  790. */
  791. @media screen and (max-width: 640px){
  792. #noVNC_logo {
  793. font-size: 150px;
  794. }
  795. }
  796. @media screen and (min-width: 321px) and (max-width: 480px) {
  797. #noVNC_logo {
  798. font-size: 110px;
  799. }
  800. }
  801. @media screen and (max-width: 320px) {
  802. #noVNC_logo {
  803. font-size: 90px;
  804. }
  805. }