]> git.proxmox.com Git - novnc-pve.git/blob - debian/patches/0004-add-pve-style.patch
1a44edf7d41d1160b3c52c09f66256adf4254aec
[novnc-pve.git] / debian / patches / 0004-add-pve-style.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Dominik Csapak <d.csapak@proxmox.com>
3 Date: Tue, 13 Dec 2016 16:03:41 +0100
4 Subject: [PATCH] add pve style
5
6 this adds the custom pve style (based on black.css)
7
8 we hide the connect button, and add custom colors,
9 and fix the z-index of the connect overlay
10
11 Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
12 ---
13 app/styles/pve.css | 42 ++++++++++++++++++++++++++++++++++++++++++
14 vnc.html | 3 ++-
15 2 files changed, 44 insertions(+), 1 deletion(-)
16 create mode 100644 app/styles/pve.css
17
18 diff --git a/app/styles/pve.css b/app/styles/pve.css
19 new file mode 100644
20 index 0000000..eaeb5cb
21 --- /dev/null
22 +++ b/app/styles/pve.css
23 @@ -0,0 +1,42 @@
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 +}
61 +
62 +:root:not(.noVNC_touch) .noVNC_button.noVNC_selected:hover {
63 + border-color: rgba(0, 0, 0, 0.4);
64 + background: #5BA8DF;
65 +}
66 diff --git a/vnc.html b/vnc.html
67 index 5ec354a..a49e3a2 100644
68 --- a/vnc.html
69 +++ b/vnc.html
70 @@ -52,7 +52,8 @@
71 <link rel="apple-touch-icon" sizes="152x152" type="image/png" href="app/images/icons/novnc-152x152.png">
72
73 <!-- Stylesheets -->
74 - <link rel="stylesheet" href="app/styles/base.css">
75 + <link rel="stylesheet" href="app/styles/base.css" />
76 + <link rel="stylesheet" href="/novnc/app/styles/pve.css" />
77
78 <!-- this is included as a normal file in order to catch script-loading errors as well -->
79 <script src="app/error-handler.js"></script>