Files
vant/packages/vant-css/src/steps.css
neverland f86afcb694 [bugfix] Steps style error when has more than 4 items (#287)
* [bugfix] CouponList always show empty info

* [bugfix] add click feedback of buttons in components

* [Doc] add custom theme document

* [new feature] Notice bar support more props

* [bugfix] PullRefresh test cases

* [bugfix] unused NoticeBar style

* [bugfix] Swipe width calc error

* [Doc] english document of all action components

* [Doc] change document site path to /zanui/vant

* [Doc] fix

* [bugfix] uploader style error

* [bugfix] tabs document demo

* [new feature] Cell support vue-router target route

* [bugfix] add cell test cases

* update yarn.lock

* [bugfix] Tabbar cann't display info when use icon slot

* [Doc] update document title

* [bugfix] Dialog should reset button text when showed

* [new feature] CouponList add showCloseButton prop

* [new feature] Swipe add 'initialSwipe' prop

* [bugfix] NoticeBar text disappeared when page back

* [new feature] ImagePreview support startPosition

* fix: improve imagePreview test cases

* [bugfix] Steps style error when has more than 4 items
2017-11-07 05:41:34 -06:00

208 lines
3.3 KiB
CSS

@import './common/var.css';
@import './mixins/ellipsis.css';
.van-steps {
overflow: hidden;
background-color: $white;
&--horizontal {
padding: 0 10px;
.van-steps__items {
display: flex;
margin: 0 0 10px;
overflow: hidden;
position: relative;
padding-bottom: 22px;
&.van-steps__items--alone {
padding-top: 10px;
}
}
}
&--vertical {
padding: 0 0 0 35px;
}
&__icon {
float: left;
margin-right: 10px;
}
.van-icon {
font-size: 40px;
line-height: 1;
}
&__message {
display: table;
height: 40px;
margin: 15px 0;
.van-steps__message-wrapper {
display: table-cell;
vertical-align: middle;
}
}
&__title {
font-size: 14px;
color: $text-color;
}
&__desc {
font-size: 12px;
line-height: 1.5;
color: $gray-dark;
max-height: 18px;
@mixin multi-ellipsis 1;
}
}
.van-step {
flex: 1;
font-size: 14px;
position: relative;
color: $gray-dark;
&--horizontal {
float: left;
&:first-child {
.van-step__title {
transform: none;
margin-left: 0;
}
}
&:last-child {
position: absolute;
right: 10px;
width: auto;
.van-step__title {
transform: none;
margin-left: 0;
}
.van-step__circle-container {
left: auto;
right: -9px;
}
.van-step__line {
width: 0;
}
}
.van-step__circle-container {
position: absolute;
top: 28px;
left: -8px;
padding: 0 8px;
background-color: $white;
z-index: 1;
}
.van-step__title {
font-size: 12px;
transform: translate3d(-50%, 0, 0);
display: inline-block;
margin-left: 3px;
}
.van-step__line {
position: absolute;
left: 0px;
top: 30px;
width: 100%;
height: 1px;
background-color: $gray-light;
}
&.van-step--finish {
color: $text-color;
.van-step__circle,
.van-step__line {
background-color: $green;
}
}
&.van-step--process {
color: $text-color;
.van-step__circle-container {
top: 24px;
}
.van-icon {
font-size: 12px;
color: $green;
line-height: 1;
display: block;
}
}
}
.van-step__circle {
display: block;
width: 5px;
height: 5px;
background-color: #888;
border-radius: 50%;
}
&--vertical {
float: none;
display: block;
font-size: 14px;
line-height: 18px;
padding: 10px 10px 10px 0;
&:not(:last-child)::after {
border-bottom-width: 1px;
}
&:first-child {
&::before {
content: '';
position: absolute;
width: 1px;
height: 20px;
background-color: $white;
top: 0;
left: -15px;
z-index: 1;
}
}
.van-step__circle-container > i {
position: absolute;
z-index: 2;
}
.van-icon-checked {
top: 12px;
left: -20px;
line-height: 1;
font-size: 12px;
}
.van-step__circle {
top: 16px;
left: -17px;
}
.van-step__line {
position: absolute;
top: 0;
left: -15px;
width: 1px;
height: 100%;
background-color: $gray-light;
}
}
}