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/_site.scss

    r5141 r5382  
    44body, #pagebody {
    55    font-size: ms(0);
    6 }
    7 
    8 main#main {
    9     margin-top: 2rem;
    10     padding: 0 10px 10px;
    11     font-size: ms(-2);
    12 
    13     @extend .clear;
    14 }
    15 
    16 .bbpress main#main,
    17 .page-template-page-forums-sidebar main#main {
    18 
    19     .entry-content,
    20     .entry-meta {
    21         padding: 0;
    22 
    23         @media(min-width:568px) {
    24             padding: 0 ms(4);
    25         }
    26     }
    27 
    28     > .entry-content {
    29         max-width: 48rem;
    30 
    31         @media screen and ( min-width: $ms-breakpoint ) {
    32             float: left;
    33             padding: 0;
    34             width: 65%;
    35         }
    36     }
    37 
    38     @media screen and ( min-width: $ms-breakpoint ) {
    39         .entry-content,
    40         .entry-meta {
    41             padding-left: 0;
    42             padding-right: 0;
    43         }
    44 
    45         .entry-meta {
    46             float: right;
    47             width: 30%;
    48         }
    49     }
    506}
    517
     
    308264    }
    309265
    310     .page & {
    311         padding-top: 0;
     266    #page & {
     267        padding: 0 10px ms(10);
    312268    }
    313269
     
    540496        }
    541497    }
    542 }
    543 
     498
     499    .submenu {
     500        margin-left: 0;
     501    }
     502
     503    .submenu li {
     504        border-bottom: 1px solid #dedede;
     505        font-size: 12px;
     506        line-height: 18px;
     507        padding: 5px 0;
     508    }
     509
     510    .submenu li.current {
     511        font-weight: bold;
     512    }
     513
     514    .submenu li:last-child {
     515        border-bottom: 0;
     516    }
     517
     518    .submenu li ul {
     519        margin-left: 16px;
     520    }
     521
     522    .submenu li ul li {
     523        border: none;
     524        line-height: 1.4em;
     525        padding-bottom: 2px;
     526    }
     527}
     528
     529.page-template-page-full-width {
     530    .entry-header .entry-title,
     531    .entry-content section .container {
     532        max-width: 100%;
     533        padding: 0;
     534    }
     535}
    544536
    545537/*--------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.