UNPKG

wetrade-design

Version:

一款多语言支持Vue3的UI框架

139 lines (115 loc) 2.83 kB
@import '../../style/themes/index'; @import '../../style/mixins/index'; @divider-prefix-cls: ~'@{wd-prefix}-divider'; .@{divider-prefix-cls} { .reset-component(); border-top: @divider-color-line; &-vertical { position: relative; top: -0.06em; display: inline-block; height: @divider-height; margin: @base-num-zero @divider-vertical-gutter; vertical-align: middle; border-top: @base-num-zero; border-left: @divider-color-line; } &-horizontal { display: flex; clear: both; width: 100%; min-width: 100%; // Fix https://github.com/ant-design/ant-design/issues/10914 margin: @divider-margin; } &-horizontal&-with-text { display: flex; margin: @divider-margin-md; color: @divider-color-text; font-weight: @divider-font-weight; font-size: @divider-text-size; line-height: @divider-line-height; white-space: nowrap; text-align: center; border-top: @base-num-zero; border-top-color: @divider-color; &::before, &::after { position: relative; top: 50%; width: 50%; border-top: @border-width-base solid transparent; // Chrome not accept `inherit` in `border-top` border-top-color: inherit; border-bottom: @base-num-zero; transform: translateY(50%); content: ''; } } &-horizontal&-with-text-left { &::before { top: 50%; width: @divider-orientation-margin; } &::after { top: 50%; width: 100% - @divider-orientation-margin; } } &-horizontal&-with-text-right { &::before { top: 50%; width: 100% - @divider-orientation-margin; } &::after { top: 50%; width: @divider-orientation-margin; } } &-inner-text { display: inline-block; padding: @divider-padding-text; } &-dashed { background: none; border-color: @divider-color; border-style: dashed; border-width: @border-width-base @base-num-zero @base-num-zero; } &-horizontal&-with-text&-dashed { &::before, &::after { border-style: dashed none none; } } &-vertical&-dashed { border-width: @base-num-zero @base-num-zero @base-num-zero @border-width-base; } &-plain&-with-text { color: @text-color; font-weight: normal; font-size: @font-size-base; } &-horizontal&-with-text-left&-no-default-orientation-margin-left { &::before { width: @base-num-zero; } &::after { width: 100%; } .ant-divider-inner-text { padding-left: @base-num-zero; } } &-horizontal&-with-text-right&-no-default-orientation-margin-right { &::before { width: 100%; } &::after { width: @base-num-zero; } .ant-divider-inner-text { padding-right: @base-num-zero; } } } @import './rtl';