2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
2024-05-01 08:26:48 +00:00
|
|
|
const theme = ({ dt }) => `
|
|
|
|
.p-breadcrumb {
|
|
|
|
background: ${dt('breadcrumb.background')};
|
|
|
|
border: 0 none;
|
|
|
|
border-radius: ${dt('rounded.base')};
|
|
|
|
padding: 1rem;
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-breadcrumb-list {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style-type: none;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-breadcrumb-separator {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin: 0 0.5rem 0 0.5rem;
|
|
|
|
color: ${dt('breadcrumb.separator.color')};
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-breadcrumb::-webkit-scrollbar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-breadcrumb-item-link {
|
|
|
|
text-decoration: none;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
|
|
|
border-radius: ${dt('rounded.base')};
|
|
|
|
outline-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-breadcrumb-item-link:focus-visible {
|
|
|
|
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
|
|
|
outline-offset: ${dt('focus.ring.offset')};
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-breadcrumb-item-link {
|
|
|
|
color: ${dt('breadcrumb.item.color')};
|
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-breadcrumb-item-label:hover {
|
|
|
|
color: ${dt('breadcrumb.item.hover.color')};
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-breadcrumb-item-icon {
|
|
|
|
color: ${dt('breadcrumb.item.icon.color')};
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2023-10-02 10:46:09 +00:00
|
|
|
const classes = {
|
|
|
|
root: 'p-breadcrumb p-component',
|
2024-04-30 11:51:44 +00:00
|
|
|
list: 'p-breadcrumb-list',
|
|
|
|
homeItem: 'p-breadcrumb-home-item',
|
2024-04-09 11:51:45 +00:00
|
|
|
separator: 'p-breadcrumb-separator',
|
2024-04-30 11:51:44 +00:00
|
|
|
item: ({ instance }) => ['p-breadcrumb-item', { 'p-disabled': instance.disabled() }],
|
|
|
|
itemLink: 'p-breadcrumb-item-link',
|
2024-05-06 13:10:13 +00:00
|
|
|
itemIcon: 'p-breadcrumb-item-icon',
|
|
|
|
itemLabel: 'p-breadcrumb-item-label'
|
2023-10-02 10:46:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'breadcrumb',
|
2024-05-01 08:26:48 +00:00
|
|
|
theme,
|
2023-10-02 10:46:09 +00:00
|
|
|
classes
|
|
|
|
});
|