Making WordPress.org

Changeset 780


Ignore:
Timestamp:
08/12/2014 06:20:51 AM (12 years ago)
Author:
coffee2code
Message:

Code Reference: add handbook styles. props nicolealleyinteractivecom

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-handbook.php

    r591 r780  
    66 */
    77?>
    8 <li id="prologue-<?php the_ID(); ?>" <?php post_class(); ?>>
    9         <h4>
    10                 <span class="meta">
    11                         <span class="actions">
    12                                 <a href="<?php the_permalink(); ?>" class="thepermalink printer-only" title="<?php esc_attr_e( 'Permalink', 'wporg' ); ?>"><?php _e( 'Permalink', 'wporg' ); ?></a>
    13                                 <?php
    14                                 if ( comments_open() && ! post_password_required() ) {
    15                                                 echo post_reply_link( array(
    16                                                         'before'        => isset( $before_reply_link ) ? $before_reply_link : '',
    17                                                         'after'         => '',
    18                                                         'reply_text'    => __( 'Reply', 'wporg' ),
    19                                                         'add_below'     => 'comments'
    20                                                 ), get_the_ID() );
    21                                 }
    228
    23                                 if ( current_user_can( 'edit_post', get_the_ID() ) ) : ?> | <a href="<?php echo ( get_edit_post_link( get_the_ID() ) ); ?>" class="edit-post-link" rel="<?php the_ID(); ?>" title="<?php esc_attr_e( 'Edit', 'wporg' ); ?>"><?php _e( 'Edit', 'wporg' ); ?></a>
    24                                 <?php endif; ?>
     9<h1><?php the_title(); ?></h1>
    2510
    26                                 <?php do_action( 'wporg_action_links' ); ?>
    27                         </span>
    28                         <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : ?>
    29                                 <span class="tags">
    30                                         <?php tags_with_count( '', __( '<br />Tags:' , 'wporg' ) .' ', ', ', ' &nbsp;' ); ?>&nbsp;
    31                                 </span>
    32                         <?php endif; ?>
    33                 </span>
    34         </h4>
     11<?php
     12/*
     13 * Content
     14 */
     15?>
    3516
    36         <?php
    37         /*
    38          * Content
    39          */
    40         ?>
     17<?php the_content( __( '(More ...)' , 'wporg' ) ); ?>
    4118
    42         <div id="content-<?php the_ID(); ?>" class="postcontent">
    43         <?php the_content( __( '(More ...)' , 'wporg' ) ); ?>
    44         </div>
    45 
    46         <?php
    47         /*
    48          * Comments
    49          */
    50 
    51         $comment_field = '<div class="form"><textarea id="comment" class="expand50-100" name="comment" cols="45" rows="3"></textarea></div> <label class="post-error" for="comment" id="commenttext_error"></label>';
    52 
    53         $comment_notes_before = '<p class="comment-notes">' . ( get_option( 'require_name_email' ) ? sprintf( ' ' . __( 'Required fields are marked %s', 'wporg' ), '<span class="required">*</span>' ) : '' ) . '</p>';
    54 
    55         $wporg_comment_args = array(
    56                 'title_reply'           => __( 'Reply', 'wporg' ),
    57                 'comment_field'         => $comment_field,
    58                 'comment_notes_before'  => $comment_notes_before,
    59                 'comment_notes_after'   => '<span class="progress spinner-comment-new"></span>',
    60                 'label_submit'          => __( 'Reply', 'wporg' ),
    61                 'id_submit'             => 'comment-submit',
    62         );
    63 
    64         ?>
    65 
    66         <?php if ( get_comments_number() > 0 && ! post_password_required() ) : ?>
    67                 <div class="discussion" style="display: none">
    68                         <p>
    69                                 <?php wporg_discussion_links(); ?>
    70                                 <a href="#" class="show-comments"><?php _e( 'Toggle Comments', 'wporg' ); ?></a>
    71                         </p>
    72                 </div>
    73         <?php endif;
    74 
    75         wp_link_pages( array( 'before' => '<p class="page-nav">' . __( 'Pages:', 'wporg' ) ) ); ?>
    76 
    77         <div class="bottom-of-entry">&nbsp;</div>
    78 
    79 </li>
     19<div class="bottom-of-entry">&nbsp;</div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/global.scss

    r591 r780  
    2121h1, h2, h3, h4, h5, h6 {
    2222        clear: both;
     23        font-family: $header-font;
     24        font-weight: 300;
    2325}
    2426hr {
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss

    r744 r780  
    3434                h6 {
    3535                        color: #1e1e1e;
    36                         font-family: $header-font;
    37                 }
    38 
    39         }
    40 
    41         h2.widget-title,
    42         h3.widget-title {
    43                 font-family: $header-font;
     36                }
     37
    4438        }
    4539
     
    5347        }
    5448
    55         h2 {
     49        h1 {
    5650                font-size: 28px;
    5751                font-size: 2.8rem;
     
    5953                line-height: 3.2rem;
    6054        }
    61         h3 {
     55        h2 {
    6256                font-size: 22px;
    6357                font-size: 2.2rem;
    6458                line-height: 26px;
    6559                line-height: 2.6rem;
     60        }
     61        h3 {
     62                font-size: 20px;
     63                font-size: 2rem;
     64                line-height: 24px;
     65                line-height: 2.4rem;
    6666        }
    6767        h4 {
     
    372372
    373373        .site-header {
    374             background: none repeat scroll 0 0 #F7F7F7;
    375         border-bottom: 1px solid #DFDFDF;
    376                 height: 62px;
     374                background: none repeat scroll 0 0 #F7F7F7;
     375                border-bottom: 1px solid #DFDFDF;
     376                height: 62px;
     377                margin-bottom: 1em;
    377378        }
    378379        .site-branding {
     
    400401                font-size: 13px;
    401402                font-size: 1.3rem;
    402         }
    403         .breadcrumb-trail {
    404                 margin-top: 1em;
    405403        }
    406404        h1.entry-title,
     
    10691067
    10701068        }
     1069
     1070        nav.post-navigation .nav-links a {
     1071                width: 49%;
     1072                display: inline-block;
     1073                &[rel="prev"] {
     1074                        text-align: left;
     1075                }
     1076                &[rel="next"] {
     1077                        text-align: right;
     1078                }
     1079        }
    10711080}
    10721081
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/single-plugin-handbook.php

    r591 r780  
    1212                <?php breadcrumb_trail(); ?>
    1313
    14                 <main id="main" class="site-main" role="main">
     14                <main id="main" <?php post_class( 'site-main' ); ?> role="main">
    1515
    1616                <?php while ( have_posts() ) : the_post(); ?>
     
    2020                        <?php wporg_developer_post_nav(); ?>
    2121
    22                         <?php
    23                                 // If comments are open or we have at least one comment, load up the comment template
    24                                 if ( comments_open() || '0' != get_comments_number() ) :
    25                                         comments_template();
    26                                 endif;
    27                         ?>
    28 
    2922                <?php endwhile; // end of the loop. ?>
    3023
    3124                </main><!-- #main -->
    32         <?php get_sidebar(); ?>
     25                <?php get_sidebar(); ?>
    3326        </div><!-- #primary -->
    3427<?php get_footer(); ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/single-theme-handbook.php

    r591 r780  
    1212                <?php breadcrumb_trail(); ?>
    1313
    14                 <main id="main" class="site-main" role="main">
     14                <main id="main" <?php post_class( 'site-main' ); ?> role="main">
    1515
    1616                <?php while ( have_posts() ) : the_post(); ?>
     
    2020                        <?php wporg_developer_post_nav(); ?>
    2121
    22                         <?php
    23                                 // If comments are open or we have at least one comment, load up the comment template
    24                                 if ( comments_open() || '0' != get_comments_number() ) :
    25                                         comments_template();
    26                                 endif;
    27                         ?>
    28 
    2922                <?php endwhile; // end of the loop. ?>
    3023
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/global.css

    r591 r780  
    1616h1, h2, h3, h4, h5, h6 {
    1717  clear: both;
     18  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
     19  font-weight: 300;
    1820}
    1921
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css

    r744 r780  
    323323.devhub-wrap .site-main h6 {
    324324  color: #1e1e1e;
    325   font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
    326 }
    327 .devhub-wrap h2.widget-title,
    328 .devhub-wrap h3.widget-title {
    329   font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
    330325}
    331326.devhub-wrap #headline h2 a {
     
    335330  line-height: 1em;
    336331  text-shadow: #fff 0px 1px 0px;
    337   font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
    338 }
    339 .devhub-wrap h2 {
     332}
     333.devhub-wrap h1 {
    340334  font-size: 28px;
    341335  font-size: 2.8rem;
     
    343337  line-height: 3.2rem;
    344338}
    345 .devhub-wrap h3 {
     339.devhub-wrap h2 {
    346340  font-size: 22px;
    347341  font-size: 2.2rem;
    348342  line-height: 26px;
    349343  line-height: 2.6rem;
     344}
     345.devhub-wrap h3 {
     346  font-size: 20px;
     347  font-size: 2rem;
     348  line-height: 24px;
     349  line-height: 2.4rem;
    350350}
    351351.devhub-wrap h4 {
     
    642642  border-bottom: 1px solid #DFDFDF;
    643643  height: 62px;
     644  margin-bottom: 1em;
    644645}
    645646.devhub-wrap .site-branding {
     
    666667.devhub-wrap .breadcrumbs .active {
    667668  font-weight: 600;
    668 }
    669 .devhub-wrap .breadcrumb-trail {
    670   margin-top: 1em;
    671669}
    672670.devhub-wrap h1.entry-title,
     
    12201218  width: 100%;
    12211219}
     1220.devhub-wrap nav.post-navigation .nav-links a {
     1221  width: 49%;
     1222  display: inline-block;
     1223}
     1224.devhub-wrap nav.post-navigation .nav-links a[rel="prev"] {
     1225  text-align: left;
     1226}
     1227.devhub-wrap nav.post-navigation .nav-links a[rel="next"] {
     1228  text-align: right;
     1229}
    12221230
    12231231@media (max-width: 60em) {
Note: See TracChangeset for help on using the changeset viewer.