Fix up sidebar conditional

This commit is contained in:
eston
2011-03-02 17:56:34 -08:00
parent 175408e6bd
commit d87750c39d
3 changed files with 29 additions and 30 deletions
+27 -23
View File
@@ -70,32 +70,40 @@ a:hover, a:visited {
display: block;
float: left;
margin-right: 3%;
width: 70%;
width: 100%;
}
.has-rightbar #wiki-body {
width: 68%;
}
/* @section rightbar */
#wiki-rightbar {
float: right;
width: 27%;
}
#wiki-rightbar #nav {
background-color: #f7f7f7;
border: 1px solid #ddd;
margin-top: 1.5em;
padding: 1em;
float: right;
padding: 7px;
width: 25%;
border-radius: 0.5em;
-moz-border-radius: 0.5em;
-webkit-border-radius: 0.5em;
}
#wiki-rightbar #nav {
font-size: 1.2em;
line-height: 1.5em;
#wiki-rightbar {
font-size: 1.0em;
line-height: 1.3em;
}
#wiki-rightbar #nav p.parent {
#wiki-rightbar p {
margin: 13px 0 0;
}
#wiki-rightbar > p:first-child {
margin-top: 0;
}
#wiki-rightbar p.parent {
border-bottom: 1px solid #bbb;
font-weight: bold;
margin: 0 0 0.5em 0;
@@ -104,12 +112,12 @@ a:hover, a:visited {
}
/* Back arrow */
#wiki-rightbar #nav p.parent:before {
#wiki-rightbar p.parent:before {
color: #666;
content: "← ";
}
#wiki-rightbar #nav h3 {
#wiki-rightbar h3 {
font-size: 1.2em;
color: #333;
margin: 1.2em 0 0;
@@ -117,23 +125,19 @@ a:hover, a:visited {
text-shadow: 0 1px 0 #fff;
}
#wiki-rightbar #nav ul {
#wiki-rightbar ul {
margin: 0.5em 0 1em;
padding: 0;
}
#wiki-rightbar #nav ul li {
#wiki-rightbar ul li {
color: #bbb;
list-style-position: outside;
list-style-type: none;
margin: 0 0 0 1em;
padding: 0;
line-height: 1.75em;
}
#wiki-rightbar #nav ul li:hover {
list-style-type: square;
}
list-style-position: inside;
list-style-type: round;
}
#wiki-rightbar #nav ul li a {
font-weight: bold;
@@ -159,11 +159,6 @@
padding: 6px 13px;
}
/* Pygments-Processed Code Blocks */
/* Images & Stuff */
#template img {
max-width: 100%;
+2 -2
View File
@@ -12,7 +12,7 @@
{{>searchbar}}
</div>
<div id="wiki-content">
<div class="wrap{{#has_footer}} has-footer{{/has_footer}}{{#has_sidebar}}has-rightbar{{/has_sidebar}}">
<div class="wrap{{#has_footer}} has-footer{{/has_footer}}{{#has_sidebar}} has-rightbar{{/has_sidebar}}">
<div id="wiki-body">
<div id="template">
{{{content}}}
@@ -38,4 +38,4 @@
</div>
</div>
<script type="text/javascript" src="/javascript/MathJax/MathJax.js"></script>
<script type="text/javascript" src="/javascript/MathJax/MathJax.js"></script>