Ticket #21937: 21937.2.diff
| File 21937.2.diff, 3.7 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 … … 1337 1337 1338 1338 /* Minimum width of 600 pixels. */ 1339 1339 @media screen and (min-width: 600px) { 1340 #author-avatar {1340 .author-avatar { 1341 1341 float: left; 1342 1342 margin-top: 8px; 1343 1343 margin-top: 0.571428571rem; 1344 1344 } 1345 #author-description {1345 .author-description { 1346 1346 float: right; 1347 1347 width: 80%; 1348 1348 } … … 1538 1538 } 1539 1539 .entry-content img, 1540 1540 .comment-content img, 1541 #author-avatar img,1541 .author-avatar img, 1542 1542 img.wp-post-image { 1543 1543 border-radius: 0; 1544 1544 box-shadow: none; … … 1564 1564 font-size: 10pt; 1565 1565 text-align: left; 1566 1566 } 1567 #author-avatar,1567 .author-avatar, 1568 1568 #colophon, 1569 1569 #respond, 1570 1570 .commentlist .comment-edit-link, … … 1612 1612 color: #444; 1613 1613 font-size: 10pt; 1614 1614 } 1615 #author-description {1615 .author-description { 1616 1616 float: none; 1617 1617 width: auto; 1618 1618 } -
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> -
wp-content/themes/twentytwelve/rtl.css
43 43 } 44 44 45 45 /* Author profiles */ 46 #author-avatar {46 .author-avatar { 47 47 float: right; 48 48 } 49 #author-description {49 .author-description { 50 50 float: right; 51 51 margin-right: 15px; 52 52 margin-right: 1.071428571rem;