Module: check_mk
Branch: master
Commit: 0e430f6f9f7d9ff381164d64e71f1a17708bad20
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0e430f6f9f7d9f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu May 24 17:48:00 2012 +0200
FIX: Fixed styling issues of sidebar in IE7
---
ChangeLog | 1 +
web/htdocs/sidebar.css | 23 ++++++++++++-----------
web/plugins/sidebar/shipped.py | 8 ++------
3 files changed, 15 insertions(+), 17 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 34acf6c..741fb5a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,6 +27,7 @@
* FIX: Fixed sorting views by perfdata values which contain floats
* FIX: fix sometimes-broken sizing of sidebar and dashboard on Chrome
* FIX: fix dashboard layout on iPad
+ * FIX: Fixed styling issues of sidebar in IE7
Mobile:
* FIX: Fixed logtime filter settings in all mobile views
diff --git a/web/htdocs/sidebar.css b/web/htdocs/sidebar.css
index 49bbe54..a5a2ee4 100644
--- a/web/htdocs/sidebar.css
+++ b/web/htdocs/sidebar.css
@@ -136,7 +136,8 @@ div.snapin div.head {
width: 260px;
text-align: center;
color: #fff;
- padding-top: 8px;
+ height: 25px;
+ line-height: 29px;
}
div.snapin div.head b {
@@ -146,39 +147,39 @@ div.snapin div.head b {
div.snapin div.head.open {
background-image: url("images/snapin_header.png");
- height: 17px;
}
div.snapin div.head.closed {
background-image: url("images/snapin_closed.png");
- height: 23px;
}
/* close button on header */
div.snapin div.closesnapin {
float: right;
margin-right: 10px;
- margin-top: 2px;
+ margin-top: 11px;
+ line-height: 0px;
+ height: 8px;
+ width:8px;
+ padding:0;
}
div.snapin div.closesnapin img {
width: 8px;
height: 8px;
- position: relative;
- top: 1px;
}
+
div.snapin div.minisnapin {
float: left;
- margin-top: 2px;
margin-left: 13px;
- width: 0px;
- height: 0px;
+ margin-top: 11px;
+ line-height: 0px;
+ height: 8px;
}
+
div.snapin div.minisnapin img {
width: 8px;
height: 8px;
- position: relative;
- top: 1px;
}
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index f0f6f46..591ec93 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -508,8 +508,7 @@ def render_tactical_overview():
(_("Hosts"), hstdata, 'hostproblems', 'host'),
(_("Services"), svcdata, 'svcproblems',
'service'),
]:
-
html.write("<tr><th><span>%s</span></th><th><span>%s</span></th><th><span>%s</span></th></tr>\n"
% \
- (title, _('Problems'),
_('Unhandled')))
+
html.write("<tr><th>%s</th><th>%s</th><th>%s</th></tr>\n"
% (title, _('Problems'), _('Unhandled')))
html.write("<tr>")
html.write('<td class=total><a target="main"
href="view.py?view_name=all%ss">%d</a></td>' % (what,
data[0]))
@@ -543,6 +542,7 @@ table.tacticaloverview {
}
table.tacticaloverview th {
font-size: 8pt;
+ line-height: 7pt;
text-align: left;
color: #123a4a;
font-weight: normal;
@@ -550,10 +550,6 @@ table.tacticaloverview th {
padding-top: 2px;
vertical-align: bottom;
}
-table.tacticaloverview th span {
- position: relative;
- top: 2px;
-}
table.tacticaloverview td {
width: 33.3%%;
text-align: right;