chore: sync ant-design v4.0.2 (#4)

This commit is contained in:
James Yeung 2020-03-09 00:09:32 +08:00 committed by GitHub
parent 0680af7677
commit 7e0a6ffc36
11 changed files with 32 additions and 12 deletions

View File

@ -181,7 +181,7 @@
justify-content: center;
margin-right: 15%;
margin-left: 15%;
padding-right: 0;
padding-left: 0;
list-style: none;
.@{carousel-prefix-cls}-rtl& {

View File

@ -148,6 +148,7 @@
font-size: @font-size-lg;
line-height: @font-size-lg;
text-align: center;
cursor: default;
.@{picker-prefix-cls}-rtl & {
transform: rotate(180deg);

View File

@ -13,6 +13,7 @@
@form-prefix-cls: ~'@{ant-prefix}-form';
@form-item-prefix-cls: ~'@{form-prefix-cls}-item';
@form-font-height: ceil(@font-size-base * @line-height-base);
@form-item-label-height: @input-height-base;
.@{form-prefix-cls} {
.reset-component;
@ -87,8 +88,7 @@
// display: inline;
display: inline-flex;
align-items: center;
height: 100%;
height: @input-height-base;
height: @form-item-label-height;
color: @label-color;
font-size: @form-item-label-font-size;

View File

@ -26,7 +26,7 @@
}
border-right-width: @border-width-base !important;
outline: 0;
box-shadow: @input-outline-offset @outline-blur-size @outline-width fade(@color, 20%);
box-shadow: @input-outline-offset @outline-blur-size @outline-width fade(@color, @outline-fade);
.@{input-rtl-cls} & {
border-right-width: 0;

View File

@ -27,6 +27,11 @@
border: @border-width-base @border-style-base @input-border-color;
border-left: 0;
}
&:hover,
&:focus {
border-color: @input-hover-border-color;
}
}
&.@{ant-prefix}-input-affix-wrapper {

View File

@ -148,7 +148,9 @@
&-vertical-left&-sub,
&-vertical-right&-sub {
min-width: 160px;
max-height: 100vh;
padding: 0;
overflow: auto;
border-right: 0;
transform-origin: 0 0;
@ -203,6 +205,16 @@
margin-left: 10px;
}
}
&.@{menu-prefix-cls}-item-only-child {
.@{iconfont-css-prefix} {
margin-right: 0;
.@{menu-prefix-cls}-rtl & {
margin-left: 0;
}
}
}
}
& > &-item-divider {

View File

@ -74,7 +74,6 @@
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
transform: translateY(-1px);
.@{select-prefix-cls}-rtl& {
margin-right: 0;

View File

@ -37,8 +37,14 @@
}
}
// For common baseline align
&::after,
// For '' value baseline align
.@{select-prefix-cls}-selection-item::after,
// For undefined value baseline align
.@{select-prefix-cls}-selection-placeholder::after {
display: inline-block;
width: 0;
content: '\a0';
}
}

View File

@ -7,7 +7,8 @@
content: '';
}
&::after {
display: block;
// https://github.com/ant-design/ant-design/issues/21864
display: table;
clear: both;
content: '';
}

View File

@ -126,6 +126,7 @@
@outline-blur-size: 0;
@outline-width: 2px;
@outline-color: @primary-color;
@outline-fade: 20%;
@background-color-light: hsv(0, 0, 98%); // background of header and selected item
@background-color-base: hsv(0, 0, 96%); // Default grey background color
@ -512,7 +513,7 @@
@table-border-radius-base: @border-radius-base;
@table-footer-bg: @background-color-light;
@table-footer-color: @heading-color;
@table-header-bg-sm: @table-bg;
@table-header-bg-sm: @table-header-bg;
// Sorter
// Legacy: `table-header-sort-active-bg` is used for hover not real active
@table-header-sort-active-bg: darken(@table-header-bg, 3%);

View File

@ -589,11 +589,6 @@
box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);
}
}
// Fix for chrome overflow show the scrollbar
&:not(&-fixed-header) &-content {
overflow-y: hidden;
}
}
@media all and (-ms-high-contrast: none) {