UNPKG

@ebay/skin

Version:

Skin - CSS modules that represent the brand eBay

277 lines (253 loc) 7.06 kB
.progress-stepper__items { align-items: flex-start; display: flex; } .progress-stepper__item { align-items: center; display: flex; flex-direction: column; width: 32px; } hr.progress-stepper__separator { background-color: var( --progress-stepper-active-color, var(--color-background-information) ); border: 0; border-radius: 2px; flex: 1; height: 4px; margin: 0; min-width: 80px; position: relative; top: 10px; } .progress-stepper__text { font-size: var(--font-size-default); justify-self: center; margin-top: 8px; text-align: center; width: 80px; } .progress-stepper__text h2, .progress-stepper__text h3, .progress-stepper__text h4, .progress-stepper__text h5, .progress-stepper__text h6 { color: var(--progress-stepper-text-color, var(--color-foreground-primary)); font-size: var(--font-size-default); font-weight: 400; } .progress-stepper__items--upcoming .progress-stepper__text h2, .progress-stepper__items--upcoming .progress-stepper__text h3, .progress-stepper__items--upcoming .progress-stepper__text h4, .progress-stepper__items--upcoming .progress-stepper__text h5, .progress-stepper__items--upcoming .progress-stepper__text h6 { color: var( --progress-stepper-text-light-color, var(--color-foreground-secondary) ); } .progress-stepper__item[aria-current] .progress-stepper__text h2, .progress-stepper__item[aria-current] .progress-stepper__text h3, .progress-stepper__item[aria-current] .progress-stepper__text h4, .progress-stepper__item[aria-current] .progress-stepper__text h5, .progress-stepper__item[aria-current] .progress-stepper__text h6 { font-weight: 700; } .progress-stepper__item[aria-current] ~ .progress-stepper__item .progress-stepper__text h2, .progress-stepper__item[aria-current] ~ .progress-stepper__item .progress-stepper__text h3, .progress-stepper__item[aria-current] ~ .progress-stepper__item .progress-stepper__text h4, .progress-stepper__item[aria-current] ~ .progress-stepper__item .progress-stepper__text h5, .progress-stepper__item[aria-current] ~ .progress-stepper__item .progress-stepper__text h6, .progress-stepper__text p { color: var( --progress-stepper-text-light-color, var(--color-foreground-secondary) ); } .progress-stepper__icon { height: 24px; margin: auto; width: 24px; } .progress-stepper__item[aria-current] ~ hr.progress-stepper__separator, .progress-stepper__items--upcoming hr.progress-stepper__separator { background-color: var( --progress-stepper-upcoming-color, var(--color-background-disabled) ); background-image: none; } .progress-stepper__item[aria-current] + hr.progress-stepper__separator { background-image: linear-gradient( 90deg, var( --progress-stepper-active-color, var(--color-background-information) ) 50%, var(--progress-stepper-upcoming-color, var(--color-background-disabled)) 50% ); } .progress-stepper__item--attention[aria-current] ~ hr.progress-stepper__separator { background-color: var( --progress-stepper-upcoming-color, var(--color-background-disabled) ); background-image: none; } .progress-stepper__text > * { margin: 0; } .progress-stepper { overflow: auto; padding: var(--spacing-200) 0; } .progress-stepper__item:first-child .progress-stepper__text { align-self: flex-start; margin-inline-start: var(--spacing-50); text-align: left; } .progress-stepper__item:last-child .progress-stepper__text { align-self: flex-end; margin-inline-end: var(--spacing-50); text-align: right; } .progress-stepper--vertical .progress-stepper__item { align-items: flex-start; flex-direction: row; height: 24px; width: auto; } .progress-stepper--vertical .progress-stepper__item[aria-current] + hr.progress-stepper__separator { background: linear-gradient( 180deg, var( --progress-stepper-active-color, var(--color-background-information) ) 50%, var(--progress-stepper-upcoming-color, var(--color-background-disabled)) 50% ); } .progress-stepper--vertical .progress-stepper__item--attention[aria-current] ~ hr.progress-stepper__separator { background-color: var( --progress-stepper-upcoming-color, var(--color-background-disabled) ); background-image: none; } .progress-stepper--vertical .progress-stepper__items { display: block; } .progress-stepper--vertical .progress-stepper__item .progress-stepper__text { align-self: center; margin-inline-start: var(--spacing-200); margin-top: 0; text-align: left; white-space: nowrap; width: auto; } .progress-stepper--vertical .progress-stepper__icon { display: inline-block; height: 24px; margin: inherit; width: 24px; } .progress-stepper--vertical .progress-stepper__separator { display: inline-block; flex: inherit; height: 51px; margin-bottom: 12px; margin-left: 10px; margin-top: -4px; min-width: inherit; width: 4px; } [dir="rtl"] .progress-stepper__item:first-child .progress-stepper__text { text-align: right; } [dir="rtl"] .progress-stepper__item[aria-current] + hr.progress-stepper__separator { background-image: linear-gradient( 90deg, var(--progress-stepper-upcoming-color, var(--color-background-disabled)) 50%, var( --progress-stepper-active-color, var(--color-background-information) ) 50% ); } [dir="rtl"] .progress-stepper--vertical .progress-stepper__item[aria-current] + hr.progress-stepper__separator { background: linear-gradient( 180deg, var( --progress-stepper-active-color, var(--color-background-information) ) 50%, var(--progress-stepper-upcoming-color, var(--color-background-disabled)) 50% ); } [dir="rtl"] .progress-stepper--vertical .progress-stepper__items--current .progress-stepper__item[aria-current] ~ hr.progress-stepper__separator { background-color: var( --progress-stepper-upcoming-color, var(--color-background-disabled) ); background-image: none; } [dir="rtl"] .progress-stepper__item:last-child .progress-stepper__text { text-align: left; } [dir="rtl"] .progress-stepper--vertical .progress-stepper__item .progress-stepper__text { text-align: right; } [dir="rtl"] .progress-stepper--vertical .progress-stepper__separator { margin-left: inherit; margin-right: 11px; } @media (min-width: 512px) { hr.progress-stepper__separator { min-width: 120px; } .progress-stepper__text { width: 120px; } }