xdesign-vue-next
Version:
XDesign Component for vue-next
549 lines (548 loc) • 18.4 kB
CSS
.default-step-icon {
display: flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
text-align: center;
border-radius: var(--td-radius-circle);
font-size: var(--td-font-size-body-large);
}
.x-steps {
font: var(--td-font-body-medium);
color: var(--td-text-color-primary);
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
display: flex;
width: 100%;
}
.x-steps .x-steps-item {
flex: 1;
overflow: hidden;
vertical-align: top;
margin-right: var(--td-comp-margin-s);
position: relative;
display: flex;
}
.x-steps .x-steps-item:last-child {
flex: none;
}
.x-steps .x-steps-item__inner {
width: fit-content;
position: relative;
display: flex;
}
.x-steps .x-steps-item__inner.x-steps-item--clickable {
cursor: pointer;
}
.x-steps .x-steps-item--finish .x-steps-item__icon .x-icon {
color: var(--td-brand-color);
}
.x-steps .x-steps-item--finish .x-steps-item__icon--number {
border-color: var(--td-brand-color);
}
.x-steps .x-steps-item--finish .x-steps-item__title {
color: var(--td-text-color-primary);
font-weight: normal;
}
.x-steps .x-steps-item--finish .x-steps-item__description {
color: var(--td-text-color-secondary);
}
.x-steps .x-steps-item--process .x-steps-item__icon .x-icon {
color: var(--td-brand-color);
}
.x-steps .x-steps-item--process .x-steps-item__icon--number {
border-color: var(--td-brand-color);
background-color: var(--td-brand-color);
color: var(--td-text-color-anti);
font-weight: bold;
}
.x-steps .x-steps-item--process .x-steps-item__title {
color: var(--td-brand-color);
font-weight: bold;
}
.x-steps .x-steps-item--process .x-steps-item__description {
color: var(--td-text-color-secondary);
}
.x-steps .x-steps-item--error .x-steps-item__icon .x-icon {
color: var(--td-error-color);
}
.x-steps .x-steps-item--error .x-steps-item__icon--number {
color: var(--td-error-color);
border-color: var(--td-error-color);
}
.x-steps .x-steps-item--error .x-steps-item__title {
color: var(--td-error-color);
}
.x-steps .x-steps-item--error .x-steps-item__description {
color: var(--td-text-color-secondary);
}
.x-steps .x-steps-item__icon {
vertical-align: top;
font-size: var(--td-font-size-body-medium);
margin-right: var(--td-comp-margin-s);
color: var(--td-text-color-placeholder);
}
.x-steps .x-steps-item__icon--number {
color: var(--td-text-color-placeholder);
border: 1px solid var(--td-text-color-placeholder);
display: flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
text-align: center;
border-radius: var(--td-radius-circle);
font-size: var(--td-font-size-body-large);
}
.x-steps .x-steps-item__icon--finish {
border: 1px solid var(--td-brand-color);
display: flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
text-align: center;
border-radius: var(--td-radius-circle);
font-size: var(--td-font-size-body-large);
}
.x-steps .x-steps-item__icon--error {
border: 1px solid var(--td-error-color);
color: #000;
display: flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
text-align: center;
border-radius: var(--td-radius-circle);
font-size: var(--td-font-size-body-large);
}
.x-steps .x-steps-item__icon > .x-icon {
font-size: calc(var(--td-font-size-body-medium) + 10px);
}
.x-steps .x-steps-item__title {
position: relative;
padding-right: var(--td-comp-margin-s);
color: var(--td-text-color-placeholder);
font-size: var(--td-font-size-body-large);
line-height: 24px;
}
.x-steps .x-steps-item__description {
color: var(--td-text-color-placeholder);
font-size: var(--td-font-size-body-medium);
margin-bottom: var(--td-comp-margin-xs);
line-height: 22px;
}
.x-steps--line-separator .x-steps-item:before,
.x-steps--line-separator .x-steps-item:after,
.x-steps--line-separator .x-steps-item__title:after {
border-style: solid;
}
.x-steps--dashed-separator .x-steps-item:before,
.x-steps--dashed-separator .x-steps-item:after,
.x-steps--dashed-separator .x-steps-item__title:after {
border-style: dashed;
}
.x-steps--horizontal.x-steps--default-anchor .x-steps-item__title {
width: fit-content;
margin-bottom: var(--td-comp-margin-xs);
}
.x-steps--horizontal.x-steps--default-anchor .x-steps-item__icon__number {
width: 22px;
height: 22px;
}
.x-steps--horizontal.x-steps--default-anchor .x-steps-item__icon > .x-icon {
font-size: calc(var(--td-font-size-body-medium) + 10px);
}
.x-steps--horizontal.x-steps--default-anchor .x-steps-item:not(:last-child) .x-steps-item__title:after {
content: "";
display: block;
width: 9999px;
border-left: 0;
border-top: 0;
border-bottom-width: 1px;
border-bottom-color: var(--td-text-color-placeholder);
position: absolute;
left: 100%;
top: 50%;
transform: translateY(-50%);
}
.x-steps--horizontal.x-steps--default-anchor.x-steps--arrow-separator .x-steps-item:not(:last-child):after {
flex: 1;
height: 24px;
content: "^";
transform: rotateZ(90deg);
display: inline-flex;
justify-content: center;
align-items: flex-end;
border: 0;
font-size: var(--td-font-size-body-large);
color: var(--td-text-color-placeholder);
}
.x-steps--horizontal.x-steps--default-anchor.x-steps--arrow-separator .x-steps-item--finish:not(:last-child)::after {
color: var(--td-brand-color);
}
.x-steps--horizontal.x-steps--default-anchor .x-steps-item--finish:not(:last-child) .x-steps-item__title:after {
border-bottom-width: 2px;
border-bottom-color: var(--td-brand-color);
color: var(--td-brand-color);
}
.x-steps--horizontal.x-steps--default-anchor.x-steps--reverse .x-steps-item:not(:last-child) .x-steps-item__title:after {
content: "";
display: block;
width: 9999px;
border-left: 0;
border-top: 0;
border-bottom-width: 1px;
border-bottom-color: var(--td-text-color-placeholder);
position: absolute;
left: 100%;
top: 50%;
transform: translateY(-50%);
}
.x-steps--horizontal.x-steps--default-anchor.x-steps--reverse.x-steps--arrow-separator .x-steps-item:not(:last-child):after {
flex: 1;
height: 24px;
content: "^";
transform: rotateZ(90deg);
display: inline-flex;
justify-content: center;
align-items: flex-end;
border: 0;
font-size: var(--td-font-size-body-large);
color: var(--td-text-color-placeholder);
}
.x-steps--horizontal.x-steps--default-anchor.x-steps--reverse.x-steps--arrow-separator .x-steps-item--finish:not(:last-child)::after {
color: var(--td-brand-color);
}
.x-steps--horizontal.x-steps--default-anchor.x-steps--reverse.x-steps--arrow-separator .x-steps-item:not(:last-child):after {
transform: rotateZ(-90deg);
}
.x-steps--horizontal.x-steps--default-anchor.x-steps--reverse.x-steps--arrow-separator .x-steps-item--process:not(:last-child)::after,
.x-steps--horizontal.x-steps--default-anchor.x-steps--reverse.x-steps--arrow-separator .x-steps-item--finish:not(:last-child)::after {
color: var(--td-brand-color);
}
.x-steps--horizontal.x-steps--default-anchor.x-steps--reverse .x-steps-item--finish:not(:last-child) .x-steps-item__title:after {
border-bottom-width: 2px;
border-bottom-color: var(--td-brand-color);
color: var(--td-brand-color);
}
.x-steps--horizontal.x-steps--default-anchor.x-steps--reverse .x-steps-item--process:not(:last-child) .x-steps-item__title:after,
.x-steps--horizontal.x-steps--default-anchor.x-steps--reverse .x-steps-item--finish:not(:last-child) .x-steps-item__title:after {
border-bottom-width: 2px;
border-bottom-color: var(--td-brand-color);
color: var(--td-brand-color);
}
.x-steps--horizontal.x-steps--dot-anchor .x-steps-item {
overflow: visible;
}
.x-steps--horizontal.x-steps--dot-anchor .x-steps-item .x-steps-item__title {
padding-right: 0;
margin-bottom: var(--td-comp-margin-xs);
}
.x-steps--horizontal.x-steps--dot-anchor .x-steps-item--finish .x-steps-item__icon {
border-color: var(--td-brand-color);
}
.x-steps--horizontal.x-steps--dot-anchor .x-steps-item--process .x-steps-item__icon {
background: var(--td-brand-color);
border-color: var(--td-brand-color);
}
.x-steps--horizontal.x-steps--dot-anchor .x-steps-item--error .x-steps-item__icon {
background: var(--td-error-color);
border-color: var(--td-error-color);
}
.x-steps--horizontal.x-steps--dot-anchor .x-steps-item__inner {
display: flex;
flex-direction: column;
align-items: center;
}
.x-steps--horizontal.x-steps--dot-anchor .x-steps-item__icon {
display: block;
width: 8px;
height: 8px;
border: 2px solid var(--td-text-color-placeholder);
border-radius: var(--td-radius-circle);
margin-bottom: var(--td-comp-margin-xs);
position: relative;
box-sizing: border-box;
flex-shrink: 0;
}
.x-steps--horizontal.x-steps--dot-anchor .x-steps-item__content {
text-align: center;
width: 140px;
}
.x-steps--horizontal.x-steps--dot-anchor.x-steps--arrow-separator .x-steps-item:not(:last-child)::after {
flex: 1;
content: "^";
display: inline-flex;
justify-content: center;
align-items: flex-start;
border: 0;
font-size: var(--td-font-size-body-large);
transform: rotateZ(90deg);
color: var(--td-text-color-placeholder);
}
.x-steps--horizontal.x-steps--dot-anchor.x-steps--arrow-separator .x-steps-item--finish:not(:last-child)::after {
color: var(--td-brand-color);
}
.x-steps--horizontal.x-steps--dot-anchor .x-steps-item:not(:last-child)::after {
content: "";
display: block;
width: calc(100% - 16px);
border-left: 0;
border-top: 0;
border-bottom-width: 1px;
border-bottom-color: var(--td-text-color-placeholder);
position: absolute;
left: calc(140px / 2 + 8px);
top: 2.5px;
}
.x-steps--horizontal.x-steps--dot-anchor .x-steps-item--finish:not(:last-child)::after {
color: var(--td-brand-color);
border-bottom-color: var(--td-brand-color);
border-bottom-width: 2px;
}
.x-steps--horizontal.x-steps--dot-anchor.x-steps--reverse.x-steps--arrow-separator .x-steps-item:not(:last-child)::after {
flex: 1;
content: "^";
display: inline-flex;
justify-content: center;
align-items: flex-start;
border: 0;
font-size: var(--td-font-size-body-large);
transform: rotateZ(90deg);
color: var(--td-text-color-placeholder);
}
.x-steps--horizontal.x-steps--dot-anchor.x-steps--reverse.x-steps--arrow-separator .x-steps-item--finish:not(:last-child)::after {
color: var(--td-brand-color);
}
.x-steps--horizontal.x-steps--dot-anchor.x-steps--reverse.x-steps--arrow-separator .x-steps-item:not(:last-child)::after {
transform: rotateZ(-90deg);
}
.x-steps--horizontal.x-steps--dot-anchor.x-steps--reverse.x-steps--arrow-separator .x-steps-item--process:not(:last-child)::after,
.x-steps--horizontal.x-steps--dot-anchor.x-steps--reverse.x-steps--arrow-separator .x-steps-item--finish:not(:last-child)::after {
color: var(--td-brand-color);
}
.x-steps--horizontal.x-steps--dot-anchor.x-steps--reverse .x-steps-item:not(:last-child)::after {
content: "";
display: block;
width: calc(100% - 16px);
border-left: 0;
border-top: 0;
border-bottom-width: 1px;
border-bottom-color: var(--td-text-color-placeholder);
position: absolute;
left: calc(140px / 2 + 8px);
top: 2.5px;
}
.x-steps--horizontal.x-steps--dot-anchor.x-steps--reverse .x-steps-item--finish:not(:last-child)::after {
color: var(--td-brand-color);
border-bottom-color: var(--td-brand-color);
border-bottom-width: 2px;
}
.x-steps--horizontal.x-steps--dot-anchor.x-steps--reverse .x-steps-item--process:not(:last-child)::after,
.x-steps--horizontal.x-steps--dot-anchor.x-steps--reverse .x-steps-item--finish:not(:last-child)::after {
color: var(--td-brand-color);
border-bottom-color: var(--td-brand-color);
border-bottom-width: 2px;
}
.x-steps--vertical {
width: fit-content;
flex-direction: column;
}
.x-steps--vertical.x-steps--positive.x-steps--arrow-separator .x-steps-item:not(:last-child)::before {
content: "^";
border: 0;
height: calc(100% - 24px);
position: absolute;
top: 24px;
left: 6px;
display: flex;
align-items: center;
font-size: var(--td-font-size-body-large);
transform: rotateZ(180deg);
color: var(--td-text-color-placeholder);
}
.x-steps--vertical.x-steps--positive.x-steps--arrow-separator .x-steps-item--finish:not(:last-child)::before {
color: var(--td-brand-color);
}
.x-steps--vertical.x-steps--positive .x-steps-item {
padding-bottom: var(--td-comp-margin-xxl);
margin-bottom: 5px;
}
.x-steps--vertical.x-steps--positive .x-steps-item:not(:last-child)::before {
content: "";
display: block;
height: 100%;
border-left: 0;
border-top: 0;
border-right-width: 1px;
border-right-color: var(--td-text-color-placeholder);
position: absolute;
top: 35px;
left: 11px;
}
.x-steps--vertical.x-steps--positive .x-steps-item--finish:not(:last-child)::before {
border-right-width: 2px;
border-right-color: var(--td-brand-color);
color: var(--td-brand-color);
}
.x-steps--vertical.x-steps--default-anchor .x-steps-item__content {
margin-left: 0px;
}
.x-steps--vertical.x-steps--default-anchor .x-steps-item__title {
margin-bottom: var(--td-comp-margin-xs);
}
.x-steps--vertical.x-steps--dot-anchor.x-steps--positive.x-steps--arrow-separator .x-steps-item:not(:last-child)::before {
content: "^";
border: 0;
height: calc(100% - 4px);
position: absolute;
top: 8px;
left: 0;
display: flex;
align-items: center;
font-size: var(--td-font-size-body-medium);
color: var(--td-text-color-placeholder);
}
.x-steps--vertical.x-steps--dot-anchor.x-steps--positive.x-steps--arrow-separator .x-steps-item--finish:not(:last-child)::before {
color: var(--td-brand-color);
}
.x-steps--vertical.x-steps--dot-anchor.x-steps--positive .x-steps-item:not(:last-child)::before {
content: "";
display: block;
height: 100%;
border-bottom: 0;
border-left: 0;
border-right-width: 1px;
border-right-color: var(--td-text-color-placeholder);
position: absolute;
left: 3.5px;
top: 17px;
}
.x-steps--vertical.x-steps--dot-anchor.x-steps--positive .x-steps-item--finish:not(:last-child)::before {
color: var(--td-brand-color);
border-right-color: var(--td-brand-color);
border-right-width: 2px;
}
.x-steps--vertical.x-steps--dot-anchor .x-steps-item {
margin-bottom: 0;
}
.x-steps--vertical.x-steps--dot-anchor .x-steps-item .x-steps-item__title {
margin-bottom: var(--td-comp-margin-xs);
}
.x-steps--vertical.x-steps--dot-anchor .x-steps-item--finish .x-steps-item__icon {
border-color: var(--td-brand-color);
}
.x-steps--vertical.x-steps--dot-anchor .x-steps-item--process .x-steps-item__icon {
background: var(--td-brand-color);
border-color: var(--td-brand-color);
}
.x-steps--vertical.x-steps--dot-anchor .x-steps-item--error .x-steps-item__icon {
background: var(--td-error-color);
border-color: var(--td-error-color);
}
.x-steps--vertical.x-steps--dot-anchor .x-steps-item__icon {
display: block;
width: 8px;
height: 8px;
border: 2px solid var(--td-text-color-placeholder);
border-radius: var(--td-radius-circle);
margin-bottom: var(--td-comp-margin-xs);
position: relative;
box-sizing: border-box;
flex-shrink: 0;
top: 8px;
}
.x-steps--vertical.x-steps--reverse.x-steps--arrow-separator .x-steps-item:not(:last-child)::before {
content: "^";
border: 0;
height: calc(100% - 24px);
position: absolute;
top: 24px;
left: 6px;
display: flex;
align-items: center;
font-size: var(--td-font-size-body-large);
transform: rotateZ(180deg);
color: var(--td-text-color-placeholder);
}
.x-steps--vertical.x-steps--reverse.x-steps--arrow-separator .x-steps-item--finish:not(:last-child)::before {
color: var(--td-brand-color);
}
.x-steps--vertical.x-steps--reverse.x-steps--arrow-separator .x-steps-item:not(:last-child)::before {
transform: rotateZ(0);
margin-top: var(--td-comp-margin-xs);
}
.x-steps--vertical.x-steps--reverse.x-steps--arrow-separator .x-steps-item--process:not(:last-child)::before,
.x-steps--vertical.x-steps--reverse.x-steps--arrow-separator .x-steps-item--finish:not(:last-child)::before {
color: var(--td-brand-color);
}
.x-steps--vertical.x-steps--reverse .x-steps-item {
padding-bottom: var(--td-comp-margin-xxl);
margin-bottom: 5px;
}
.x-steps--vertical.x-steps--reverse .x-steps-item:not(:last-child)::before {
content: "";
display: block;
height: 100%;
border-left: 0;
border-bottom: 0;
border-right-width: 1px;
border-right-color: var(--td-text-color-placeholder);
position: absolute;
top: 35px;
left: 11px;
}
.x-steps--vertical.x-steps--reverse .x-steps-item--process:not(:last-child)::before,
.x-steps--vertical.x-steps--reverse .x-steps-item--finish:not(:last-child)::before {
border-right-width: 2px;
border-right-color: var(--td-brand-color);
color: var(--td-brand-color);
}
.x-steps--vertical.x-steps--reverse.x-steps--dot-anchor.x-steps--arrow-separator .x-steps-item:not(:last-child)::before {
content: "^";
border: 0;
height: calc(100% - 4px);
position: absolute;
top: 8px;
left: 0;
display: flex;
align-items: center;
font-size: var(--td-font-size-body-medium);
color: var(--td-text-color-placeholder);
}
.x-steps--vertical.x-steps--reverse.x-steps--dot-anchor.x-steps--arrow-separator .x-steps-item--finish:not(:last-child)::before {
color: var(--td-brand-color);
}
.x-steps--vertical.x-steps--reverse.x-steps--dot-anchor.x-steps--arrow-separator .x-steps-item--process:not(:last-child)::before,
.x-steps--vertical.x-steps--reverse.x-steps--dot-anchor.x-steps--arrow-separator .x-steps-item--finish:not(:last-child)::before {
color: var(--td-brand-color);
}
.x-steps--vertical.x-steps--reverse.x-steps--dot-anchor .x-steps-item {
margin-bottom: 0;
}
.x-steps--vertical.x-steps--reverse.x-steps--dot-anchor .x-steps-item:not(:last-child)::before {
content: "";
display: block;
height: 100%;
border-bottom: 0;
border-left: 0;
border-right-width: 1px;
border-right-color: var(--td-text-color-placeholder);
position: absolute;
left: 3.5px;
top: 17px;
}
.x-steps--vertical.x-steps--reverse.x-steps--dot-anchor .x-steps-item:last-child::before {
display: none;
}
.x-steps--vertical.x-steps--reverse.x-steps--dot-anchor .x-steps-item--process:not(:last-child)::before,
.x-steps--vertical.x-steps--reverse.x-steps--dot-anchor .x-steps-item--finish:not(:last-child)::before {
border-right-width: 2px;
border-right-color: var(--td-brand-color);
color: var(--td-brand-color);
}