Skip to content

Commit

Permalink
More design changes, include some on the leaflet pages
Browse files Browse the repository at this point in the history
  • Loading branch information
henare committed Jul 21, 2010
1 parent a90e68c commit 39be3c6
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 22 deletions.
67 changes: 54 additions & 13 deletions docs/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ h1, h2, h3, h4, h5, h6 {
color:#010101;
text-decoration: none;
}
h1 {
font-size: 26px;
color: #010101;
margin: 0;
}
h2 {
font-size: 14px;
color: #010101;
font-weight: normal;
margin: 5px 0;
text-transform: uppercase;
}
h3 {
font-size: 44px;
font-weight: bold;
line-height: 46px;
padding: 0;
margin: 0;
}
h4{
font-size: 20px;
margin-bottom: 12px;
Expand Down Expand Up @@ -36,17 +55,25 @@ h4 a:hover {
margin: 0 auto;
background: url(/images/background.jpg) top;
}
#page-container.full-width {
width:100%;
margin:0;
}
/* Page */
#divPage { text-align:left; position:relative; margin:0 auto; width: 998px;}
#divPage.home {}
#divPage.full-width {
width:100%;
margin:0;
}

/* Header */
#divHeader {padding:0; height:116px; border-bottom:solid 3px #ba5800;
position:relative; width: 998px; margin:0 auto;}
#pLogo {position:absolute; top:29px; left:66px;width:400px; height:88px; text-align: left;}
#pLogo {position:absolute; top:15px; left:66px;width:400px; height:88px; text-align: left;}
#pLogo a {color: #010101; text-decoration: none}
#pLogo h1 {font-size: 26px; color: #010101; margin: 0;}
#pLogo h2 {font-size: 14px; color: #010101; font-weight: normal; margin: 5px 0; text-transform: uppercase;}
#pLogo h2 a:hover {color: #ba5800;}

#pStrapLine {position:absolute; top:0; right:2%; font-weight:bold;}

