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-menu {
|
|
|
|
padding: 0.25rem 0.25rem;
|
2024-03-13 06:56:24 +00:00
|
|
|
background: ${dt('menu.background')};
|
|
|
|
color: ${dt('menu.color')};
|
|
|
|
border: 1px solid ${dt('menu.border.color')};
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
min-width: 12.5rem;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:59:41 +00:00
|
|
|
.p-menu-list {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:59:41 +00:00
|
|
|
.p-menu-item {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin: 2px 0;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:59:41 +00:00
|
|
|
.p-menu-item:first-child {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:59:41 +00:00
|
|
|
.p-menu-item:last-child {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:59:41 +00:00
|
|
|
.p-menu-item-link {
|
2024-02-19 22:53:42 +00:00
|
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
text-decoration: none;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
color: inherit;
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:59:41 +00:00
|
|
|
.p-menu-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('menu.item.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 13:21:05 +00:00
|
|
|
.p-menu-item-label {
|
2024-04-09 11:59:41 +00:00
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-menu-item-icon {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('menu.item.icon.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
margin-right: 0.5rem;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:59:41 +00:00
|
|
|
.p-menu-item.p-focus .p-menu-item-content {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('menu.item.focus.color')};
|
|
|
|
background: ${dt('menu.item.focus.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 11:59:41 +00:00
|
|
|
.p-menu-item.p-focus .p-menu-item-icon {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('menu.item.icon.focus.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 11:59:41 +00:00
|
|
|
.p-menu-item:not(.p-disabled) .p-menu-item-content:hover {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('menu.item.focus.color')};
|
|
|
|
background: ${dt('menu.item.focus.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 11:59:41 +00:00
|
|
|
.p-menu-item:not(.p-disabled) .p-menu-item-content:hover .p-menu-item-icon {
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('menu.item.icon.focus.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 11:59:41 +00:00
|
|
|
.p-menu-overlay {
|
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 11:59:41 +00:00
|
|
|
.p-menu-submenu-item {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0.5rem 0.75rem;
|
2024-03-13 06:56:24 +00:00
|
|
|
color: ${dt('menu.submenu.header.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:59:41 +00:00
|
|
|
.p-menu-separator {
|
2024-03-13 06:56:24 +00:00
|
|
|
border-top: 1px solid ${dt('menu.separator.border.color.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
margin: 2px 0;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|