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-tabview-nav-container {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabview-scrollable > .p-tabview-nav-container {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabview-nav-content {
|
|
|
|
overflow-x: auto;
|
|
|
|
overflow-y: hidden;
|
|
|
|
scroll-behavior: smooth;
|
|
|
|
scrollbar-width: none;
|
|
|
|
overscroll-behavior: contain auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabview-nav {
|
|
|
|
display: flex;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style-type: none;
|
|
|
|
flex: 1 1 auto;
|
2024-03-12 08:19:23 +00:00
|
|
|
background: ${dt('tabview.nav.background')};
|
|
|
|
border: 1px solid ${dt('tabview.nav.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
border-width: 0 0 1px 0;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabview-nav-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;
|
2024-03-12 08:19:23 +00:00
|
|
|
border-color: transparent transparent ${dt('tabview.header.border.color')} transparent;
|
|
|
|
color: ${dt('tabview.header.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
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-tabview-header:not(.p-disabled) .p-tabview-nav-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-tabview-header:not(.p-highlight):not(.p-disabled):hover >.p-tabview-nav-link {
|
2024-03-12 08:19:23 +00:00
|
|
|
color: ${dt('tabview.header.hover.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabview-header.p-highlight > .p-tabview-nav-link {
|
2024-03-12 08:19:23 +00:00
|
|
|
color: ${dt('tabview.header.active.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabview-title {
|
|
|
|
line-height: 1;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabview-nav-btn {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
z-index: 2;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2024-03-27 10:59:21 +00:00
|
|
|
background: ${dt('tabview.navigator.icon.background')};
|
|
|
|
color: ${dt('tabview.navigator.icon.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
width: 2.5rem;
|
|
|
|
border-radius: 0;
|
|
|
|
outline-color: transparent;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-03-27 10:59:21 +00:00
|
|
|
box-shadow: ${dt('tabview.navigator.icon.box.shadow')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabview-nav-btn: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-tabview-nav-btn:hover {
|
2024-03-27 10:59:21 +00:00
|
|
|
color: ${dt('tabview.navigator.icon.hover.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabview-nav-prev {
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabview-nav-next {
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabview-nav-content::-webkit-scrollbar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabview-panels {
|
2024-03-27 10:59:21 +00:00
|
|
|
background: ${dt('tabview.navigator.content.background')};
|
|
|
|
color: ${dt('tabview.navigator.content.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
padding: 0.875rem 1.125rem 1.125rem 1.125rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tabview-ink-bar {
|
|
|
|
z-index: 1;
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
bottom: -1px;
|
|
|
|
height: 1px;
|
2024-03-12 08:19:23 +00:00
|
|
|
background-color: ${dt('tabview.header.active.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
transition: 250ms cubic-bezier(0.35, 0, 0.25, 1);
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|