2024-02-23 07:36:24 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-23 07:36:24 +00:00
|
|
|
.p-stepper-nav {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style-type: none;
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-header {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-header:last-of-type {
|
|
|
|
flex: initial;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-action {
|
|
|
|
border: 0 none;
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, border-color ${dt('transition.duration')}, box-shadow ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-23 07:36:24 +00:00
|
|
|
outline-color: transparent;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-header .p-stepper-action: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-23 07:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper.p-stepper-readonly .p-stepper-header {
|
|
|
|
cursor: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-title {
|
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
max-width: 100%;
|
|
|
|
margin-left: 0.5rem;
|
2024-03-12 08:19:23 +00:00
|
|
|
color: ${dt('stepper.title.color')};
|
2024-02-23 07:36:24 +00:00
|
|
|
font-weight: 500;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, border-color ${dt('transition.duration')}, box-shadow ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-23 07:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-number {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2024-03-19 06:49:28 +00:00
|
|
|
position: relative;
|
2024-03-12 08:19:23 +00:00
|
|
|
color: ${dt('stepper.marker.color')};
|
|
|
|
border: 1px solid ${dt('stepper.marker.border.color')};
|
2024-02-23 07:36:24 +00:00
|
|
|
border-width: 2px;
|
2024-03-12 08:19:23 +00:00
|
|
|
background: ${dt('stepper.marker.background')};
|
2024-02-23 07:36:24 +00:00
|
|
|
min-width: 2rem;
|
|
|
|
height: 2rem;
|
|
|
|
line-height: 2rem;
|
|
|
|
font-size: 1.143rem;
|
|
|
|
border-radius: 50%;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, border-color ${dt('transition.duration')}, box-shadow ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-23 07:36:24 +00:00
|
|
|
}
|
|
|
|
|
2024-03-19 06:49:28 +00:00
|
|
|
.p-stepper-number::after {
|
|
|
|
content: " ";
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border-radius: 50%;
|
|
|
|
box-shadow: 0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12);
|
|
|
|
}
|
|
|
|
|
2024-02-23 07:36:24 +00:00
|
|
|
.p-stepper-header.p-highlight .p-stepper-action {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-header.p-highlight .p-stepper-number {
|
2024-03-12 08:19:23 +00:00
|
|
|
background: ${dt('stepper.marker.active.background')};
|
|
|
|
color: ${dt('stepper.marker.active.background')};
|
2024-02-23 07:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-header.p-highlight .p-stepper-title {
|
2024-03-12 08:19:23 +00:00
|
|
|
color: ${dt('stepper.title.active.background')};
|
2024-02-23 07:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-header:not(.p-disabled):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-23 07:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-header:has(~ .p-highlight) .p-stepper-separator {
|
2024-03-12 08:19:23 +00:00
|
|
|
background: ${dt('stepper.connector.active.background')};
|
2024-02-23 07:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-separator {
|
|
|
|
flex: 1 1 0;
|
2024-03-12 08:19:23 +00:00
|
|
|
background: ${dt('stepper.connector.background')};
|
2024-02-23 07:36:24 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 2px;
|
|
|
|
margin-inline-start: 1rem;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, border-color ${dt('transition.duration')}, box-shadow ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-23 07:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-content {
|
2024-03-12 08:19:23 +00:00
|
|
|
background: ${dt('stepper.content.background')};
|
|
|
|
color: ${dt('stepper.content.color')};
|
2024-02-23 07:36:24 +00:00
|
|
|
padding: 0.875rem 1.125rem 1.125rem 1.125rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-vertical .p-stepper-nav {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-vertical {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-vertical .p-stepper-toggleable-content {
|
|
|
|
display: flex;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-vertical .p-stepper-panel {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex: initial;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-vertical .p-stepper-panel.p-stepper-panel-active {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-vertical .p-stepper-panel .p-stepper-header {
|
|
|
|
flex: initial;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-vertical .p-stepper-panel .p-stepper-content {
|
|
|
|
width: 100%;
|
|
|
|
padding-left: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-vertical .p-stepper-panel .p-stepper-separator {
|
|
|
|
flex: 0 0 auto;
|
|
|
|
width: 2px;
|
|
|
|
height: auto;
|
|
|
|
margin-inline-start: calc(1.75rem + 2px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-vertical .p-stepper-panel:has(~ .p-stepper-panel-active) .p-stepper-separator {
|
2024-03-12 08:19:23 +00:00
|
|
|
background: ${dt('stepper.connector.active.background')};
|
2024-02-23 07:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-stepper-vertical .p-stepper-panel:last-of-type .p-stepper-content {
|
|
|
|
padding-left: 3rem;
|
2024-03-19 06:49:28 +00:00
|
|
|
}
|
2024-02-23 07:36:24 +00:00
|
|
|
`
|
|
|
|
};
|