]> git.proxmox.com Git - novnc-pve.git/blob - debian/patches/0003-add-pve-style.patch
394f8dd3dda5a496a3e0eb74d2d0a0914e3cc5a4
[novnc-pve.git] / debian / patches / 0003-add-pve-style.patch
1 From 1cdfeafd561bfe4d9acb7ef8a838d82c64f9c1e5 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 3/9] 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 | 37 +++++++++++++++++++++++++++++++++++++
14 vnc.html | 1 +
15 2 files changed, 38 insertions(+)
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..35002fe
21 --- /dev/null
22 +++ b/app/styles/pve.css
23 @@ -0,0 +1,37 @@
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 diff --git a/vnc.html b/vnc.html
62 index 6cb4be4..98a9952 100644
63 --- a/vnc.html
64 +++ b/vnc.html
65 @@ -53,6 +53,7 @@
66
67 <!-- Stylesheets -->
68 <link rel="stylesheet" href="app/styles/base.css" />
69 + <link rel="stylesheet" href="/novnc/app/styles/pve.css" />
70
71 <!--
72 <script type='text/javascript'
73 --
74 2.11.0
75