Toolbar:
- Fix submenus in responsive mode (were ignoring the .hover class on a parent). - Improve top level items hiding. Fixes #26476. git-svn-id: https://develop.svn.wordpress.org/trunk@26803 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e2b68b77ef
commit
d0689f0564
@ -928,25 +928,10 @@
|
||||
margin-bottom: -2px;
|
||||
}
|
||||
|
||||
/* Hide all third party items */
|
||||
#wpadminbar li {
|
||||
/* Show only default top level items */
|
||||
#wp-toolbar > ul > li {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Allow dropdown list items to appear normally */
|
||||
#wpadminbar li:hover ul li,
|
||||
#wpadminbar li:hover ul li:hover ul li {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
/* Override default min-width so dropdown lists aren't stretched
|
||||
to 100% viewport width at responsive sizes. */
|
||||
#wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper {
|
||||
min-width: intrinsic;
|
||||
min-width: -webkit-fit-content;
|
||||
min-width: -moz-fit-content;
|
||||
min-width: fit-content;
|
||||
}
|
||||
|
||||
#wpadminbar li#wp-admin-bar-menu-toggle,
|
||||
#wpadminbar li#wp-admin-bar-wp-logo,
|
||||
@ -961,6 +946,22 @@
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Allow dropdown list items to appear normally */
|
||||
#wpadminbar li:hover ul li,
|
||||
#wpadminbar li.hover ul li,
|
||||
#wpadminbar li:hover ul li:hover ul li {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
/* Override default min-width so dropdown lists aren't stretched
|
||||
to 100% viewport width at responsive sizes. */
|
||||
#wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper {
|
||||
min-width: intrinsic;
|
||||
min-width: -webkit-fit-content;
|
||||
min-width: -moz-fit-content;
|
||||
min-width: fit-content;
|
||||
}
|
||||
|
||||
#wpadminbar ul#wp-admin-bar-root-default > li {
|
||||
margin-right: 0;
|
||||
}
|
||||
@ -1045,4 +1046,4 @@
|
||||
#wpadminbar li#wp-admin-bar-updates {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user