Make WordPress Core

Changeset 38865


Ignore:
Timestamp:
10/21/2016 08:36:24 PM (8 years ago)
Author:
davidakennedy
Message:

Twenty Seventeen: Add post author comment styles

Currently, it's hard to output an SVG in the comment function without a lot of extra effort. So this adds a simple border to the author avatar and removes previous code related to SVGs and/or Genericons.

Props laurelfulford.

Fixes #38403.

Location:
trunk/src/wp-content/themes/twentyseventeen
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/assets/css/colors-dark.css

    r38833 r38865  
    88.colors-dark input[type="button"],
    99.colors-dark input[type="submit"],
    10 .colors-dark .bypostauthor > .comment-body > .comment-meta > .comment-author:before,
    1110.colors-dark .entry-footer .edit-link a.post-edit-link {
    1211    background-color: #fff;
     
    8887.colors-dark input[type="datetime-local"]:focus,
    8988.colors-dark input[type="color"]:focus,
    90 .colors-dark textarea:focus {
     89.colors-dark textarea:focus,
     90.bypostauthor > .comment-body > .comment-meta > .comment-author .avatar {
    9191    border-color: #eee;
    9292}
     
    406406}
    407407
    408 .colors-dark .bypostauthor > .comment-body > .comment-meta > .comment-author:before {
    409     border-color: #222;
    410 }
    411 
    412408.colors-dark .menu-toggle,
    413409.colors-dark .menu-toggle:hover,
  • trunk/src/wp-content/themes/twentyseventeen/inc/color-patterns.php

    r38846 r38865  
    3232.colors-custom input[type="button"],
    3333.colors-custom input[type="submit"],
    34 .colors-custom .bypostauthor > .comment-body > .comment-meta > .comment-author:before,
    3534.colors-custom .entry-footer .edit-link a.post-edit-link {
    3635    background-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ) . ', 13% ); /* base: #222; */
     
    112111.colors-custom input[type="datetime-local"]:focus,
    113112.colors-custom input[type="color"]:focus,
    114 .colors-custom textarea:focus {
     113.colors-custom textarea:focus,
     114.bypostauthor > .comment-body > .comment-meta > .comment-author .avatar {
    115115    border-color: hsl( ' . esc_attr( $hue ) . ', ' . $reduced_saturation . ', 20% ); /* base: #333; */
    116116}
     
    409409}
    410410
    411 .colors-custom .bypostauthor > .comment-body > .comment-meta > .comment-author:before {
    412     border-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ) . ', 100% ); /* base: #fff; */
    413 }
    414 
    415411.colors-custom .menu-toggle,
    416412.colors-custom .menu-toggle:hover,
  • trunk/src/wp-content/themes/twentyseventeen/rtl.css

    r38833 r38865  
    175175
    176176.children .comment-author .avatar {
    177     left: auto;
    178     right: -45px;
    179 }
    180 
    181 .bypostauthor > .comment-body > .comment-meta > .comment-author:before {
    182     left: auto;
    183     right: -65px;
    184     margin: -6px -6px 0 0;
    185 }
    186 
    187 .children .bypostauthor > .comment-body > .comment-meta > .comment-author:before {
    188177    left: auto;
    189178    right: -45px;
  • trunk/src/wp-content/themes/twentyseventeen/style.css

    r38833 r38865  
    23342334}
    23352335
    2336 .bypostauthor > .comment-body > .comment-meta > .comment-author:before {
    2337     background: #222;
    2338     -webkit-border-radius: 20px;
    2339     border-radius: 20px;
    2340     border: 1px solid #fff;
    2341     color: #fff;
    2342     left: -65px;
    2343     font-size: 16px;
    2344     font-size: 1rem;
    2345     height: 20px;
    2346     line-height: 1;
    2347     margin: -6px 0 0 -6px;
    2348     position: absolute;
    2349     text-align: center;
    2350     width: 20px;
    2351     z-index: 2;
    2352 }
    2353 
    2354 .children .bypostauthor > .comment-body > .comment-meta > .comment-author:before {
    2355     font-size: 12px;
    2356     font-size: 0.75rem;
    2357     height: 16px;
    2358     left: -45px;
    2359     width: 16px;
     2336.bypostauthor > .comment-body > .comment-meta > .comment-author .avatar {
     2337    border: 1px solid #333;
     2338    padding: 2px;
    23602339}
    23612340
Note: See TracChangeset for help on using the changeset viewer.