2019-05-06 12:04:39 +08:00
|
|
|
@import '../../style/themes/index';
|
2018-12-07 16:17:45 +08:00
|
|
|
@import '../../style/mixins/index';
|
2017-08-19 12:39:11 +08:00
|
|
|
|
2018-12-07 16:17:45 +08:00
|
|
|
@divider-prefix-cls: ~'@{ant-prefix}-divider';
|
2020-02-17 14:03:40 +08:00
|
|
|
@divider-text-padding: 1em;
|
2017-08-19 12:39:11 +08:00
|
|
|
|
|
|
|
.@{divider-prefix-cls} {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2019-04-15 10:52:00 +08:00
|
|
|
|
2017-08-19 12:39:11 +08:00
|
|
|
background: @border-color-split;
|
|
|
|
|
|
|
|
&-vertical {
|
2019-02-15 10:48:07 +08:00
|
|
|
position: relative;
|
|
|
|
top: -0.06em;
|
2017-08-19 12:39:11 +08:00
|
|
|
display: inline-block;
|
|
|
|
width: 1px;
|
2019-02-15 10:48:07 +08:00
|
|
|
height: 0.9em;
|
|
|
|
margin: 0 8px;
|
2017-08-19 12:39:11 +08:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2019-06-06 00:39:45 +08:00
|
|
|
|
2017-08-19 12:39:11 +08:00
|
|
|
&-horizontal {
|
|
|
|
display: block;
|
2019-02-15 10:48:07 +08:00
|
|
|
clear: both;
|
2017-08-19 12:39:11 +08:00
|
|
|
width: 100%;
|
2018-10-28 23:25:40 +08:00
|
|
|
min-width: 100%; // Fix https://github.com/ant-design/ant-design/issues/10914
|
2019-02-15 10:48:07 +08:00
|
|
|
height: 1px;
|
2017-08-19 12:39:11 +08:00
|
|
|
margin: 24px 0;
|
|
|
|
}
|
2018-05-21 21:53:20 +08:00
|
|
|
|
2019-06-06 00:39:45 +08:00
|
|
|
&-horizontal&-with-text-center,
|
2018-05-21 21:53:20 +08:00
|
|
|
&-horizontal&-with-text-left,
|
|
|
|
&-horizontal&-with-text-right {
|
2017-08-19 12:39:11 +08:00
|
|
|
display: table;
|
2019-02-15 10:48:07 +08:00
|
|
|
margin: 16px 0;
|
|
|
|
color: @heading-color;
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: @font-size-lg;
|
2017-08-19 12:39:11 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
text-align: center;
|
|
|
|
background: transparent;
|
2019-02-15 10:48:07 +08:00
|
|
|
&::before,
|
|
|
|
&::after {
|
2017-08-19 12:39:11 +08:00
|
|
|
position: relative;
|
|
|
|
top: 50%;
|
2019-02-15 10:48:07 +08:00
|
|
|
display: table-cell;
|
2017-08-19 12:39:11 +08:00
|
|
|
width: 50%;
|
|
|
|
border-top: 1px solid @border-color-split;
|
|
|
|
transform: translateY(50%);
|
2019-02-15 10:48:07 +08:00
|
|
|
content: '';
|
2017-08-19 12:39:11 +08:00
|
|
|
}
|
|
|
|
}
|
2018-05-21 21:53:20 +08:00
|
|
|
|
|
|
|
&-horizontal&-with-text-left,
|
|
|
|
&-horizontal&-with-text-right {
|
|
|
|
.@{divider-prefix-cls}-inner-text {
|
|
|
|
display: inline-block;
|
2020-02-17 14:03:40 +08:00
|
|
|
padding: 0 @divider-text-padding;
|
2018-05-21 21:53:20 +08:00
|
|
|
}
|
|
|
|
}
|
2018-02-11 11:51:56 +08:00
|
|
|
|
2018-05-21 21:53:20 +08:00
|
|
|
&-horizontal&-with-text-left {
|
2019-02-15 10:48:07 +08:00
|
|
|
&::before {
|
2018-02-11 11:51:56 +08:00
|
|
|
top: 50%;
|
|
|
|
width: 5%;
|
|
|
|
}
|
2019-02-15 10:48:07 +08:00
|
|
|
&::after {
|
2018-02-11 11:51:56 +08:00
|
|
|
top: 50%;
|
|
|
|
width: 95%;
|
|
|
|
}
|
|
|
|
}
|
2017-10-26 20:59:36 +08:00
|
|
|
|
2018-02-11 11:51:56 +08:00
|
|
|
&-horizontal&-with-text-right {
|
2019-02-15 10:48:07 +08:00
|
|
|
&::before {
|
2018-02-11 11:51:56 +08:00
|
|
|
top: 50%;
|
|
|
|
width: 95%;
|
|
|
|
}
|
2019-02-15 10:48:07 +08:00
|
|
|
&::after {
|
2018-02-11 11:51:56 +08:00
|
|
|
top: 50%;
|
|
|
|
width: 5%;
|
|
|
|
}
|
|
|
|
}
|
2018-05-21 21:53:20 +08:00
|
|
|
|
|
|
|
&-inner-text {
|
|
|
|
display: inline-block;
|
2020-02-17 14:03:40 +08:00
|
|
|
padding: 0 @divider-text-padding;
|
2018-05-21 21:53:20 +08:00
|
|
|
}
|
|
|
|
|
2017-10-26 20:59:36 +08:00
|
|
|
&-dashed {
|
|
|
|
background: none;
|
2019-06-15 20:28:43 +08:00
|
|
|
border-color: @border-color-split;
|
|
|
|
border-style: dashed;
|
|
|
|
border-width: 1px 0 0;
|
2017-10-26 20:59:36 +08:00
|
|
|
}
|
2019-06-15 20:28:43 +08:00
|
|
|
|
2019-06-06 00:39:45 +08:00
|
|
|
&-horizontal&-with-text-center&-dashed,
|
2018-04-24 20:17:48 +08:00
|
|
|
&-horizontal&-with-text-left&-dashed,
|
|
|
|
&-horizontal&-with-text-right&-dashed {
|
2017-10-26 20:59:36 +08:00
|
|
|
border-top: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
&::before,
|
|
|
|
&::after {
|
2017-10-26 20:59:36 +08:00
|
|
|
border-style: dashed none none;
|
|
|
|
}
|
|
|
|
}
|
2019-06-15 20:28:43 +08:00
|
|
|
|
|
|
|
&-vertical&-dashed {
|
|
|
|
border-width: 0 0 0 1px;
|
|
|
|
}
|
2017-08-19 12:39:11 +08:00
|
|
|
}
|