Ticket #21937: 21937.diff
| File 21937.diff, 3.3 KB (added by , 14 years ago) |
|---|
-
wp-content/themes/twentytwelve/style.css
321 321 .comment-content img, 322 322 .widget img, 323 323 img.header-image, 324 #author-avatar img,324 .author-avatar img, 325 325 img.wp-post-image { 326 326 /* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */ 327 327 border-radius: 3px; … … 407 407 margin-bottom: 24px; 408 408 margin-bottom: 1.714285714rem; 409 409 } 410 #author-info {410 .author-info { 411 411 border-top: 1px solid #ededed; 412 412 margin: 24px 0; 413 413 margin: 1.714285714rem 0; … … 415 415 padding-top: 1.714285714rem; 416 416 overflow: hidden; 417 417 } 418 #author-description p {418 .author-description p { 419 419 color: #777; 420 420 font-size: 13px; 421 421 font-size: 0.928571429rem; 422 422 line-height: 1.846153846; 423 423 } 424 .author.archive #author-info {424 .author.archive .author-info { 425 425 border-top: 0; 426 426 margin: 0 0 48px; 427 427 margin: 0 0 3.428571429rem; 428 428 } 429 .author.archive #author-avatar {429 .author.archive .author-avatar { 430 430 margin-top: 0; 431 431 } 432 432 … … 1314 1314 1315 1315 /* Minimum width of 600 pixels. */ 1316 1316 @media screen and (min-width: 600px) { 1317 #author-avatar {1317 .author-avatar { 1318 1318 float: left; 1319 1319 margin-top: 8px; 1320 1320 margin-top: 0.571428571rem; 1321 1321 } 1322 #author-description {1322 .author-description { 1323 1323 float: right; 1324 1324 width: 80%; 1325 1325 } … … 1515 1515 } 1516 1516 .entry-content img, 1517 1517 .comment-content img, 1518 #author-avatar img,1518 .author-avatar img, 1519 1519 img.wp-post-image { 1520 1520 border-radius: 0; 1521 1521 box-shadow: none; … … 1541 1541 font-size: 10pt; 1542 1542 text-align: left; 1543 1543 } 1544 #author-avatar,1544 .author-avatar, 1545 1545 #colophon, 1546 1546 #respond, 1547 1547 .commentlist .comment-edit-link, … … 1589 1589 color: #444; 1590 1590 font-size: 10pt; 1591 1591 } 1592 #author-description {1592 .author-description { 1593 1593 float: none; 1594 1594 width: auto; 1595 1595 } -
wp-content/themes/twentytwelve/content.php
45 45 <?php twentytwelve_entry_meta(); ?> 46 46 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> 47 47 <?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?> 48 <div id="author-info">49 <div id="author-avatar">48 <div class="author-info"> 49 <div class="author-avatar"> 50 50 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ) ); ?> 51 51 </div><!-- #author-avatar --> 52 <div id="author-description">52 <div class="author-description"> 53 53 <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2> 54 54 <p><?php the_author_meta( 'description' ); ?></p> 55 <div id="author-link">55 <div class="author-link"> 56 56 <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> 57 57 <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve' ), get_the_author() ); ?> 58 58 </a>