Module: check_mk
Branch: master
Commit: cfcb31fe64a3128fb0e21496966fec4a32704b1e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cfcb31fe64a312…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Apr 11 13:26:51 2017 +0200
Refactored rendering of WATO main menu buttons (CSS styled now)
Change-Id: I40bfefdbd5f7abcdcfa69f9c84dbd93c7c83fc47
---
web/htdocs/check_mk.css | 9 ++++++---
web/htdocs/images/wato_mainmenu_button_clicked.png | Bin 636 -> 0 bytes
web/htdocs/images/wato_mainmenu_button_hi.png | Bin 873 -> 0 bytes
web/htdocs/images/wato_mainmenu_button_lo.png | Bin 875 -> 0 bytes
web/htdocs/wato.css | 14 ++------------
5 files changed, 8 insertions(+), 15 deletions(-)
diff --git a/web/htdocs/check_mk.css b/web/htdocs/check_mk.css
index 11a89dc..95fdc79 100644
--- a/web/htdocs/check_mk.css
+++ b/web/htdocs/check_mk.css
@@ -153,7 +153,8 @@ select.icon option {
height: 18px;
}
-input.button {
+input.button,
+.wato div.mainmenu a {
border-color: #86A9B8 #22404D #22414D #86A9B8;
border-radius: 5px 5px 5px 5px;
border-style: solid;
@@ -166,11 +167,13 @@ input.button {
cursor: pointer;
}
-input.button:hover {
+input.button:hover,
+.wato div.mainmenu a:hover {
background-color: #6da1b8;
text-decoration: none;
}
-input.button:active {
+input.button:active,
+.wato div.mainmenu a:active {
border-color: #22414d #86a9b8 #86a9b8 #22404d;
background-color: #3b6678;
box-shadow: inset 0 0 0.5px #444444;
diff --git a/web/htdocs/images/wato_mainmenu_button_clicked.png
b/web/htdocs/images/wato_mainmenu_button_clicked.png
deleted file mode 100644
index 0694a44..0000000
Binary files a/web/htdocs/images/wato_mainmenu_button_clicked.png and /dev/null differ
diff --git a/web/htdocs/images/wato_mainmenu_button_hi.png
b/web/htdocs/images/wato_mainmenu_button_hi.png
deleted file mode 100644
index 17a31fd..0000000
Binary files a/web/htdocs/images/wato_mainmenu_button_hi.png and /dev/null differ
diff --git a/web/htdocs/images/wato_mainmenu_button_lo.png
b/web/htdocs/images/wato_mainmenu_button_lo.png
deleted file mode 100644
index 7dbfda7..0000000
Binary files a/web/htdocs/images/wato_mainmenu_button_lo.png and /dev/null differ
diff --git a/web/htdocs/wato.css b/web/htdocs/wato.css
index b0808fd..0645d2a 100644
--- a/web/htdocs/wato.css
+++ b/web/htdocs/wato.css
@@ -691,19 +691,10 @@ form.search {
width: 317px;
height: 76px;
display: block;
- background-image: url("images/wato_mainmenu_button_lo.png");
- background-repeat: no-repeat;
float: left;
position: relative;
- margin: 0px -1px -1px 0px;
- left: -2px;
- text-decoration: none;
-}
-.wato div.mainmenu a:hover {
- background-image: url("images/wato_mainmenu_button_hi.png");
-}
-.wato div.mainmenu a:active {
- background-image: url("images/wato_mainmenu_button_clicked.png");
+ margin: 0px 2px 2px 0px;
+ padding: 0;
}
.wato div.mainmenu div {
@@ -731,7 +722,6 @@ form.search {
overflow: hidden;
}
-
/* Special styles for roles editor (permissions) */
.wato table.form table.permissions {
border-collapse: collapse;