Making WordPress.org


Ignore:
Timestamp:
07/06/2016 07:16:58 PM (7 years ago)
Author:
drewapicture
Message:

developer.wordpress.org: Restructure reference pages to leverage a table of contents for the majority of the page output.

  • Splits large sections of content-reference.php into individual template parts captured via output buffering.
  • Introduces four top-level sections for any given reference page: Description, More Information (if an explanation exists), Related, and User Contributed Notes
  • Improves overall responsive styling for smaller viewports

See #1802.

File:
1 edited

Legend:

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

    r3564 r3626  
    10571057            width: 300px;
    10581058        }
     1059        .toc-jump {
     1060            display: inline-block;
     1061            float: right;
     1062        }
    10591063    }
    10601064
     
    10881092    ----------------------------------------------- */
    10891093    .usage {
    1090         article {
    1091             float: left;
    1092             width: 50%;
    1093         }
    1094 
    1095         .used-by {
    1096             padding-right: 30px;
    1097         }
    1098 
    1099         .uses {
    1100             padding-left: 30px;
    1101         }
    1102 
    11031094        ul {
    11041095            line-height: 1.7; /* Slightly increase the line height for more readability */
     
    14291420        li {
    14301421            padding-bottom: 6px !important;
     1422            font-weight: 600;
    14311423
    14321424            ul li,
    14331425            ul li ul li {
    14341426                padding-bottom: 0 !important;
     1427                font-weight: normal;
    14351428            }
    14361429
     
    16141607                text-indent: -45px;
    16151608            }
    1616 
    1617             .table-of-contents {
    1618                 width: 200px;
    1619             }
    16201609        }
    16211610
     
    16231612            width: 99%;
    16241613        }
    1625 
    1626         .usage {
    1627             article {
     1614    }
     1615}
     1616
     1617@media (max-width: 32em) {
     1618    .devhub-wrap {
     1619        .wp-parser-class, .wp-parser-function, .wp-parser-hook, .wp-parser-method {
     1620            .table-of-contents {
    16281621                width: 100%;
    1629             }
    1630 
    1631             .uses {
    1632                 padding-left: 0;
    1633                 margin-top: 30px;
     1622                margin-bottom: 10px;
     1623            }
     1624
     1625            section {
     1626                overflow: inherit;
     1627            }
     1628
     1629            hr {
     1630                clear: both;
    16341631            }
    16351632        }
     
    16491646                font-size: 16px;
    16501647            }
    1651             .table-of-contents {
    1652                 width: 100%;
    1653                 margin-bottom: 10px;
    1654             }
    16551648        }
    16561649
Note: See TracChangeset for help on using the changeset viewer.