Module: check_mk
Branch: master
Commit: 78d901de6373d88244634ff25422b17ce71f5b55
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=78d901de6373d8…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri May 11 13:48:18 2012 +0200
Better styling of snapin buttons
---
web/htdocs/sidebar.css | 17 ++++++++++++-----
web/htdocs/sidebar.py | 3 ++-
2 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/web/htdocs/sidebar.css b/web/htdocs/sidebar.css
index a44d87b..03b68fe 100644
--- a/web/htdocs/sidebar.css
+++ b/web/htdocs/sidebar.css
@@ -289,18 +289,25 @@ div.snapin div.footnotelink {
}
div.snapin div.footnotelink a {
- border: 1px solid #ddd;
+ border-width: 1px;
+ border-style: solid;
+ background-color: #497e95;
+ border-color: #86a9b8 #22404d #22414d #86a9b8;
+ box-shadow: 0 0 0.5px #444444;
font-size: 7pt;
- -moz-border-radius: 4px;
+ border-radius: 4px;
padding: 1px 4px;
margin-left: 5px;
}
div.snapin div.footnotelink a:hover {
- background-image: url("images/form_background.png");
- background-repeat: repeat;
+ background-color: #6da1b8;
text-decoration: none;
- border: 1px solid #fff;
+}
+div.snapin div.footnotelink a:active {
+ border-color: #22414d #86a9b8 #86a9b8 #22404d;
+ background-color: #3b6678;
+ box-shadow: inset 0 0 0.5px #444444;
}
/* Small iconbutton (e.g. at bookmarks) */
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index 915efde..097bd40 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -63,7 +63,8 @@ def link(text, target):
# [3] relative.py
if not (":" in target[:10]) and target[0] != '/':
target = defaults.url_prefix + "check_mk/" + target
- return "<a target=\"main\" class=link
href=\"%s\">%s</a>" % (target, htmllib.attrencode(text))
+ return '<a onfocus="if (this.blur) this.blur();"
target="main" ' \
+ 'class=link href="%s">%s</a>' % (target,
htmllib.attrencode(text))
def simplelink(text, target):
html.write(link(text, target) + "<br>\n")