@postnord/web-components
Version:
PostNord Web Components
194 lines • 4.41 kB
CSS
/* Global utility variables */
/* Input styles */
/* Transition variables */
pn-wizard .pn-wizard {
z-index: 10000;
position: absolute;
top: 0;
border: none;
margin: 0;
padding: 0;
background-color: transparent;
outline: none;
overflow: unset;
height: 100%;
width: 100%;
max-width: unset;
max-height: unset;
display: none;
opacity: 0;
transition-property: display, opacity;
transition-duration: 0.4s;
transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
pn-wizard .pn-wizard {
transition-duration: 0s;
transition-delay: 0s;
}
}
pn-wizard .pn-wizard {
transition-behavior: allow-discrete;
}
pn-wizard .pn-wizard[open] {
display: block;
opacity: 1;
}
@starting-style {
pn-wizard .pn-wizard[open] {
display: block;
opacity: 0;
}
}
pn-wizard .pn-wizard::backdrop {
background-color: transparent;
}
pn-wizard .pn-wizard-sr-only {
position: absolute;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
margin: -1px;
white-space: nowrap;
}
pn-wizard .pn-wizard-overlay {
z-index: 0;
}
pn-wizard .pn-wizard-highlight {
position: absolute;
left: 0;
top: 0;
width: var(--pn-spotlight-width, 0%);
height: var(--pn-spotlight-height, 0%);
border-radius: var(--pn-spotlight-radius, 0.25em);
box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
z-index: 0;
transform: translate(var(--pn-spotlight-x, 0%), var(--pn-spotlight-y, 0%));
transition-property: transform, width, height, border-radius;
transition-duration: 0.4s;
transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
pn-wizard .pn-wizard-highlight {
transition-duration: 0s;
transition-delay: 0s;
}
}
pn-wizard .pn-wizard-content {
position: absolute;
z-index: 1;
background: #ffffff;
border-radius: 2em;
max-width: 20em;
box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.3);
left: 0;
top: 0;
transform: translate(var(--pn-wizard-content-x), var(--pn-wizard-content-y));
transition-property: transform;
transition-duration: 0.4s;
transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
pn-wizard .pn-wizard-content {
transition-duration: 0s;
transition-delay: 0s;
}
}
@media (max-width: 55em) {
pn-wizard .pn-wizard-content {
position: fixed;
top: unset;
bottom: 0;
left: 0.5em;
border-radius: 2em 2em 0 0;
width: calc(100vw - 1em);
max-width: unset;
transform: none;
}
}
pn-wizard .pn-wizard-cancel {
position: absolute;
top: 1em;
right: 1em;
z-index: 10;
}
pn-wizard .pn-wizard-text {
padding: 3em 1em 1em;
text-align: center;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
gap: clamp(0.5em, 5vw, 1em);
}
pn-wizard .pn-wizard-label {
margin: 0;
font-size: clamp(1.25em, 5vw, 1.5em);
font-weight: 700;
color: #2d2013;
}
pn-wizard .pn-wizard-helpertext {
margin: 0;
font-size: clamp(0.875em, 5vw, 1em);
font-weight: 400;
color: #5e554a;
}
pn-wizard .pn-wizard-controls {
border-top: 0.0625em solid #d3cecb;
padding: 1em;
display: flex;
justify-content: end;
gap: 0.5em;
flex-wrap: wrap;
}
pn-wizard .pn-wizard-indicator {
margin-right: auto;
align-self: center;
font-size: 1em;
color: #5e554a;
padding: 0 0.625em;
}
pn-wizard .pn-wizard-arrow {
position: absolute;
width: 0;
height: 0;
border: 0.5em solid transparent;
top: 0;
right: 0;
bottom: 0;
left: 0;
transition-property: top, right, bottom, left, border-color;
transition-duration: 0.4s;
transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
pn-wizard .pn-wizard-arrow {
transition-duration: 0s;
transition-delay: 0s;
}
}
pn-wizard .pn-wizard-arrow[data-arrow=bottom] {
top: 100%;
bottom: -1em;
left: var(--pn-arrow-offset);
border-top-color: #ffffff;
}
pn-wizard .pn-wizard-arrow[data-arrow=top] {
top: -1em;
left: var(--pn-arrow-offset);
border-bottom-color: #ffffff;
}
pn-wizard .pn-wizard-arrow[data-arrow=right] {
right: -1em;
left: 100%;
top: var(--pn-arrow-offset);
border-left-color: #ffffff;
}
pn-wizard .pn-wizard-arrow[data-arrow=left] {
left: -1em;
top: var(--pn-arrow-offset);
border-right-color: #ffffff;
}
pn-wizard .pn-wizard-arrow[data-arrow=none] {
display: none;
}