Module: check_mk
Branch: master
Commit: 510b809ac8f9e3f60c1819f6850b3a62dbfd673c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=510b809ac8f9e3…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon May 14 18:49:13 2012 +0200
Better styling of add-snapin page
---
web/htdocs/sidebar.css | 17 ++++++++++++++---
web/htdocs/sidebar.py | 6 +++---
2 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/web/htdocs/sidebar.css b/web/htdocs/sidebar.css
index be43f85..6c710cc 100644
--- a/web/htdocs/sidebar.css
+++ b/web/htdocs/sidebar.css
@@ -360,8 +360,8 @@ div#snapinDragIndicator {
div.add_snapin div.snapinadder {
padding: 8px 2px 14px 2px;
- background-color: #9bc;
- -moz-border-radius: 8px;
+ background-color: #478;
+ border-radius: 5px;
border-bottom: 1px solid #9ab;
border-right: 1px solid #89a;
height: 220px;
@@ -369,9 +369,20 @@ div.add_snapin div.snapinadder {
margin-right: 10px;
margin-bottom: 10px;
float: left;
+ box-shadow: 1px 1px 5px #000;
+ border-style: solid;
+ border-width: 1px;
+ border-color: #9bc #245 #245 #9bc;
}
+div.add_snapin div.snapinadder:hover {
+ background-color: #69a;
+ box-shadow: 0px 0px 10px #fff;
+ border-color: #fff; /* #9bc #9bc #fff; */
+ position: relative;
+}
+
div.add_snapin div.snapinadder div.description {
- color: #369;
+ color: #fff;
padding: 10px;
}
div.add_snapin div.snapin_preview div.clickshield {
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index 097bd40..52015f3 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -346,9 +346,9 @@ def page_add_snapin():
description = snapin.get("description", "")
transid = html.fresh_transid()
url = 'sidebar_add_snapin.py?name=%s&_transid=%s&pos=top' %
(name, transid)
- html.write('<div class=snapinadder
onmouseover="this.style.background=\'#cde\';
this.style.cursor=\'pointer\';" '
- 'onmouseout="this.style.background=\'#9bc\' "'
- 'onmousedown="window.location.href=\'%s\';return
false;">' % url)
+ html.write('<div class=snapinadder '
+ 'onmouseover="this.style.cursor=\'pointer\';"
'
+ 'onmousedown="window.location.href=\'%s\'; return
false;">' % url)
html.write("<div class=snapin_preview>")
html.write("<div class=clickshield></div>")