UNPKG

@primeuix/styles

Version:
1 lines 7.04 kB
{"version":3,"sources":["../../src/stepper/index.ts"],"sourcesContent":["import { css } from '@primeuix/styled';\n\nexport const style = css`\n .p-steplist {\n position: relative;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 0;\n padding: 0;\n list-style-type: none;\n overflow-x: auto;\n }\n\n .p-step {\n position: relative;\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n gap: dt('stepper.step.gap');\n padding: dt('stepper.step.padding');\n }\n\n .p-step:last-of-type {\n flex: initial;\n }\n\n .p-step-header {\n border: 0 none;\n display: inline-flex;\n align-items: center;\n text-decoration: none;\n cursor: pointer;\n transition:\n background dt('stepper.transition.duration'),\n color dt('stepper.transition.duration'),\n border-color dt('stepper.transition.duration'),\n outline-color dt('stepper.transition.duration'),\n box-shadow dt('stepper.transition.duration');\n border-radius: dt('stepper.step.header.border.radius');\n outline-color: transparent;\n background: transparent;\n padding: dt('stepper.step.header.padding');\n gap: dt('stepper.step.header.gap');\n }\n\n .p-step-header:focus-visible {\n box-shadow: dt('stepper.step.header.focus.ring.shadow');\n outline: dt('stepper.step.header.focus.ring.width') dt('stepper.step.header.focus.ring.style') dt('stepper.step.header.focus.ring.color');\n outline-offset: dt('stepper.step.header.focus.ring.offset');\n }\n\n .p-stepper.p-stepper-readonly .p-step {\n cursor: auto;\n }\n\n .p-step-title {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n color: dt('stepper.step.title.color');\n font-weight: dt('stepper.step.title.font.weight');\n transition:\n background dt('stepper.transition.duration'),\n color dt('stepper.transition.duration'),\n border-color dt('stepper.transition.duration'),\n box-shadow dt('stepper.transition.duration'),\n outline-color dt('stepper.transition.duration');\n }\n\n .p-step-number {\n display: flex;\n align-items: center;\n justify-content: center;\n color: dt('stepper.step.number.color');\n border: 2px solid dt('stepper.step.number.border.color');\n background: dt('stepper.step.number.background');\n min-width: dt('stepper.step.number.size');\n height: dt('stepper.step.number.size');\n line-height: dt('stepper.step.number.size');\n font-size: dt('stepper.step.number.font.size');\n z-index: 1;\n border-radius: dt('stepper.step.number.border.radius');\n position: relative;\n font-weight: dt('stepper.step.number.font.weight');\n }\n\n .p-step-number::after {\n content: ' ';\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: dt('stepper.step.number.border.radius');\n box-shadow: dt('stepper.step.number.shadow');\n }\n\n .p-step-active .p-step-header {\n cursor: default;\n }\n\n .p-step-active .p-step-number {\n background: dt('stepper.step.number.active.background');\n border-color: dt('stepper.step.number.active.border.color');\n color: dt('stepper.step.number.active.color');\n }\n\n .p-step-active .p-step-title {\n color: dt('stepper.step.title.active.color');\n }\n\n .p-step:not(.p-disabled):focus-visible {\n outline: dt('focus.ring.width') dt('focus.ring.style') dt('focus.ring.color');\n outline-offset: dt('focus.ring.offset');\n }\n\n .p-step:has(~ .p-step-active) .p-stepper-separator {\n background: dt('stepper.separator.active.background');\n }\n\n .p-stepper-separator {\n flex: 1 1 0;\n background: dt('stepper.separator.background');\n width: 100%;\n height: dt('stepper.separator.size');\n transition:\n background dt('stepper.transition.duration'),\n color dt('stepper.transition.duration'),\n border-color dt('stepper.transition.duration'),\n box-shadow dt('stepper.transition.duration'),\n outline-color dt('stepper.transition.duration');\n }\n\n .p-steppanels {\n padding: dt('stepper.steppanels.padding');\n }\n\n .p-steppanel {\n background: dt('stepper.steppanel.background');\n color: dt('stepper.steppanel.color');\n }\n\n .p-stepper:has(.p-stepitem) {\n display: flex;\n flex-direction: column;\n }\n\n .p-stepitem {\n display: flex;\n flex-direction: column;\n flex: initial;\n }\n\n .p-stepitem.p-stepitem-active {\n flex: 1 1 auto;\n }\n\n .p-stepitem .p-step {\n flex: initial;\n }\n\n .p-stepitem .p-steppanel-content {\n width: 100%;\n padding: dt('stepper.steppanel.padding');\n margin-inline-start: 1rem;\n }\n\n .p-stepitem .p-steppanel {\n display: flex;\n flex: 1 1 auto;\n }\n\n .p-stepitem .p-stepper-separator {\n flex: 0 0 auto;\n width: dt('stepper.separator.size');\n height: auto;\n margin: dt('stepper.separator.margin');\n position: relative;\n left: calc(-1 * dt('stepper.separator.size'));\n }\n\n .p-stepitem .p-stepper-separator:dir(rtl) {\n left: calc(-9 * dt('stepper.separator.size'));\n }\n\n .p-stepitem:has(~ .p-stepitem-active) .p-stepper-separator {\n background: dt('stepper.separator.active.background');\n }\n\n .p-stepitem:last-of-type .p-steppanel {\n padding-inline-start: dt('stepper.step.number.size');\n }\n`;\n"],"mappings":";AAAA,SAAS,WAAW;AAEb,IAAM,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;","names":[]}