Make WordPress Core

Changeset 25216


Ignore:
Timestamp:
09/02/2013 10:02:15 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: style adjustments for the new HTML5 comment markup, and minor bug fixes for comment responsive pattern. Props iamtakashi, fixes #25045.

Location:
trunk/src/wp-content/themes/twentyfourteen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/comments.php

    r25087 r25216  
    4141                'style'      => 'ol',
    4242                'short_ping' => true,
     43                'avatar_size'=> 42,
    4344            ) );
    4445        ?>
  • trunk/src/wp-content/themes/twentyfourteen/style.css

    r25215 r25216  
    17691769    margin: 0 0 4.8rem 0;
    17701770}
    1771 .comment-metadata,
    17721771.comment-author {
    17731772    font-size: 14px;
    17741773    font-size: 1.4rem;
    17751774    line-height: 1.7142857142;
     1775    text-transform: uppercase;
     1776}
     1777.comment-metadata,
     1778.comment-list .reply {
     1779    font-size: 12px;
     1780    font-size: 1.2rem;
     1781    line-height: 2;
     1782    text-transform: uppercase;
    17761783}
    17771784.comment-author .fn {
     
    17931800    color: #24890d;
    17941801    text-decoration: none;
    1795 }
    1796 .comment-edit-link:before {
    1797     color: rgba(0, 0, 0, 0.2);
    1798     content: '\007c\0020';
    17991802}
    18001803.comments-area article,
     
    18251828    padding: 0.2rem;
    18261829    position: absolute;
    1827         top: 3px;
    1828         top: 0.3rem;
     1830        top: 0;
    18291831        left: 0;
    1830     width: 22px;
    1831     width: 2.2rem;
    1832     height: 22px;
    1833     height: 2.2rem;
     1832    width: 18px;
     1833    width: 1.8rem;
     1834    height: 18px;
     1835    height: 1.8rem;
    18341836}
    18351837.bypostauthor .avatar {
    18361838    background-color: #24890d;
    18371839}
     1840.says {
     1841    display: none;
     1842}
    18381843.comment-author .fn {
    18391844    font-style: normal;
    18401845}
    1841 .comment-author .avatar {
    1842     position: absolute;
    1843         top: 2px;
    1844         top: 0.2rem;
    1845         left: 2px;
    1846         left: 0.2rem;
    1847     width: 22px;
    1848     width: 2.2rem;
    1849     height: 22px;
    1850     height: 2.2rem;
    1851 }
    18521846.comment-metadata,
    1853 .comment-content {
     1847.comment-content,
     1848.comment-list .reply {
    18541849    padding-left: 36px;
    18551850    padding-left: 3.6rem;
     1851}
     1852.comment-edit-link:before,
     1853.comment-reply-link:before,
     1854.comment-reply-login:before {
     1855    display: inline-block;
     1856    -webkit-font-smoothing: antialiased;
     1857    font: normal 16px/1 'Genericons';
     1858    font-size:1.6rem;
     1859    vertical-align: top;
     1860}
     1861.comment-edit-link {
     1862    margin-left: 10px;
     1863    margin-left: 1.0rem;
     1864}
     1865.comment-edit-link:before {
     1866    content: "\f411";
     1867    margin: 3px 2px 0 0;
     1868    margin: 0.3rem 0.2rem 0 0;
     1869}
     1870.comment-reply-link:before,
     1871.comment-reply-login:before {
     1872    content: "\f412";
     1873    margin: 3px 3px 0 0;
     1874    margin: 0.3rem 0.3rem 0 0;
    18561875}
    18571876.comment-content a {
     
    18811900}
    18821901.comment .comment-respond {
    1883     margin-left: 47px;
    1884     margin-left: 4.7rem;
     1902    margin-left: 36px;
     1903    margin-left: 3.6rem;
    18851904}
    18861905.comment-respond h3 {
     
    25282547    }
    25292548    .comment-author .avatar {
    2530         width: 32px;
    2531         width: 3.2rem;
    2532         height: 32px;
    2533         height: 3.2rem;
     2549        width: 42px;
     2550        width: 4.2rem;
     2551        height: 42px;
     2552        height: 4.2rem;
    25342553    }
    25352554    .comment-author,
    25362555    .comment-metadata,
    2537     .comment-content {
     2556    .comment-content,
     2557    .comment-list .reply {
    25382558        padding-left: 60px;
    25392559        padding-left: 6.0rem;
     
    25572577        padding-left: 9.12778904%;
    25582578    }
     2579    .comment .comment-respond {
     2580        margin-left: 60px;
     2581        margin-left: 6.0rem;
     2582    }
    25592583    .image-navigation .previous-image,
    25602584    .image-navigation .next-image,
     
    26392663    .no-comments,
    26402664    .comment-respond,
    2641     .comments-area article,
    2642     .comment-list .trackback,
    2643     .comment-list .pingback,
    26442665    .post-navigation [rel="prev"],
    26452666    .post-navigation [rel="next"] {
     
    26472668        padding-left: 17.06896551%;
    26482669    }
     2670    .comments-area article,
     2671    .comment-list .trackback,
     2672    .comment-list .pingback {
     2673        padding-right: 11.25%;
     2674        padding-left: 15.46875%;
     2675    }
    26492676    .comment-respond {
    26502677        padding-right: 13.8900862%;
    26512678    }
     2679    .comment .comment-respond {
     2680        margin-left: 50px;
     2681        margin-left: 5.0rem;
     2682    }
    26522683    .comment-list,
    26532684    .full-width .comment-list {
    2654         margin-left: -70px;
    2655         margin-left: -7.0rem;
     2685        margin-left: -60px;
     2686        margin-left: -6.0rem;
    26562687    }
    26572688    .comment-navigation {
     
    28482879        padding-left: 9.19765166%;
    28492880    }
     2881    .comment .comment-respond {
     2882        margin-left: 60px;
     2883        margin-left: 6.0rem;
     2884    }
    28502885    .image-navigation .previous-image,
    28512886    .image-navigation .next-image,
     
    29062941    .no-comments,
    29072942    .comment-respond,
    2908     .comments-area article,
    2909     .comment-list .trackback,
    2910     .comment-list .pingback,
    29112943    .post-navigation [rel="prev"],
    29122944    .post-navigation [rel="next"] {
     
    29142946        padding-left: 16.77524429%;
    29152947    }
     2948    .comments-area article,
     2949    .comment-list .trackback,
     2950    .comment-list .pingback {
     2951        padding-right: 11.27596439%;
     2952        padding-left: 15.2818991%;
     2953    }
    29162954    .comment-respond {
    29172955        padding-right: 13.73697916%;
    29182956    }
     2957    .comment .comment-respond {
     2958        margin-left: 50px;
     2959        margin-left: 5.0rem;
     2960    }
    29192961    .comment-list,
    29202962    .full-width .comment-list {
    2921         margin-left: -70px;
    2922         margin-left: -7.0rem;
     2963        margin-left: -60px;
     2964        margin-left: -6.0rem;
    29232965    }
    29242966    .comment-navigation {
Note: See TracChangeset for help on using the changeset viewer.