Making WordPress.org


Ignore:
Timestamp:
06/06/2014 09:51:08 PM (12 years ago)
Author:
coffee2code
Message:

Code Reference: Improve linking related to source code display. See #176

  • Remove 'View source code:' label and links
  • Add 'View source' link that links downpage to Source section
  • Remove ellipsis from link text
  • Add ability to collapse expanded source code
  • Move link to core.trac for function to be under source code display as 'View on Trac'
  • Fix to display link to trac for hooks and classes
File:
1 edited

Legend:

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

    r677 r687  
    856856        }
    857857
     858        .single {
     859                .wp-parser-class, .wp-parser-function, .wp-parser-hook, .wp-parser-method {
     860                        border-bottom-style: none;
     861                }
     862        }
     863
     864        .source-content {
     865                overflow: auto;
     866        }
     867
     868        .source-code-links {
     869                margin-left: 2em;
     870                margin-top: 1em;
     871        }
     872
     873        .source-code-links span:first-child {
     874                display: none;
     875                border-right: 1px solid #999;
     876                margin-right: 1em;
     877                padding-right: 1em;
     878        }
     879
    858880        .source-code-container {
    859881                border-right: 1px solid #dfdfdf;
    … …  
    862884        }
    863885
    864         .show-complete-source {
     886        .show-complete-source, .less-complete-source {
    865887                display: none;
    866888        }
Note: See TracChangeset for help on using the changeset viewer.