-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin-bar-wrap-fix.scss
executable file
·58 lines (58 loc) · 1.52 KB
/
admin-bar-wrap-fix.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@media screen and (min-width: 782px) {
// Prevent wrapping of admin bar that has more items than admin bar area on desktop/tablet layout
#wpadminbar {
.quicklinks {
justify-content: space-between;
> ul > li {
float: none !important;
}
> ul > li,
.ab-item {
white-space: nowrap;
text-overflow: ellipsis;
min-width: 0 !important;
}
.ab-item {
overflow: hidden;
.ab-label,
.display-name {
float: none;
display: inline;
}
}
}
.quicklinks,
.quicklinks > ul {
display: -ms-flexbox;
display: flex;
flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
min-width: 0 !important;
}
#wp-admin-bar-top-secondary {
flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
}
}
}
@media screen and (max-width: 782px) {
// Prevent wrapping of admin bar that has more items than admin bar area on mobile layout
#wpcontent {
padding-top: 15px; // Browser scrollbar dimension per https://codepen.io/sambible/post/browser-scrollbar-widths(with the overflow-y:hidden; handling the difference between them)
}
#wpadminbar {
display: flex;
flex-wrap: nowrap;
padding-bottom: 15px; // Browser scrollbar dimension per https://codepen.io/sambible/post/browser-scrollbar-widths (with the overflow-y:hidden; handling the difference between them)
overflow-x: scroll;
overflow-y: hidden;
> *,
.ab-top-menu {
display: flex;
flex-wrap: nowrap;
}
.ab-sub-wrapper {
display: none !important;
}
}
}