base.css 19 KB

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