2017-08-19 12:39:11 +08:00
|
|
|
@import "../../style/themes/default";
|
|
|
|
@import "../../style/mixins/index";
|
|
|
|
|
|
|
|
@divider-prefix-cls: ~"@{ant-prefix}-divider";
|
|
|
|
|
|
|
|
.@{divider-prefix-cls} {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2017-08-19 12:39:11 +08:00
|
|
|
background: @border-color-split;
|
|
|
|
|
|
|
|
&, // for compatiable
|
|
|
|
&-vertical {
|
|
|
|
margin: 0 8px;
|
|
|
|
display: inline-block;
|
|
|
|
height: 0.9em;
|
|
|
|
width: 1px;
|
|
|
|
vertical-align: middle;
|
|
|
|
position: relative;
|
|
|
|
top: -0.06em;
|
|
|
|
}
|
|
|
|
&-horizontal {
|
|
|
|
display: block;
|
|
|
|
height: 1px;
|
|
|
|
width: 100%;
|
|
|
|
margin: 24px 0;
|
2018-04-08 12:37:24 +08:00
|
|
|
clear: both;
|
2017-08-19 12:39:11 +08:00
|
|
|
}
|
|
|
|
&-horizontal&-with-text {
|
|
|
|
display: table;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-align: center;
|
|
|
|
background: transparent;
|
|
|
|
font-weight: 500;
|
|
|
|
color: @heading-color;
|
2017-09-27 22:32:49 +08:00
|
|
|
font-size: @font-size-lg;
|
2017-08-19 12:39:11 +08:00
|
|
|
margin: 16px 0;
|
|
|
|
|
|
|
|
&:before,
|
|
|
|
&:after {
|
2017-10-26 20:59:36 +08:00
|
|
|
content: '';
|
2017-08-19 12:39:11 +08:00
|
|
|
display: table-cell;
|
|
|
|
position: relative;
|
|
|
|
top: 50%;
|
|
|
|
width: 50%;
|
|
|
|
border-top: 1px solid @border-color-split;
|
|
|
|
transform: translateY(50%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-inner-text {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 0 24px;
|
|
|
|
}
|
2018-02-11 11:51:56 +08:00
|
|
|
&-horizontal&-with-text-left {
|
|
|
|
display: table;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-align: center;
|
|
|
|
background: transparent;
|
|
|
|
font-weight: 500;
|
|
|
|
color: @heading-color;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
margin: 16px 0;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
display: table-cell;
|
|
|
|
position: relative;
|
|
|
|
top: 50%;
|
|
|
|
width: 5%;
|
|
|
|
border-top: 1px solid @border-color-split;
|
|
|
|
transform: translateY(50%);
|
|
|
|
}
|
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
display: table-cell;
|
|
|
|
position: relative;
|
|
|
|
top: 50%;
|
|
|
|
width: 95%;
|
|
|
|
border-top: 1px solid @border-color-split;
|
|
|
|
transform: translateY(50%);
|
|
|
|
}
|
|
|
|
&-inner-text {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 0 10px;
|
|
|
|
}
|
|
|
|
}
|
2017-10-26 20:59:36 +08:00
|
|
|
|
2018-02-11 11:51:56 +08:00
|
|
|
&-horizontal&-with-text-right {
|
|
|
|
display: table;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-align: center;
|
|
|
|
background: transparent;
|
|
|
|
font-weight: 500;
|
|
|
|
color: @heading-color;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
margin: 16px 0;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
display: table-cell;
|
|
|
|
position: relative;
|
|
|
|
top: 50%;
|
|
|
|
width: 95%;
|
|
|
|
border-top: 1px solid @border-color-split;
|
|
|
|
transform: translateY(50%);
|
|
|
|
}
|
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
display: table-cell;
|
|
|
|
position: relative;
|
|
|
|
top: 50%;
|
|
|
|
width: 5%;
|
|
|
|
border-top: 1px solid @border-color-split;
|
|
|
|
transform: translateY(50%);
|
|
|
|
}
|
|
|
|
&-inner-text {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 0 10px;
|
|
|
|
}
|
|
|
|
}
|
2017-10-26 20:59:36 +08:00
|
|
|
&-dashed {
|
|
|
|
background: none;
|
|
|
|
border-top: 1px dashed @border-color-split;
|
|
|
|
}
|
|
|
|
&-horizontal&-with-text&-dashed {
|
|
|
|
border-top: 0;
|
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
border-style: dashed none none;
|
|
|
|
}
|
|
|
|
}
|
2017-08-19 12:39:11 +08:00
|
|
|
}
|