[IMPROVEMENT] Website Layout

* [FEATURE] Added footer, thanks @nrpatten for the idea and sample
* [IMPROVEMENT] Sidebar smaller and min width added
* [IMPROVEMENT] Properly format debug console
* [IMRPOVEMENT] Moved all custom CSS into own file
This commit is contained in:
Sebastian Grewe 2013-09-19 08:19:01 +02:00
parent c578c504ed
commit 326397b48f
5 changed files with 177 additions and 154 deletions

View File

@ -1,3 +1,90 @@
/* Custom stuff */
span.confirmed {
display: inline-block;
width: 60px;
font-size: 10px;
background: #e6efc2;
color:#264409;
padding: 2px 4px;
border:1px solid #c6d880;
border-radius: 4px;
}
span.orphan {
display: inline-block;
width: 60px;
font-size: 10px;
background: #ff9473;
color:#264409;
padding: 2px 4px;
border:1px solid #ff6342;
border-radius: 4px;
}
span.unconfirmed {
display: inline-block;
width: 60px;
font-size: 10px;
background: #ffce9c;
color:#264409;
padding: 2px 4px;
border:1px solid #ffb573;
border-radius: 4px;
}
div.login_small {
float: right;
background: #E0E0E3;
background: linear-gradient(to bottom, rgb(255, 255, 255) 0%, rgb(241, 241, 241) 50%, rgb(225, 225, 225) 51%, rgb(246, 246, 246) 100%) repeat scroll 0% 0%;
border-radius: 5px 5px 5px 5px;
position: absolute;
padding: 5px;
top: 10px;
right: 10px;
}
fieldset2 {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background: #F6F6F6;
padding: 1% 0%;
margin: 10px 0;
}
fieldset2 label {
display: block;
float: left;
height: 25px;
line-height: 25px;
text-shadow: 0 1px 0 #fff;
font-weight: bold;
padding-left: 10px;
text-transform: uppercase;
}
fieldset2 input[type=text], fieldset2 input[type=password] {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: 1px solid #BBBBBB;
height: 20px;
color: #666666;
-webkit-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
-moz-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
padding-left: 10px;
background-position: 10px 6px;
margin: 0;
display: block;
float: left;
margin: 0 10px;
}
fieldset2 input[type=text]:focus, fieldset2 input[type=password]:focus, fieldset2 input[type=checkbox] {
outline: none;
border: 1px solid #77BACE;
-webkit-box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
-moz-box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
}
/* Custom checkboxes */ /* Custom checkboxes */
input[type=checkbox] { input[type=checkbox] {
position: absolute; position: absolute;
@ -22,7 +109,7 @@ input[type=checkbox]:checked + label
padding: 0 0 0 0px; padding: 0 0 0 0px;
} }
/* Test toggle switch Begin */ /* Debugger console toggle switch */
span.toggle { span.toggle {
display:block; display:block;
width: 75px; width: 75px;
@ -102,3 +189,23 @@ span.toggle {
text-shadow: none; text-shadow: none;
} }
footer.footer {
clear: both;
text-align: center;
height: 80px;
margin-top: -80px;
position: relative;
padding: 4px 0px 0px 0px;
background:url("../images/header_bg.png") repeat-x scroll 0% 0% rgb(34, 34, 34);
font-size:11px;
width:100%;
}
footer.footer p {
color:grey;
margin: 0px 0 0 0;
}
.DebuggerConsole {
z-index:500;position:absolute;display:none
}

View File

@ -97,7 +97,8 @@ background: #F1F1F4 url(../images/secondary_bar.png) repeat-x;
section#secondary_bar .user { section#secondary_bar .user {
float: left; float: left;
width: 12%; width: 10%;
min-width: 150px;
height: 38px; height: 38px;
} }
@ -191,7 +192,8 @@ margin: 0 5px;
/* Sidebar */ /* Sidebar */
aside#sidebar { aside#sidebar {
width: 12%; min-width: 150px;
width: 10%;
background: #E0E0E3 url(../images/sidebar.png) repeat; background: #E0E0E3 url(../images/sidebar.png) repeat;
float: left; float: left;
min-height: 88%; min-height: 88%;
@ -278,7 +280,7 @@ margin: 0 0 0 12%; padding: 0;
#sidebar li a { #sidebar li a {
color: #666666; color: #666666;
padding-left: 25px; padding-left: 12px;
text-decoration: none; text-decoration: none;
display: inline-block; display: inline-block;
height: 17px; height: 17px;
@ -834,91 +836,3 @@ color: #32510F;
padding: 10px 0; padding: 10px 0;
text-indent: 40px; text-indent: 40px;
font-size: 14px;} font-size: 14px;}
/* Custom stuff */
span.confirmed {
display: inline-block;
width: 60px;
font-size: 10px;
background: #e6efc2;
color:#264409;
padding: 2px 4px;
border:1px solid #c6d880;
border-radius: 4px;
}
span.orphan {
display: inline-block;
width: 60px;
font-size: 10px;
background: #ff9473;
color:#264409;
padding: 2px 4px;
border:1px solid #ff6342;
border-radius: 4px;
}
span.unconfirmed {
display: inline-block;
width: 60px;
font-size: 10px;
background: #ffce9c;
color:#264409;
padding: 2px 4px;
border:1px solid #ffb573;
border-radius: 4px;
}
div.login_small {
float: right;
background: #E0E0E3;
background: linear-gradient(to bottom, rgb(255, 255, 255) 0%, rgb(241, 241, 241) 50%, rgb(225, 225, 225) 51%, rgb(246, 246, 246) 100%) repeat scroll 0% 0%;
border-radius: 5px 5px 5px 5px;
position: absolute;
padding: 5px;
top: 10px;
right: 10px;
}
fieldset2 {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background: #F6F6F6;
padding: 1% 0%;
margin: 10px 0;
}
fieldset2 label {
display: block;
float: left;
height: 25px;
line-height: 25px;
text-shadow: 0 1px 0 #fff;
font-weight: bold;
padding-left: 10px;
text-transform: uppercase;
}
fieldset2 input[type=text], fieldset2 input[type=password] {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: 1px solid #BBBBBB;
height: 20px;
color: #666666;
-webkit-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
-moz-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;
padding-left: 10px;
background-position: 10px 6px;
margin: 0;
display: block;
float: left;
margin: 0 10px;
}
fieldset2 input[type=text]:focus, fieldset2 input[type=password]:focus, fieldset2 input[type=checkbox] {
outline: none;
border: 1px solid #77BACE;
-webkit-box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
-moz-box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
box-shadow: inset 0 2px 2px #ccc, 0 0 10px #ADDCE6;
}

