Skip to content

Commit 5601168

Browse files
authored
make scrolling adjustment mobile-only (still a problem)
1 parent 7364f10 commit 5601168

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

src/wp-includes/css/admin-bar.css

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ html:lang(he-il) .rtl #wpadminbar * {
9999
background: #1d2327;
100100
/* Only visible in Windows High Contrast mode */
101101
outline: 1px solid transparent;
102-
overflow-x: auto;
103-
overflow-y: hidden;
104-
scrollbar-width: thin;
105102
}
106103

107104
#wpadminbar,
@@ -860,6 +857,18 @@ html:lang(he-il) .rtl #wpadminbar * {
860857
display: none;
861858
}
862859

860+
/* Scrolls any overflow, but hides all dropdowns even when there is no overflow */
861+
#wpadminbar {
862+
overflow-x: auto;
863+
overflow-y: hidden;
864+
scrollbar-width: thin;
865+
}
866+
867+
#wpadminbar .ab-sub-wrapper,
868+
#wpadminbar .shortlink-input {
869+
display: none !important;
870+
}
871+
863872
/* WP logo */
864873
#wpadminbar #wp-admin-bar-wp-logo > .ab-item {
865874
padding: 0;

0 commit comments

Comments
 (0)