From 0bc4e4eb8a34092dac8745d2fcc3c551a3e2641e Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Mon, 30 Oct 2017 15:29:19 +0100 Subject: [PATCH 1/9] Remove prefixed versions of linear-gradient Other parts of noVNC have significantly higher requirements than this. All supported browsers will be able to handle the real linear-gradient. --- app/styles/lite.css | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/app/styles/lite.css b/app/styles/lite.css index 50f9a822..a65d1ab1 100644 --- a/app/styles/lite.css +++ b/app/styles/lite.css @@ -44,33 +44,15 @@ html { } .noVNC_status_normal { - background: #b2bdcd; /* Old browsers */ - background: -moz-linear-gradient(top, #b2bdcd 0%, #899cb3 49%, #7e93af 51%, #6e84a3 100%); /* FF3.6+ */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b2bdcd), color-stop(49%,#899cb3), color-stop(51%,#7e93af), color-stop(100%,#6e84a3)); /* Chrome,Safari4+ */ - background: -webkit-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Chrome10+,Safari5.1+ */ - background: -o-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Opera11.10+ */ - background: -ms-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* IE10+ */ - background: linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* W3C */ + background: linear-gradient(#b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); } .noVNC_status_error { - background: #f04040; /* Old browsers */ - background: -moz-linear-gradient(top, #f04040 0%, #899cb3 49%, #7e93af 51%, #6e84a3 100%); /* FF3.6+ */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f04040), color-stop(49%,#899cb3), color-stop(51%,#7e93af), color-stop(100%,#6e84a3)); /* Chrome,Safari4+ */ - background: -webkit-linear-gradient(top, #f04040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Chrome10+,Safari5.1+ */ - background: -o-linear-gradient(top, #f04040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Opera11.10+ */ - background: -ms-linear-gradient(top, #f04040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* IE10+ */ - background: linear-gradient(top, #f04040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* W3C */ + background: linear-gradient(#f04040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); } .noVNC_status_warn { - background: #f0f040; /* Old browsers */ - background: -moz-linear-gradient(top, #f0f040 0%, #899cb3 49%, #7e93af 51%, #6e84a3 100%); /* FF3.6+ */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f0f040), color-stop(49%,#899cb3), color-stop(51%,#7e93af), color-stop(100%,#6e84a3)); /* Chrome,Safari4+ */ - background: -webkit-linear-gradient(top, #f0f040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Chrome10+,Safari5.1+ */ - background: -o-linear-gradient(top, #f0f040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Opera11.10+ */ - background: -ms-linear-gradient(top, #f0f040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* IE10+ */ - background: linear-gradient(top, #f0f040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* W3C */ + background: linear-gradient(#f0f040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); } #noVNC_buttons { From 082bc6b47804ac5b76dfade4a99b59e2b5aeee3d Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Mon, 30 Oct 2017 15:31:56 +0100 Subject: [PATCH 2/9] Use more subtle colors for warn and error in lite The clear red and yellow colors used before does not match well with the rest of noVNC's color scheme. --- app/styles/lite.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/styles/lite.css b/app/styles/lite.css index a65d1ab1..3150c9af 100644 --- a/app/styles/lite.css +++ b/app/styles/lite.css @@ -48,11 +48,11 @@ html { } .noVNC_status_error { - background: linear-gradient(#f04040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); + background: linear-gradient(#c83737 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); } .noVNC_status_warn { - background: linear-gradient(#f0f040 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); + background: linear-gradient(#b4b41e 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); } #noVNC_buttons { From 178bf8ec97b4da5cfdfb20ef4edaff52133105b8 Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Tue, 31 Oct 2017 16:06:57 +0100 Subject: [PATCH 3/9] Get rid of unnecessary noVNC_container in lite If we want to keep vnc_lite simple, we shouldn't have unnecessary elements. All aspects of the container could be moved up a step in the hierarchy. --- app/styles/lite.css | 20 ++++++----------- vnc_lite.html | 52 ++++++++++++++++++++++----------------------- 2 files changed, 31 insertions(+), 41 deletions(-) diff --git a/app/styles/lite.css b/app/styles/lite.css index 3150c9af..b623a009 100644 --- a/app/styles/lite.css +++ b/app/styles/lite.css @@ -1,7 +1,7 @@ /* * noVNC auto CSS * Copyright (C) 2012 Joel Martin - * Copyright (C) 2016 Samuel Mannehed for Cendio AB + * Copyright (C) 2017 Samuel Mannehed for Cendio AB * noVNC is licensed under the MPL 2.0 (see LICENSE.txt) * This file is licensed under the 2-Clause BSD license (see LICENSE.txt). */ @@ -10,26 +10,18 @@ body { margin:0; padding:0; font-family: Helvetica; - /*Background image with light grey curve.*/ - background-color:#494949; - background-repeat:no-repeat; - background-position:right bottom; + background-color:#313131; + border-bottom-right-radius: 800px 600px; height:100%; + width:100%; + display: table; } html { + background-color:#494949; height:100%; } -#noVNC_container { - display: table; - width:100%; - height:100%; - background-color:#313131; - border-bottom-right-radius: 800px 600px; - /*border-top-left-radius: 800px 600px;*/ -} - #noVNC_status { font-size: 12px; padding-top: 4px; diff --git a/vnc_lite.html b/vnc_lite.html index f54cb13a..497f3f16 100644 --- a/vnc_lite.html +++ b/vnc_lite.html @@ -5,7 +5,7 @@