Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Image navigation improvements #178

Closed
wants to merge 12 commits into from

6 participants

@eduardozulian

Add a navigation role, replace spans with divs and also add a '.meta-nav' for both previous and next image links.

@eduardozulian eduardozulian Image navigation improvements
Add a navigation role, replace spans with divs and also add a
'.meta-nav' for both previous and next image links.
81d6deb
@obenland
Owner

@eduardozulian Would you mind updating your repo with the lates changes? It would help us tremendously in getting your pull request in quickly.

Thanks!

@grappler

Do the the navigation arrows need to be translated? If not then you could take them out so that only "Previous" and "Next" can be translated.

obenland and others added some commits
@obenland obenland _s: Simpler selector for lists within lists. d19e13b
@obenland obenland _s: Aggregate translation strings and make comment edit links easier to
style.
09887fc
@obenland obenland _s: Enable live preview for Header Text Color in Customizer. Change also
removes an !important declaration in Custom Header CSS rules.
425fa6d
@obenland obenland _s: Formatting changes:
- Reduce element comments to either the element id or the first element
class.
- Tabs > Spaces.
- Improve adherence to formatting guidelines.
73422af
@obenland obenland _s: Introduce a default for clearing floats.
Selectors provide clearing out of the box for the site container,
header, footer, main container, content container, entry content, and
comment content.

Also, theme developers can optionally use .clear as a utility class. Or
delete it.

For more information about the philosophy behind the approach of
selecting class elements, see
http://24ways.org/2012/a-harder-working-class/

Fixes #88.
0fafb94
@sixhours sixhours Remove blank tabs/trailing whitespace 5ddf83c
@philiparthurmoore philiparthurmoore Add an identifier into style.css that will allow us — the WordPress.c…
…om Theme Team — to easily search for themes that have been built with _s. Now there will be no more scratching our heads whenever someone asks, "What have you built with _s?" :)
c08a8b1
@braden337 braden337 Changed nav closing tag comment to indicate CSS id 5b09b99
@obenland obenland _s: Use .screen-reader-text rather than .assistive-text.
With 3.6 introducing many HTML5 improvements the need for custom
searchform and comment templates will vanish. To cope with core's
.screen-reader-text class, let's make the switch early.

Commit also adds core's focus styles for screen reader texts, so they
can actually be used.
51b81c0
@eduardozulian eduardozulian Image navigation improvements
Add a navigation role, replace spans with divs and also add a
'.meta-nav' for both previous and next image links.
e0177e5
@eduardozulian eduardozulian unwanted commit 673b1e1
@eduardozulian eduardozulian deleted the eduardozulian:patch/image-navigation branch
@obenland
Owner

Do the the navigation arrows need to be translated? If not then you could take them out so that only "Previous" and "Next" can be translated.

Yes, they should be translatable so RTL languages can change their position.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 15, 2013
  1. @eduardozulian

    Image navigation improvements

    eduardozulian authored
    Add a navigation role, replace spans with divs and also add a
    '.meta-nav' for both previous and next image links.
Commits on Mar 16, 2013
  1. @obenland @eduardozulian

    _s: Simpler selector for lists within lists.

    obenland authored eduardozulian committed
  2. @obenland @eduardozulian
  3. @obenland @eduardozulian

    _s: Enable live preview for Header Text Color in Customizer. Change also

    obenland authored eduardozulian committed
    removes an !important declaration in Custom Header CSS rules.
  4. @obenland @eduardozulian

    _s: Formatting changes:

    obenland authored eduardozulian committed
    - Reduce element comments to either the element id or the first element
    class.
    - Tabs > Spaces.
    - Improve adherence to formatting guidelines.
  5. @obenland @eduardozulian

    _s: Introduce a default for clearing floats.

    obenland authored eduardozulian committed
    Selectors provide clearing out of the box for the site container,
    header, footer, main container, content container, entry content, and
    comment content.
    
    Also, theme developers can optionally use .clear as a utility class. Or
    delete it.
    
    For more information about the philosophy behind the approach of
    selecting class elements, see
    http://24ways.org/2012/a-harder-working-class/
    
    Fixes #88.
  6. @sixhours @eduardozulian

    Remove blank tabs/trailing whitespace

    sixhours authored eduardozulian committed
  7. @philiparthurmoore @eduardozulian

    Add an identifier into style.css that will allow us — the WordPress.c…

    philiparthurmoore authored eduardozulian committed
    …om Theme Team — to easily search for themes that have been built with _s. Now there will be no more scratching our heads whenever someone asks, "What have you built with _s?" :)
  8. @braden337 @eduardozulian

    Changed nav closing tag comment to indicate CSS id

    braden337 authored eduardozulian committed
  9. @obenland @eduardozulian

    _s: Use .screen-reader-text rather than .assistive-text.

    obenland authored eduardozulian committed
    With 3.6 introducing many HTML5 improvements the need for custom
    searchform and comment templates will vanish. To cope with core's
    .screen-reader-text class, let's make the switch early.
    
    Commit also adds core's focus styles for screen reader texts, so they
    can actually be used.
  10. @eduardozulian

    Image navigation improvements

    eduardozulian authored
    Add a navigation role, replace spans with divs and also add a
    '.meta-nav' for both previous and next image links.
  11. @eduardozulian

    unwanted commit

    eduardozulian authored
