Module: check_mk
Branch: master
Commit: 15a2f587395910a51f1f9c9a5500387463e7c930
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=15a2f587395910…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Sep 6 09:33:24 2011 +0200
Fixed sidebar head styling in chrome
---
web/htdocs/check_mk.css | 15 +++------------
web/htdocs/sidebar.py | 10 +++++-----
2 files changed, 8 insertions(+), 17 deletions(-)
diff --git a/web/htdocs/check_mk.css b/web/htdocs/check_mk.css
index 16aa16e..5b43013 100644
--- a/web/htdocs/check_mk.css
+++ b/web/htdocs/check_mk.css
@@ -191,10 +191,11 @@ body.side {
background-image: url("images/sidebar_top.png");
}
-#side_header a.logo {
+#side_header a {
display: block;
+ width: 100%;
height: 55px;
- width: 270px;
+ text-decoration: none;
}
#side_version {
@@ -207,16 +208,6 @@ body.side {
width: 200px;
}
-#side_version a {
- text-decoration: none;
- color: #e8e8e8;
-}
-
-#side_version a:hover {
- text-decoration: underline;
- color: #fff;
-}
-
/* Scrolling part with snapins */
#side_content {
z-index: 5;
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index 3a8ebf8..3a37d67 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -109,11 +109,11 @@ def save_user_config(user_config):
config.save_user_file("sidebar", user_config)
def sidebar_head():
- html.write('<a title="%s" target="main"
href="%s">'
- '<div id="side_header">'
- '</div></a>\n' % (_("Go to main overview"),
config.start_url))
- html.write('<a target="main" href="%s">' %
config.start_url)
- html.write('<div
id="side_version">%s</div></a>\n' %
defaults.check_mk_version)
+ html.write('<div id="side_header">'
+ '<a title="%s" target="main"
href="%s">'
+ '<div id="side_version">%s</div>'
+ '</a>'
+ '</div>\n' % (_("Go to main overview"),
config.start_url, defaults.check_mk_version))
def sidebar_foot():
html.write('<div id="side_footer">')