/*
* noVNC base CSS
- * Copyright (C) 2012 Joel Martin
- * Copyright (C) 2016 Samuel Mannehed for Cendio AB
- * Copyright (C) 2016 Pierre Ossman for Cendio AB
+ * Copyright (C) 2019 The noVNC Authors
* noVNC is licensed under the MPL 2.0 (see LICENSE.txt)
* This file is licensed under the 2-Clause BSD license (see LICENSE.txt).
*/
}
#noVNC_fallback_error .noVNC_stack {
+ max-height: 50vh;
padding: 10px;
margin: 10px;
font-size: 0.8em;
text-align: left;
font-family: monospace;
- white-space: pre-wrap;
+ white-space: pre;
border: 1px solid rgba(0, 0, 0, 0.5);
background: rgba(0, 0, 0, 0.2);
+ overflow: auto;
}
/* ----------------------------------------
position: fixed;
left: calc(100vw - 50px);
right: auto;
+ top: 50%;
+ transform: translateY(-50%) scale(0);
width: 100px;
height: 50%;
max-height: 600px;
box-shadow: 0 0 10px black, inset 0 0 10px 10px rgba(110, 132, 163, 0.8);
border-radius: 10px;
transition-delay: 0s;
- transform: scale(0);
}
#noVNC_control_bar_anchor.noVNC_right #noVNC_control_bar_hint{
left: auto;
visibility: visible;
opacity: 1;
transition-delay: 0.2s;
- transform: scale(1);
+ transform: translateY(-50%) scale(1);
}
/* General button style */
padding-top: 5px;
padding-bottom: 3px;
}
-:root:not(.noVNC_touch) .noVNC_button.noVNC_selected:hover {
+/* Android browsers don't properly update hover state if touch events
+ * are intercepted, but focus should be safe to display */
+:root:not(.noVNC_touch) .noVNC_button.noVNC_selected:hover,
+.noVNC_button.noVNC_selected:focus {
border-color: rgba(0, 0, 0, 0.4);
background: rgba(0, 0, 0, 0.2);
}
-:root:not(.noVNC_touch) .noVNC_button:hover {
+:root:not(.noVNC_touch) .noVNC_button:hover,
+.noVNC_button:focus {
background: rgba(255, 255, 255, 0.2);
}
.noVNC_button.noVNC_hidden {
padding: 0 10px;
}
-/* XVP Shutdown/Reboot */
-:root:not(.noVNC_connected) #noVNC_xvp_button {
+/* Shutdown/Reboot */
+:root:not(.noVNC_connected) #noVNC_power_button {
display: none;
}
-#noVNC_xvp {
+#noVNC_power {
}
-#noVNC_xvp_buttons {
+#noVNC_power_buttons {
display: none;
}
-#noVNC_xvp input[type=button] {
+#noVNC_power input[type=button] {
width: 100%;
}
width: 100px;
}
+/* Version */
+
+.noVNC_version_wrapper {
+ font-size: small;
+}
+
+.noVNC_version {
+ margin-left: 1rem;
+}
+
/* Connection Controls */
:root:not(.noVNC_connected) #noVNC_disconnect_button {
display: none;
* ----------------------------------------
*/
-#noVNC_password_dlg {
+#noVNC_credentials_dlg {
position: relative;
transform: translateY(-50px);
}
-#noVNC_password_dlg.noVNC_open {
+#noVNC_credentials_dlg.noVNC_open {
transform: translateY(0);
}
-#noVNC_password_dlg ul {
+#noVNC_credentials_dlg ul {
list-style: none;
margin: 0px;
padding: 0px;
}
+.noVNC_hidden {
+ display: none;
+}
+
/* ----------------------------------------
* Main Area
ime-mode: disabled;
}
-/* HTML5 Canvas */
-#noVNC_screen {
- display: flex;
- width: 100%;
- height: 100%;
- overflow: auto;
- background-color: rgb(40, 40, 40);
-}
-:root:not(.noVNC_connected) #noVNC_screen {
- display: none;
-}
-
-/* Do not set width/height for VNC_canvas or incorrect
- * scaling will occur. Canvas size depends on remote VNC
- * settings and noVNC settings. */
-#noVNC_canvas {
- margin: auto;
- /* IE miscalculates width without this :( */
- flex-shrink: 0;
-}
-
/*Default noVNC logo.*/
/* From: http://fonts.googleapis.com/css?family=Orbitron:700 */
@font-face {