Making WordPress.org


Ignore:
Timestamp:
04/20/2017 12:48:20 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Provide more flexibility in page templates:

  • Use default page.php template for simple one-column content.
  • Keep page-forums-sidebar.php template for forum-related pages.
  • Add page-full-width.php template for wider content with in-page navigation.

Fixes #2574.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/site/_bbpress.scss

    r5298 r5382  
    7373
    7474
     75.bbpress,
     76.page-template-page-forums-sidebar {
     77    main#main {
     78        .entry-content,
     79        .entry-meta {
     80            padding: 0;
     81
     82            @media(min-width:568px) {
     83                padding: 0 ms(4);
     84            }
     85        }
     86
     87        .entry-header .entry-title,
     88        .entry-content .container {
     89            padding: 0;
     90        }
     91
     92        > .entry-content,
     93        > article {
     94            max-width: 48rem;
     95
     96            @media screen and ( min-width: $ms-breakpoint ) {
     97                float: left;
     98                padding: 0;
     99                width: 65%;
     100            }
     101        }
     102
     103        @media screen and ( min-width: $ms-breakpoint ) {
     104            .entry-content,
     105            .entry-meta {
     106                padding-left: 0;
     107                padding-right: 0;
     108            }
     109
     110            .entry-meta {
     111                float: right;
     112                width: 30%;
     113            }
     114        }
     115    }
     116}
     117
    75118.bbpress {
     119    main#main {
     120        margin-top: 2rem;
     121        padding: 0 10px 10px;
     122
     123        @extend .clear;
     124    }
     125
    76126    #bbpress-forums {
    77127
Note: See TracChangeset for help on using the changeset viewer.