xrkffgg
5 years ago
6 changed files with 189 additions and 92 deletions
@ -0,0 +1,119 @@ |
|||
@import '../../style/themes/index'; |
|||
@import '../../style/mixins/index'; |
|||
|
|||
@timeline-prefix-cls: ~'@{ant-prefix}-timeline'; |
|||
|
|||
.@{timeline-prefix-cls} { |
|||
&-rtl { |
|||
direction: rtl; |
|||
} |
|||
|
|||
&-item { |
|||
&-tail { |
|||
.@{timeline-prefix-cls}-rtl & { |
|||
right: 4px; |
|||
left: auto; |
|||
border-right: @timeline-width solid @timeline-color; |
|||
border-left: none; |
|||
} |
|||
} |
|||
|
|||
&-head-custom { |
|||
.@{timeline-prefix-cls}-rtl & { |
|||
right: 5px; |
|||
left: auto; |
|||
transform: translate(50%, -50%); |
|||
} |
|||
} |
|||
|
|||
&-content { |
|||
.@{timeline-prefix-cls}-rtl & { |
|||
margin: 0 18px 0 0; |
|||
} |
|||
} |
|||
} |
|||
|
|||
&.@{timeline-prefix-cls}-alternate, |
|||
&.@{timeline-prefix-cls}-right, |
|||
&.@{timeline-prefix-cls}-label { |
|||
.@{timeline-prefix-cls}-item { |
|||
&-tail, |
|||
&-head, |
|||
&-head-custom { |
|||
.@{timeline-prefix-cls}-rtl& { |
|||
right: 50%; |
|||
left: auto; |
|||
} |
|||
} |
|||
|
|||
&-head { |
|||
.@{timeline-prefix-cls}-rtl& { |
|||
margin-right: -4px; |
|||
margin-left: 0; |
|||
} |
|||
|
|||
&-custom { |
|||
.@{timeline-prefix-cls}-rtl& { |
|||
margin-right: 1px; |
|||
margin-left: 0; |
|||
} |
|||
} |
|||
} |
|||
|
|||
&-left { |
|||
.@{timeline-prefix-cls}-item-content { |
|||
.@{timeline-prefix-cls}-rtl& { |
|||
right: calc(50% - 4px); |
|||
left: auto; |
|||
text-align: right; |
|||
} |
|||
} |
|||
} |
|||
|
|||
&-right { |
|||
.@{timeline-prefix-cls}-item-content { |
|||
.@{timeline-prefix-cls}-rtl& { |
|||
text-align: left; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
&.@{timeline-prefix-cls}-right { |
|||
.@{timeline-prefix-cls}-item-right { |
|||
.@{timeline-prefix-cls}-item-tail, |
|||
.@{timeline-prefix-cls}-item-head, |
|||
.@{timeline-prefix-cls}-item-head-custom { |
|||
.@{timeline-prefix-cls}-rtl& { |
|||
right: 0; |
|||
left: auto; |
|||
} |
|||
} |
|||
|
|||
.@{timeline-prefix-cls}-item-content { |
|||
.@{timeline-prefix-cls}-rtl& { |
|||
width: 100%; |
|||
margin-right: 18px; |
|||
text-align: right; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
&&-pending &-item-last &-item-tail { |
|||
.@{timeline-prefix-cls}-rtl& { |
|||
border-right: 2px dotted @timeline-color; |
|||
border-left: none; |
|||
} |
|||
} |
|||
|
|||
&&-reverse &-item-pending { |
|||
.@{timeline-prefix-cls}-item-tail { |
|||
.@{timeline-prefix-cls}-rtl& { |
|||
border-right: 2px dotted @timeline-color; |
|||
border-left: none; |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,14 @@ |
|||
@tooltip-prefix-cls: ~'@{ant-prefix}-tooltip'; |
|||
|
|||
// Base class |
|||
.@{tooltip-prefix-cls} { |
|||
&-rtl { |
|||
direction: rtl; |
|||
} |
|||
// Wrapper for the tooltip content |
|||
&-inner { |
|||
.@{tooltip-prefix-cls}-rtl & { |
|||
text-align: right; |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,50 @@ |
|||
@import '../../style/themes/index'; |
|||
@import '../../style/mixins/index'; |
|||
@import '../../checkbox/style/mixin'; |
|||
|
|||
@tree-prefix-cls: ~'@{ant-prefix}-tree'; |
|||
@tree-node-prefix-cls: ~'@{tree-prefix-cls}-treenode'; |
|||
|
|||
.antTreeFn(@tree-prefix-cls) { |
|||
.@{tree-prefix-cls} { |
|||
&-rtl { |
|||
direction: rtl; |
|||
} |
|||
|
|||
// ===================== TreeNode ===================== |
|||
.@{tree-node-prefix-cls} { |
|||
&-rtl { |
|||
direction: rtl; |
|||
} |
|||
} |
|||
|
|||
// >>> Switcher |
|||
& &-switcher { |
|||
&_close { |
|||
.@{tree-prefix-cls}-switcher-icon { |
|||
svg { |
|||
.@{tree-prefix-cls}-rtl& { |
|||
transform: rotate(90deg); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
// ==================== Show Line ===================== |
|||
&-show-line { |
|||
// ================ Indent lines ================ |
|||
.@{tree-prefix-cls}-indent { |
|||
&-unit { |
|||
&::before { |
|||
.@{tree-prefix-cls}-rtl& { |
|||
right: auto; |
|||
left: -@tree-title-height / 2; |
|||
border-right: none; |
|||
border-left: 1px solid @border-color-base; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue