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-tabmenu {
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabmenu-nav {
|
|
|
|
display: flex;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style-type: none;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
background: var(--p-tabmenu-nav-background);
|
|
|
|
border: 1px solid var(--p-tabmenu-nav-border-color);
|
|
|
|
border-width: 0 0 1px 0;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabmenuitem .p-menuitem-link {
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
text-decoration: none;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 0 0 1px 0;
|
|
|
|
border-color: transparent transparent var(--p-tabmenu-header-border-color) transparent;
|
|
|
|
color: var(--p-tabmenu-header-text-color);
|
|
|
|
padding: 1rem 1.125rem;
|
|
|
|
font-weight: 600;
|
2024-03-12 08:19:23 +00:00
|
|
|
border-top-right-radius: ${dt('rounded.base')};
|
|
|
|
border-top-left-radius: ${dt('rounded.base')};
|
|
|
|
transition: color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
margin: 0 0 -1px 0;
|
|
|
|
outline-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabmenuitem .p-menuitem-link:focus-visible {
|
2024-03-12 08:19:23 +00:00
|
|
|
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
outline-offset: -1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabmenuitem .p-menuitem-icon {
|
|
|
|
margin-right: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabmenu-nav .p-menuitem-text {
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabmenuitem:not(.p-highlight):not(.p-disabled):hover .p-menuitem-link {
|
|
|
|
color: var(--p-tabmenu-header-text-color-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabmenuitem.p-highlight .p-menuitem-link {
|
|
|
|
color: var(--p-primary-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabmenu-ink-bar {
|
|
|
|
z-index: 1;
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
bottom: -1px;
|
|
|
|
height: 1px;
|
|
|
|
background-color: var(--p-primary-color);
|
|
|
|
transition: 250ms cubic-bezier(0.35, 0, 0.25, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabmenu::-webkit-scrollbar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|