Make WordPress Core

Ticket #51284: 51284-update-side-meta-box-style.patch

File 51284-update-side-meta-box-style.patch, 1.2 KB (added by sachinrajcp123, 13 months ago)
  • src/wp-admin/css/dashboard.css

    diff --git a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css
    index 2c5a73d..6e8c09d 100644
    a b  
    220220.postbox .handlediv {
    221221        cursor: pointer;
    222222        float: right;
    223         width: 30px;
    224         height: 30px;
    225         margin: -6px -6px 0 0;
     223        width: 24px;
     224        height: 24px;
     225        margin: -2px -4px 0 0;
    226226        text-align: center;
     227        display: flex;
     228        align-items: center;
     229        justify-content: center;
     230        border-radius: 2px;
     231}
     232
     233/* Improved accessibility focus style */
     234.postbox .handlediv:focus {
     235        outline: 2px solid #007cba;
     236        outline-offset: 1px;
     237}
     238
     239/* Align arrow and toggle icon styles with Gutenberg panels */
     240.postbox .handlediv .toggle-indicator {
     241        font-size: 16px;
     242        line-height: 1;
     243        opacity: 0.7;
     244}
     245
     246.postbox .handlediv .toggle-indicator:hover {
     247        opacity: 1;
    227248}
    228249
    229250.postbox .handlediv:before {
  • src/wp-admin/css/common.css

    diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css
    index 17a3f21..4f6e0b1 100644
    a b  
    31203120        margin-bottom: 0;
    31213121}
    31223122
     3123/* Adjust side meta boxes layout to reduce icon crowding */
     3124#side-sortables .postbox .hndle {
     3125        padding-right: 28px;
     3126}
     3127
     3128#side-sortables .postbox .handlediv {
     3129        margin-top: 4px;
     3130}