Permalink
Browse files

Initial styles for image posts.

  • Loading branch information...
1 parent 364366f commit fbec5ae8d00f78a1190e6648bf29dbbbd08efaea @dstrojny dstrojny committed Mar 20, 2012
View
15 source/assets/stylesheets/_view_content-image.scss
@@ -0,0 +1,15 @@
+/* content-image.css.scss
+ * Image post styling
+ * ------------------------------------------------------------------ */
+
+article.format-image {
+ footer h1 {
+ @include rem('font-size', 13px);
+ line-height: ($evbase/13);
+ font-weight: normal;
+ }
+ footer h2 {
+ @include rem('font-size', 11px);
+ line-height: ($evbase/11);
+ }
+}
View
1 source/assets/stylesheets/style.css.scss
@@ -6,6 +6,7 @@
@import "patterns";
@import "scaffolding";
@import "view_index";
+@import "view_content-image";
@import "view_comments";
@import "widgets";
@import "view_archive";
View
26 source/templates/partials/content-image.php
@@ -9,33 +9,13 @@
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <header class="entry-header">
- <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
- <div class="entry-meta">
- <?php twentytwelve_posted_by() ?>
- </div><!-- .entry-meta -->
- </header><!-- .entry-header -->
-
- <?php if ( is_search() ) : // Only display excerpts for search ?>
- <div class="entry-summary">
- <?php the_excerpt(); ?>
- </div><!-- .entry-summary -->
- <?php else : ?>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
- <?php endif; ?>
<footer class="entry-meta">
- <?php twentytwelve_entry_meta(); ?>
-
- <?php if ( comments_open() ) : ?>
- <span class="comments-link">
- <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
- </span>
- <?php endif; ?>
-
- <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link"><span class="sep"> | </span>', '</span>' ); ?>
+ <h1><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
+ <h2><?php the_date(); ?></h2>
+ <!--<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<div class="edit-link">', '</div>' ); ?>-->
</footer><!-- #entry-meta -->
</article><!-- #post -->

0 comments on commit fbec5ae

Please sign in to comment.