Module: check_mk
Branch: master
Commit: 159fd56f0f9d924a0765151e121b48d4a65f9b55
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=159fd56f0f9d92…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun May 20 18:59:31 2012 +0200
Changed styling of data tables
(omit horizontal borders)
---
web/htdocs/pages.css | 3 ++-
web/htdocs/status.css | 4 ++--
web/htdocs/wato.css | 2 +-
web/htdocs/wato.py | 8 ++++----
4 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/web/htdocs/pages.css b/web/htdocs/pages.css
index 1a26870..31f98e5 100644
--- a/web/htdocs/pages.css
+++ b/web/htdocs/pages.css
@@ -261,7 +261,8 @@ table.data th.tablegap {
}
table.data tr.data td {
- border: 1px solid #bbb;
+ border-left: 1px solid #ccc;
+ border-right: 1px solid #ccc;
padding: 2px 4px;
height: 22px;
vertical-align: middle;
diff --git a/web/htdocs/status.css b/web/htdocs/status.css
index 1b93c68..350f3c6 100644
--- a/web/htdocs/status.css
+++ b/web/htdocs/status.css
@@ -225,8 +225,8 @@ tr.even1 { background-color: #ffa; }
tr.odd2 { background-color: #fcc; }
tr.even2 { background-color: #faa; }
-tr.odd3 { background-color: #fda; }
-tr.even3 { background-color: #fea; }
+tr.odd3 { background-color: #ffe0a0; }
+tr.even3 { background-color: #ffefaf; }
/* Row headers in single dataset layout */
diff --git a/web/htdocs/wato.css b/web/htdocs/wato.css
index 6b9791d..e64873c 100644
--- a/web/htdocs/wato.css
+++ b/web/htdocs/wato.css
@@ -45,7 +45,7 @@ Boston, MA 02110-1301 USA.
/* Tables in WATO are not size to 100% per default */
.wato table.data {
- /* box-shadow: 0 0 3px #334488; */
+ box-shadow: 0 0 3px #334488;
width: auto;
}
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 51ad0db..87016d1 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1164,9 +1164,9 @@ def show_hosts(folder):
# Helper function for showing bulk actions. This is needed at the bottom
# of the table of hosts and - if there are more than just a few - also
# at the top of the table.
- def bulk_actions(at_least_one_imported, top, colspan):
+ def bulk_actions(at_least_one_imported, top, colspan, odd):
# bulk actions
- html.write('<tr class="data odd0">')
+ html.write('<tr class="data %s0">' % odd)
html.write('<td>')
html.jsbutton('_markall', _('X'),
'javascript:toggle_all_rows();')
html.write("</td><td class=bulksearch colspan=2>")
@@ -1228,7 +1228,7 @@ def show_hosts(folder):
# list shows more than 10 rows
if more_than_ten_items and \
(config.may("wato.edit_hosts") or
config.may("wato.manage_hosts")):
- bulk_actions(at_least_one_imported, True, colspan)
+ bulk_actions(at_least_one_imported, True, colspan, "even")
# Header line
html.write("<tr><th
class=left></th><th></th><th>"
@@ -1349,7 +1349,7 @@ def show_hosts(folder):
html.write("</tr>\n")
if config.may("wato.edit_hosts") or
config.may("wato.manage_hosts"):
- bulk_actions(at_least_one_imported, False, colspan)
+ bulk_actions(at_least_one_imported, False, colspan, odd)
html.write("</table>\n")
html.hidden_fields()