xrkffgg
5 years ago
committed by
GitHub
54 changed files with 457 additions and 445 deletions
@ -1,60 +0,0 @@ |
|||
.btn-group(@btnClassName: btn) { |
|||
.@{btnClassName} + .@{btnClassName}, |
|||
.@{btnClassName} + &, |
|||
span + .@{btnClassName}, |
|||
.@{btnClassName} + span, |
|||
> span + span, |
|||
& + .@{btnClassName}, |
|||
& + & { |
|||
.@{btnClassName}-rtl& { |
|||
margin-right: -1px; |
|||
margin-left: auto; |
|||
} |
|||
} |
|||
|
|||
&.@{btnClassName}-group-rtl { |
|||
direction: rtl; |
|||
} |
|||
|
|||
> .@{btnClassName}:first-child:not(:last-child), |
|||
> span:first-child:not(:last-child) > .@{btnClassName} { |
|||
.@{btnClassName}-group-rtl& { |
|||
border-top-left-radius: 0; |
|||
border-top-right-radius: @btn-border-radius-base; |
|||
border-bottom-right-radius: @btn-border-radius-base; |
|||
border-bottom-left-radius: 0; |
|||
} |
|||
} |
|||
|
|||
> .@{btnClassName}:last-child:not(:first-child), |
|||
> span:last-child:not(:first-child) > .@{btnClassName} { |
|||
.@{btnClassName}-group-rtl& { |
|||
border-top-left-radius: @btn-border-radius-base; |
|||
border-top-right-radius: 0; |
|||
border-bottom-right-radius: 0; |
|||
border-bottom-left-radius: @btn-border-radius-base; |
|||
} |
|||
} |
|||
|
|||
&-sm { |
|||
> .@{btnClassName}:first-child:not(:last-child), |
|||
> span:first-child:not(:last-child) > .@{btnClassName} { |
|||
.@{btnClassName}-group-rtl& { |
|||
border-top-left-radius: 0; |
|||
border-top-right-radius: @btn-border-radius-sm; |
|||
border-bottom-right-radius: @btn-border-radius-sm; |
|||
border-bottom-left-radius: 0; |
|||
} |
|||
} |
|||
|
|||
> .@{btnClassName}:last-child:not(:first-child), |
|||
> span:last-child:not(:first-child) > .@{btnClassName} { |
|||
.@{btnClassName}-group-rtl& { |
|||
border-top-left-radius: @btn-border-radius-sm; |
|||
border-top-right-radius: 0; |
|||
border-bottom-right-radius: 0; |
|||
border-bottom-left-radius: @btn-border-radius-sm; |
|||
} |
|||
} |
|||
} |
|||
} |
@ -1,5 +1,5 @@ |
|||
@import '../../style/themes/index'; |
|||
@import './mixin'; |
|||
@import './rtl'; |
|||
|
|||
.antCheckboxFn(); |
|||
@import './rtl'; |
|||
|
@ -1,60 +0,0 @@ |
|||
@import '../../style/mixins/index'; |
|||
|
|||
.loop-grid-columns(@index, @class) when (@index > 0) { |
|||
.@{ant-prefix}-col@{class}-push-@{index} { |
|||
// reset property in RTL direction |
|||
&.@{ant-prefix}-col-rtl { |
|||
right: percentage((@index / @grid-columns)); |
|||
left: auto; |
|||
} |
|||
} |
|||
|
|||
.@{ant-prefix}-col@{class}-pull-@{index} { |
|||
// reset property in RTL direction |
|||
&.@{ant-prefix}-col-rtl { |
|||
right: auto; |
|||
left: percentage((@index / @grid-columns)); |
|||
} |
|||
} |
|||
|
|||
.@{ant-prefix}-col@{class}-offset-@{index} { |
|||
// reset property in RTL direction |
|||
&.@{ant-prefix}-col-rtl { |
|||
margin-right: percentage((@index / @grid-columns)); |
|||
margin-left: 0; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.loop-grid-columns(@index, @class) when (@index = 0) { |
|||
.@{ant-prefix}-col-push-@{index} { |
|||
// reset property in RTL direction |
|||
&.@{ant-prefix}-col-rtl { |
|||
right: auto; |
|||
} |
|||
} |
|||
|
|||
.@{ant-prefix}-col-pull-@{index} { |
|||
&.@{ant-prefix}-col-rtl { |
|||
left: auto; |
|||
} |
|||
} |
|||
|
|||
.@{ant-prefix}-col@{class}-push-@{index} { |
|||
&.@{ant-prefix}-col-rtl { |
|||
right: auto; |
|||
} |
|||
} |
|||
|
|||
.@{ant-prefix}-col@{class}-pull-@{index} { |
|||
&.@{ant-prefix}-col-rtl { |
|||
left: auto; |
|||
} |
|||
} |
|||
|
|||
.@{ant-prefix}-col@{class}-offset-@{index} { |
|||
&.@{ant-prefix}-col-rtl { |
|||
margin-right: 0; |
|||
} |
|||
} |
|||
} |
@ -1,47 +0,0 @@ |
|||
@media screen and (max-width: @screen-md) { |
|||
.@{list-prefix-cls} { |
|||
&-item { |
|||
&-action { |
|||
.@{list-prefix-cls}-rtl & { |
|||
margin-right: 24px; |
|||
margin-left: 0; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
.@{list-prefix-cls}-vertical { |
|||
.@{list-prefix-cls}-item { |
|||
&-extra { |
|||
.@{list-prefix-cls}-rtl & { |
|||
margin-right: 24px; |
|||
margin-left: 0; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
@media screen and (max-width: @screen-sm) { |
|||
.@{list-prefix-cls} { |
|||
&-item { |
|||
&-action { |
|||
.@{list-prefix-cls}-rtl & { |
|||
margin-right: 22px; |
|||
margin-left: 0; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
.@{list-prefix-cls}-vertical { |
|||
.@{list-prefix-cls}-item { |
|||
&-extra { |
|||
// to override margins on rtl view |
|||
.@{list-prefix-cls}-rtl& { |
|||
margin: auto auto 16px; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
@ -1,69 +0,0 @@ |
|||
@import './index'; |
|||
|
|||
@select-multiple-item-border-width: 1px; |
|||
@select-multiple-item-spacing-half: ceil(@input-padding-vertical-base / 2); |
|||
@select-multiple-padding: max( |
|||
@input-padding-vertical-base - @select-multiple-item-border-width - |
|||
@select-multiple-item-spacing-half, |
|||
0 |
|||
); |
|||
|
|||
/** |
|||
* Do not merge `height` & `line-height` under style with `selection` & `search`, |
|||
* since chrome may update to redesign with its align logic. |
|||
*/ |
|||
|
|||
.@{select-prefix-cls}-multiple { |
|||
// ======================== Selections ======================== |
|||
.@{select-prefix-cls}-selection-item { |
|||
.@{select-prefix-cls}-rtl& { |
|||
margin-right: 0; |
|||
margin-left: @input-padding-vertical-base; |
|||
text-align: right; |
|||
} |
|||
// It's ok not to do this, but 24px makes bottom narrow in view should adjust |
|||
&-content { |
|||
.@{select-prefix-cls}-rtl& { |
|||
margin-right: 0; |
|||
margin-left: @padding-xs / 2; |
|||
text-align: right; |
|||
} |
|||
} |
|||
} |
|||
|
|||
// ========================== Input ========================== |
|||
.@{select-prefix-cls}-selection-search { |
|||
.@{select-prefix-cls}-rtl& { |
|||
margin-right: @select-multiple-padding / 2; |
|||
margin-left: @input-padding-vertical-base; |
|||
} |
|||
|
|||
&-mirror { |
|||
.@{select-prefix-cls}-rtl& { |
|||
right: 0; |
|||
left: auto; |
|||
} |
|||
} |
|||
} |
|||
|
|||
// ======================= Placeholder ======================= |
|||
.@{select-prefix-cls}-selection-placeholder { |
|||
.@{select-prefix-cls}-rtl& { |
|||
right: @input-padding-horizontal; |
|||
left: auto; |
|||
} |
|||
} |
|||
|
|||
// ============================================================ |
|||
// == Size == |
|||
// ============================================================ |
|||
|
|||
// Size small need additional set padding |
|||
&.@{select-prefix-cls}-sm { |
|||
.@{select-prefix-cls}-selection-placeholder { |
|||
.@{select-prefix-cls}-rtl& { |
|||
right: @input-padding-horizontal-sm; |
|||
} |
|||
} |
|||
} |
|||
} |
@ -1,69 +0,0 @@ |
|||
@import './index'; |
|||
|
|||
@selection-item-padding: ceil(@font-size-base * 1.25); |
|||
|
|||
.@{select-prefix-cls}-single { |
|||
// ========================= Selector ========================= |
|||
.@{select-prefix-cls}-selector { |
|||
.@{select-prefix-cls}-selection-item, |
|||
.@{select-prefix-cls}-selection-placeholder { |
|||
.@{select-prefix-cls}-rtl& { |
|||
right: 0; |
|||
left: 9px; |
|||
text-align: right; |
|||
} |
|||
} |
|||
} |
|||
|
|||
// With arrow should provides `padding-right` to show the arrow |
|||
&.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selection-search { |
|||
.@{select-prefix-cls}-rtl& { |
|||
right: @input-padding-horizontal-base; |
|||
left: @input-padding-horizontal-base + @font-size-base; |
|||
} |
|||
} |
|||
|
|||
&.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selection-item, |
|||
&.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selection-placeholder { |
|||
.@{select-prefix-cls}-rtl& { |
|||
padding-right: 0; |
|||
padding-left: @selection-item-padding; |
|||
} |
|||
} |
|||
|
|||
// ========================== Input ========================== |
|||
// We only change the style of non-customize input which is only support by `combobox` mode. |
|||
|
|||
// Not customize |
|||
&:not(.@{select-prefix-cls}-customize-input) { |
|||
.@{select-prefix-cls}-selector { |
|||
.@{select-prefix-cls}-rtl& { |
|||
padding: 0 @input-padding-horizontal-base; |
|||
} |
|||
} |
|||
} |
|||
|
|||
// ============================================================ |
|||
// == Size == |
|||
// ============================================================ |
|||
|
|||
// Size small need additional set padding |
|||
&.@{select-prefix-cls}-sm { |
|||
&:not(.@{select-prefix-cls}-customize-input) { |
|||
// With arrow should provides `padding-right` to show the arrow |
|||
&.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selection-search { |
|||
.@{select-prefix-cls}-rtl& { |
|||
right: 0; |
|||
} |
|||
} |
|||
|
|||
&.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selection-item, |
|||
&.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selection-placeholder { |
|||
.@{select-prefix-cls}-rtl& { |
|||
padding-right: 0; |
|||
padding-left: @font-size-base * 1.5; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
@ -1,10 +0,0 @@ |
|||
.@{steps-prefix-cls}-item-custom { |
|||
.@{steps-prefix-cls}-item-icon { |
|||
> .@{steps-prefix-cls}-icon { |
|||
.@{steps-prefix-cls}-rtl & { |
|||
right: 0.5px; |
|||
left: auto; |
|||
} |
|||
} |
|||
} |
|||
} |
@ -1,37 +0,0 @@ |
|||
.@{steps-prefix-cls}-navigation { |
|||
&.@{steps-prefix-cls}-small { |
|||
.@{steps-prefix-cls}-item { |
|||
&-container { |
|||
.@{steps-prefix-cls}-rtl& { |
|||
margin-right: -12px; |
|||
margin-left: 0; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
.@{steps-prefix-cls}-item { |
|||
&-container { |
|||
.@{steps-prefix-cls}-rtl& { |
|||
margin-right: -16px; |
|||
margin-left: 0; |
|||
text-align: right; |
|||
} |
|||
.@{steps-prefix-cls}-item-title { |
|||
.@{steps-prefix-cls}-rtl& { |
|||
padding-left: 0; |
|||
} |
|||
} |
|||
} |
|||
|
|||
&::after { |
|||
.@{steps-prefix-cls}-rtl& { |
|||
right: 100%; |
|||
left: auto; |
|||
margin-right: -2px; |
|||
margin-left: 0; |
|||
transform: rotate(225deg); |
|||
} |
|||
} |
|||
} |
|||
} |
@ -1,21 +0,0 @@ |
|||
.@{steps-prefix-cls}-small { |
|||
&.@{steps-prefix-cls}-horizontal:not(.@{steps-prefix-cls}-label-vertical) |
|||
.@{steps-prefix-cls}-item { |
|||
.@{steps-prefix-cls}-rtl& { |
|||
margin-right: 0; |
|||
margin-left: 12px; |
|||
} |
|||
|
|||
&:last-child { |
|||
.@{steps-prefix-cls}-rtl& { |
|||
margin-left: 0; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.@{steps-prefix-cls}-item-title { |
|||
.@{steps-prefix-cls}-rtl& { |
|||
padding-right: 0; |
|||
} |
|||
} |
|||
} |
@ -1,29 +0,0 @@ |
|||
.steps-vertical() { |
|||
.@{steps-prefix-cls}-item { |
|||
&-icon { |
|||
.@{steps-prefix-cls}-rtl& { |
|||
float: right; |
|||
margin-right: 0; |
|||
margin-left: 16px; |
|||
} |
|||
} |
|||
} |
|||
|
|||
> .@{steps-prefix-cls}-item |
|||
> .@{steps-prefix-cls}-item-container |
|||
> .@{steps-prefix-cls}-item-tail { |
|||
.@{steps-prefix-cls}-rtl& { |
|||
right: 16px; |
|||
left: auto; |
|||
} |
|||
} |
|||
|
|||
&.@{steps-prefix-cls}-small .@{steps-prefix-cls}-item-container { |
|||
.@{steps-prefix-cls}-item-tail { |
|||
.@{steps-prefix-cls}-rtl& { |
|||
right: 12px; |
|||
left: auto; |
|||
} |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue