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-panelmenu {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 0.75rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-panelmenu-panel {
|
2024-03-13 06:56:24 +00:00
|
|
|
background: ${dt('panelmenu.panel.background')};
|
|
|
|
border: 1px solid ${dt('panelmenu.panel.border.color')};
|
|
|
|
color: ${dt('panelmenu.panel.color')};
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
padding: 0.25rem 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-panelmenu-header {
|
|
|
|
outline: 0 none;
|
|
|
|
border: 0 none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-panelmenu-header-content {
|
|
|
|
border: 0 none;
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('panelmenu.item.color')};
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-03-13 06:56:24 +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;
|
|
|
|
}
|
|
|
|
|
2024-04-09 14:27:13 +00:00
|
|
|
.p-panelmenu-header-link {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: flex;
|
|
|
|
gap: 0.5rem;
|
|
|
|
align-items: center;
|
|
|
|
user-select: none;
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
|
|
|
text-decoration: none;
|
|
|
|
color: inherit;
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
2024-04-09 14:27:13 +00:00
|
|
|
.p-panelmenu-header-icon,
|
|
|
|
.p-panelmenu-item-icon,
|
|
|
|
.p-panelmenu-submenu-icon {
|
|
|
|
color: ${dt('panelmenu.item.icon.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content {
|
2024-03-13 06:56:24 +00:00
|
|
|
background: ${dt('panelmenu.item.focus.background')};
|
|
|
|
color: ${dt('panelmenu.item.focus.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 14:27:13 +00:00
|
|
|
.p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content .p-panelmenu-submenu-icon,
|
|
|
|
.p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content .p-panelmenu-header-icon {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('panelmenu.item.icon.focus.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover {
|
2024-03-13 06:56:24 +00:00
|
|
|
background: ${dt('panelmenu.item.focus.background')};
|
|
|
|
color: ${dt('panelmenu.item.focus.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 14:27:13 +00:00
|
|
|
.p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover .p-panelmenu-submenu-icon,
|
|
|
|
.p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover .p-panelmenu-header-icon {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('panelmenu.item.icon.focus.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 14:27:13 +00:00
|
|
|
.p-panelmenu .p-panelmenu-item {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin: 2px 0;
|
|
|
|
}
|
|
|
|
|
2024-04-09 14:27:13 +00:00
|
|
|
.p-panelmenu .p-panelmenu-item:first-child {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2024-04-09 14:27:13 +00:00
|
|
|
.p-panelmenu .p-panelmenu-item:last-child {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2024-04-09 14:27:13 +00:00
|
|
|
.p-panelmenu-submenu {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin: 4px 0 0 0;
|
|
|
|
padding: 0 0 0 1rem;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
2024-04-09 14:27:13 +00:00
|
|
|
.p-panelmenu-item-link {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: flex;
|
|
|
|
gap: 0.5rem;
|
|
|
|
align-items: center;
|
|
|
|
user-select: none;
|
|
|
|
cursor: pointer;
|
|
|
|
text-decoration: none;
|
|
|
|
color: inherit;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
}
|
|
|
|
|
2024-04-09 14:27:13 +00:00
|
|
|
.p-panelmenu-item-label {
|
2024-02-19 22:53:42 +00:00
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
2024-04-09 14:27:13 +00:00
|
|
|
.p-panelmenu-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('panelmenu.item.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 14:27:13 +00:00
|
|
|
.p-menupanelmenu-item.p-focus > .p-panelmenu-item-content {
|
2024-03-13 06:56:24 +00:00
|
|
|
background: ${dt('panelmenu.item.focus.background')};
|
|
|
|
color: ${dt('panelmenu.item.focus.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 14:27:13 +00:00
|
|
|
.p-panelmenu-item.p-focus > .p-panelmenu-item-icon {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('panelmenu.item.focus.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 14:27:13 +00:00
|
|
|
.p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover {
|
2024-03-13 06:56:24 +00:00
|
|
|
background: ${dt('panelmenu.item.focus.background')};
|
|
|
|
color: ${dt('panelmenu.item.focus.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 14:27:13 +00:00
|
|
|
.p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-item-icon,
|
|
|
|
.p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-submenu-icon {
|
|
|
|
color: ${dt('panelmenu.item.icon.focus.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|