Making WordPress.org


Ignore:
Timestamp:
03/19/2015 10:36:17 PM (10 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Enable expand/collapse functionality for syntax-highlighted code in handbooks.

  • Enqueue function-reference.js on handbook pages as well
  • Wrap handbook syntax-highlighted code in similar markup the JS expects as used on coderef pages
  • Modify JS to handle multiple expandable code blocks on a page
  • Change styling for expand/collapse links since for handbooks only one link will be present in that section

Fixes #959.

File:
1 edited

Legend:

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

    r1380 r1429  
    10631063    }
    10641064
     1065    .source-code-links span {
     1066        border-left: 1px solid #999;
     1067        margin-left: 1em;
     1068        padding-left: 1em;
     1069    }
     1070
    10651071    .source-code-links span:first-child {
    10661072        display: none;
    1067         border-right: 1px solid #999;
    1068         margin-right: 1em;
    1069         padding-right: 1em;
     1073        border-left: 0;
     1074        margin-left: 1em;
     1075        padding-left: 0;
    10701076    }
    10711077
Note: See TracChangeset for help on using the changeset viewer.