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';
|
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
|
|
|
|
2020-07-28 15:45:51 +08:00
|
|
|
border-top: 1px solid @divider-color;
|
2017-08-19 12:39:11 +08:00
|
|
|
|
|
|
|
&-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;
|
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;
|
2020-05-04 18:14:25 +08:00
|
|
|
border-top: 0;
|
2020-07-28 15:45:51 +08:00
|
|
|
border-left: 1px solid @divider-color;
|
2017-08-19 12:39:11 +08:00
|
|
|
}
|
2019-06-06 00:39:45 +08:00
|
|
|
|
2017-08-19 12:39:11 +08:00
|
|
|
&-horizontal {
|
2020-05-04 18:14:25 +08:00
|
|
|
display: flex;
|
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
|
2017-08-19 12:39:11 +08:00
|
|
|
margin: 24px 0;
|
|
|
|
}
|
2018-05-21 21:53:20 +08:00
|
|
|
|
2020-04-21 14:16:33 +08:00
|
|
|
&-horizontal&-with-text {
|
2020-05-04 18:14:25 +08:00
|
|
|
display: flex;
|
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;
|
2020-09-23 13:33:35 +08:00
|
|
|
border-color: @divider-color;
|
2020-05-04 18:14:25 +08:00
|
|
|
border-top: 0;
|
2020-09-23 13:33:35 +08:00
|
|
|
|
2019-02-15 10:48:07 +08:00
|
|
|
&::before,
|
|
|
|
&::after {
|
2017-08-19 12:39:11 +08:00
|
|
|
position: relative;
|
|
|
|
top: 50%;
|
|
|
|
width: 50%;
|
2020-09-23 13:33:35 +08:00
|
|
|
border-top: 1px solid transparent;
|
|
|
|
// Chrome not accept `inherit` in `border-top`
|
|
|
|
border-top-color: inherit;
|
|
|
|
border-bottom: 0;
|
2017-08-19 12:39:11 +08:00
|
|
|
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 {
|
2019-02-15 10:48:07 +08:00
|
|
|
&::before {
|
2018-02-11 11:51:56 +08:00
|
|
|
top: 50%;
|
2020-06-10 09:37:48 +08:00
|
|
|
width: @divider-orientation-margin;
|
2018-02-11 11:51:56 +08:00
|
|
|
}
|
2019-02-15 10:48:07 +08:00
|
|
|
&::after {
|
2018-02-11 11:51:56 +08:00
|
|
|
top: 50%;
|
2020-06-10 09:37:48 +08:00
|
|
|
width: 100% - @divider-orientation-margin;
|
2018-02-11 11:51:56 +08:00
|
|
|
}
|
|
|
|
}
|
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%;
|
2020-06-10 09:37:48 +08:00
|
|
|
width: 100% - @divider-orientation-margin;
|
2018-02-11 11:51:56 +08:00
|
|
|
}
|
2019-02-15 10:48:07 +08:00
|
|
|
&::after {
|
2018-02-11 11:51:56 +08:00
|
|
|
top: 50%;
|
2020-06-10 09:37:48 +08:00
|
|
|
width: @divider-orientation-margin;
|
2018-02-11 11:51:56 +08:00
|
|
|
}
|
|
|
|
}
|
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;
|
2020-07-28 15:45:51 +08:00
|
|
|
border-color: @divider-color;
|
2019-06-15 20:28:43 +08:00
|
|
|
border-style: dashed;
|
|
|
|
border-width: 1px 0 0;
|
2017-10-26 20:59:36 +08:00
|
|
|
}
|
2019-06-15 20:28:43 +08:00
|
|
|
|
2020-04-21 14:16:33 +08:00
|
|
|
&-horizontal&-with-text&-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;
|
|
|
|
}
|
2020-04-21 14:16:33 +08:00
|
|
|
|
|
|
|
&-plain&-with-text {
|
|
|
|
color: @text-color;
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
}
|
2017-08-19 12:39:11 +08:00
|
|
|
}
|
2020-04-29 10:17:37 +08:00
|
|
|
|
|
|
|
@import './rtl';
|