Restyling of several components, small bugfixes

This commit is contained in:
BNoiZe
2013-11-09 20:46:34 +01:00
parent 50bd15c5a8
commit abadb69443
7 changed files with 60 additions and 40 deletions

View File

@@ -2,8 +2,8 @@ $header
<article> <article>
<header> <header>
<h2> <h2>
<img src="templates/{$theme}/assets/img/icons/group_edit_big.png" alt="" />&nbsp; <img src="templates/{$theme}/assets/img/icons/group_edit_big.png" alt="" />
{$lng['admin']['customers']}&nbsp;({$customercount}) {$lng['admin']['customers']} ({$customercount})
</h2> </h2>
</header> </header>

View File

@@ -34,6 +34,4 @@ $header
{$stats_tables} {$stats_tables}
</article> </article>
</div> </div>
<br />
<br />
$footer $footer

View File

@@ -22,6 +22,24 @@ body {
padding:0; padding:0;
} }
.content {
background-color: #f7f8fa;
margin-top: 53px;
min-width: 100%;
border-bottom: 1px solid #b6c0cd;
}
/*
* main container
*/
.main {
margin-left: 230px;
padding: 30px;
background-color: #fff;
border-left: 1px solid #b6c0cd;
margin-bottom: 0px;
}
.dark { .dark {
background: #f0f2f4; background: #f0f2f4;
border-bottom:1px solid #d1d5d8; border-bottom:1px solid #d1d5d8;
@@ -39,7 +57,7 @@ h1 {
} }
h2, h3 { h2, h3 {
margin: 0 0 1em 0; margin: 0 0 10px 0;
padding: 0; padding: 0;
font-weight: bold; font-weight: bold;
} }
@@ -67,7 +85,7 @@ td a {
} }
.bradius { .bradius {
border-radius: 5px 5px 5px 5px; border-radius: 3px;
box-shadow: rgba(0, 0, 0, 0.34902) 0px 1px 3px 0px; box-shadow: rgba(0, 0, 0, 0.34902) 0px 1px 3px 0px;
} }
@@ -128,15 +146,6 @@ ul.topheadernav li ul li a:hover {
color: #111; color: #111;
} }
nav {
float:left;
width:230px;
margin: -4px 20px 0 0;
}
nav div:first-child {
display: none;
}
.topheadernav img { .topheadernav img {
padding: 0px; padding: 0px;
margin: -4px 0 0 0; margin: -4px 0 0 0;
@@ -161,7 +170,8 @@ footer {
text-align:center; text-align:center;
color: #888; color: #888;
font-size:10px !important; font-size:10px !important;
margin: 10px 0; padding: 10px 0;
bottom: 0px;
} }
footer a,footer a:active,footer a:visited { footer a,footer a:active,footer a:visited {
@@ -476,10 +486,25 @@ a:hover {
} }
/* navigation */ /* navigation */
nav {
float: left;
width:230px;
background-color:#f7f8fa;
}
nav div:first-child {
display: none;
}
nav div:nth-child(2) {
border-top: 0 !important;
}
.menuelement { .menuelement {
margin: 4px 0 10px 10px; margin: 0 15px 0 15px;
padding:10px; padding:15px 0 15px 5px;
background-color:#fff; border-bottom: 1px solid #e1e7f0;
border-top: 1px solid #fff;
}
nav div:last-child {
border-bottom: 0 !important;
} }
.menuelement h4 { .menuelement h4 {
@@ -487,9 +512,10 @@ a:hover {
font-weight: bold; font-weight: bold;
margin:0; margin:0;
padding:0 0 0 20px; padding:0 0 0 20px;
color: #626976;
} }
.menuelement h4 a { .menuelement h4 a {
color: #000; color: #626976;
} }
.menuelement ul { .menuelement ul {
list-style:none; list-style:none;
@@ -498,23 +524,10 @@ a:hover {
} }
.menuelement ul li { .menuelement ul li {
margin:0 0 0 20px; margin:2px 0 2px 20px;
padding:0; padding:0;
} }
/*
* main container
*/
.main {
margin-left:240px;
margin-right:10px;
margin-top:64px;
margin-bottom:0;
background-color:#fff;
padding: 30px 30px 30px 30px;
min-height:400px;
}
.noborder { .noborder {
width:100%; width:100%;
border-spacing:0; border-spacing:0;
@@ -899,8 +912,8 @@ label.nobr {
height:40px; height:40px;
opacity:0.3; opacity:0.3;
position:fixed; position:fixed;
bottom:15px; bottom:50px;
left:100px; left:95px;
display:none; display:none;
text-indent:-9999px; text-indent:-9999px;
background: url(../img/top.png) no-repeat; background: url(../img/top.png) no-repeat;

View File

@@ -25,6 +25,13 @@ $(document).ready(function() {
return false; return false;
}); });
// Height of divs fix
var snheight = $('#sidenavigation').height();
var mainheight = $('#maincontent').height();
if (snheight > mainheight) {
$('#maincontent').height(snheight - 60);
}
// this is necessary for the special setting feature (ref #1010) // this is necessary for the special setting feature (ref #1010)
$.getQueryVariable = function(key) { $.getQueryVariable = function(key) {
var urlParams = decodeURI( window.location.search.substring(1) ); var urlParams = decodeURI( window.location.search.substring(1) );

View File

@@ -1,5 +1,7 @@
<if isset($userinfo['loginname'])> <if isset($userinfo['loginname'])>
</div> </div>
<div style="clear:both;"></div>
</div>
</if> </if>
<footer> <footer>
<span><img src="templates/{$theme}/assets/img/logo_grey.png" alt="Froxlor" /> <span><img src="templates/{$theme}/assets/img/logo_grey.png" alt="Froxlor" />

View File

@@ -78,7 +78,7 @@
</ul> </ul>
</div> </div>
</header> </header>
<div class="content">
<nav>$navigation</nav> <nav id="sidenavigation">$navigation</nav>
<div class="main bradius"> <div class="main" id="maincontent">
</if> </if>

View File

@@ -1,4 +1,4 @@
<div class="menuelement bradius"> <div class="menuelement">
<h4>{$completeLink}</h4> <h4>{$completeLink}</h4>
<ul> <ul>
{$navigation_links} {$navigation_links}