2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-menubar {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0.5rem 0.5rem;
|
2024-03-13 06:56:24 +00:00
|
|
|
background: ${dt('menubar.background')};
|
|
|
|
color: ${dt('menubar.color')};
|
|
|
|
border: 1px solid ${dt('menubar.border.color')};
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-root-list,
|
|
|
|
.p-menubar-submenu-list {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
2024-04-09 13:35:36 +00:00
|
|
|
outline: 0 none;
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-menubar-root-list {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-root-list > .p-menubar-item-active > .p-menubar-submenu-list {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-item-content {
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')};
|
2024-03-13 06:56:24 +00:00
|
|
|
border-radius: ${dt('rounded.sm')});
|
|
|
|
color: ${dt('menubar.item.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-item-link {
|
|
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
text-decoration: none;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
color: inherit;
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-menubar-item-label {
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-menubar-item-icon {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('menubar.item.icon.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
margin-right: 0.5rem;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-item.p-focus > .p-menubar-item-content {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('menubar.item.focus.color')};
|
|
|
|
background: ${dt('menubar.item.focus.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-item.p-focus > .p-menubar-item-content .p-menubar-item-icon,
|
|
|
|
.p-menubar-item.p-focus > .p-menubar-item-content .p-menubar-submenu-icon {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('menubar.item.icon.focus.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-item:not(.p-disabled) > .p-menubar-item-content:hover {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('menubar.item.focus.color')};
|
|
|
|
background: ${dt('menubar.item.focus.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-item:not(.p-disabled) > .p-menubar-item-content:hover .p-menubar-item-icon,
|
|
|
|
.p-menubar-item:not(.p-disabled) > .p-menubar-item-content:hover .p-menubar-submenu-icon {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('menubar.item.icon.focus.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-item-active > .p-menubar-item-content {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('menubar.item.focus.color')};
|
|
|
|
background: ${dt('menubar.item.focus.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-item-active > .p-menubar-item-content .p-menubar-item-icon,
|
|
|
|
.p-menubar-item-active > .p-menubar-item-content .p-menubar-submenu-icon {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('menubar.item.icon.focus.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-submenu-icon {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('menubar.item.icon.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
margin-left: auto;
|
|
|
|
font-size: 0.875rem;
|
|
|
|
width: 0.875rem;
|
|
|
|
height: 0.875rem;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-root-list > .p-menubar-item > .p-menubar-item-content .p-menubar-submenu-icon {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin-left: 0.5rem;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-submenu-list {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
min-width: 12.5rem;
|
|
|
|
z-index: 1;
|
|
|
|
padding: 0.25rem 0.25rem;
|
2024-03-13 06:56:24 +00:00
|
|
|
background: ${dt('menubar.background')};
|
|
|
|
color: ${dt('menubar.color')};
|
|
|
|
border: 1px solid ${dt('menubar.border.color')};
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-submenu-list .p-menubar-separator {
|
2024-03-13 06:56:24 +00:00
|
|
|
border-top: 1px solid ${dt('menubar.separator.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
margin: 2px 0;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-submenu-list .p-menubar-item {
|
2024-02-19 22:53:42 +00:00
|
|
|
position: relative;
|
|
|
|
margin: 2px 0;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-submenu-list .p-menubar-item:first-child {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-submenu-list .p-menubar-item:last-child {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-submenu-list > .p-menubar-item-active > .p-menubar-submenu-list {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: block;
|
|
|
|
left: 100%;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-end {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin-left: auto;
|
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-menubar-button {
|
|
|
|
display: none;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
cursor: pointer;
|
|
|
|
width: 1.75rem;
|
|
|
|
height: 1.75rem;
|
|
|
|
position: relative;
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('menubar.mobile.toggle.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
border: 0 none;
|
|
|
|
background: transparent;
|
|
|
|
border-radius: 50%;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
outline-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-menubar-button:hover {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('menubar.mobile.toggle.hover.color')};
|
|
|
|
background: ${dt('menubar.mobile.toggle.hover.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-menubar-button:focus-visible {
|
2024-03-12 08:19:23 +00:00
|
|
|
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
|
|
|
outline-offset: ${dt('focus.ring.offset')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-menubar-mobile {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-menubar-mobile .p-menubar-button {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-menubar-mobile .p-menubar-root-list {
|
|
|
|
position: absolute;
|
|
|
|
display: none;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0.25rem 0.25rem;
|
2024-03-13 06:56:24 +00:00
|
|
|
background: ${dt('menubar.background')};
|
|
|
|
border: 1px solid ${dt('menubar.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-menubar-mobile-active .p-menubar-root-list {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
top: 100%;
|
|
|
|
left: 0;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-mobile .p-menubar-root-list .p-menubar-item {
|
2024-02-19 22:53:42 +00:00
|
|
|
width: 100%;
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-mobile .p-menubar-root-list .p-menubar-separator {
|
2024-02-19 22:53:42 +00:00
|
|
|
border-top: 1px solid #e2e8f0;
|
|
|
|
margin: 2px 0;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-mobile .p-menubar-root-list > .p-menubar-item {
|
2024-02-19 22:53:42 +00:00
|
|
|
position: relative;
|
|
|
|
margin: 2px 0;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-mobile .p-menubar-root-list > .p-menubar-item:first-child {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-mobile .p-menubar-root-list > .p-menubar-item:last-child {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-mobile .p-menubar-root-list > .p-menubar-item > .p-menubar-item-content .p-menubar-submenu-icon {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin-left: auto;
|
|
|
|
transition: transform 0.2s;
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-mobile .p-menubar-root-list > .p-menubar-item-active > .p-menubar-item-content .p-menubar-submenu-icon {
|
2024-02-19 22:53:42 +00:00
|
|
|
transform: rotate(-180deg);
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-mobile .p-menubar-submenu-list .p-menubar-submenu-icon {
|
2024-02-19 22:53:42 +00:00
|
|
|
transition: transform 0.2s;
|
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-mobile .p-menubar-item-active > .p-menubar-item-content .p-menubar-submenu-icon {
|
2024-02-19 22:53:42 +00:00
|
|
|
transform: rotate(-90deg);
|
|
|
|
}
|
|
|
|
|
2024-04-09 13:35:36 +00:00
|
|
|
.p-menubar-mobile .p-menubar-submenu-list {
|
2024-02-19 22:53:42 +00:00
|
|
|
width: 100%;
|
|
|
|
position: static;
|
|
|
|
box-shadow: none;
|
|
|
|
border: 0 none;
|
|
|
|
padding-left: 1rem;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|