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.
49 lines
979 B
49 lines
979 B
@use 'common/var' as *;
|
|
@use 'mixins/mixins' as *;
|
|
|
|
@include b(divider) {
|
|
position: relative;
|
|
|
|
@include m(horizontal) {
|
|
display: block;
|
|
height: 1px;
|
|
width: 100%;
|
|
margin: 24px 0;
|
|
border-top: 1px var(--el-border-color-base) var(--el-border-style);
|
|
}
|
|
|
|
@include m(vertical) {
|
|
display: inline-block;
|
|
width: 1px;
|
|
height: 1em;
|
|
margin: 0 8px;
|
|
vertical-align: middle;
|
|
position: relative;
|
|
border-left: 1px var(--el-border-color-base) var(--el-border-style);
|
|
}
|
|
|
|
@include e(text) {
|
|
position: absolute;
|
|
background-color: $color-white;
|
|
padding: 0 20px;
|
|
font-weight: 500;
|
|
color: var(--el-text-color-primary);
|
|
font-size: 14px;
|
|
|
|
@include when(left) {
|
|
left: 20px;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
@include when(center) {
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
}
|
|
|
|
@include when(right) {
|
|
right: 20px;
|
|
transform: translateY(-50%);
|
|
}
|
|
}
|
|
}
|