Module: check_mk
Branch: master
Commit: f9c49c564f8b40d451e47f6545a74c2687193137
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f9c49c564f8b40…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri May 25 15:42:16 2012 +0200
minor layout fixes
---
web/htdocs/pages.css | 16 +++++++++++-----
web/plugins/views/layouts.py | 4 ++--
2 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/web/htdocs/pages.css b/web/htdocs/pages.css
index 62c8683..5c6ecae 100644
--- a/web/htdocs/pages.css
+++ b/web/htdocs/pages.css
@@ -247,7 +247,6 @@ table.data .checkbox_hover {
table.data th {
font-weight: normal;
- border-left: 1px solid #ccc;
border-right: 1px solid #ccc;
background-color: #999;
padding: 2px 2px;
@@ -255,6 +254,9 @@ table.data th {
color: #fff;
vertical-align: middle;
}
+table.data th:last-child {
+ border-right-style: none;
+}
/* Two-lined header, for example in WATO: ChangeLog->Site Status */
table.data tr.dualheader th {
@@ -289,12 +291,14 @@ table.data th.tablegap {
}
table.data tr.data td {
- border-left: 1px solid #ccc;
border-right: 1px solid #ccc;
padding: 2px 4px;
height: 22px;
vertical-align: middle;
}
+table.data tr.data td:last-child {
+ border-right-style: none;
+}
table.data a {
text-decoration: none;
@@ -344,7 +348,7 @@ table.data td.singleicon {
table.groupheader {
margin: 0px;
border: 0px;
- padding: 0px;
+ padding: 6px 0px 3px 0px;
}
tr.groupheader td {
@@ -365,9 +369,11 @@ tr.groupheader a:hover {
/* state in group header must have fixed width */
.groupheader td.state {
- width: 50px;
+ border: 1px solid #000000;
+ border-radius: 5px 5px 5px 5px;
+ box-shadow: 1px 1px 2px #444444;
padding: 2px 5px;
- border: 1px solid #fff;
+ width: 50px;
}
img.iconbutton {
diff --git a/web/plugins/views/layouts.py b/web/plugins/views/layouts.py
index 592a8c4..8418616 100644
--- a/web/plugins/views/layouts.py
+++ b/web/plugins/views/layouts.py
@@ -162,7 +162,7 @@ def render_grouped_boxes(rows, view, group_painters, painters,
num_columns, show
# render one group
def render_group(header, rows):
- html.write("<table class=groupheader><tr
class=groupheader>")
+ html.write("<table class=groupheader cellspacing=0 cellpadding=0
border=0><tr class=groupheader>")
painted = False
for p in group_painters:
if painted:
@@ -393,7 +393,7 @@ def render_grouped_list(rows, view, group_painters, painters,
num_columns, show_
group_open = True
visible_row_number = 0
html.write("<tr class=groupheader>")
- html.write("<td class=groupheader colspan=%d><table
class=groupheader><tr>" %
+ html.write("<td class=groupheader colspan=%d><table
class=groupheader cellspacing=0 cellpadding=0 border=0><tr>" %
(num_painters * (num_columns + 2) + (num_columns - 1)))
painted = False
for p in group_painters: