Module: check_mk
Branch: master
Commit: 3bd4faec596f3c27789a1d078183982fd862c11c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3bd4faec596f3c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Oct 30 13:27:42 2015 +0100
Added new Check_MK logo
---
web/htdocs/images/sidebar_top.png | Bin 5219 -> 17744 bytes
web/htdocs/sidebar.css | 33 +++++++++++++++++++++------------
web/htdocs/sidebar.py | 5 ++++-
3 files changed, 25 insertions(+), 13 deletions(-)
diff --git a/web/htdocs/images/sidebar_top.png b/web/htdocs/images/sidebar_top.png
index 35cc74e..e367ab7 100644
Binary files a/web/htdocs/images/sidebar_top.png and b/web/htdocs/images/sidebar_top.png
differ
diff --git a/web/htdocs/sidebar.css b/web/htdocs/sidebar.css
index b395f90..7e9da2d 100644
--- a/web/htdocs/sidebar.css
+++ b/web/htdocs/sidebar.css
@@ -53,14 +53,22 @@ body.side.screenshotmode {
/* Top logo part */
#side_header {
- position: absolute;
+ position: relative;
top: 0px;
left: 0px;
width: 100%;
height: 55px;
z-index: 10;
background-repeat: no-repeat;
- background-image: url("images/sidebar_top.png");
+}
+
+#side_bg {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 280px;
+ height: 55px;
+ z-index: 10;
}
#side_header > a {
@@ -71,20 +79,13 @@ body.side.screenshotmode {
margin-left: 10px; /* space for sidebar folding */
}
-#side_version a {
- text-decoration: none;
-}
-
-#side_version a:hover {
- text-decoration: underline;
-}
-
#side_fold {
position: absolute;
left: 0px;
top: 0px;
width: 10px;
height: 55px;
+ z-index: 15;
}
#side_fold:hover {
background-repeat: no-repeat;
@@ -96,12 +97,20 @@ body.side.screenshotmode {
#side_version {
position: absolute;
top: 24px;
- left: 64px;
+ right: 20px;
z-index: 54;
color: #fff;
text-align: right;
- width: 200px;
font-size: 8pt;
+ max-width: 150px;
+}
+
+#side_version a {
+ text-decoration: none;
+}
+
+#side_version a:hover {
+ text-decoration: underline;
}
/* Scrolling part with snapins */
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index cc72fc0..f5c94c0 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -159,9 +159,12 @@ def sidebar_head():
html.write('<div id="side_header">')
html.write('<div id="side_fold"></div>')
html.write('<a title="%s" target="main"
href="%s">'
+ '<img id="side_bg"
src="images/sidebar_top.png">'
'<div id="side_version"><a
href="version.py" target="main">%s</a></div>'
'</a>'
- '</div>\n' % (_("Go to main overview"),
html.attrencode(config.user.get("start_url") or config.start_url),
defaults.check_mk_version))
+ '</div>\n' % (_("Go to main overview"),
+ html.attrencode(config.user.get("start_url") or
config.start_url),
+ defaults.check_mk_version))
def render_messages():
for msg in notify.get_gui_messages():