Ticket #872: 872.2.diff
File 872.2.diff, 21.8 KB (added by , 10 years ago) |
---|
-
archive.php
22 22 <?php /* Start the Loop */ ?> 23 23 <?php while ( have_posts() ) : the_post(); ?> 24 24 25 <?php get_template_part( 'content', ( is_parsed_post_type() ? 'reference-archive' : '') ); ?>25 <?php get_template_part( 'content', ( is_parsed_post_type() ? 'reference-archive' : get_post_type() ) ); ?> 26 26 27 27 <?php endwhile; ?> 28 28 -
comments.php
39 39 * define wporg_developer_comment() and that will be used instead. 40 40 * See wporg_developer_comment() in inc/template-tags.php for more. 41 41 */ 42 wp_list_comments( array( 'callback' => 'wporg_developer_user_note' ) ); 42 if ( is_singular( 'post' ) ) { 43 wp_list_comments(); 44 } else { 45 wp_list_comments( array( 'callback' => 'wporg_developer_user_note' ) ); 46 } 43 47 ?> 44 48 </ol><!-- .comment-list --> 45 49 … … 53 57 54 58 <?php endif; // have_comments() ?> 55 59 56 <?php if ( DevHub\can_user_post_note( false, get_the_ID() ) ) : ?>60 <?php if ( \DevHub\is_parsed_post_type() && DevHub\can_user_post_note( false, get_the_ID() ) ) : ?> 57 61 58 <p id="add-user-note" style="display:none;"><a href=""><?php _e( 'Have a note to contribute?', 'wporg' ); ?></a></p>62 <p id="add-user-note" style="display:none;"><a href=""><?php _e( 'Have a note to contribute?', 'wporg' ); ?></a></p> 59 63 60 <?php comment_form( array(61 'comment_field' => DevHub_User_Submitted_Content::wp_editor_comments(),62 'comment_notes_after' => '<p>' .63 __( 'Notes should supplement code reference entries, for example examples, tips, explanations, use-cases, and best practices.', 'wporg' ) .64 '</p><p>' .65 __( 'Do not use this form for support requests, discussions, spam, bug reports, complaints, or self-promotion. Entries of this nature will be deleted.', 'wporg' ) .66 '</p><p>' .67 __( 'You can enter text and code. Use the php, js, or inline code buttons to wrap code snippets.', 'wporg' ) .68 '</p><p class="user-notes-are-gpl">' .69 sprintf( __( '<strong>NOTE:</strong> All contributions are licensed under <a href="%s">GFDL</a> and are moderated before appearing on the site.', 'wporg' ), 'https://gnu.org/licenses/fdl.html' ) .70 '</p>',71 'label_submit' => __( 'Add Note', 'wporg' ),72 'must_log_in' => '<p>' . sprintf( __( 'You must <a href="%s">log in</a> before being able to contribute a note.', 'wporg' ), 'https://wordpress.org/support/bb-login.php' ) . '</p>',73 'title_reply' => '', //'Add Example'74 ) ); ?>64 <?php comment_form( array( 65 'comment_field' => DevHub_User_Submitted_Content::wp_editor_comments(), 66 'comment_notes_after' => '<p>' . 67 __( 'Notes should supplement code reference entries, for example examples, tips, explanations, use-cases, and best practices.', 'wporg' ) . 68 '</p><p>' . 69 __( 'Do not use this form for support requests, discussions, spam, bug reports, complaints, or self-promotion. Entries of this nature will be deleted.', 'wporg' ) . 70 '</p><p>' . 71 __( 'You can enter text and code. Use the php, js, or inline code buttons to wrap code snippets.', 'wporg' ) . 72 '</p><p class="user-notes-are-gpl">' . 73 sprintf( __( '<strong>NOTE:</strong> All contributions are licensed under <a href="%s">GFDL</a> and are moderated before appearing on the site.', 'wporg' ), 'https://gnu.org/licenses/fdl.html' ) . 74 '</p>', 75 'label_submit' => __( 'Add Note', 'wporg' ), 76 'must_log_in' => '<p>' . sprintf( __( 'You must <a href="%s">log in</a> before being able to contribute a note.', 'wporg' ), 'https://wordpress.org/support/bb-login.php' ) . '</p>', 77 'title_reply' => '', //'Add Example' 78 ) ); ?> 75 79 76 80 <?php endif; ?> 77 81 82 <?php if ( ! \DevHub\is_parsed_post_type() && comments_open() ) : ?> 83 <p id="add-user-note" style="display:none;"><a href=""><?php _e( 'Leave a reply', 'wporg' ); ?></a></p> 84 85 <?php comment_form(); ?> 86 <?php endif; ?> 87 78 88 </div><!-- #comments --> -
content-post.php
1 <?php namespace DevHub; 2 /** 3 * @package wporg-developer 4 */ 5 ?> 6 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 7 <header class="entry-header"> 8 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 9 10 <?php if ( 'post' == get_post_type() ) : ?> 11 <div class="entry-meta"> 12 <?php wporg_developer_posted_on(); ?> 13 </div><!-- .entry-meta --> 14 <?php endif; ?> 15 </header><!-- .entry-header --> 16 17 <?php if ( is_search() ) : // Only display Excerpts for Search ?> 18 <div class="entry-summary"> 19 <?php the_excerpt(); ?> 20 </div><!-- .entry-summary --> 21 <?php else : ?> 22 <div class="entry-content"> 23 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'wporg' ) ); ?> 24 <?php 25 wp_link_pages( array( 26 'before' => '<div class="page-links">' . __( 'Pages:', 'wporg' ), 27 'after' => '</div>', 28 ) ); 29 ?> 30 </div><!-- .entry-content --> 31 <?php endif; ?> 32 33 <footer class="entry-meta"> 34 <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?> 35 <?php 36 /* translators: used between list items, there is a space after the comma */ 37 $categories_list = get_the_category_list( __( ', ', 'wporg' ) ); 38 if ( $categories_list && wporg_developer_categorized_blog() ) : 39 ?> 40 <span class="cat-links"> 41 <?php printf( __( 'Posted in %1$s', 'wporg' ), $categories_list ); ?> 42 </span> 43 <?php endif; // End if categories ?> 44 45 <?php 46 /* translators: used between list items, there is a space after the comma */ 47 $tags_list = get_the_tag_list( '', __( ', ', 'wporg' ) ); 48 if ( $tags_list ) : 49 ?> 50 <span class="tags-links"> 51 <?php printf( __( 'Tagged %1$s', 'wporg' ), $tags_list ); ?> 52 </span> 53 <?php endif; // End if $tags_list ?> 54 <?php endif; // End if 'post' == get_post_type() ?> 55 56 <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?> 57 58 <?php if ( ! is_single() ) : ?> 59 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'wporg' ), __( '1 Comment', 'wporg' ), __( '% Comments', 'wporg' ) ); ?></span> 60 <?php endif; ?> 61 <?php comments_template(); ?> 62 <?php endif; ?> 63 64 <?php edit_post_link( __( 'Edit', 'wporg' ), '<span class="edit-link">', '</span>' ); ?> 65 </footer><!-- .entry-meta --> 66 </article><!-- #post-## --> -
functions.php
83 83 84 84 function init() { 85 85 86 register_nav_menus(); 87 86 88 add_action( 'after_switch_theme', __NAMESPACE__ . '\\add_roles' ); 87 89 add_action( 'pre_get_posts', __NAMESPACE__ . '\\pre_get_posts' ); 88 90 add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\theme_scripts_styles' ); … … 221 223 return $posts; 222 224 } 223 225 226 function register_nav_menus() { 227 228 \register_nav_menus( array( 229 'devhub-menu' => __( 'Developer Resources Menu', 'wporg' ), 230 ) ); 231 } 232 224 233 function method_permalink( $link, $post ) { 225 234 if ( $post->post_type !== 'wp-parser-method' ) 226 235 return $link; -
header.php
22 22 <a href="<?php echo esc_url( DevHub\get_site_section_url() ); ?>" rel="home"><?php echo DevHub\get_site_section_title(); ?></a> 23 23 </<?php echo $tag; ?>> 24 24 </div> 25 <div class="devhub-menu"> 26 <?php wp_nav_menu( array( 27 'theme_location' => 'devhub-menu', 28 'container_class' => 'menu-container', 29 ) ); ?> 30 </div> 25 31 </div><!-- .inner-wrap --> 26 32 </header><!-- #masthead --> 27 33 <?php -
inc/template-tags.php
1127 1127 function can_user_post_note( $open, $post ) { 1128 1128 // Only proceed if for a parsed post type. 1129 1129 if ( ! is_parsed_post_type( get_post_type( $post ) ) ) { 1130 // Temporarily disable commenting that isn't for a note since various 1131 // changes need to take place to enable regular commenting. 1132 return false; //$open; 1130 return $open; 1133 1131 } 1134 1132 1135 1133 // Permit default logic to be overridden via filter that returns value other than null. -
js/user-notes.js
4 4 */ 5 5 6 6 ( function( $ ) { 7 $( '#respond, #add-user-note' ).toggle(); 8 $( '#add-user-note' ).click( function( e ) { 9 e.preventDefault(); 7 8 function showCommentForm() { 10 9 $( '#respond, #add-user-note' ).toggle(); 11 10 12 11 if ( pos = $( '#submit' ).position() ) { … … 19 18 $( 'html,body' ).animate( {scrollTop:pos.top - (window.innerHeight || document.documentElement.clientHeight) + $( '#submit' ).height() + 30}, 1000 ); 20 19 } 21 20 } 21 } 22 23 $( '#respond, #add-user-note' ).toggle(); 24 $( '#add-user-note' ).click( function( e ) { 25 e.preventDefault(); 26 27 showCommentForm(); 22 28 } ); 23 29 30 if ( '#respond' === document.location.hash ) { 31 showCommentForm(); 32 } 33 24 34 // Add php and js buttons to QuickTags. 25 35 QTags.addButton( 'php', 'php', '[php]', '[/php]' ); 26 36 QTags.addButton( 'js', 'js', '[js]', '[/js]' ); -
scss/main.scss
47 47 margin-top: 1em; 48 48 } 49 49 50 .menu { 51 list-style: none; 52 float: right; 53 font-size: 14px; 54 font-weight: bold; 55 padding-top: 22px; 56 margin-right: 15px; 57 58 li { 59 display: inline; 60 padding-left: 20px; 61 } 62 63 a { 64 color: #555; 65 font-weight: 400; 66 } 67 } 68 50 69 a { 51 70 color: #21759b; 52 71 } … … 356 375 max-width: 100%; 357 376 } 358 377 359 /* =Comments360 ----------------------------------------------- */361 378 362 .comment-content a {363 word-wrap: break-word;364 }365 .bypostauthor {366 background: #eee;367 }368 369 370 379 /* =Widgets 371 380 ----------------------------------------------- */ 372 381 … … 1102 1111 } 1103 1112 1104 1113 /* Comments */ 1105 .comment-list, 1106 .comment-list ol { 1107 list-style: none; 1108 margin: 0 0 1.5em 0; 1109 padding: 0; 1114 .comment-content a { 1115 word-wrap: break-word; 1110 1116 } 1111 1117 1112 .comment-list li { 1113 padding: 2rem 1.5rem 1rem; 1114 border: 0 solid #eee; 1115 border-bottom-width: 1px; 1116 background: #fff; 1118 // User contributed notes 1119 &.single-wp-parser-function, &.single-wp-parser-method, &.single-wp-parser-hook { 1120 .comment-list, 1121 .comment-list ol { 1122 list-style: none; 1123 margin: 0 0 1.5em 0; 1124 padding: 0; 1125 } 1117 1126 1118 &:first-child { 1119 padding-top: 1rem; 1127 .comment-list li { 1128 padding: 2rem 1.5rem 1rem; 1129 border: 0 solid #eee; 1130 border-bottom-width: 1px; 1131 background: #fff; 1132 1133 &:first-child { 1134 padding-top: 1rem; 1135 } 1120 1136 } 1121 }1122 1137 1123 .comment-list .avatar {1124 float: left;1125 width: 2.5em;1126 height: 2.5em;1127 margin: -0.5em 1em 0.5em 0;1128 padding: 0.125em;1129 border: 1px solid #eee;1130 }1138 .comment-list .avatar { 1139 float: left; 1140 width: 2.5em; 1141 height: 2.5em; 1142 margin: -0.5em 1em 0.5em 0; 1143 padding: 0.125em; 1144 border: 1px solid #eee; 1145 } 1131 1146 1132 .comment-author-attribution {1133 font-weight: bold;1134 }1147 .comment-author-attribution { 1148 font-weight: bold; 1149 } 1135 1150 1136 .comment-meta {1137 margin: 0 0 1.5em 0;1138 font-size: 0.75em;1139 }1151 .comment-meta { 1152 margin: 0 0 1.5em 0; 1153 font-size: 0.75em; 1154 } 1140 1155 1141 .comment-meta .comment-author cite,1142 .comment-meta .comment-author cite a {1143 }1144 .comment-meta a {1145 }1156 .comment-meta .comment-author cite, 1157 .comment-meta .comment-author cite a { 1158 } 1159 .comment-meta a { 1160 } 1146 1161 1147 .comment-meta a:hover {1148 }1162 .comment-meta a:hover { 1163 } 1149 1164 1150 .comment-content {1151 margin-left: 60px;1152 margin-left: 3.75rem;1153 margin-left: 0;1154 clear: both;1155 }1165 .comment-content { 1166 margin-left: 60px; 1167 margin-left: 3.75rem; 1168 margin-left: 0; 1169 clear: both; 1170 } 1156 1171 1157 .comment-content ol {1158 list-style: decimal inside;1159 margin: 0 0 1.5em 0;1160 border-top: none;1161 margin: 0 0 1.5em 1.5em;1162 padding: 0;1163 }1172 .comment-content ol { 1173 list-style: decimal inside; 1174 margin: 0 0 1.5em 0; 1175 border-top: none; 1176 margin: 0 0 1.5em 1.5em; 1177 padding: 0; 1178 } 1164 1179 1165 .comment-content ul {1166 list-style: square inside;1167 margin: 0 0 1.5em 0;1168 border-top: none;1169 margin: 0 0 1.5em 1.5em;1170 padding: 0;1171 }1180 .comment-content ul { 1181 list-style: square inside; 1182 margin: 0 0 1.5em 0; 1183 border-top: none; 1184 margin: 0 0 1.5em 1.5em; 1185 padding: 0; 1186 } 1172 1187 1173 .comment-content li {1174 border: none;1175 padding: 0;1176 }1188 .comment-content li { 1189 border: none; 1190 padding: 0; 1191 } 1177 1192 1178 .comment-text {1179 }1193 .comment-text { 1194 } 1180 1195 1181 #respond {1182 overflow: hidden;1183 }1196 #respond { 1197 overflow: hidden; 1198 } 1184 1199 1185 .comment-list #respond {1186 margin: 1.5em 0 0;1187 }1200 .comment-list #respond { 1201 margin: 1.5em 0 0; 1202 } 1188 1203 1189 #respond .log-in-out {1204 #respond .log-in-out { 1190 1205 1191 }1206 } 1192 1207 1193 #respond .log-in-out a {1194 font-style: italic;1195 }1208 #respond .log-in-out a { 1209 font-style: italic; 1210 } 1196 1211 1197 #reply-title small a {1198 font-style: italic;1199 }1212 #reply-title small a { 1213 font-style: italic; 1214 } 1200 1215 1201 #respond label {1202 }1216 #respond label { 1217 } 1203 1218 1204 #respond p.req label {1205 }1219 #respond p.req label { 1220 } 1206 1221 1207 #respond span.required { 1222 #respond span.required { 1223 } 1224 1225 #respond #submit { 1226 float: left; 1227 margin: 0 0 1.5em; 1228 } 1229 1230 .comment-author { 1231 float: left; 1232 } 1208 1233 } 1209 1234 1210 #respond #submit { 1211 float: left; 1212 margin:0 0 1.5em; 1235 &.single-post { 1236 .comment-list, 1237 .comment-list ol { 1238 list-style: none; 1239 margin: 1.5em 0; 1240 padding: 0; 1241 } 1242 1243 .comment-list { 1244 li { 1245 margin: 1.5em 0; 1246 padding: 1em 0 0 0; 1247 border-top: 1px solid #ddd; 1248 } 1249 1250 p { 1251 margin: 0 0 0 42px; 1252 } 1253 1254 .alt { 1255 background: inherit; 1256 } 1257 } 1258 1259 .comment-meta { 1260 font-size: 0.65em; 1261 color: #888; 1262 float: right; 1263 margin-top: -15px; 1264 1265 a { 1266 } 1267 } 1268 1269 .comment-author { 1270 img { 1271 float: left; 1272 margin: 0 10px 0 0; 1273 } 1274 } 1275 1213 1276 } 1214 1277 1215 1278 /* … … 1308 1371 } 1309 1372 } 1310 1373 1311 .comment-author {1312 float: left;1313 }1314 1374 .user-note-voting { 1315 1375 font-size: 1.5em; 1316 1376 clear: left; … … 1342 1402 max-width: 100% !important; 1343 1403 width: inherit !important; 1344 1404 } 1405 1406 &.archive, &.blog { 1407 .hentry { 1408 padding: 0 0 1.5em 0; 1409 border-bottom: 1px solid #ddd; 1410 } 1411 } 1345 1412 } 1346 1413 1347 1414 @media ( max-width: 59.999999em ) { -
single.php
15 15 16 16 <?php while ( have_posts() ) : the_post(); ?> 17 17 18 <?php get_template_part( 'content', ( is_parsed_post_type() ? 'reference' : '') ); ?>18 <?php get_template_part( 'content', ( is_parsed_post_type() ? 'reference' : get_post_type() ) ); ?> 19 19 20 20 <?php //wporg_developer_post_nav(); ?> 21 21 -
stylesheets/main.css
282 282 /* =Media 283 283 ----------------------------------------------- */ 284 284 /* Make sure embeds and iframes fit their containers */ 285 /* =Comments286 ----------------------------------------------- */287 285 /* =Widgets 288 286 ----------------------------------------------- */ 289 287 /* Make sure select elements fit in widgets */ … … 338 336 .devhub-wrap .page-header { 339 337 margin-top: 1em; 340 338 } 339 .devhub-wrap .menu { 340 list-style: none; 341 float: right; 342 font-size: 14px; 343 font-weight: bold; 344 padding-top: 22px; 345 margin-right: 15px; 346 } 347 .devhub-wrap .menu li { 348 display: inline; 349 padding-left: 20px; 350 } 351 .devhub-wrap .menu a { 352 color: #555; 353 font-weight: 400; 354 } 341 355 .devhub-wrap a { 342 356 color: #21759b; 343 357 } … … 649 663 .devhub-wrap object { 650 664 max-width: 100%; 651 665 } 652 .devhub-wrap .comment-content a {653 word-wrap: break-word;654 }655 .devhub-wrap .bypostauthor {656 background: #eee;657 }658 666 .devhub-wrap .widget select { 659 667 max-width: 100%; 660 668 } … … 1275 1283 font-size: 18px; 1276 1284 margin-bottom: 20px; 1277 1285 } 1278 .devhub-wrap .comment-list, 1279 .devhub-wrap .comment-list ol { 1286 .devhub-wrap .comment-content a { 1287 word-wrap: break-word; 1288 } 1289 .devhub-wrap.single-wp-parser-function .comment-list, 1290 .devhub-wrap.single-wp-parser-function .comment-list ol, .devhub-wrap.single-wp-parser-method .comment-list, 1291 .devhub-wrap.single-wp-parser-method .comment-list ol, .devhub-wrap.single-wp-parser-hook .comment-list, 1292 .devhub-wrap.single-wp-parser-hook .comment-list ol { 1280 1293 list-style: none; 1281 1294 margin: 0 0 1.5em 0; 1282 1295 padding: 0; 1283 1296 } 1284 .devhub-wrap .comment-list li {1297 .devhub-wrap.single-wp-parser-function .comment-list li, .devhub-wrap.single-wp-parser-method .comment-list li, .devhub-wrap.single-wp-parser-hook .comment-list li { 1285 1298 padding: 2rem 1.5rem 1rem; 1286 1299 border: 0 solid #eee; 1287 1300 border-bottom-width: 1px; 1288 1301 background: #fff; 1289 1302 } 1290 .devhub-wrap .comment-list li:first-child {1303 .devhub-wrap.single-wp-parser-function .comment-list li:first-child, .devhub-wrap.single-wp-parser-method .comment-list li:first-child, .devhub-wrap.single-wp-parser-hook .comment-list li:first-child { 1291 1304 padding-top: 1rem; 1292 1305 } 1293 .devhub-wrap .comment-list .avatar {1306 .devhub-wrap.single-wp-parser-function .comment-list .avatar, .devhub-wrap.single-wp-parser-method .comment-list .avatar, .devhub-wrap.single-wp-parser-hook .comment-list .avatar { 1294 1307 float: left; 1295 1308 width: 2.5em; 1296 1309 height: 2.5em; … … 1298 1311 padding: 0.125em; 1299 1312 border: 1px solid #eee; 1300 1313 } 1301 .devhub-wrap .comment-author-attribution {1314 .devhub-wrap.single-wp-parser-function .comment-author-attribution, .devhub-wrap.single-wp-parser-method .comment-author-attribution, .devhub-wrap.single-wp-parser-hook .comment-author-attribution { 1302 1315 font-weight: bold; 1303 1316 } 1304 .devhub-wrap .comment-meta {1317 .devhub-wrap.single-wp-parser-function .comment-meta, .devhub-wrap.single-wp-parser-method .comment-meta, .devhub-wrap.single-wp-parser-hook .comment-meta { 1305 1318 margin: 0 0 1.5em 0; 1306 1319 font-size: 0.75em; 1307 1320 } 1308 .devhub-wrap .comment-content {1321 .devhub-wrap.single-wp-parser-function .comment-content, .devhub-wrap.single-wp-parser-method .comment-content, .devhub-wrap.single-wp-parser-hook .comment-content { 1309 1322 margin-left: 60px; 1310 1323 margin-left: 3.75rem; 1311 1324 margin-left: 0; 1312 1325 clear: both; 1313 1326 } 1314 .devhub-wrap .comment-content ol {1327 .devhub-wrap.single-wp-parser-function .comment-content ol, .devhub-wrap.single-wp-parser-method .comment-content ol, .devhub-wrap.single-wp-parser-hook .comment-content ol { 1315 1328 list-style: decimal inside; 1316 1329 margin: 0 0 1.5em 0; 1317 1330 border-top: none; … … 1318 1331 margin: 0 0 1.5em 1.5em; 1319 1332 padding: 0; 1320 1333 } 1321 .devhub-wrap .comment-content ul {1334 .devhub-wrap.single-wp-parser-function .comment-content ul, .devhub-wrap.single-wp-parser-method .comment-content ul, .devhub-wrap.single-wp-parser-hook .comment-content ul { 1322 1335 list-style: square inside; 1323 1336 margin: 0 0 1.5em 0; 1324 1337 border-top: none; … … 1325 1338 margin: 0 0 1.5em 1.5em; 1326 1339 padding: 0; 1327 1340 } 1328 .devhub-wrap .comment-content li {1341 .devhub-wrap.single-wp-parser-function .comment-content li, .devhub-wrap.single-wp-parser-method .comment-content li, .devhub-wrap.single-wp-parser-hook .comment-content li { 1329 1342 border: none; 1330 1343 padding: 0; 1331 1344 } 1332 .devhub-wrap #respond {1345 .devhub-wrap.single-wp-parser-function #respond, .devhub-wrap.single-wp-parser-method #respond, .devhub-wrap.single-wp-parser-hook #respond { 1333 1346 overflow: hidden; 1334 1347 } 1335 .devhub-wrap .comment-list #respond {1348 .devhub-wrap.single-wp-parser-function .comment-list #respond, .devhub-wrap.single-wp-parser-method .comment-list #respond, .devhub-wrap.single-wp-parser-hook .comment-list #respond { 1336 1349 margin: 1.5em 0 0; 1337 1350 } 1338 .devhub-wrap #respond .log-in-out a {1351 .devhub-wrap.single-wp-parser-function #respond .log-in-out a, .devhub-wrap.single-wp-parser-method #respond .log-in-out a, .devhub-wrap.single-wp-parser-hook #respond .log-in-out a { 1339 1352 font-style: italic; 1340 1353 } 1341 .devhub-wrap #reply-title small a {1354 .devhub-wrap.single-wp-parser-function #reply-title small a, .devhub-wrap.single-wp-parser-method #reply-title small a, .devhub-wrap.single-wp-parser-hook #reply-title small a { 1342 1355 font-style: italic; 1343 1356 } 1344 .devhub-wrap #respond #submit {1357 .devhub-wrap.single-wp-parser-function #respond #submit, .devhub-wrap.single-wp-parser-method #respond #submit, .devhub-wrap.single-wp-parser-hook #respond #submit { 1345 1358 float: left; 1346 1359 margin: 0 0 1.5em; 1347 1360 } 1361 .devhub-wrap.single-wp-parser-function .comment-author, .devhub-wrap.single-wp-parser-method .comment-author, .devhub-wrap.single-wp-parser-hook .comment-author { 1362 float: left; 1363 } 1364 .devhub-wrap.single-post .comment-list, 1365 .devhub-wrap.single-post .comment-list ol { 1366 list-style: none; 1367 margin: 1.5em 0; 1368 padding: 0; 1369 } 1370 .devhub-wrap.single-post .comment-list li { 1371 margin: 1.5em 0; 1372 padding: 1em 0 0 0; 1373 border-top: 1px solid #ddd; 1374 } 1375 .devhub-wrap.single-post .comment-list p { 1376 margin: 0 0 0 42px; 1377 } 1378 .devhub-wrap.single-post .comment-list .alt { 1379 background: inherit; 1380 } 1381 .devhub-wrap.single-post .comment-meta { 1382 font-size: 0.65em; 1383 color: #888; 1384 float: right; 1385 margin-top: -15px; 1386 } 1387 .devhub-wrap.single-post .comment-author img { 1388 float: left; 1389 margin: 0 10px 0 0; 1390 } 1348 1391 .devhub-wrap #content-area.has-sidebar { 1349 1392 float: none; 1350 1393 margin: 0 auto; … … 1424 1467 .devhub-wrap ul.items li a { 1425 1468 color: #555 !important; 1426 1469 } 1427 .devhub-wrap .comment-author {1428 float: left;1429 }1430 1470 .devhub-wrap .user-note-voting { 1431 1471 font-size: 1.5em; 1432 1472 clear: left; … … 1457 1497 max-width: 100% !important; 1458 1498 width: inherit !important; 1459 1499 } 1500 .devhub-wrap.archive .hentry, .devhub-wrap.blog .hentry { 1501 padding: 0 0 1.5em 0; 1502 border-bottom: 1px solid #ddd; 1503 } 1460 1504 1461 1505 @media (max-width: 60em) { 1462 1506 .devhub-wrap {