Expand Down Expand Up @@ -86,12 +113,15 @@ div#divContentFull {
}
.leftcolumn {position:relative; float: left; width: 422px; padding-left: 66px;}
.rightcolumn {position:relative; float: right; width: 422px; padding-right: 66px;}
div.contentfull {padding:1em;}
div.contentfull {
padding:16px 36px;
text-align:center;
}
div.contentleft, div.contentright, div.contentcolleft, div.contentcolright {float:left;}
div.contentleft {width:49%;padding:0 1% 0 0;}
div.contentright {width:49%;padding:0 0 0 1%;}
div.contentcolleft {width:74%;padding:0 1% 0 0;}
div.contentcolright {width:24%;padding:0 0 0 1%;}
div.contentcolleft {width:73%;padding:0 1%;}
div.contentcolright {width:23%;padding:0 1%;}
div.bordertop {border-top:dashed 1px #5c6f7b;}
div.section {padding-top:2em; margin-top:2em;border-top:solid 1px #808080;}

Expand Down Expand Up @@ -211,6 +241,9 @@ form.formhighlight {background:#ffffaa; padding:10px;}

/* Uploading images */
#divUploading {text-align:center; padding:3em 0; display:none;}
#frmUpload{
margin-bottom:20px;
}

/* Warnings, messages & errors*/
#divWarning, #divMessages {font-size:0.9em;text-align:center; margin-bottom:1em; margin-top:1em;}
Expand All @@ -227,14 +260,13 @@ small.error {background:#ff6f75;}
#divSpotMap {width:80%; height:200px; border:solid 1px #808080; position:relative;margin-bottom:10em;}
#divSpotMap div.gmnoprint {bottom:-10px!important;left:4em!important;-moz-opacity:0.8; opacity:0.8;}
#divSpotMap div a {position:absolute;bottom:-34px!important;right:0;color:#808080!important;}
#divSpotMap div span {position:absolute;bottom:-34px!important;right:6.5em;color:#808080!important;}
#divSpotMap div span {position:absolute;bottom:-60px!important;left:-215px;color:#808080!important;}

/* Forms */
input[type='submit'] {font-size:1.4em; padding:0.3em;}

/* Footer */
#divFooter {clear:left; text-align:center; padding-top:0.5em; font-size:0.8em; padding-bottom:1em;
border-top:dashed 1px #5c6f7b; margin-top:4em; background: #fff;}
#divFooter {clear:left; text-align:center; padding-top:0.5em; font-size:0.8em; padding-bottom:1em; border-top:3px solid #BA5800; margin-top:4em; background: #fff;}
#divFooter ul {list-style-type:none;padding:0; margin:0;}
#divFooter ul li {display:inline; border-right: 1px solid #ba5800; padding: 0 5px;}
#divFooter ul li.last {display:inline; border: none}
Expand All @@ -253,6 +285,9 @@ ul.tagcloud li.tg6 {font-size:1.4em;}

/* Lists */
ul {padding:0; margin:0;list-style-type:none;}
ul li {
margin-bottom:10px;
}
ul.inline li {display:inline; padding:0;}
ul li.more {padding-top:1em;}
ul.bullets {list-style-type: square;}
Expand Down Expand Up @@ -392,20 +427,26 @@ div.stats div ol {padding-left:20px;}
{
padding: 10px;
text-align: center;
background-image: url(images/candy.gif);
background-image: url(/images/candy.gif);
}

/* info box */
div.infobox {background:#f8f8f8; padding:10px; font-size:0.8em; margin-bottom:1em; line-height:1.2em;
min-height:50px;}
div.infobox {
background:#f8f8f8;
padding:10px;
font-size:0.8em;
margin-bottom:1em;
border: 1px solid #C8C6C6;
background: url("/images/view_add_background_transparent.png") repeat scroll 0 0 transparent;
}
div.infobox h4 {margin-top:0;}
div.infobox textarea{width:100%;}
div.infobox p, div.infobox h3 {color:#333; line-height:1.2em; padding:0 0 1em 0;margin:0;}
div.infobox img {vertical-align:top; float:left; margin:0 4px 4px 0;}

/* Pagination */
ul.pagination {margin:1em auto 2em auto!important; clear:left; text-align:center;}
ul.pagination li {display:inline;}
ul.pagination li a {border:solid 1px #bdd8ec;padding:2px 7px;text-align:center;margin:0 2px; text-decoration:none!important;}
ul.pagination li a {border:solid 1px #ba5800;padding:2px 7px;text-align:center;margin:0 2px; text-decoration:none!important;}
ul.pagination li span {padding:2px 7px;text-align:center;margin:0 2px;}
ul.pagination li.current {font-weight:bold; border:none; text-decoration:none!important;}
ul.pagination li.previous a, #divPagination ul li.next a {border:none;}
Expand Down
5 changes: 2 additions & 3 deletions templates/footer.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
<li><a href="/">Home</a></li>
<li><a href="/about">About</a></li>
<li><a href="/about#contact">Contact</a></li>
<li>|</li>
<li><a href="http://blog.openaustralia.org">Blog</a></li>
<li><a href="http://twitter.com/electionleaflet">Twitter</a></li>
<li><a href="http://twitter.com/electionleaflet">Twitter</a></li>
<li class="last"><a href="http://blog.openaustralia.org">Blog</a></li>
</ul>
<p id="oaf">Another fine <a href="http://www.openaustraliafoundation.org.au">OpenAustralia Foundation</a> project</p>
</div>
Expand Down
3 changes: 2 additions & 1 deletion templates/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@

{if $hide_logo == false}
<div id="pLogo">
<h2><a href="{$www_server}">OpenAustralia Foundation Presents</h2>
<h1><a href="{$www_server}">{$site_name}</a></h1>
<h2><a href="{$www_server}">2010 FEDERAL ELECTION Live <span>|</span> election monitoring</a></h2>
</div>
{/if}

<ul id="ulMenu">
<li>
<a class="active" href="{$www_server}">
<a href="{$www_server}">
Home
</a>
</li>
Expand Down
6 changes: 3 additions & 3 deletions templates/leaflet.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{include file="header.tpl"}

<div class="contentleft">
<h1>{$leaflet->title}</h1>
<div class="leftcolumn">
<h4>{$leaflet->title}</h4>
<div>{$leaflet->description|nl2br}</div>
<p>Published by <a href="{$www_server}/parties/{$leaflet->party_url_id}/">{$leaflet->party_name}</a></p>
<p>
Expand Down Expand Up @@ -58,7 +58,7 @@
</div>
<br class="clear"/>
<div id="divReportAbuse" class="contentfull bordertop">
<h3>Something wrong with this page?</h3>
<h4>Something wrong with this page?</h4>
<p>
If someone has uploaded something other than an election leaflet <a href="{$www_server}/report?q={$leaflet->leaflet_id}"> please report it here</a>.
</p>
Expand Down
4 changes: 2 additions & 2 deletions templates/leaflets.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
</div>
{/if}
<div class="infobox">
<h3>Parties</h3>
<h4>Parties</h4>
<ul class="parties">
{foreach from="$parties" item="party"}
<li>
Expand All @@ -140,7 +140,7 @@
</ul>
</div>
<div class="infobox">
<h3>Categories</h3>
<h4>Categories</h4>
<ul>
{foreach from="$categories" item="category"}
<li>
Expand Down

0 comments on commit 39be3c6

Please sign in to comment.