2019-08-08 18:00:30 +08:00
|
|
|
@import './mixins/mixins.scss';
|
|
|
|
|
2019-09-20 00:25:56 +08:00
|
|
|
@include themes-mixin {
|
|
|
|
@include b(divider) {
|
|
|
|
@include once {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
2019-12-31 18:24:50 +08:00
|
|
|
box-sizing: border-box;
|
2019-09-20 00:25:56 +08:00
|
|
|
font-size: 16px;
|
2019-12-22 15:50:37 +08:00
|
|
|
transition: background-color .3s $--n-ease-in-out-cubic-bezier;
|
2019-11-29 15:01:05 +08:00
|
|
|
@include not-m(vertical) {
|
|
|
|
margin-top: 24px;
|
|
|
|
margin-bottom: 24px;
|
|
|
|
@include not-m(no-title) {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include e(title) {
|
2019-12-22 15:50:37 +08:00
|
|
|
transition: color .3s $--n-ease-in-out-cubic-bezier;
|
2019-09-20 00:25:56 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-left: 12px;
|
|
|
|
margin-right: 12px;
|
|
|
|
white-space: nowrap;
|
2019-12-23 16:48:49 +08:00
|
|
|
font-weight: 500;
|
2019-09-20 00:25:56 +08:00
|
|
|
}
|
2019-11-29 15:01:05 +08:00
|
|
|
@include m(title-position-left) {
|
2019-10-12 19:08:11 +08:00
|
|
|
@include e(line) {
|
2019-11-29 15:01:05 +08:00
|
|
|
@include m(left) {
|
2019-09-20 00:25:56 +08:00
|
|
|
width: 28px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-11-29 15:01:05 +08:00
|
|
|
@include m(title-position-right) {
|
2019-10-12 19:08:11 +08:00
|
|
|
@include e(line) {
|
2019-11-29 15:01:05 +08:00
|
|
|
@include m(right) {
|
2019-09-20 00:25:56 +08:00
|
|
|
width: 28px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-10-12 19:08:11 +08:00
|
|
|
@include m(dashed) {
|
|
|
|
@include e(line) {
|
|
|
|
background-color: transparent;
|
2019-09-20 00:25:56 +08:00
|
|
|
height: 0px;
|
|
|
|
width: 100%;
|
|
|
|
border-style: dashed;
|
|
|
|
border-width: 1px 0 0;
|
|
|
|
}
|
|
|
|
}
|
2019-10-12 19:08:11 +08:00
|
|
|
@include m(vertical) {
|
2019-09-20 00:25:56 +08:00
|
|
|
display: inline-block;
|
|
|
|
height: 1em;
|
|
|
|
margin: 0 8px;
|
|
|
|
vertical-align: middle;
|
|
|
|
width: 1px;
|
2019-08-08 18:00:30 +08:00
|
|
|
}
|
|
|
|
}
|
2019-10-12 19:08:11 +08:00
|
|
|
color: $--divider-text-color;
|
|
|
|
@include once {
|
|
|
|
@include e(line) {
|
2019-12-20 16:58:31 +08:00
|
|
|
border: none;
|
2019-12-22 15:50:37 +08:00
|
|
|
transition: background-color .3s $--n-ease-in-out-cubic-bezier, border-color .3s $--n-ease-in-out-cubic-bezier;
|
2019-10-12 19:08:11 +08:00
|
|
|
height: 1px;
|
|
|
|
width: 100%;
|
2019-12-31 18:24:50 +08:00
|
|
|
margin: 0;
|
2019-10-12 19:08:11 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@include not-m(dashed) {
|
|
|
|
@include e(line) {
|
|
|
|
background-color: $--divider-border-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include m(dashed) {
|
|
|
|
@include e(line) {
|
|
|
|
border-color: $--divider-border-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include m(vertical) {
|
|
|
|
background-color: $--divider-border-color;
|
|
|
|
}
|
2019-08-08 18:00:30 +08:00
|
|
|
}
|
|
|
|
}
|