winbox-ui-next
Version:
We Design Vue 2.0: A Vue.js 3 UI Library
290 lines (289 loc) • 7.68 kB
CSS
/******** borderSize *******/
/******** borderStyle *******/
/******** radius *******/
/******** shadow distance *******/
/******** size *******/
/******** spacing *******/
/******** shadow *******/
/******** opacity *******/
/******** fontSize *******/
/******** fontWeight ********/
/******** radius *******/
/******** Primary *******/
/******** success *******/
/******** warning *******/
/******** danger *******/
/******** link *******/
/******** radius *******/
/********* icon hover *********/
.w-timeline {
display: flex;
flex-direction: column;
}
.w-timeline-item {
position: relative;
min-height: 78px;
padding-left: 12px;
color: var(--color-text-1);
font-size: 14px;
}
.w-timeline-item-label {
color: var(--color-text-3);
font-size: 12px;
line-height: 1.667;
}
.w-timeline-item-content {
margin-bottom: 4px;
color: var(--color-text-1);
font-size: 14px;
line-height: 1.5715;
}
.w-timeline-item-content-wrapper {
position: relative;
margin-left: 16px;
}
.w-timeline-item.w-timeline-item-last > .w-timeline-item-dot-wrapper .w-timeline-item-dot-line {
display: none;
}
.w-timeline-item-dot-wrapper {
position: absolute;
left: 0;
height: 100%;
text-align: center;
}
.w-timeline-item-dot-wrapper .w-timeline-item-dot-content {
position: relative;
width: 12px;
height: 22.001px;
line-height: 22.001px;
}
.w-timeline-item-dot {
position: relative;
top: 50%;
box-sizing: border-box;
width: 12px;
height: 12px;
margin-top: -50%;
color: rgb(var(--primary-6));
border: 3px solid transparent;
border-radius: var(--border-radius-circle);
}
.w-timeline-item-dot-solid {
color: rgb(var(--primary-6));
border-color: rgb(var(--primary-6));
}
.w-timeline-item-dot-hollow {
background-color: var(--color-bg-2);
border: 2px solid rgb(var(--primary-6));
}
.w-timeline-item-dot-custom {
position: absolute;
top: 50%;
left: 50%;
display: inline-flex;
box-sizing: border-box;
color: rgb(var(--primary-6));
background-color: var(--color-bg-2);
transform: translateX(-50%) translateY(-50%);
transform-origin: center;
}
.w-timeline-item-dot-custom svg {
color: inherit;
}
.w-timeline-item-dot-line {
position: absolute;
top: 16.0005px;
bottom: -6.0005px;
left: 50%;
box-sizing: border-box;
width: 1px;
border-color: var(--color-neutral-3);
border-left-width: 1px;
transform: translateX(-50%);
}
/* reverse */
.w-timeline-is-reverse {
flex-direction: column-reverse;
}
/* mode */
.w-timeline-alternate {
overflow: hidden;
}
.w-timeline-alternate .w-timeline-item-vertical-left {
padding-left: 0;
}
.w-timeline-alternate .w-timeline-item-vertical-left > .w-timeline-item-dot-wrapper {
left: 50%;
}
.w-timeline-alternate .w-timeline-item-vertical-left > .w-timeline-item-content-wrapper {
left: 50%;
width: 50%;
margin-left: 28px;
padding-right: 28px;
}
.w-timeline-alternate .w-timeline-item-vertical-right {
padding-right: 0;
}
.w-timeline-alternate .w-timeline-item-vertical-right > .w-timeline-item-dot-wrapper {
left: 50%;
}
.w-timeline-alternate .w-timeline-item-vertical-right > .w-timeline-item-content-wrapper {
left: 0;
width: 50%;
margin-right: 0;
margin-left: -16px;
padding-right: 16px;
text-align: right;
}
.w-timeline-right .w-timeline-item-vertical-right {
padding-right: 12px;
}
.w-timeline-right .w-timeline-item-vertical-right > .w-timeline-item-dot-wrapper {
right: 0;
left: unset;
}
.w-timeline-right .w-timeline-item-vertical-right > .w-timeline-item-content-wrapper {
margin-right: 16px;
margin-left: 0;
text-align: right;
}
/* label position */
.w-timeline-item-label-relative > .w-timeline-item-label {
position: absolute;
top: 0;
box-sizing: border-box;
max-width: 100px;
}
.w-timeline-item-vertical-left.w-timeline-item-label-relative {
margin-left: 100px;
}
.w-timeline-item-vertical-left.w-timeline-item-label-relative > .w-timeline-item-label {
left: 0;
padding-right: 16px;
text-align: right;
transform: translateX(-100%);
}
.w-timeline-item-vertical-right.w-timeline-item-label-relative {
margin-right: 100px;
}
.w-timeline-item-vertical-right.w-timeline-item-label-relative > .w-timeline-item-label {
right: 0;
padding-left: 16px;
text-align: left;
transform: translateX(100%);
}
.w-timeline-item-horizontal-top.w-timeline-item-label-relative {
margin-top: 50px;
}
.w-timeline-item-horizontal-top.w-timeline-item-label-relative > .w-timeline-item-label {
padding-bottom: 16px;
transform: translateY(-100%);
}
.w-timeline-item-horizontal-top.w-timeline-item-label-relative > .w-timeline-item-content {
margin-bottom: 0;
}
.w-timeline-item-horizontal-bottom.w-timeline-item-label-relative {
margin-bottom: 50px;
}
.w-timeline-item-horizontal-bottom.w-timeline-item-label-relative > .w-timeline-item-content {
margin-bottom: 0;
}
.w-timeline-item-horizontal-bottom.w-timeline-item-label-relative > .w-timeline-item-label {
top: unset;
bottom: 0;
padding-top: 16px;
text-align: left;
transform: translateY(100%);
}
.w-timeline-alternate .w-timeline-item-vertical-left.w-timeline-item-label-relative {
margin-left: 0;
}
.w-timeline-alternate .w-timeline-item-vertical-left.w-timeline-item-label-relative > .w-timeline-item-label {
left: 0;
width: 50%;
max-width: unset;
transform: none;
}
.w-timeline-alternate .w-timeline-item-vertical-right.w-timeline-item-label-relative {
margin-right: 0;
}
.w-timeline-alternate .w-timeline-item-horizontal-top.w-timeline-item-label-relative {
margin-top: 0;
}
.w-timeline-alternate .w-timeline-item-horizontal-bottom.w-timeline-item-label-relative {
margin-bottom: 0;
}
.w-timeline-direction-horizontal {
display: flex;
flex-direction: row;
}
.w-timeline-direction-horizontal.w-timeline-is-reverse {
flex-direction: row-reverse;
}
.w-timeline-item-dot-line-is-horizontal {
top: 100%;
right: 1px;
left: 12px;
width: unset;
height: 1px;
border-top-width: 1px;
border-left: none;
transform: translateY(-50%);
}
.w-timeline-item-horizontal-bottom,
.w-timeline-item-horizontal-top {
flex: 1;
min-height: unset;
padding-right: 0;
padding-left: 0;
}
.w-timeline-item-horizontal-bottom > .w-timeline-item-dot-wrapper,
.w-timeline-item-horizontal-top > .w-timeline-item-dot-wrapper {
top: 0;
width: 100%;
height: auto;
}
.w-timeline-item-horizontal-bottom > .w-timeline-item-dot-wrapper .w-timeline-item-dot,
.w-timeline-item-horizontal-top > .w-timeline-item-dot-wrapper .w-timeline-item-dot {
top: unset;
margin-top: unset;
}
.w-timeline-item-horizontal-bottom > .w-timeline-item-dot-wrapper .w-timeline-item-dot-content,
.w-timeline-item-horizontal-top > .w-timeline-item-dot-wrapper .w-timeline-item-dot-content {
height: 6px;
line-height: 6px;
}
.w-timeline-item-horizontal-top {
padding-top: 12px;
}
.w-timeline-item-horizontal-top > .w-timeline-item-dot-wrapper {
top: 0;
bottom: unset;
}
.w-timeline-item-horizontal-top > .w-timeline-item-content-wrapper {
margin-top: 16px;
margin-left: 0;
}
.w-timeline-item-horizontal-bottom {
padding-bottom: 12px;
}
.w-timeline-item-horizontal-bottom > .w-timeline-item-dot-wrapper {
top: unset;
bottom: 0;
}
.w-timeline-item-horizontal-bottom > .w-timeline-item-content-wrapper {
margin-bottom: 16px;
margin-left: 0;
}
.w-timeline-alternate.w-timeline-direction-horizontal {
align-items: center;
min-height: 200px;
overflow: visible;
}
.w-timeline-alternate.w-timeline-direction-horizontal .w-timeline-item-horizontal-bottom {
margin-top: 12px;
transform: translateY(-50%);
}
.w-timeline-alternate.w-timeline-direction-horizontal .w-timeline-item-horizontal-top {
transform: translateY(50%);
}