mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4820 - Menubar responsiveness updates
This commit is contained in:
parent
a073a6690a
commit
e417c5b6c2
60 changed files with 3354 additions and 5017 deletions
|
@ -73,6 +73,40 @@ const css = `
|
|||
justify-content: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.p-menubar.p-menubar-mobile {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.p-menubar.p-menubar-mobile .p-menubar-button {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.p-menubar.p-menubar-mobile .p-menubar-root-list {
|
||||
position: absolute;
|
||||
display: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.p-menubar.p-menubar-mobile .p-submenu-list {
|
||||
width: 100%;
|
||||
position: static;
|
||||
box-shadow: none;
|
||||
border: 0 none;
|
||||
}
|
||||
|
||||
.p-menubar.p-menubar-mobile .p-menubar-root-list .p-menuitem {
|
||||
width: 100%;
|
||||
position: static;
|
||||
}
|
||||
|
||||
.p-menubar.p-menubar-mobile-active .p-menubar-root-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
|
@ -84,6 +118,7 @@ const classes = {
|
|||
root: ({ instance }) => [
|
||||
'p-menubar p-component',
|
||||
{
|
||||
'p-menubar-mobile': instance.queryMatches,
|
||||
'p-menubar-mobile-active': instance.mobileActive
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue