UNPKG

ten-design-vue

Version:

ten-vue

334 lines (333 loc) 7.25 kB
/* dependencies icon */ /** * 文字部分 * size 大小,line 行高, color 颜色 */ /* button */ /* input */ /* transfer */ /* alert */ /* menu */ /* message */ /* modal */ /* badge */ /* tag */ /* progress */ /* popup */ /* tooltip */ /* loading */ /* tabs */ /* check */ /* mention */ /* popup */ /* steps */ /* tabs */ /* modal */ /* form */ /* table */ /* pagination */ /* upload */ /* collapse */ /* anchor */ /* list */ .ten-steps { display: flex; } .ten-steps--vertical { display: block; } .ten-steps--reverse .ten-steps__item--vertical:after { content: ''; position: absolute; top: 27px; left: 8px; width: 0px; height: 0px; overflow: hidden; border-style: solid; border-width: 0 5px 5px 5px; border-color: transparent transparent #C0C0C0 transparent; } .ten-steps--reverse .ten-steps__item--vertical--next--wait:after { width: 0px; height: 0px; overflow: hidden; border-style: solid; border-width: 0 5px 5px 5px; border-color: transparent transparent #C0C0C0 transparent; } .ten-steps--reverse .ten-steps__item--vertical--next--skip:after { width: 0px; height: 0px; overflow: hidden; border-style: solid; border-width: 0 5px 5px 5px; border-color: transparent transparent #C0C0C0 transparent; } .ten-steps--reverse .ten-steps__item--vertical--next--finish:after, .ten-steps--reverse .ten-steps__item--vertical--next--process:after { width: 0px; height: 0px; overflow: hidden; border-style: solid; border-width: 0 5px 5px 5px; border-color: transparent transparent #0052d9 transparent; } .ten-steps--reverse .ten-steps__item--vertical--next--error:after { width: 0px; height: 0px; overflow: hidden; border-style: solid; border-width: 0 5px 5px 5px; border-color: transparent transparent #F00 transparent; } .ten-steps__item { display: inline-block; overflow: hidden; position: relative; } .ten-steps__item:not(:last-child) { flex: 1; display: flex; margin-right: 32px; } .ten-steps__item:after { content: ''; position: absolute; right: 0px; top: 5px; width: 0px; height: 0px; overflow: hidden; border-style: solid; border-width: 5px 0 5px 5px; border-color: transparent transparent transparent #C0C0C0; } .ten-steps__item:last-child:after { content: none; } .ten-steps__item--next--wait:after { width: 0px; height: 0px; overflow: hidden; border-style: solid; border-width: 5px 0 5px 5px; border-color: transparent transparent transparent #C0C0C0; } .ten-steps__item--next--skip:after { width: 0px; height: 0px; overflow: hidden; border-style: solid; border-width: 5px 0 5px 5px; border-color: transparent transparent transparent #C0C0C0; } .ten-steps__item--next--finish:after, .ten-steps__item--next--process:after { width: 0px; height: 0px; overflow: hidden; border-style: solid; border-width: 5px 0 5px 5px; border-color: transparent transparent transparent #0052d9; } .ten-steps__item--next--error:after { width: 0px; height: 0px; overflow: hidden; border-style: solid; border-width: 5px 0 5px 5px; border-color: transparent transparent transparent #F00; } .ten-steps__item--vertical { display: block; min-height: 70px; } .ten-steps__item--vertical:not(:last-child) { margin-right: 0; margin-bottom: 10px; } .ten-steps__item--vertical:after { content: ''; width: 0; position: absolute; top: calc(100% - 5px); left: 8px; width: 0px; height: 0px; overflow: hidden; border-style: solid; border-width: 5px 5px 0 5px; border-color: #C0C0C0 transparent transparent transparent; } .ten-steps__item--vertical--next--wait:after { width: 0px; height: 0px; overflow: hidden; border-style: solid; border-width: 5px 5px 0 5px; border-color: #C0C0C0 transparent transparent transparent; } .ten-steps__item--vertical--next--skip:after { width: 0px; height: 0px; overflow: hidden; border-style: solid; border-width: 5px 5px 0 5px; border-color: #C0C0C0 transparent transparent transparent; } .ten-steps__item--vertical--next--finish:after, .ten-steps__item--vertical--next--process:after { width: 0px; height: 0px; overflow: hidden; border-style: solid; border-width: 5px 5px 0 5px; border-color: #0052d9 transparent transparent transparent; } .ten-steps__item--vertical--next--error:after { width: 0px; height: 0px; overflow: hidden; border-style: solid; border-width: 5px 5px 0 5px; border-color: #F00 transparent transparent transparent; } .ten-steps__tail--vertical { height: 999px; border-right: 2px solid #C0C0C0; position: absolute; top: 28px; left: 12px; } .ten-steps__tail--vertical--reverse { top: 32px; } .ten-steps__tail--next--finish, .ten-steps__tail--next--process { border-color: #0052d9; } .ten-steps__tail--next--finish:after, .ten-steps__tail--next--process:after { border-color: #0052d9; } .ten-steps__tail--next--error { border-right: 2px dashed #F00; } .ten-steps__tail--next--error:after { border-right: 2px dashed #F00; } .ten-steps__tail--next--skip { border-right: 2px dashed #C0C0C0; } .ten-steps__tail--next--skip:after { border-right: 2px dashed #C0C0C0; } .ten-steps__icon { display: flex; justify-content: center; align-items: center; width: 24px; height: 24px; line-height: 24px; font-size: 14px; background-repeat: no-repeat; background-position: center; box-sizing: border-box; border-radius: 50%; border-width: 2px; border-style: solid; text-align: center; display: inline-block; vertical-align: top; color: #fff; flex-shrink: 0; } .ten-steps__icon--finish, .ten-steps__icon--error { font-size: 14px; } .ten-steps__icon--finish { color: #0052d9; } .ten-steps__icon--error { background-color: #FF3E00; border-color: #FF3E00; } .ten-steps__icon--process { background: #0052d9; border: none; } .ten-steps__icon--wait, .ten-steps__icon--skip { border-color: #C0C0C0; color: #C0C0C0; line-height: 20px; } .ten-steps__content { display: inline-block; vertical-align: top; margin-left: 8px; color: #000; } .ten-steps__title { font-size: 14px; margin-bottom: 10px; position: relative; display: inline-flex; } .ten-steps__title:after { content: ''; width: 999px; border: none; border-bottom: 2px solid #C0C0C0; position: absolute; top: 9px; left: calc(100% + 32px); } .ten-steps__title--vertical:after { display: none; } .ten-steps__title--finish { color: #000; } .ten-steps__title--error, .ten-steps__title--process { color: #0052d9; font-weight: bold; } .ten-steps__title--wait, .ten-steps__title--skip { color: #C0C0C0; } .ten-steps__title--next--finish:after, .ten-steps__title--next--process:after { border-color: #0052d9; } .ten-steps__title--next--error:after { border-bottom: 2px dashed #F00; } .ten-steps__title--next--skip:after { border-bottom: 2px dashed #C0C0C0; } .ten-steps__description { font-size: 12px; position: relative; margin-bottom: 10px; } .ten-steps__description--finish { color: #333; } .ten-steps__description--process { color: #010101; } .ten-steps__description--wait, .ten-steps__description--skip { color: #C0C0C0; } .ten-steps__description--error { color: #010101; } .ten-steps__extraContent { margin-bottom: 10px; }