mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-28 05:27:01 -05:00
140 lines
2.3 KiB
CSS
140 lines
2.3 KiB
CSS
.form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--s-6);
|
|
width: 100%;
|
|
max-width: 24rem;
|
|
margin: 0 auto;
|
|
|
|
&.fullWidth {
|
|
margin: 0;
|
|
max-width: none;
|
|
}
|
|
}
|
|
|
|
.title {
|
|
font-size: var(--font-lg);
|
|
font-weight: var(--weight-extra);
|
|
}
|
|
|
|
.step {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--s-6);
|
|
|
|
&[hidden] {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.stepper {
|
|
container-type: inline-size;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--s-2);
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.stepperItem {
|
|
display: flex;
|
|
flex: 1 1 8rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
.stepperButton {
|
|
display: flex;
|
|
flex: 1;
|
|
min-width: 0;
|
|
align-items: center;
|
|
gap: var(--s-2);
|
|
min-height: var(--field-size-lg);
|
|
padding: var(--s-2) var(--s-3);
|
|
border: var(--border-style);
|
|
border-radius: var(--radius-box);
|
|
background-color: var(--color-bg-high);
|
|
color: var(--color-text);
|
|
font-size: var(--font-sm);
|
|
font-weight: var(--weight-semi);
|
|
text-align: start;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
border-color: var(--color-border-high);
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: var(--focus-ring);
|
|
}
|
|
}
|
|
|
|
.stepperLabel {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* below the width where all steps fit on one row, only the current step shows its label */
|
|
@container (width < 42rem) {
|
|
.stepperItem:not(.stepperItemCurrent) {
|
|
flex: 0 0 auto;
|
|
|
|
& .stepperButton {
|
|
position: relative;
|
|
padding-inline: var(--s-2);
|
|
}
|
|
|
|
& .stepperLabel {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip-path: inset(50%);
|
|
}
|
|
}
|
|
}
|
|
|
|
.stepperButtonCurrent {
|
|
border-color: var(--color-fg-accent);
|
|
|
|
& .stepperNumber {
|
|
background-color: var(--color-fill-accent);
|
|
color: var(--color-fg-on-accent);
|
|
}
|
|
}
|
|
|
|
.stepperButtonError .stepperNumber {
|
|
background-color: var(--color-error-low);
|
|
color: var(--color-error-high);
|
|
}
|
|
|
|
.stepperNumber {
|
|
display: grid;
|
|
flex-shrink: 0;
|
|
place-items: center;
|
|
width: 1.5rem;
|
|
height: 1.5rem;
|
|
border-radius: var(--radius-full);
|
|
background-color: var(--color-bg-higher);
|
|
font-size: var(--font-xs);
|
|
}
|
|
|
|
.stepFooter {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: var(--s-3);
|
|
padding-block-start: var(--s-4);
|
|
border-block-start: var(--border-style);
|
|
}
|
|
|
|
.stepFooterProgress {
|
|
flex: 1;
|
|
min-width: 8rem;
|
|
color: var(--color-text-high);
|
|
font-size: var(--font-sm);
|
|
text-align: center;
|
|
}
|