WordPress.org

Make WordPress Core

Changeset 39228


Ignore:
Timestamp:
11/14/2016 06:48:59 PM (4 years ago)
Author:
westonruter
Message:

Customize: Improve styles for hover, focus, and active states on edit shortcuts.

Props michaelarestad.
Fixes #38758.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/customize-preview.css

    r39227 r39228  
    2828    outline: none;
    2929    z-index: 5;
    30 }
    31 
    32 .widget .customize-partial-edit-shortcut button:active,
    33 .customize-partial-edit-shortcut button:active {
    34     padding: 3px;
    35     border: 1px solid #0085ba;
    3630}
    3731
     
    8882}
    8983
    90 .customize-partial-edit-shortcut button:hover,
     84.customize-partial-edit-shortcut button:hover {
     85    background: #008ec2; /* matches primary buttons */
     86}
     87
    9188.customize-partial-edit-shortcut button:focus {
    92     background: #008ec2; /* matches primary buttons */
    93     border-color: #191e23; /* provides visual focus style with 4.5 contrast against background color */
     89    box-shadow: 0 0 0 2px #008ec2;
    9490}
    9591
Note: See TracChangeset for help on using the changeset viewer.