Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe committed Oct 13, 2013
1 parent 5808e7f commit e826212
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 74 deletions.
16 changes: 8 additions & 8 deletions css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 24 additions & 27 deletions css/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ body {
margin: 0;
padding: 0;
width: 100%;
background: #f6f6f6;
}

.clearfix:before,
Expand Down Expand Up @@ -1380,7 +1381,6 @@ html#embedded body {
aside#home-call {
background: #222;
color: #f0f0f0;
margin-top: -40px;
padding: 40px 0;
.lsf {
color: #ce1126;
Expand All @@ -1396,6 +1396,7 @@ aside#home-call {
}
p {
color: #999;
margin: 0;
}
.columns:hover {
.lsf {
Expand All @@ -1405,19 +1406,17 @@ aside#home-call {
}

.highlights {
margin-top: -40px;
position: relative;
height: 370px;
background: #f0f0f0;
border-bottom: 10px solid #ce1126;
.highlights-title {
//background: #ce1126 url(../img/indonesia_bounds_10.png) center no-repeat;
background: #fff;
padding: 20px 0;
border-top: 3px solid #2f2f2f;
h2 {
color: #333;
margin: 10px 0;
margin: 35Px 0;
font-size: 26px;
line-height: 32px;
}
Expand Down Expand Up @@ -1467,7 +1466,7 @@ aside#home-call {
}
}
.post-content {
border-top: 1px solid #aaa;
border-top: 1px solid #ddd;
header {
padding: 40px;
.date-publisher {
Expand All @@ -1488,28 +1487,26 @@ aside#home-call {
}
}

section.loop-section {
h3 {
font-size: 34px;
line-height: 52px;
margin-bottom: 0;
border-bottom: 1px solid #f0f0f0;
background: #fff;
padding: 15px;
}
&:hover {
h3 {
.box-shadow(0 2px 5px rgba(0, 0, 0, 0.05));
}
}
&#highlights {
.navigation {
display: none;
}
}
}
.section-title {
border-bottom: 1px solid #ddd;
background: #fff;
}

section.loop-section {
h3 {
color: #333;
margin: 35px 0;
font-size: 26px;
line-height: 32px;
}
&#highlights {
.navigation {
display: none;
}
}
}

body {
body {
.wp-paginate {
float: right;
margin: 0 0 30px;
Expand All @@ -1529,13 +1526,13 @@ aside#home-call {
}

.list-posts {
padding-top: 30px;
.transition(all 25s ease);
li {
article {
cursor: pointer;
height: 229px;
border-bottom: 1px solid #f0f0f0;
padding: 15px;
margin: 0;
overflow: hidden;
.transition(opacity 0.1s linear);
Expand Down
61 changes: 22 additions & 39 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php get_header(); ?>

<section id="stage" class="row">
<section id="stage">
<div class="container">
<div class="twelve columns">
<?php get_template_part('section', 'subheader'); ?>
Expand All @@ -19,7 +19,7 @@
*/
if(is_front_page()) :
?>
<aside id="home-call" class="row">
<aside id="home-call">
<div class="container">
<div class="four columns">
<span class="lsf">param</span>
Expand All @@ -46,11 +46,11 @@
/*
* Highlights
*/
if(is_front_page()) :
if(is_front_page() && !is_paged()) :
$highlights = get_posts();
if($highlights) :
?>
<div class="highlights row">
<section id="featured-stories" class="highlights">
<div class="highlights-title">
<div class="container">
<div class="twelve columns">
Expand Down Expand Up @@ -100,53 +100,36 @@
<a class="prev" href="#" title="<?php _e('Previous', 'ekuatorial'); ?>"><span class="lsf">&#xE080;</span></a>
<a class="next" href="#" title="<?php _e('Next', 'ekuatorial'); ?>"><span class="lsf">&#xE112;</span></a>
</div>
</div>
</section>
<?php
endif;
endif;
?>

<?php get_template_part('section', 'publisher-description'); ?>

<?php if(is_front_page() && !is_paged()) : ?>

<?php query_posts(array('meta_key' => 'featured', 'posts_per_page' => 4)); if(have_posts()) : ?>

<div class="container">
<?php if(have_posts()) : ?>

<section id="highlights" class="loop-section">
<section id="last-stories" class="loop-section">
<div class="section-title">
<div class="container">
<div class="twelve columns">
<h3><?php _e('Highlights', 'infoamazonia'); ?></h3>
<?php if(is_front_page()) : ?>
<h3><?php _e('Last stories', 'infoamazonia'); ?></h3>
<?php elseif(is_tax('publisher')) : ?>
<h3><?php _e('Stories by ', 'infoamazonia'); ?> &ldquo;<?php single_term_title(); ?>&rdquo;</h3>
<?php elseif(is_tag()) : ?>
<h3><?php _e('Stories on ', 'infoamazonia'); ?> &ldquo;<?php single_tag_title(); ?>&rdquo;</h3>
<?php else : ?>
<h3><?php _e('Stories', 'infoamazonia'); ?></h3>
<?php endif; ?>
</div>
<?php get_template_part('loop'); ?>
</section>

</div>

<?php endif; wp_reset_query(); ?>

<?php endif; ?>

<?php if(have_posts()) : ?>

<div class="container">

<section id="last-stories" class="loop-section">
<div class="twelve columns">
<?php if(is_front_page()) : ?>
<h3><?php _e('Last stories', 'infoamazonia'); ?></h3>
<?php elseif(is_tax('publisher')) : ?>
<h3><?php _e('Stories by ', 'infoamazonia'); ?> &ldquo;<?php single_term_title(); ?>&rdquo;</h3>
<?php elseif(is_tag()) : ?>
<h3><?php _e('Stories on ', 'infoamazonia'); ?> &ldquo;<?php single_tag_title(); ?>&rdquo;</h3>
<?php else : ?>
<h3><?php _e('Stories', 'infoamazonia'); ?></h3>
<?php endif; ?>
</div>
</div>
<div class="container">
<?php get_template_part('loop'); ?>
</section>

</div>
</div>
</section>

<?php else : ?>

Expand Down
4 changes: 4 additions & 0 deletions js/infoamazonia.markers.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
}

// bind list post events
/*
listPosts = $('.list-posts');
if(listPosts.length) {
listPosts.find('li').click(function() {
Expand All @@ -161,6 +162,7 @@
if(!fStoryID)
story = listPosts.find('li:nth-child(1)').attr('id');
}
*/

Shadowbox.init({
skipSetup: true
Expand Down Expand Up @@ -511,6 +513,7 @@
}

// activate post in post list
/*
var postList = $('.list-posts');
if(postList.length) {
postList.find('li').removeClass('active');
Expand All @@ -519,6 +522,7 @@
item.addClass('active');
}
}
*/
};
}

Expand Down

0 comments on commit e826212

Please sign in to comment.