Module: check_mk
Branch: master
Commit: 3bc80134bdfa8330af9652ae1b95193a70c268d1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3bc80134bdfa83…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun May 13 14:49:43 2012 +0200
Fixed sidebar styling
---
web/htdocs/js/sidebar.js | 6 ------
web/htdocs/sidebar.css | 18 ++++++++++++++----
web/htdocs/sidebar.py | 2 +-
3 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/web/htdocs/js/sidebar.js b/web/htdocs/js/sidebar.js
index 7000dff..d624d49 100644
--- a/web/htdocs/js/sidebar.js
+++ b/web/htdocs/js/sidebar.js
@@ -172,12 +172,6 @@ function snapinDrag(event) {
var line = document.createElement('div');
line.setAttribute('id', 'snapinDragIndicator');
- line.style.height = '3px';
- line.style.lineHeight = '1px';
- line.style.fontSize = '1px';
- line.style.width = '250px';
- line.style.backgroundColor = '#fff';
- line.style.margin = '1px 0px 0px 5px';
var o = getSnapinTargetPos();
if (o != null) {
snapinAddBefore(o.parentNode, o, line);
diff --git a/web/htdocs/sidebar.css b/web/htdocs/sidebar.css
index aa5ad81..be43f85 100644
--- a/web/htdocs/sidebar.css
+++ b/web/htdocs/sidebar.css
@@ -84,8 +84,7 @@ body.side {
height: 500px;
overflow: hidden;
color: #000000;
- padding-top: 60px;
- padding-bottom: 8px;
+ padding-top: 55px;
}
/* The footer of the sidebar */
@@ -293,9 +292,9 @@ div.snapin div.footnotelink a {
border-style: solid;
background-color: #497e95;
border-color: #86a9b8 #22404d #22414d #86a9b8;
- box-shadow: 0 0 0.5px #444444;
+ box-shadow: 0 0 1.5px #000;
font-size: 7pt;
- border-radius: 4px;
+ border-radius: 5px;
padding: 2px 6px;
margin-left: 5px;
}
@@ -335,6 +334,17 @@ div.statebullet {
box-shadow: 0px 0px 1px #123a4a;
}
+div#snapinDragIndicator {
+ height: 2px;
+ line-height: 1px;
+ font-size: 1px;
+ width: 249px;
+ background-color: #fff;
+ margin: 0px 0px 0px 10px;
+ border-radius: 3px;
+ box-shadow: 0px 0px 5px #ffffff;
+}
+
/*-------------------------------------------------------------------------.
| _ _ _ _ |
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index 7453d5f..097bd40 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -167,7 +167,7 @@ def page_side():
restart = sidebar_snapins.get(name, {}).get('restart', False)
if restart:
restart_snapins.append(name)
- html.write('<br></div>')
+ html.write('</div>')
sidebar_foot()
html.write('</div>')