]> git.proxmox.com Git - novnc-pve.git/blame - debian/patches/0004-add-pve-style.patch
upgrade novnc and patches to 1.3.0
[novnc-pve.git] / debian / patches / 0004-add-pve-style.patch
CommitLineData
2b8dde16 1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
fe91e9e1
DC
2From: Dominik Csapak <d.csapak@proxmox.com>
3Date: Tue, 13 Dec 2016 16:03:41 +0100
bf74ff33 4Subject: [PATCH] add pve style
fe91e9e1
DC
5
6this adds the custom pve style (based on black.css)
7
8we hide the connect button, and add custom colors,
9and fix the z-index of the connect overlay
10
11Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
12---
a375b7e5 13 app/styles/pve.css | 42 ++++++++++++++++++++++++++++++++++++++++++
2b8dde16
DC
14 vnc.html | 3 ++-
15 2 files changed, 44 insertions(+), 1 deletion(-)
fe91e9e1
DC
16 create mode 100644 app/styles/pve.css
17
18diff --git a/app/styles/pve.css b/app/styles/pve.css
19new file mode 100644
a375b7e5 20index 0000000..eaeb5cb
fe91e9e1
DC
21--- /dev/null
22+++ b/app/styles/pve.css
a375b7e5 23@@ -0,0 +1,42 @@
fe91e9e1
DC
24+/*
25+ * noVNC black CSS
26+ * Copyright (C) 2012 Joel Martin
27+ * Copyright (C) 2013 Samuel Mannehed for Cendio AB
28+ * noVNC is licensed under the MPL 2.0 (see LICENSE.txt)
29+ * This file is licensed under the 2-Clause BSD license (see LICENSE.txt).
30+ */
31+
32+.noVNC_panel {
33+ border: 0px;
34+ background:#4c4c4c;;
35+ color:#fff;
36+}
37+
38+#noVNC_control_bar, #noVNC_control_bar_handle, .noVNC_panel .noVNC_heading {
39+ background: #4c4c4c;
40+}
41+
42+.noVNC_button.noVNC_selected {
43+ background: #3892d4;
44+}
45+
46+#pve_commands > input[type=button] {
47+ width: 100%;
48+}
49+
50+#noVNC_canvas:focus {
51+ outline: none;
52+}
53+
54+#noVNC_transition {
55+ z-index: 0;
56+}
57+
58+#noVNC_connect_button {
59+ display: none;
60+}
a375b7e5
DC
61+
62+:root:not(.noVNC_touch) .noVNC_button.noVNC_selected:hover {
63+ border-color: rgba(0, 0, 0, 0.4);
64+ background: #5BA8DF;
65+}
fe91e9e1 66diff --git a/vnc.html b/vnc.html
e5e59874 67index 7ce9ba7..61d0fdd 100644
fe91e9e1
DC
68--- a/vnc.html
69+++ b/vnc.html
e5e59874 70@@ -48,7 +48,8 @@
2b8dde16 71 <link rel="apple-touch-icon" sizes="152x152" type="image/png" href="app/images/icons/novnc-152x152.png">
fe91e9e1
DC
72
73 <!-- Stylesheets -->
2b8dde16
DC
74- <link rel="stylesheet" href="app/styles/base.css">
75+ <link rel="stylesheet" href="app/styles/base.css" />
fe91e9e1
DC
76+ <link rel="stylesheet" href="/novnc/app/styles/pve.css" />
77
e5e59874
DC
78 <!-- Images that will later appear via CSS -->
79 <link rel="preload" as="image" href="app/images/info.svg">