add leftBar

This commit is contained in:
sanj 2010-12-30 21:47:36 +05:30
parent 0e1819b630
commit 40941dd078
3 changed files with 18 additions and 3 deletions

View File

@ -15,6 +15,16 @@ body {
padding: 4px; padding: 4px;
} }
#leftBar {
width: 250px;
height: 100%;
background: #000;
float: left;
}
#essayWrapper {
float: left;
}
#essayAbstract { #essayAbstract {
font-style: italic; font-style: italic;

View File

@ -5,8 +5,8 @@ $(function() {
padmaContainer.data("currentVideo", false); padmaContainer.data("currentVideo", false);
function resize() { function resize() {
var docWidth = $(document).width(); var docWidth = $(document).width();
var essayWidth = docWidth - 400; var essayWidth = docWidth - 650;
$('#leftWrapper').css("width", essayWidth); $('#essayWrapper').css("width", essayWidth);
} }
resize(); resize();
$(window).resize(resize); $(window).resize(resize);

View File

@ -88,7 +88,12 @@
{% autoescape off %} {% autoescape off %}
<div id="loading"></div> <div id="loading"></div>
<div id="wrapper"> <div id="wrapper">
<div id="leftWrapper"> {% ifnotequal text.left_bar '' %}
<div id="leftBar">
{{ text.left_bar }}
</div>
{% endifnotequal %}
<div id="essayWrapper">
<h1> <h1>
{{ text.title }} {{ text.title }}
</h1> </h1>