Make WordPress Core

Changeset 45522 for trunk


Ignore:
Timestamp:
06/12/2019 07:30:49 PM (6 years ago)
Author:
afercia
Message:

Administration: Improve the horizontal centering of the Site Health tabs.

Props dkarfa, davidbaumwald, Clorith, tinkerbelly, afercia.
Fixes #46881.

File:
1 edited

Legend:

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

    r45463 r45522  
    109109}
    110110
     111.health-check-tabs-wrapper {
     112    /* IE 11 */
     113    display: -ms-inline-grid;
     114    -ms-grid-columns: 1fr 1fr;
     115    vertical-align: top;
     116    /* modern browsers */
     117    display: inline-grid;
     118    grid-template-columns: 1fr 1fr;
     119}
     120
    111121.health-check-tab {
    112     display: inline-block;
     122    display: block; /* IE 11 */
    113123    text-decoration: none;
    114124    color: inherit;
     
    116126    margin: 0 1rem;
    117127    transition: box-shadow 0.5s ease-in-out;
     128}
     129
     130.health-check-tab:nth-child(1) {
     131    -ms-grid-column: 1; /* IE 11 */
     132}
     133
     134.health-check-tab:nth-child(2) {
     135    -ms-grid-column: 2; /* IE 11 */
    118136}
    119137
Note: See TracChangeset for help on using the changeset viewer.