Making WordPress.org

Changeset 4609


Ignore:
Timestamp:
01/05/2017 11:11:59 PM (8 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Display table of contents at full content-width above page content to prevent squashing display of tables in REST API handbook reference sub-pages.

Props jnylen0.
Fixes #2347.

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

Legend:

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

    r4579 r4609  
    15931593}
    15941594
     1595.rest-api-handbook-reference {
     1596
     1597    .table-of-contents {
     1598        float: none;
     1599        overflow: hidden;
     1600        width: 100%;
     1601        margin: 0 auto 1em;
     1602        clear: both;
     1603
     1604        ul.items li ul li {
     1605            display: inline;
     1606
     1607            &::after {
     1608                content: '; ';
     1609            }
     1610
     1611            &:last-child::after {
     1612                content: '';
     1613            }
     1614        }
     1615    }
     1616
     1617}
     1618
    15951619@media ( max-width: 59.999999em ) {
    15961620
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css

    r4579 r4609  
    19501950}
    19511951
     1952.rest-api-handbook-reference .table-of-contents {
     1953  float: none;
     1954  overflow: hidden;
     1955  width: 100%;
     1956  margin: 0 auto 1em;
     1957  clear: both;
     1958}
     1959
     1960.rest-api-handbook-reference .table-of-contents ul.items li ul li {
     1961  display: inline;
     1962}
     1963
     1964.rest-api-handbook-reference .table-of-contents ul.items li ul li::after {
     1965  content: '; ';
     1966}
     1967
     1968.rest-api-handbook-reference .table-of-contents ul.items li ul li:last-child::after {
     1969  content: '';
     1970}
     1971
    19521972@media (max-width: 59.999999em) {
    19531973  .devhub-wrap {
Note: See TracChangeset for help on using the changeset viewer.