You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.0 KiB

@import '../style/var';
.van-divider {
display: flex;
align-items: center;
margin: @divider-margin;
color: @divider-text-color;
font-size: @divider-font-size;
line-height: @divider-line-height;
border-color: @divider-border-color;
border-style: solid;
border-width: 0;
&::before,
&::after {
display: block;
flex: 1;
box-sizing: border-box;
height: 1px;
border-color: inherit;
border-style: inherit;
border-width: @border-width-base 0 0;
}
&::before {
content: '';
}
&--hairline {
&::before,
&::after {
transform: scaleY(0.5);
}
}
&--dashed {
border-style: dashed;
}
&--content-center,
&--content-left,
&--content-right {
&::before {
margin-right: @divider-content-padding;
}
&::after {
margin-left: @divider-content-padding;
content: '';
}
}
&--content-left {
&::before {
max-width: @divider-content-left-width;
}
}
&--content-right {
&::after {
max-width: @divider-content-right-width;
}
}
}