<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[1429] sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer: developer.wordpress.org: Enable expand/collapse functionality for syntax-highlighted code in handbooks.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/1429">1429</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/1429","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>coffee2code</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2015-03-19 22:36:17 +0000 (Thu, 19 Mar 2015)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>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 <a href="http://meta.trac.wordpress.org/ticket/959">#959</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperinchandbooksphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/handbooks.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperincusercontentphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/user-content.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperjsfunctionreferencejs">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/js/function-reference.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperscssmainscss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperstylesheetsmaincss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperinchandbooksphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/handbooks.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/handbooks.php     2015-03-19 21:03:02 UTC (rev 1428)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/handbooks.php       2015-03-19 22:36:17 UTC (rev 1429)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -44,9 +44,63 @@
</span><span class="cx" style="display: block; padding: 0 10px">                if ( class_exists( 'WPorg_Handbook_Watchlist' ) && method_exists( 'WPorg_Handbook_Watchlist', 'display_action_link' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        add_action( 'wporg_action_links', array( 'WPorg_Handbook_Watchlist', 'display_action_link' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               // Modify SyntaxHighlighter Evolved code output to facilitate code collapse/expand.
+               add_filter( 'syntaxhighlighter_htmlresult', array( __CLASS__, 'syntaxhighlighter_htmlresult' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         * Is the current (or specified) post_type one of the DevHub handbook post types?
+        *
+        * TOOD: The handbook plugin should probably have this.
+        *
+        * @param string $post_type Optional. The post_type to check for being a handbook post type. Default '' (the current post type).
+        * @return bool
+        */
+       public static function is_handbook_post_type( $post_type = '' ) {
+               if ( ! $post_type ) {
+                       $post_type = get_post_type();
+               }
+
+               return in_array( str_replace( '-handbook', '', $post_type ), self::$post_types );
+       }
+
+       /**
+        * If a syntax highlighted code block exceeds a given number of lines, wrap the
+        * markup with other markup to trigger the code expansion/collapse JS handling
+        * already implemented for the code reference.
+        *
+        * @param string  $text The pending result of the syntax highlighting.
+        * @return string
+        */
+       public static function syntaxhighlighter_htmlresult( $text ) {
+               $new_text      = '';
+               // Collapse is handled for >10 lines. But just go ahead and show the full
+               // code if that is just barely being exceeded (no one wants to expand to
+               // see one or two more lines).
+               $lines_to_show = 12;
+               $do_collapse   = ( substr_count( $text, "\n" ) - 1 ) > $lines_to_show;
+
+               if ( $do_collapse )  {
+                       $new_text .= '<section class="source-content">';
+                       $new_text .= '<div class="source-code-container">';
+               }
+
+               $new_text .= $text;
+
+               if ( $do_collapse ) {
+                       $new_text .= '</div>';
+                       $new_text .= '<p class="source-code-links"><span>';
+                       $new_text .= '<a href="#" class="show-complete-source">' . __( 'Expand full source code', 'wporg' ) . '</a>';
+                       $new_text .= '<a href="#" class="less-complete-source">' . __( 'Collapse full source code', 'wporg' ) . '</a>';
+                       $new_text .= '</span></p>';
+                       $new_text .= '</section>';
+               }
+
+               return $new_text;
+       }
+
+       /**
</ins><span class="cx" style="display: block; padding: 0 10px">          * Filter handbook post types to create handbooks for: plugins, themes.
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @access public
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperincusercontentphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/user-content.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/user-content.php  2015-03-19 21:03:02 UTC (rev 1428)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/user-content.php    2015-03-19 22:36:17 UTC (rev 1429)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -65,7 +65,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public static function scripts_and_styles() {
</span><span class="cx" style="display: block; padding: 0 10px">                if ( is_singular() ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        if ( '0' != get_comments_number() || \DevHub\post_type_has_source_code() ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 if ( '0' != get_comments_number() || \DevHub\post_type_has_source_code() || Devhub_Handbooks::is_handbook_post_type() ) {
</ins><span class="cx" style="display: block; padding: 0 10px">                                 wp_enqueue_script( 'wporg-developer-function-reference', get_template_directory_uri() . '/js/function-reference.js', array( 'jquery', 'syntaxhighlighter-core', 'syntaxhighlighter-brush-php' ), '20150126', true );
</span><span class="cx" style="display: block; padding: 0 10px">                                wp_enqueue_style( 'syntaxhighlighter-core' );
</span><span class="cx" style="display: block; padding: 0 10px">                                wp_enqueue_style( 'syntaxhighlighter-theme-default' );
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperjsfunctionreferencejs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/js/function-reference.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/js/function-reference.js      2015-03-19 21:03:02 UTC (rev 1428)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/js/function-reference.js        2015-03-19 22:36:17 UTC (rev 1429)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6,7 +6,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> ( function( $ ) {
</span><span class="cx" style="display: block; padding: 0 10px">        'use strict';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        var $sourceContent, $sourceCodeContainer, $sourceCodeTable, $showCompleteSource, $lessCompleteSource, sourceCollapsedHeight;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ var $sourceCollapsedHeight;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        var $usesList, $usedByList, $showMoreUses, $hideMoreUses, $showMoreUsedBy, $hideMoreUsedBy;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -23,47 +23,42 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        return;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                // We only expect one source-content per document
-               $sourceContent = $( '.source-content' );
-               $sourceCodeContainer = $( '.source-code-container' );
-
</del><span class="cx" style="display: block; padding: 0 10px">                 SyntaxHighlighter.highlight();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $sourceCodeTable = $sourceContent.find( 'table' );
-
</del><span class="cx" style="display: block; padding: 0 10px">                 // 1em (margin) + 10 * 17px + 10. Lines are 1.1em which rounds to 17px: calc( 1em + 17px * 10 + 10 ).
</span><span class="cx" style="display: block; padding: 0 10px">                // Extra 10px added to partially show next line so it's clear there is more.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                sourceCollapsedHeight = 196;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $sourceCollapsedHeight = 196;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                if ( ( sourceCollapsedHeight - 12 ) < $sourceCodeTable.height() ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $( '.source-content' ).find( 'table' ).each( function( t ) {
+                       if ( ( $sourceCollapsedHeight - 12 ) < $( this ).height() ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        // Do this with javascript so javascript-less can enjoy the total sourcecode
-                       $( '.source-code-container' ).css( { height: sourceCollapsedHeight + 'px' } );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         var sourceContent = $( this ).closest( '.source-content' );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $showCompleteSource = $( '.show-complete-source' );
-                       $lessCompleteSource = $( '.less-complete-source' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         // Do this with javascript so javascript-less can enjoy the total sourcecode
+                               sourceContent.find( '.source-code-container' ).css( { height: $sourceCollapsedHeight + 'px' } );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $( '.source-code-links span:first' ).show();
-                       $showCompleteSource.show();
-                       $showCompleteSource.on( 'click', toggleCompleteSource );
-                       $lessCompleteSource.on( 'click', toggleCompleteSource );
-               }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         sourceContent.find( '.source-code-links').find('span:first' ).show();
+                               sourceContent.find( '.show-complete-source' ).show();
+                               sourceContent.find( '.show-complete-source' ).on( 'click', toggleCompleteSource );
+                               sourceContent.find( '.less-complete-source' ).on( 'click', toggleCompleteSource );
+                       }
+               } );
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        function toggleCompleteSource( e ) {
</span><span class="cx" style="display: block; padding: 0 10px">                e.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                if ( $showCompleteSource.is(':visible') ) {
-                       var heightGoal = $sourceCodeTable.height() + 45; // takes into consideration potential x-scrollbar
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         var sourceContent = $( this ).closest( '.source-content' );
+
+               if ( $( this ).parent().find( '.show-complete-source' ).is( ':visible' ) ) {
+                       var heightGoal = sourceContent.find( 'table' ).height() + 45; // takes into consideration potential x-scrollbar
</ins><span class="cx" style="display: block; padding: 0 10px">                 } else {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        var heightGoal = sourceCollapsedHeight;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 var heightGoal = $sourceCollapsedHeight;
</ins><span class="cx" style="display: block; padding: 0 10px">                 }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $sourceCodeContainer.animate( { height: heightGoal + 'px' } );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         sourceContent.find( '.source-code-container:first' ).animate( { height: heightGoal + 'px' } );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $showCompleteSource.toggle();
-               $lessCompleteSource.toggle();
-
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $( this ).parent().find( 'a' ).toggle();
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        function toggleUsageListInit() {
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperscssmainscss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss        2015-03-19 21:03:02 UTC (rev 1428)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss  2015-03-19 22:36:17 UTC (rev 1429)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1062,11 +1062,17 @@
</span><span class="cx" style="display: block; padding: 0 10px">                margin-top: 1em;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        .source-code-links span {
+               border-left: 1px solid #999;
+               margin-left: 1em;
+               padding-left: 1em;
+       }
+
</ins><span class="cx" style="display: block; padding: 0 10px">         .source-code-links span:first-child {
</span><span class="cx" style="display: block; padding: 0 10px">                display: none;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                border-right: 1px solid #999;
-               margin-right: 1em;
-               padding-right: 1em;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         border-left: 0;
+               margin-left: 1em;
+               padding-left: 0;
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        .source-code-container {
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperstylesheetsmaincss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css  2015-03-19 21:03:02 UTC (rev 1428)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css    2015-03-19 22:36:17 UTC (rev 1429)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1241,11 +1241,16 @@
</span><span class="cx" style="display: block; padding: 0 10px">   margin-left: 2em;
</span><span class="cx" style="display: block; padding: 0 10px">   margin-top: 1em;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.devhub-wrap .source-code-links span {
+  border-left: 1px solid #999;
+  margin-left: 1em;
+  padding-left: 1em;
+}
</ins><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap .source-code-links span:first-child {
</span><span class="cx" style="display: block; padding: 0 10px">   display: none;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-  border-right: 1px solid #999;
-  margin-right: 1em;
-  padding-right: 1em;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  border-left: 0;
+  margin-left: 1em;
+  padding-left: 0;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> .devhub-wrap .source-code-container {
</span><span class="cx" style="display: block; padding: 0 10px">   border-right: 1px solid #dfdfdf;
</span></span></pre>
</div>
</div>

</body>
</html>