Skip to content

Commit

Permalink
Fixed #5741 - Separator causes menubar to break to new line
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Jan 3, 2019
1 parent 0b62ce4 commit 0f5d48a
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/app/components/menubar/menubar.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
padding: .25em;
}

.ui-menubar .ui-menu-separator {
border-width: 1px 0 0 0;
}

.ui-menubar:after {
content: "";
clear: both;
Expand Down Expand Up @@ -51,6 +47,12 @@
display: none;
}

.ui-menubar .ui-menubar-root-list > .ui-menu-separator {
display: inline-block;
vertical-align: middle;
height: 1.5em;
}

.ui-menubar .ui-submenu-list {
display: none;
position: absolute;
Expand Down
1 change: 1 addition & 0 deletions src/app/showcase/components/menubar/menubardemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ <h3>Dependencies</h3>
&#125;
]
&#125;,
&#123;separator:true&#125;,
&#123;
label: 'Quit', icon: 'pi pi-fw pi-times'
&#125;
Expand Down
1 change: 1 addition & 0 deletions src/app/showcase/components/menubar/menubardemo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export class MenubarDemo {
}
]
},
{separator:true},
{
label: 'Quit', icon: 'pi pi-fw pi-times'
}
Expand Down
4 changes: 4 additions & 0 deletions src/assets/components/themes/luna-amber/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -3037,6 +3037,10 @@ body .ui-menubar {
body .ui-menubar .ui-menubar-root-list > .ui-menuitem > .ui-menuitem-link {
padding: 0.714em 0.857em;
}
body .ui-menubar .ui-menubar-root-list > .ui-menu-separator {
border: 1px solid #191919;
border-width: 0 0 0 1px;
}
body .ui-menubar .ui-submenu-list {
padding: 0;
background-color: #252525;
Expand Down
4 changes: 4 additions & 0 deletions src/assets/components/themes/luna-blue/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -3037,6 +3037,10 @@ body .ui-menubar {
body .ui-menubar .ui-menubar-root-list > .ui-menuitem > .ui-menuitem-link {
padding: 0.714em 0.857em;
}
body .ui-menubar .ui-menubar-root-list > .ui-menu-separator {
border: 1px solid #191919;
border-width: 0 0 0 1px;
}
body .ui-menubar .ui-submenu-list {
padding: 0;
background-color: #252525;
Expand Down
4 changes: 4 additions & 0 deletions src/assets/components/themes/luna-green/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -3037,6 +3037,10 @@ body .ui-menubar {
body .ui-menubar .ui-menubar-root-list > .ui-menuitem > .ui-menuitem-link {
padding: 0.714em 0.857em;
}
body .ui-menubar .ui-menubar-root-list > .ui-menu-separator {
border: 1px solid #191919;
border-width: 0 0 0 1px;
}
body .ui-menubar .ui-submenu-list {
padding: 0;
background-color: #252525;
Expand Down
4 changes: 4 additions & 0 deletions src/assets/components/themes/luna-pink/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -3037,6 +3037,10 @@ body .ui-menubar {
body .ui-menubar .ui-menubar-root-list > .ui-menuitem > .ui-menuitem-link {
padding: 0.714em 0.857em;
}
body .ui-menubar .ui-menubar-root-list > .ui-menu-separator {
border: 1px solid #191919;
border-width: 0 0 0 1px;
}
body .ui-menubar .ui-submenu-list {
padding: 0;
background-color: #252525;
Expand Down
4 changes: 4 additions & 0 deletions src/assets/components/themes/nova-colored/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -3037,6 +3037,10 @@ body .ui-menubar {
body .ui-menubar .ui-menubar-root-list > .ui-menuitem > .ui-menuitem-link {
padding: 0.714em 0.857em;
}
body .ui-menubar .ui-menubar-root-list > .ui-menu-separator {
border: 1px solid #c8c8c8;
border-width: 0 0 0 1px;
}
body .ui-menubar .ui-submenu-list {
padding: 0;
background-color: #ffffff;
Expand Down
4 changes: 4 additions & 0 deletions src/assets/components/themes/nova-dark/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -3037,6 +3037,10 @@ body .ui-menubar {
body .ui-menubar .ui-menubar-root-list > .ui-menuitem > .ui-menuitem-link {
padding: 0.714em 0.857em;
}
body .ui-menubar .ui-menubar-root-list > .ui-menu-separator {
border: 1px solid #c8c8c8;
border-width: 0 0 0 1px;
}
body .ui-menubar .ui-submenu-list {
padding: 0;
background-color: #ffffff;
Expand Down
4 changes: 4 additions & 0 deletions src/assets/components/themes/nova-light/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -3037,6 +3037,10 @@ body .ui-menubar {
body .ui-menubar .ui-menubar-root-list > .ui-menuitem > .ui-menuitem-link {
padding: 0.714em 0.857em;
}
body .ui-menubar .ui-menubar-root-list > .ui-menu-separator {
border: 1px solid #c8c8c8;
border-width: 0 0 0 1px;
}
body .ui-menubar .ui-submenu-list {
padding: 0;
background-color: #ffffff;
Expand Down
4 changes: 4 additions & 0 deletions src/assets/components/themes/rhea/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -3037,6 +3037,10 @@ body .ui-menubar {
body .ui-menubar .ui-menubar-root-list > .ui-menuitem > .ui-menuitem-link {
padding: 0.714em 0.857em;
}
body .ui-menubar .ui-menubar-root-list > .ui-menu-separator {
border: 1px solid #c8c8c8;
border-width: 0 0 0 1px;
}
body .ui-menubar .ui-submenu-list {
padding: 0;
background-color: #ffffff;
Expand Down

0 comments on commit 0f5d48a

Please sign in to comment.