This page is out of date. Refresh to see the latest.
View
4 404.php
@@ -41,7 +41,7 @@
</div><!-- .entry-content -->
</article><!-- #post-0 .post .error404 .not-found -->
- </div><!-- #content .site-content -->
- </div><!-- #primary .content-area -->
+ </div><!-- #content -->
+ </div><!-- #primary -->
<?php get_footer(); ?>
View
140 archive.php
@@ -10,86 +10,86 @@
get_header(); ?>
- <section id="primary" class="content-area">
- <div id="content" class="site-content" role="main">
-
- <?php if ( have_posts() ) : ?>
-
- <header class="page-header">
- <h1 class="page-title">
- <?php
- if ( is_category() ) {
- printf( __( 'Category Archives: %s', '_s' ), '<span>' . single_cat_title( '', false ) . '</span>' );
-
- } elseif ( is_tag() ) {
- printf( __( 'Tag Archives: %s', '_s' ), '<span>' . single_tag_title( '', false ) . '</span>' );
-
- } elseif ( is_author() ) {
- /* Queue the first post, that way we know
- * what author we're dealing with (if that is the case).
- */
- the_post();
- printf( __( 'Author Archives: %s', '_s' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
- /* Since we called the_post() above, we need to
- * rewind the loop back to the beginning that way
- * we can run the loop properly, in full.
- */
- rewind_posts();
-
- } elseif ( is_day() ) {
- printf( __( 'Daily Archives: %s', '_s' ), '<span>' . get_the_date() . '</span>' );
-
- } elseif ( is_month() ) {
- printf( __( 'Monthly Archives: %s', '_s' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
-
- } elseif ( is_year() ) {
- printf( __( 'Yearly Archives: %s', '_s' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
-
- } else {
- _e( 'Archives', '_s' );
-
- }
- ?>
- </h1>
+ <section id="primary" class="content-area">
+ <div id="content" class="site-content" role="main">
+
+ <?php if ( have_posts() ) : ?>
+
+ <header class="page-header">
+ <h1 class="page-title">
<?php
if ( is_category() ) {
- // show an optional category description
- $category_description = category_description();
- if ( ! empty( $category_description ) )
- echo apply_filters( 'category_archive_meta', '<div class="taxonomy-description">' . $category_description . '</div>' );
+ printf( __( 'Category Archives: %s', '_s' ), '<span>' . single_cat_title( '', false ) . '</span>' );
} elseif ( is_tag() ) {
- // show an optional tag description
- $tag_description = tag_description();
- if ( ! empty( $tag_description ) )
- echo apply_filters( 'tag_archive_meta', '<div class="taxonomy-description">' . $tag_description . '</div>' );
- }
- ?>
- </header><!-- .page-header -->
-
- <?php /* Start the Loop */ ?>
- <?php while ( have_posts() ) : the_post(); ?>
+ printf( __( 'Tag Archives: %s', '_s' ), '<span>' . single_tag_title( '', false ) . '</span>' );
- <?php
- /* Include the Post-Format-specific template for the content.
- * If you want to overload this in a child theme then include a file
- * called content-___.php (where ___ is the Post Format name) and that will be used instead.
- */
- get_template_part( 'content', get_post_format() );
- ?>
-
- <?php endwhile; ?>
+ } elseif ( is_author() ) {
+ /* Queue the first post, that way we know
+ * what author we're dealing with (if that is the case).
+ */
+ the_post();
+ printf( __( 'Author Archives: %s', '_s' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
+ /* Since we called the_post() above, we need to
+ * rewind the loop back to the beginning that way
+ * we can run the loop properly, in full.
+ */
+ rewind_posts();
- <?php _s_content_nav( 'nav-below' ); ?>
+ } elseif ( is_day() ) {
+ printf( __( 'Daily Archives: %s', '_s' ), '<span>' . get_the_date() . '</span>' );
- <?php else : ?>
+ } elseif ( is_month() ) {
+ printf( __( 'Monthly Archives: %s', '_s' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
- <?php get_template_part( 'no-results', 'archive' ); ?>
+ } elseif ( is_year() ) {
+ printf( __( 'Yearly Archives: %s', '_s' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
- <?php endif; ?>
+ } else {
+ _e( 'Archives', '_s' );
- </div><!-- #content .site-content -->
- </section><!-- #primary .content-area -->
+ }
+ ?>
+ </h1>
+ <?php
+ if ( is_category() ) {
+ // show an optional category description
+ $category_description = category_description();
+ if ( ! empty( $category_description ) )
+ echo apply_filters( 'category_archive_meta', '<div class="taxonomy-description">' . $category_description . '</div>' );
+
+ } elseif ( is_tag() ) {
+ // show an optional tag description
+ $tag_description = tag_description();
+ if ( ! empty( $tag_description ) )
+ echo apply_filters( 'tag_archive_meta', '<div class="taxonomy-description">' . $tag_description . '</div>' );
+ }
+ ?>
+ </header><!-- .page-header -->
+
+ <?php /* Start the Loop */ ?>
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <?php
+ /* Include the Post-Format-specific template for the content.
+ * If you want to overload this in a child theme then include a file
+ * called content-___.php (where ___ is the Post Format name) and that will be used instead.
+ */
+ get_template_part( 'content', get_post_format() );
+ ?>
+
+ <?php endwhile; ?>
+
+ <?php _s_content_nav( 'nav-below' ); ?>
+
+ <?php else : ?>
+
+ <?php get_template_part( 'no-results', 'archive' ); ?>
+
+ <?php endif; ?>
+
+ </div><!-- #content -->
+ </section><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
View
8 comments.php
@@ -36,7 +36,7 @@
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-above" class="navigation-comment" role="navigation">
- <h1 class="assistive-text"><?php _e( 'Comment navigation', '_s' ); ?></h1>
+ <h1 class="screen-reader-text"><?php _e( 'Comment navigation', '_s' ); ?></h1>
<div class="previous"><?php previous_comments_link( __( '&larr; Older Comments', '_s' ) ); ?></div>
<div class="next"><?php next_comments_link( __( 'Newer Comments &rarr;', '_s' ) ); ?></div>
</nav><!-- #comment-nav-before -->
@@ -52,11 +52,11 @@
*/
wp_list_comments( array( 'callback' => '_s_comment' ) );
?>
- </ol><!-- .commentlist -->
+ </ol><!-- .comment-list -->
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-below" class="navigation-comment" role="navigation">
- <h1 class="assistive-text"><?php _e( 'Comment navigation', '_s' ); ?></h1>
+ <h1 class="screen-reader-text"><?php _e( 'Comment navigation', '_s' ); ?></h1>
<div class="previous"><?php previous_comments_link( __( '&larr; Older Comments', '_s' ) ); ?></div>
<div class="next"><?php next_comments_link( __( 'Newer Comments &rarr;', '_s' ) ); ?></div>
</nav><!-- #comment-nav-below -->
@@ -73,4 +73,4 @@
<?php comment_form(); ?>
-</div><!-- #comments .comments-area -->
+</div><!-- #comments -->
View
2  content-page.php
@@ -17,4 +17,4 @@
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php edit_post_link( __( 'Edit', '_s' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
-</article><!-- #post-<?php the_ID(); ?> -->
+</article><!-- #post-## -->
View
2  content-single.php
@@ -56,4 +56,4 @@
<?php edit_post_link( __( 'Edit', '_s' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
-</article><!-- #post-<?php the_ID(); ?> -->
+</article><!-- #post-## -->
View
2  content.php
@@ -58,4 +58,4 @@
<?php edit_post_link( __( 'Edit', '_s' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
-</article><!-- #post-<?php the_ID(); ?> -->
+</article><!-- #post-## -->
View
6 footer.php
@@ -9,7 +9,7 @@
*/
?>
- </div><!-- #main .site-main -->
+ </div><!-- #main -->
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="site-info">
@@ -18,8 +18,8 @@
<span class="sep"> | </span>
<?php printf( __( 'Theme: %1$s by %2$s.', '_s' ), '_s', '<a href="http://automattic.com/" rel="designer">Automattic</a>' ); ?>
</div><!-- .site-info -->
- </footer><!-- #colophon .site-footer -->
-</div><!-- #page .hfeed .site -->
+ </footer><!-- #colophon -->
+</div><!-- #page -->
<?php wp_footer(); ?>
View
14 functions.php
@@ -122,12 +122,12 @@ function _s_register_custom_background() {
*/
function _s_widgets_init() {
register_sidebar( array(
- 'name' => __( 'Sidebar', '_s' ),
- 'id' => 'sidebar-1',
+ 'name' => __( 'Sidebar', '_s' ),
+ 'id' => 'sidebar-1',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
- 'after_widget' => '</aside>',
- 'before_title' => '<h1 class="widget-title">',
- 'after_title' => '</h1>',
+ 'after_widget' => '</aside>',
+ 'before_title' => '<h1 class="widget-title">',
+ 'after_title' => '</h1>',
) );
}
add_action( 'widgets_init', '_s_widgets_init' );
@@ -138,9 +138,9 @@ function _s_widgets_init() {
function _s_scripts() {
wp_enqueue_style( 'style', get_stylesheet_uri() );
- wp_enqueue_script( 'navigation', get_template_directory_uri() . '/js/navigation.js', null, '20120206', true );
+ wp_enqueue_script( 'navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );
- wp_enqueue_script( 'skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array( ), '20130115', true );
+ wp_enqueue_script( 'skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
View
6 header.php
@@ -33,10 +33,10 @@
<nav id="site-navigation" class="navigation-main" role="navigation">
<h1 class="menu-toggle"><?php _e( 'Menu', '_s' ); ?></h1>
- <div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', '_s' ); ?>"><?php _e( 'Skip to content', '_s' ); ?></a></div>
+ <div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', '_s' ); ?>"><?php _e( 'Skip to content', '_s' ); ?></a></div>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
- </nav><!-- .site-navigation .main-navigation -->
- </header><!-- #masthead .site-header -->
+ </nav><!-- #site-navigation -->
+ </header><!-- #masthead -->
<div id="main" class="site-main">
View
212 image.php
@@ -9,115 +9,115 @@
get_header();
?>
- <div id="primary" class="content-area image-attachment">
- <div id="content" class="site-content" role="main">
-
- <?php while ( have_posts() ) : the_post(); ?>
-
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <header class="entry-header">
- <h1 class="entry-title"><?php the_title(); ?></h1>
-
- <div class="entry-meta">
+ <div id="primary" class="content-area image-attachment">
+ <div id="content" class="site-content" role="main">
+
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+ <header class="entry-header">
+ <h1 class="entry-title"><?php the_title(); ?></h1>
+
+ <div class="entry-meta">
+ <?php
+ $metadata = wp_get_attachment_metadata();
+ printf( __( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>', '_s' ),
+ esc_attr( get_the_date( 'c' ) ),
+ esc_html( get_the_date() ),
+ wp_get_attachment_url(),
+ $metadata['width'],
+ $metadata['height'],
+ get_permalink( $post->post_parent ),
+ esc_attr( get_the_title( $post->post_parent ) ),
+ get_the_title( $post->post_parent )
+ );
+ ?>
+ <?php edit_post_link( __( 'Edit', '_s' ), '<span class="sep"> | </span> <span class="edit-link">', '</span>' ); ?>
+ </div><!-- .entry-meta -->
+
+ <nav role="navigation" id="image-navigation" class="navigation-image">
+ <div class="previous"><?php previous_image_link( false, __( '<span class="meta-nav">&larr;</span> Previous', '_s' ) ); ?></div>
+ <div class="next"><?php next_image_link( false, __( 'Next <span class="meta-nav">&rarr;</span>', '_s' ) ); ?></div>
+ </nav><!-- #image-navigation -->
+ </header><!-- .entry-header -->
+
+ <div class="entry-content">
+
+ <div class="entry-attachment">
+ <div class="attachment">
<?php
- $metadata = wp_get_attachment_metadata();
- printf( __( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>', '_s' ),
- esc_attr( get_the_date( 'c' ) ),
- esc_html( get_the_date() ),
- wp_get_attachment_url(),
- $metadata['width'],
- $metadata['height'],
- get_permalink( $post->post_parent ),
- esc_attr( get_the_title( $post->post_parent ) ),
- get_the_title( $post->post_parent )
- );
+ /**
+ * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
+ * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
+ */
+ $attachments = array_values( get_children( array(
+ 'post_parent' => $post->post_parent,
+ 'post_status' => 'inherit',
+ 'post_type' => 'attachment',
+ 'post_mime_type' => 'image',
+ 'order' => 'ASC',
+ 'orderby' => 'menu_order ID'
+ ) ) );
+ foreach ( $attachments as $k => $attachment ) {
+ if ( $attachment->ID == $post->ID )
+ break;
+ }
+ $k++;
+ // If there is more than 1 attachment in a gallery
+ if ( count( $attachments ) > 1 ) {
+ if ( isset( $attachments[ $k ] ) )
+ // get the URL of the next image attachment
+ $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
+ else
+ // or get the URL of the first image attachment
+ $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
+ } else {
+ // or, if there's only 1 image, get the URL of the image
+ $next_attachment_url = wp_get_attachment_url();
+ }
?>
- <?php edit_post_link( __( 'Edit', '_s' ), '<span class="sep"> | </span> <span class="edit-link">', '</span>' ); ?>
- </div><!-- .entry-meta -->
-
- <nav id="image-navigation" class="navigation-image">
- <span class="previous"><?php previous_image_link( false, __( '&larr; Previous', '_s' ) ); ?></span>
- <span class="next"><?php next_image_link( false, __( 'Next &rarr;', '_s' ) ); ?></span>
- </nav><!-- #image-navigation -->
- </header><!-- .entry-header -->
-
- <div class="entry-content">
-
- <div class="entry-attachment">
- <div class="attachment">
- <?php
- /**
- * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
- * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
- */
- $attachments = array_values( get_children( array(
- 'post_parent' => $post->post_parent,
- 'post_status' => 'inherit',
- 'post_type' => 'attachment',
- 'post_mime_type' => 'image',
- 'order' => 'ASC',
- 'orderby' => 'menu_order ID'
- ) ) );
- foreach ( $attachments as $k => $attachment ) {
- if ( $attachment->ID == $post->ID )
- break;
- }
- $k++;
- // If there is more than 1 attachment in a gallery
- if ( count( $attachments ) > 1 ) {
- if ( isset( $attachments[ $k ] ) )
- // get the URL of the next image attachment
- $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
- else
- // or get the URL of the first image attachment
- $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
- } else {
- // or, if there's only 1 image, get the URL of the image
- $next_attachment_url = wp_get_attachment_url();
- }
- ?>
-
- <a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
- $attachment_size = apply_filters( '_s_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
- echo wp_get_attachment_image( $post->ID, $attachment_size );
- ?></a>
- </div><!-- .attachment -->
-
- <?php if ( ! empty( $post->post_excerpt ) ) : ?>
- <div class="entry-caption">
- <?php the_excerpt(); ?>
- </div><!-- .entry-caption -->
- <?php endif; ?>
- </div><!-- .entry-attachment -->
-
- <?php the_content(); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
-
- </div><!-- .entry-content -->
-
- <footer class="entry-meta">
- <?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
- <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', '_s' ), get_trackback_url() ); ?>
- <?php elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open ?>
- <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', '_s' ), get_trackback_url() ); ?>
- <?php elseif ( comments_open() && ! pings_open() ) : // Only comments open ?>
- <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', '_s' ); ?>
- <?php elseif ( ! comments_open() && ! pings_open() ) : // Comments and trackbacks closed ?>
- <?php _e( 'Both comments and trackbacks are currently closed.', '_s' ); ?>
- <?php endif; ?>
- <?php edit_post_link( __( 'Edit', '_s' ), ' <span class="edit-link">', '</span>' ); ?>
- </footer><!-- .entry-meta -->
- </article><!-- #post-<?php the_ID(); ?> -->
-
- <?php
- // If comments are open or we have at least one comment, load up the comment template
- if ( comments_open() || '0' != get_comments_number() )
- comments_template( '', true );
- ?>
- <?php endwhile; // end of the loop. ?>
+ <a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
+ $attachment_size = apply_filters( '_s_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
+ echo wp_get_attachment_image( $post->ID, $attachment_size );
+ ?></a>
+ </div><!-- .attachment -->
- </div><!-- #content .site-content -->
- </div><!-- #primary .content-area .image-attachment -->
+ <?php if ( ! empty( $post->post_excerpt ) ) : ?>
+ <div class="entry-caption">
+ <?php the_excerpt(); ?>
+ </div><!-- .entry-caption -->
+ <?php endif; ?>
+ </div><!-- .entry-attachment -->
+
+ <?php the_content(); ?>
+ <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
+
+ </div><!-- .entry-content -->
+
+ <footer class="entry-meta">
+ <?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
+ <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', '_s' ), get_trackback_url() ); ?>
+ <?php elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open ?>
+ <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', '_s' ), get_trackback_url() ); ?>
+ <?php elseif ( comments_open() && ! pings_open() ) : // Only comments open ?>
+ <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', '_s' ); ?>
+ <?php elseif ( ! comments_open() && ! pings_open() ) : // Comments and trackbacks closed ?>
+ <?php _e( 'Both comments and trackbacks are currently closed.', '_s' ); ?>
+ <?php endif; ?>
+ <?php edit_post_link( __( 'Edit', '_s' ), ' <span class="edit-link">', '</span>' ); ?>
+ </footer><!-- .entry-meta -->
+ </article><!-- #post-<?php the_ID(); ?> -->
+
+ <?php
+ // If comments are open or we have at least one comment, load up the comment template
+ if ( comments_open() || '0' != get_comments_number() )
+ comments_template();
+ ?>
+
+ <?php endwhile; // end of the loop. ?>
+
+ </div><!-- #content -->
+ </div><!-- #primary -->
<?php get_footer(); ?>
View
2  inc/custom-header.php
@@ -119,7 +119,7 @@ function _s_header_style() {
?>
.site-title a,
.site-description {
- color: #<?php echo get_header_textcolor(); ?> !important;
+ color: #<?php echo get_header_textcolor(); ?>;
}
<?php endif; ?>
</style>
View
7 inc/customizer.php
@@ -14,8 +14,9 @@
* @since _s 1.2
*/
function _s_customize_register( $wp_customize ) {
- $wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
- $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
+ $wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
+ $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
+ $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
}
add_action( 'customize_register', '_s_customize_register' );
@@ -25,6 +26,6 @@ function _s_customize_register( $wp_customize ) {
* @since _s 1.2
*/
function _s_customize_preview_js() {
- wp_enqueue_script( '_s_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20120827', true );
+ wp_enqueue_script( '_s_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130304', true );
}
add_action( 'customize_preview_init', '_s_customize_preview_js' );
View
11 inc/template-tags.php
@@ -34,7 +34,7 @@ function _s_content_nav( $nav_id ) {
?>
<nav role="navigation" id="<?php echo esc_attr( $nav_id ); ?>" class="<?php echo $nav_class; ?>">
- <h1 class="assistive-text"><?php _e( 'Post navigation', '_s' ); ?></h1>
+ <h1 class="screen-reader-text"><?php _e( 'Post navigation', '_s' ); ?></h1>
<?php if ( is_single() ) : // navigation links for single posts ?>
@@ -73,7 +73,7 @@ function _s_comment( $comment, $args, $depth ) {
case 'trackback' :
?>
<li class="post pingback">
- <p><?php _e( 'Pingback:', '_s' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', '_s' ), ' ' ); ?></p>
+ <p><?php _e( 'Pingback:', '_s' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', '_s' ), '<span class="edit-link">', '<span>' ); ?></p>
<?php
break;
default :
@@ -92,12 +92,9 @@ function _s_comment( $comment, $args, $depth ) {
<div class="comment-meta commentmetadata">
<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time datetime="<?php comment_time( 'c' ); ?>">
- <?php
- /* translators: 1: date, 2: time */
- printf( __( '%1$s at %2$s', '_s' ), get_comment_date(), get_comment_time() ); ?>
+ <?php printf( _x( '%1$s at %2$s', '1: date, 2: time', '_s' ), get_comment_date(), get_comment_time() ); ?>
</time></a>
- <?php edit_comment_link( __( '(Edit)', '_s' ), ' ' );
- ?>
+ <?php edit_comment_link( __( 'Edit', '_s' ), '<span class="edit-link">', '<span>' ); ?>
</div><!-- .comment-meta .commentmetadata -->
</footer>
View
8 inc/wpcom.php
@@ -15,9 +15,9 @@
* @since _s 1.0
*/
$themecolors = array(
- 'bg' => '',
+ 'bg' => '',
'border' => '',
- 'text' => '',
- 'link' => '',
- 'url' => '',
+ 'text' => '',
+ 'link' => '',
+ 'url' => '',
);
View
38 index.php
@@ -14,34 +14,34 @@
get_header(); ?>
- <div id="primary" class="content-area">
- <div id="content" class="site-content" role="main">
+ <div id="primary" class="content-area">
+ <div id="content" class="site-content" role="main">
- <?php if ( have_posts() ) : ?>
+ <?php if ( have_posts() ) : ?>
- <?php /* Start the Loop */ ?>
- <?php while ( have_posts() ) : the_post(); ?>
+ <?php /* Start the Loop */ ?>
+ <?php while ( have_posts() ) : the_post(); ?>
- <?php
- /* Include the Post-Format-specific template for the content.
- * If you want to overload this in a child theme then include a file
- * called content-___.php (where ___ is the Post Format name) and that will be used instead.
- */
- get_template_part( 'content', get_post_format() );
- ?>
+ <?php
+ /* Include the Post-Format-specific template for the content.
+ * If you want to overload this in a child theme then include a file
+ * called content-___.php (where ___ is the Post Format name) and that will be used instead.
+ */
+ get_template_part( 'content', get_post_format() );
+ ?>
- <?php endwhile; ?>
+ <?php endwhile; ?>
- <?php _s_content_nav( 'nav-below' ); ?>
+ <?php _s_content_nav( 'nav-below' ); ?>
- <?php else : ?>
+ <?php else : ?>
- <?php get_template_part( 'no-results', 'index' ); ?>
+ <?php get_template_part( 'no-results', 'index' ); ?>
- <?php endif; ?>
+ <?php endif; ?>
- </div><!-- #content .site-content -->
- </div><!-- #primary .content-area -->
+ </div><!-- #content -->
+ </div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
View
6 js/customizer.js
@@ -16,4 +16,10 @@
$( '.site-description' ).text( to );
} );
} );
+ // Header text color.
+ wp.customize( 'header_textcolor', function( value ) {
+ value.bind( function( to ) {
+ $( '.site-title a, .site-description' ).css( 'color', to );
+ } );
+ } );
} )( jQuery );
View
40 js/skip-link-focus-fix.js
@@ -1,25 +1,19 @@
( function() {
-var is_webkit = navigator.userAgent.toLowerCase().indexOf('webkit') > -1;
-var is_opera = navigator.userAgent.toLowerCase().indexOf('opera') > -1;
-var is_ie = navigator.userAgent.toLowerCase().indexOf('msie') > -1;
-
-if((is_webkit || is_opera || is_ie ) && typeof(document.getElementById) !== 'undefined' ) {
- var eventMethod = (window.addEventListener) ? 'addEventListener' : 'attachEvent' ;
- window[eventMethod]("hashchange", function(event) {
-
- var element = document.getElementById(location.hash.substring(1));
-
- if (element) {
-
- if (!/^(?:a|select|input|button|textarea)$/i.test(element.tagName)) {
- element.tabIndex = -1;
- }
-
- element.focus();
- }
-
- }, false);
-
-}
-
+ var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1,
+ is_opera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1,
+ is_ie = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1;
+
+ if ( ( is_webkit || is_opera || is_ie ) && 'undefined' !== typeof( document.getElementById ) ) {
+ var eventMethod = ( window.addEventListener ) ? 'addEventListener' : 'attachEvent';
+ window[ eventMethod ]( 'hashchange', function() {
+ var element = document.getElementById( location.hash.substring( 1 ) );
+
+ if ( element ) {
+ if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) )
+ element.tabIndex = -1;
+
+ element.focus();
+ }
+ }, false );
+ }
})();
View
24 page.php
@@ -13,23 +13,23 @@
get_header(); ?>
- <div id="primary" class="content-area">
- <div id="content" class="site-content" role="main">
+ <div id="primary" class="content-area">
+ <div id="content" class="site-content" role="main">
- <?php while ( have_posts() ) : the_post(); ?>
+ <?php while ( have_posts() ) : the_post(); ?>
- <?php get_template_part( 'content', 'page' ); ?>
+ <?php get_template_part( 'content', 'page' ); ?>
- <?php
- // If comments are open or we have at least one comment, load up the comment template
- if ( comments_open() || '0' != get_comments_number() )
- comments_template( '', true );
- ?>
+ <?php
+ // If comments are open or we have at least one comment, load up the comment template
+ if ( comments_open() || '0' != get_comments_number() )
+ comments_template();
+ ?>
- <?php endwhile; // end of the loop. ?>
+ <?php endwhile; // end of the loop. ?>
- </div><!-- #content .site-content -->
- </div><!-- #primary .content-area -->
+ </div><!-- #content -->
+ </div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
View
32 search.php
@@ -8,32 +8,32 @@
get_header(); ?>
- <section id="primary" class="content-area">
- <div id="content" class="site-content" role="main">
+ <section id="primary" class="content-area">
+ <div id="content" class="site-content" role="main">
- <?php if ( have_posts() ) : ?>
+ <?php if ( have_posts() ) : ?>
- <header class="page-header">
- <h1 class="page-title"><?php printf( __( 'Search Results for: %s', '_s' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
- </header><!-- .page-header -->
+ <header class="page-header">
+ <h1 class="page-title"><?php printf( __( 'Search Results for: %s', '_s' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
+ </header><!-- .page-header -->
- <?php /* Start the Loop */ ?>
- <?php while ( have_posts() ) : the_post(); ?>
+ <?php /* Start the Loop */ ?>
+ <?php while ( have_posts() ) : the_post(); ?>
- <?php get_template_part( 'content', 'search' ); ?>
+ <?php get_template_part( 'content', 'search' ); ?>
- <?php endwhile; ?>
+ <?php endwhile; ?>
- <?php _s_content_nav( 'nav-below' ); ?>
+ <?php _s_content_nav( 'nav-below' ); ?>
- <?php else : ?>
+ <?php else : ?>
- <?php get_template_part( 'no-results', 'search' ); ?>
+ <?php get_template_part( 'no-results', 'search' ); ?>
- <?php endif; ?>
+ <?php endif; ?>
- </div><!-- #content .site-content -->
- </section><!-- #primary .content-area -->
+ </div><!-- #content -->
+ </section><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
View
2  searchform.php
@@ -7,7 +7,7 @@
*/
?>
<form method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
- <label for="s" class="assistive-text"><?php _ex( 'Search', 'assistive text', '_s' ); ?></label>
+ <label for="s" class="screen-reader-text"><?php _ex( 'Search', 'assistive text', '_s' ); ?></label>
<input type="search" class="field" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" id="s" placeholder="<?php echo esc_attr_x( 'Search &hellip;', 'placeholder', '_s' ); ?>" />
<input type="submit" class="submit" id="searchsubmit" value="<?php echo esc_attr_x( 'Search', 'submit button', '_s' ); ?>" />
</form>
View
44 sidebar.php
@@ -6,29 +6,29 @@
* @since _s 1.0
*/
?>
- <div id="secondary" class="widget-area" role="complementary">
- <?php do_action( 'before_sidebar' ); ?>
- <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
+ <div id="secondary" class="widget-area" role="complementary">
+ <?php do_action( 'before_sidebar' ); ?>
+ <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
- <aside id="search" class="widget widget_search">
- <?php get_search_form(); ?>
- </aside>
+ <aside id="search" class="widget widget_search">
+ <?php get_search_form(); ?>
+ </aside>
- <aside id="archives" class="widget">
- <h1 class="widget-title"><?php _e( 'Archives', '_s' ); ?></h1>
- <ul>
- <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
- </ul>
- </aside>
+ <aside id="archives" class="widget">
+ <h1 class="widget-title"><?php _e( 'Archives', '_s' ); ?></h1>
+ <ul>
+ <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
+ </ul>
+ </aside>
- <aside id="meta" class="widget">
- <h1 class="widget-title"><?php _e( 'Meta', '_s' ); ?></h1>
- <ul>
- <?php wp_register(); ?>
- <li><?php wp_loginout(); ?></li>
- <?php wp_meta(); ?>
- </ul>
- </aside>
+ <aside id="meta" class="widget">
+ <h1 class="widget-title"><?php _e( 'Meta', '_s' ); ?></h1>
+ <ul>
+ <?php wp_register(); ?>
+ <li><?php wp_loginout(); ?></li>
+ <?php wp_meta(); ?>
+ </ul>
+ </aside>
- <?php endif; // end sidebar widget area ?>
- </div><!-- #secondary .widget-area -->
+ <?php endif; // end sidebar widget area ?>
+ </div><!-- #secondary -->
View
26 single.php
@@ -8,25 +8,25 @@
get_header(); ?>
- <div id="primary" class="content-area">
- <div id="content" class="site-content" role="main">
+ <div id="primary" class="content-area">
+ <div id="content" class="site-content" role="main">
- <?php while ( have_posts() ) : the_post(); ?>
+ <?php while ( have_posts() ) : the_post(); ?>
- <?php get_template_part( 'content', 'single' ); ?>
+ <?php get_template_part( 'content', 'single' ); ?>
- <?php _s_content_nav( 'nav-below' ); ?>
+ <?php _s_content_nav( 'nav-below' ); ?>
- <?php
- // If comments are open or we have at least one comment, load up the comment template
- if ( comments_open() || '0' != get_comments_number() )
- comments_template( '', true );
- ?>
+ <?php
+ // If comments are open or we have at least one comment, load up the comment template
+ if ( comments_open() || '0' != get_comments_number() )
+ comments_template();
+ ?>
- <?php endwhile; // end of the loop. ?>
+ <?php endwhile; // end of the loop. ?>
- </div><!-- #content .site-content -->
- </div><!-- #primary .content-area -->
+ </div><!-- #content -->
+ </div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
View
80 style.css
@@ -11,6 +11,7 @@ Tags:
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
+Find out more at Underscores.me.
Resetting and rebuilding styles have been helped along thanks to the fine work of
Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
@@ -130,7 +131,8 @@ ul {
ol {
list-style: decimal;
}
-ul ul, ol ol, ul ol, ol ul {
+li > ul,
+li > ol {
margin-bottom: 0;
margin-left: 1.5em;
}
@@ -226,26 +228,26 @@ input[type="submit"] {
border-color: #ccc #ccc #bbb #ccc;
border-radius: 3px;
background: #e6e6e6;
- -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 15px 17px rgba(255,255,255,0.5), inset 0 -5px 12px rgba(0,0,0,0.05);
- -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 15px 17px rgba(255,255,255,0.5), inset 0 -5px 12px rgba(0,0,0,0.05);
- box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 15px 17px rgba(255,255,255,0.5), inset 0 -5px 12px rgba(0,0,0,0.05);
- color: rgba(0,0,0,.8);
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05);
+ -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05);
+ color: rgba(0, 0, 0, .8);
cursor: pointer; /* Improves usability and consistency of cursor style between image-type 'input' and others */
-webkit-appearance: button; /* Corrects inability to style clickable 'input' types in iOS */
font-size: 12px;
font-size: 1.2rem;
line-height: 1;
padding: .6em 1em .4em;
- text-shadow: 0 1px 0 rgba(255,255,255,.8);
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
border-color: #ccc #bbb #aaa #bbb;
- -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 15px 17px rgba(255,255,255,0.8), inset 0 -5px 12px rgba(0,0,0,0.02);
- -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 15px 17px rgba(255,255,255,0.8), inset 0 -5px 12px rgba(0,0,0,0.02);
- box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 15px 17px rgba(255,255,255,0.8), inset 0 -5px 12px rgba(0,0,0,0.02);
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 15px 17px rgba(255, 255, 255, 0.8), inset 0 -5px 12px rgba(0, 0, 0, 0.02);
+ -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 15px 17px rgba(255, 255, 255, 0.8), inset 0 -5px 12px rgba(0, 0, 0, 0.02);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 15px 17px rgba(255, 255, 255, 0.8), inset 0 -5px 12px rgba(0, 0, 0, 0.02);
}
button:focus,
html input[type="button"]:focus,
@@ -256,9 +258,9 @@ html input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
border-color: #aaa #bbb #bbb #bbb;
- -webkit-box-shadow: inset 0 -1px 0 rgba(255,255,255,0.5), inset 0 2px 5px rgba(0,0,0,0.15);
- -moz-box-shadow: inset 0 -1px 0 rgba(255,255,255,0.5), inset 0 2px 5px rgba(0,0,0,0.15);
- box-shadow: inset 0 -1px 0 rgba(255,255,255,0.5), inset 0 2px 5px rgba(0,0,0,0.15);
+ -webkit-box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
+ -moz-box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
+ box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
}
input[type="checkbox"],
input[type="radio"] {
@@ -267,9 +269,9 @@ input[type="radio"] {
}
input[type="search"] {
-webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */
- -moz-box-sizing: content-box;
-webkit-box-sizing: content-box; /* Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof) */
- box-sizing: content-box;
+ -moz-box-sizing: content-box;
+ box-sizing: content-box;
}
input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */
-webkit-appearance: none;
@@ -339,12 +341,49 @@ a:active {
}
/* Text meant only for screen readers */
-.assistive-text {
- clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
+.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
}
+.screen-reader-text:hover,
+.screen-reader-text:active,
+.screen-reader-text:focus {
+ background-color: #f1f1f1;
+ border-radius: 3px;
+ box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
+ clip: auto !important;
+ color: #21759b;
+ display: block;
+ font-size: 14px;
+ font-weight: bold;
+ height: auto;
+ left: 5px;
+ line-height: normal;
+ padding: 15px 23px 14px;
+ text-decoration: none;
+ top: 5px;
+ width: auto;
+ z-index: 100000; /* Above WP toolbar */
+}
+
+/* Clearing */
+.clear:before,
+.clear:after,
+[class*="content"]:before,
+[class*="content"]:after,
+[class*="site"]:before,
+[class*="site"]:after {
+ content: '';
+ display: table;
+}
+
+.clear:after,
+[class*="content"]:after,
+[class*="site"]:after {
+ clear: both;
+}
+
/* =Menu
----------------------------------------------- */
@@ -369,9 +408,9 @@ a:active {
text-decoration: none;
}
.navigation-main ul ul {
- -moz-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
- -webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
- box-shadow: 0 3px 3px rgba(0,0,0,0.2);
+ -webkit-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
+ -moz-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
+ box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
display: none;
float: left;
position: absolute;
@@ -430,9 +469,6 @@ a:active {
.hentry {
margin: 0 0 1.5em;
}
-.entry-meta {
- clear: both;
-}
.byline {
display: none;
}
Something went wrong with that request. Please try again.