WordPress.org

Make WordPress Core

Changeset 27009


Ignore:
Timestamp:
01/22/2014 07:00:11 PM (6 years ago)
Author:
nacin
Message:

Responsive improvements to submenus in the toolbar.

Merges [27006] to the 3.8 branch.

  • Remove .ab-sub-wrapper rules in the 782px media query, as they're duplicates of the rules set on line 161.
  • Reposition the arrows for submenus at responsive sizes where the menus are taller.
  • Set the submenu position to static at smartphone sizes, so it's not positioned outside of its parent (and thus offscreen).

props undergroundnetwork, iammattthomas.
fixes #26720.

Location:
branches/3.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8

  • branches/3.8/src/wp-includes/css/admin-bar.css

    r26965 r27009  
    10381038    }
    10391039
    1040     #wpadminbar #wp-admin-bar-my-account .ab-sub-wrapper {
    1041         right: 0;
    1042         left: auto;
    1043     }
    1044 
    10451040    .network-admin #wpadminbar ul#wp-admin-bar-top-secondary > li#wp-admin-bar-my-account {
    10461041        margin-right: 0;
     1042    }
     1043   
     1044    /* Realign arrows on taller responsive submenus */
     1045   
     1046    #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before {
     1047        top: 10px;
     1048        left: 0;
    10471049    }
    10481050}
     
    10981100        display: none;
    10991101    }
    1100 }
     1102   
     1103    /* Make submenus full-width at this size */
     1104   
     1105    #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper {
     1106        position: static;
     1107        -webkit-box-shadow: none;
     1108        box-shadow: none;
     1109    }
     1110}
Note: See TracChangeset for help on using the changeset viewer.