Make WordPress Core

Changeset 40059


Ignore:
Timestamp:
02/14/2017 06:41:25 PM (8 years ago)
Author:
afercia
Message:

Buttons: Fix a few .button-link glitches after [40052].

Removes some stray underlines. Explicitly set the button text to be left aligned.

Props Cheffheid, f.staude, Presskopp.

See #34242.
Fixes #35126, #38712.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r40052 r40059  
    20472047    width: 36px;
    20482048    height: 36px;
     2049    margin: 0;
    20492050    padding: 0;
     2051    border: 0;
     2052    background: none;
     2053    cursor: pointer;
    20502054}
    20512055
  • trunk/src/wp-admin/css/customize-controls.css

    r40052 r40059  
    14631463/* Reordering */
    14641464.reorder-toggle {
    1465     color: #0073aa;
    14661465    float: right;
    14671466    padding: 5px 8px;
     
    14691468    cursor: pointer;
    14701469    outline: none;
    1471     -webkit-user-select: none;
    1472     -moz-user-select: none;
    1473     -ms-user-select: none;
    1474     user-select: none;
    1475 }
    1476 
    1477 .reorder-toggle:hover {
    1478     color: #00a0d2;
    1479 }
    1480 
    1481 .reorder-toggle:focus {
    1482     outline: 1px dotted;
    14831470}
    14841471
     
    14921479.reordering .reorder {
    14931480    display: none;
    1494     color: #0073aa;
    1495 }
    1496 
    1497 .reorder-toggle:hover .reorder-done,
    1498 .reorder-toggle:active .reorder-done,
    1499 .reorder-toggle:focus .reorder-done {
    1500     color: #00a0d2;
    15011481}
    15021482
  • trunk/src/wp-admin/includes/template.php

    r40028 r40059  
    10391039                        }
    10401040
    1041                         echo '<button type="button" class="handlediv button-link" aria-expanded="true">';
     1041                        echo '<button type="button" class="handlediv" aria-expanded="true">';
    10421042                        echo '<span class="screen-reader-text">' . sprintf( __( 'Toggle panel: %s' ), $widget_title ) . '</span>';
    10431043                        echo '<span class="toggle-indicator" aria-hidden="true"></span>';
  • trunk/src/wp-includes/css/buttons.css

    r40052 r40059  
    210210    outline: none;
    211211    cursor: pointer;
     212    text-align: left;
    212213    /* Mimics the default link style in common.css */
    213214    color: #0073aa;
Note: See TracChangeset for help on using the changeset viewer.