WordPress.org

Make WordPress Core

Changeset 35673


Ignore:
Timestamp:
11/18/2015 06:54:05 PM (4 years ago)
Author:
wonderboymusic
Message:

After [35616], improve the consistency of tabs styling.

Props afercia.
Fixes #34214.

Location:
trunk/src/wp-admin/css
Files:
2 edited

Legend:

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

    r35616 r35673  
    8080/* Tabs */
    8181
    82 .about-wrap h2 .nav-tab {
     82.about-wrap .nav-tab {
     83    padding-right: 15px;
     84    padding-left: 15px;
    8385    font-size: 18px;
    8486}
  • trunk/src/wp-admin/css/common.css

    r35648 r35673  
    19981998
    19991999.nav-tab {
    2000     display: inline-block;
     2000    float: left;
    20012001    border: 1px solid #ccc;
    20022002    border-bottom: none;
    2003     margin: 0 5px 0 0;
    2004     padding: 6px 10px;
    2005     font-size: 15px;
     2003    margin-left: 0.5em; /* half the font size so set the font size properly */
     2004    padding: 5px 10px;
     2005    font-size: 14px;
    20062006    line-height: 24px;
    20072007    font-weight: 600;
     
    20452045}
    20462046
    2047 /* @todo: consider to use flexbox to reset white space between inline-block elements. */
    20482047h1.nav-tab-wrapper, /* Back-compat for pre-4.4 */
    20492048.wrap h2.nav-tab-wrapper, /* higher specificity to override .wrap > h2:first-child */
     
    20512050    border-bottom: 1px solid #ccc;
    20522051    margin: 0;
    2053     padding: 9px 15px 0 6px;
    2054     font-size: 1px; /* normalize white space between inline-block elements */
     2052    padding: 9px 15px 0 0;
    20552053    line-height: inherit;
    20562054}
    20572055
     2056/* contain floats */
     2057.nav-tab-wrapper:after {
     2058    content: "";
     2059    display: table;
     2060    clear: both;
     2061}
    20582062
    20592063/*------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.