Toolbar:
- Fix submenus in responsive mode (were ignoring the .hover class on a parent). - Improve top level items hiding. Fixes #26476. Built from https://develop.svn.wordpress.org/trunk@26803 git-svn-id: http://core.svn.wordpress.org/trunk@26690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1017bcf4f4
commit
f7c176ca46
|
@ -928,26 +928,11 @@
|
||||||
margin-bottom: -2px;
|
margin-bottom: -2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide all third party items */
|
/* Show only default top level items */
|
||||||
#wpadminbar li {
|
#wp-toolbar > ul > li {
|
||||||
display: none;
|
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-menu-toggle,
|
||||||
#wpadminbar li#wp-admin-bar-wp-logo,
|
#wpadminbar li#wp-admin-bar-wp-logo,
|
||||||
#wpadminbar li#wp-admin-bar-my-sites,
|
#wpadminbar li#wp-admin-bar-my-sites,
|
||||||
|
@ -961,6 +946,22 @@
|
||||||
display: block;
|
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 {
|
#wpadminbar ul#wp-admin-bar-root-default > li {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -928,26 +928,11 @@
|
||||||
margin-bottom: -2px;
|
margin-bottom: -2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide all third party items */
|
/* Show only default top level items */
|
||||||
#wpadminbar li {
|
#wp-toolbar > ul > li {
|
||||||
display: none;
|
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-menu-toggle,
|
||||||
#wpadminbar li#wp-admin-bar-wp-logo,
|
#wpadminbar li#wp-admin-bar-wp-logo,
|
||||||
#wpadminbar li#wp-admin-bar-my-sites,
|
#wpadminbar li#wp-admin-bar-my-sites,
|
||||||
|
@ -961,6 +946,22 @@
|
||||||
display: block;
|
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 {
|
#wpadminbar ul#wp-admin-bar-root-default > li {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue