WordPress.org

Making WordPress.org

Changeset 3389


Ignore:
Timestamp:
06/16/2016 01:22:49 PM (5 years ago)
Author:
obenland
Message:

Plugin Directory: Updated styles for archive pages.

See #1719.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style-rtl.css

    r3359 r3389  
    20772077
    20782078/*--------------------------------------------------------------
    2079 ## 404
     2079## Template Hierarchy
    20802080--------------------------------------------------------------*/
    20812081.error404 {
     
    21722172}
    21732173
    2174 /*--------------------------------------------------------------
    2175 ## Pages
    2176 --------------------------------------------------------------*/
    21772174.page .type-page {
    21782175  margin: 0 auto;
     
    21842181  margin-right: -6.5rem;
    21852182  margin-left: -6.5rem;
     2183}
     2184
     2185.archive .site-main {
     2186  margin-top: 32px;
     2187  margin-top: 2rem;
     2188  padding: 0 10px;
     2189}
     2190
     2191.archive .page-header {
     2192  margin: 32px 0;
     2193  margin: 2rem 0;
    21862194}
    21872195
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style.css

    r3356 r3389  
    20772077
    20782078/*--------------------------------------------------------------
    2079 ## 404
     2079## Template Hierarchy
    20802080--------------------------------------------------------------*/
    20812081.error404 {
     
    21722172}
    21732173
    2174 /*--------------------------------------------------------------
    2175 ## Pages
    2176 --------------------------------------------------------------*/
    21772174.page .type-page {
    21782175  margin: 0 auto;
     
    21842181  margin-left: -6.5rem;
    21852182  margin-right: -6.5rem;
     2183}
     2184
     2185.archive .site-main {
     2186  margin-top: 32px;
     2187  margin-top: 2rem;
     2188  padding: 0 10px;
     2189}
     2190
     2191.archive .page-header {
     2192  margin: 32px 0;
     2193  margin: 2rem 0;
    21862194}
    21872195
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php

    r3388 r3389  
    182182
    183183/**
     184 * Bold archive terms are made here.
     185 *
     186 * @param string $term The archive term to bold.
     187 * @return string
     188 */
     189function strong_archive_title( $term ) {
     190    return '<strong>' . $term . '</strong>';
     191}
     192add_filter( 'post_type_archive_title', __NAMESPACE__ . '\strong_archive_title' );
     193add_filter( 'single_term_title',       __NAMESPACE__ . '\strong_archive_title' );
     194add_filter( 'single_cat_title',        __NAMESPACE__ . '\strong_archive_title' );
     195add_filter( 'single_tag_title',        __NAMESPACE__ . '\strong_archive_title' );
     196add_filter( 'get_the_date',            __NAMESPACE__ . '\strong_archive_title' );
     197
     198/**
    184199 * Custom template tags for this theme.
    185200 */
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/sass/site/_site.scss

    r3346 r3389  
    1717
    1818/*--------------------------------------------------------------
    19 ## 404
     19## Template Hierarchy
    2020--------------------------------------------------------------*/
    2121@import "primary/404";
    2222
    23 /*--------------------------------------------------------------
    24 ## Pages
    25 --------------------------------------------------------------*/
    2623@import "primary/page";
     24@import "archive";
    2725
    2826/*--------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.