From 020f5487f9e27ff935a4cb03d2714ed55da53ac0 Mon Sep 17 00:00:00 2001 From: Henrik Date: Wed, 18 Jul 2018 17:19:39 +0200 Subject: Added information about querybuilders features and help-section. Show/Hide section with button --- .../src/main/resources/gui/_includes/css/vespa.css | 25 ++++++++++++- .../src/main/resources/gui/_includes/index.html | 39 +++++++++++++++++++++ .../src/main/resources/gui/img/features-help.png | Bin 0 -> 2554 bytes 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 container-search-gui/src/main/resources/gui/img/features-help.png (limited to 'container-search-gui') diff --git a/container-search-gui/src/main/resources/gui/_includes/css/vespa.css b/container-search-gui/src/main/resources/gui/_includes/css/vespa.css index 24cfd32cbb2..c63690581c6 100644 --- a/container-search-gui/src/main/resources/gui/_includes/css/vespa.css +++ b/container-search-gui/src/main/resources/gui/_includes/css/vespa.css @@ -109,6 +109,13 @@ section h3.section-subheading { margin-top: 0; } +header .help-title { + color: #FFC43C; + text-transform: uppercase; + font-weight: bold; +} + + .text-muted { color: #303030; } @@ -242,7 +249,7 @@ header .methodselector{ -webkit-transition:.3s; transition:.3s } - +header .intro-help:hover {background-color: #4EA2D6 !important;} header .methodselector:hover {background-color: #79B4D8;} header .button:hover {background-color: #79B4D8;} header .removeRow:hover {background-color: #79B4D8;} @@ -480,12 +487,28 @@ header .intro-copy { padding-left: 50px; transform: translateX(-50%); } + +header .intro-help { + display: inline-block; + margin-top: 15px; + width: 134px; + height: 45px; + + border-top-left-radius: 29%; + border-top-right-radius: 26%; + border-bottom-right-radius: 27%; + border-bottom-left-radius: 29%; + +} + header .intro-refresh { display: inline-block; margin-top: 15px; + margin-left: 25px; transform: translateX(-50%); } + @media (min-height: 1150px) { header .intro-down-arrow { /* Hard code top: 1150 (height of top section) - 20 (bottom) - 36 (image height) = 1094 */ diff --git a/container-search-gui/src/main/resources/gui/_includes/index.html b/container-search-gui/src/main/resources/gui/_includes/index.html index ca3302dd404..d08a237bddf 100644 --- a/container-search-gui/src/main/resources/gui/_includes/index.html +++ b/container-search-gui/src/main/resources/gui/_includes/index.html @@ -116,6 +116,30 @@
+
+
+
+ +
+ @@ -243,6 +267,21 @@ var yqlID = "v1"; + + function toggleHelp(){ + var div = document.getElementById("help"); + var buttonDiv = document.getElementById("helpbutton"); + if (div.style.display === "none") { + console.log("VISER") + div.style.display = "block"; + buttonDiv.style.backgroundColor = '#4EA2D6'; + } else { + console.log("SKJULER"); + div.style.display = "none"; + buttonDiv.style.backgroundColor = 'transparent'; + } + } + function updateFields(){ var temp = number; while (temp > 0){ diff --git a/container-search-gui/src/main/resources/gui/img/features-help.png b/container-search-gui/src/main/resources/gui/img/features-help.png new file mode 100644 index 00000000000..65702f8b91f Binary files /dev/null and b/container-search-gui/src/main/resources/gui/img/features-help.png differ -- cgit v1.2.3