Making WordPress.org

Changeset 1702


Ignore:
Timestamp:
07/04/2015 10:01:00 PM (9 years ago)
Author:
ocean90
Message:

Forums theme: Enqueue style.css from theme root.

  • Enqueue forum-wp4-style after bb-base.
  • Add .col-12 wrapper to fix missing left/right margins and update width of .content and .sidebar wrappers.
  • Add some space between sidebar items.
  • Remove dashicon from #headline.

see #376.

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

Legend:

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

    r1521 r1702  
    1010<div id="pagebody">
    1111    <div class="wrapper">
    12         <div class="content">
    13             <div id="lang-guess-wrap" style="margin-bottom: 1em;"></div>
     12        <div class="col-12">
     13            <div class="content">
     14                <?php while ( have_posts() ) : the_post(); ?>
    1415
    15             <?php while ( have_posts() ) : the_post(); ?>
     16                    <?php the_content(); ?>
    1617
    17                 <?php the_content(); ?>
     18                <?php endwhile; ?>
     19            </div>
    1820
    19             <?php endwhile; ?>
    20 
     21            <?php get_sidebar(); ?>
    2122        </div>
    22 
    23         <?php get_sidebar(); ?>
    2423
    2524    </div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/functions.php

    r1579 r1702  
    2121 */
    2222function wporg_support_scripts() {
    23     wp_enqueue_style( 'forum-wp4-style', get_template_directory_uri() . '/css/forum-wp4.css' );
    24     wp_enqueue_style( 'bb-base', '//bbpress.org/wp-content/themes/bb-base/style.css?ver=20150216d' );
     23
     24    wp_register_style(
     25        'bb-base',
     26        '//bbpress.org/wp-content/themes/bb-base/style.css',
     27        array(),
     28        '20150216d'
     29    );
     30
     31    wp_register_style(
     32        'forum-wp4-style',
     33        get_template_directory_uri() . '/style.css',
     34        array( 'bb-base' ),
     35        '20150704'
     36    );
     37
     38    wp_enqueue_style( 'forum-wp4-style' );
    2539}
    2640add_action( 'wp_enqueue_scripts', 'wporg_support_scripts' );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/page.php

    r1521 r1702  
    1515<div id="pagebody">
    1616    <div class="wrapper">
    17         <div id="lang-guess-wrap" style="margin-bottom: 1em;"></div>
    18 
     17        <div class="col-12">
    1918            <?php while ( have_posts() ) : the_post(); ?>
    2019
     
    2221
    2322            <?php endwhile; // end of the loop. ?>
    24 
     23        </div>
    2524    </div>
    2625</div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/sidebar.php

    r1536 r1702  
    1212            </div>
    1313
    14             <?php bb_base_topic_search_form(); ?>
     14            <div>
     15                <?php bb_base_topic_search_form(); ?>
     16            </div>
    1517
    1618            <div>
     
    3941            </div>
    4042
    41             <?php bb_base_reply_search_form(); ?>
     43            <div>
     44                <?php bb_base_reply_search_form(); ?>
     45            </div>
    4246
    4347            <?php if ( current_user_can( 'moderate', bbp_get_topic_id() ) ) : ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/style.css

    r1521 r1702  
    1818 */
    1919
     20/**
     21 * 1.0 General
     22 */
     23
    2024html,
    2125body {
     
    2529#headline {
    2630    background: #f7f7f7;
    27     border-bottom: 1px solid #dfdfdf;   
     31    border-bottom: 1px solid #dfdfdf;
    2832}
    2933
    30 /**
    31 * 1.0 Dashicons
    32 */
    33 body #headline h2 a:before {
    34     -webkit-font-smoothing: antialiased;
    35     display: inline-block;
    36     font: normal 28px/1 'dashicons';
    37     vertical-align: top;
    38     width: 36px;
     34a:hover {
     35    text-decoration: none;
    3936}
    40 body #headline h2 a:before { content: '\f110'; }
    4137
    4238/**
     
    4541
    4642.hidden,
    47 #accessibility  {
     43#accessibility {
    4844    height: 0;
    4945    width: 0;
     
    10298    padding-left: 0;
    10399}
     100
     101.sidebar > div {
     102    margin-bottom: 22px;
     103}
     104
     105ul#views {
     106    margin: 2px 0 20px;
     107    font-size: 12px;
     108}
     109
     110#views li {
     111    list-style: none;
     112    display: inline;
     113}
     114
     115@media screen and ( min-width: 960px )  {
     116
     117    div.content {
     118        width: 692px;
     119    }
     120
     121    div.sidebar {
     122        width: 212px;
     123    }
     124}
Note: See TracChangeset for help on using the changeset viewer.