View File

@ -1,5 +1,8 @@
<footer> <p><strong>mmcFE-ng</strong> by TheSerapher, available on <a href="https://github.com/TheSerapher/php-mmcfe-ng">GitHub</a></p>
<hr /> <p>Please <strong>Donate</strong> to TheSerapher LTC: Lge95QR2frp9y1wJufjUPCycVsg5gLJPW8</p>
<p><strong>Copyright &copy; 2011 Website Admin</strong></p> <p><strong>Copyright &copy; 2013 Sebastian Grerewe</strong>, Theme by <a href="http://www.medialoot.com">MediaLoot</a></p>
<p>Theme by <a href="http://www.medialoot.com">MediaLoot</a></p> {if $DEBUG > 0}
</footer> <div id="debug">
{nocache}{include file="system/debugger.tpl"}{/nocache}
</div>
{/if}

View File

@ -39,7 +39,6 @@
</section> </section>
<aside id="sidebar" class="column"> <aside id="sidebar" class="column">
{include file="global/navigation.tpl"} {include file="global/navigation.tpl"}
{include file="global/footer.tpl"}
</aside> </aside>
<section id="main" class="column"> <section id="main" class="column">
{if is_array($smarty.session.POPUP|default)} {if is_array($smarty.session.POPUP|default)}
@ -50,9 +49,8 @@
{if $CONTENT != "empty" or $CONTENT != ""}{if file_exists($smarty.current_dir|cat:"/$PAGE/$ACTION/$CONTENT")}{include file="$PAGE/$ACTION/$CONTENT"}{else}Missing template for this page{/if}{/if} {if $CONTENT != "empty" or $CONTENT != ""}{if file_exists($smarty.current_dir|cat:"/$PAGE/$ACTION/$CONTENT")}{include file="$PAGE/$ACTION/$CONTENT"}{else}Missing template for this page{/if}{/if}
<div class="spacer"></div> <div class="spacer"></div>
</section> </section>
{if $DEBUG > 0}<div id="debug"> <footer class="footer">
{nocache}{include file="system/debugger.tpl"}{/nocache} {include file="global/footer.tpl"}
</div> </footer>
{/if}
</body> </body>
</html> </html>

View File

@ -4,7 +4,8 @@
<a href="#" id="toggle" class="toggle">Debugger Console</a> <a href="#" id="toggle" class="toggle">Debugger Console</a>
<div id="panel"> <div id="panel">
<div id="DebuggerConsole"> <div id="DebuggerConsole">
<table width="100%"> <br /><br />
<table width="100%" class="tablesorter" cellspacing="0">
<thead> <thead>
<tr> <tr>
<th width="15"><b>Level</b></th> <th width="15"><b>Level</b></th>