Skip to content

Commit

Permalink
chore: sync ant-design v3.19.4 (#3585)
Browse files Browse the repository at this point in the history
  • Loading branch information
ng-zorro-bot authored and vthinkxie committed Jun 16, 2019
1 parent 42daeba commit f7b5d35
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 16 deletions.
2 changes: 0 additions & 2 deletions components/collapse/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@
top: 50%;
left: @padding-md;
display: inline-block;
margin-top: 2px;
font-size: @font-size-sm;
line-height: 46px;
transform: translateY(-50%);

& svg {
Expand Down
10 changes: 5 additions & 5 deletions components/comment/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,25 @@
position: relative;
flex: 1 1 auto;
min-width: 1px;
font-size: 14px;
font-size: @comment-font-size-base;
word-wrap: break-word;

&-author {
display: flex;
justify-content: flex-start;
margin-bottom: 4px;
font-size: 14px;
font-size: @comment-font-size-base;
& > a,
& > span {
height: 18px;
padding-right: 8px;
font-size: 12px;
font-size: @comment-font-size-sm;
line-height: 18px;
}

&-name {
color: @comment-author-name-color;
font-size: 14px;
font-size: @comment-font-size-base;
transition: color 0.3s;
> * {
color: @comment-author-name-color;
Expand Down Expand Up @@ -76,7 +76,7 @@
> span {
padding-right: 10px;
color: @comment-action-color;
font-size: 12px;
font-size: @comment-font-size-sm;
cursor: pointer;
transition: color 0.3s;
user-select: none;
Expand Down
9 changes: 8 additions & 1 deletion components/divider/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,11 @@

&-dashed {
background: none;
border-top: 1px dashed @border-color-split;
border-color: @border-color-split;
border-style: dashed;
border-width: 1px 0 0;
}

&-horizontal&-with-text-center&-dashed,
&-horizontal&-with-text-left&-dashed,
&-horizontal&-with-text-right&-dashed {
Expand All @@ -99,4 +102,8 @@
border-style: dashed none none;
}
}

&-vertical&-dashed {
border-width: 0 0 0 1px;
}
}
4 changes: 3 additions & 1 deletion components/input/style/mixin.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
height: @input-height-lg;
padding: @input-padding-vertical-lg @input-padding-horizontal-lg;
font-size: @font-size-lg;
line-height: @input-height-lg;
}

.input-sm() {
height: @input-height-sm;
padding: @input-padding-vertical-sm @input-padding-horizontal-sm;
line-height: @input-height-sm;
}

// input status
Expand Down Expand Up @@ -49,7 +51,7 @@
padding: @input-padding-vertical-base @input-padding-horizontal-base;
color: @input-color;
font-size: @font-size-base;
line-height: @line-height-base;
line-height: @input-height-base;
background-color: @input-bg;
background-image: none;
border: @border-width-base @border-style-base @input-border-color;
Expand Down
4 changes: 4 additions & 0 deletions components/menu/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
padding 0.15s @ease-in-out;
}

&-submenu-selected {
color: @menu-highlight-color;
}

&-item:active,
&-submenu-title:active {
background: @menu-item-active-bg;
Expand Down
9 changes: 4 additions & 5 deletions components/page-header/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
padding: 4px 0;
font-size: 16px;
line-height: 100%;
cursor: pointer;
&-button {
.operation-unit();

color: @text-color;
cursor: pointer;
}
}

Expand Down Expand Up @@ -65,10 +64,10 @@
top: 16px;
right: @page-header-padding-horizontal;
> * {
margin-right: 8px;
margin-left: 8px;
}
> *:last-child {
margin-right: 0;
> *:first-child {
margin-left: 0;
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions components/style/themes/default.less
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,8 @@
// ---
@comment-padding-base: 16px 0;
@comment-nest-indent: 44px;
@comment-font-size-base: @font-size-base;
@comment-font-size-sm: @font-size-sm;
@comment-author-name-color: @text-color-secondary;
@comment-author-time-color: #ccc;
@comment-action-color: @text-color-secondary;
Expand Down
14 changes: 13 additions & 1 deletion components/table/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,8 @@
opacity: 0.9999;

&::-webkit-scrollbar {
border-bottom: 1px solid @border-color-split;
border: 1px solid @border-color-split;
border-width: 0 0 1px 0;
}
}

Expand All @@ -613,6 +614,17 @@
}
}

// optimize header style of borderd table after hide extra scrollbar
&-bordered&-fixed-header &-scroll &-header {
&::-webkit-scrollbar {
border: 1px solid @border-color-split;
border-width: 1px 1px 1px 0;
}
&.@{table-prefix-cls}-hide-scrollbar .@{table-prefix-cls}-thead > tr > th:last-child {
border-right-color: transparent;
}
}

&-fixed-left,
&-fixed-right {
position: absolute;
Expand Down
11 changes: 11 additions & 0 deletions components/time-picker/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,14 @@
right: @control-padding-horizontal-sm - 1px;
}
}

// Fix cursor height in safari
// https://stackoverflow.com/q/3843408/3040605
// https://browserstrangeness.github.io/css_hacks.html#safari
@media not all and (min-resolution: 0.001dpcm) {
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
.@{ant-prefix}-input {
line-height: @line-height-base;
}
}
}
3 changes: 2 additions & 1 deletion components/tree/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@
left: 12px;
width: 1px;
height: 100%;
margin: 22px 0;
height: calc(100% - 22px); // Remove additional height if support
margin: 22px 0 0;
border-left: 1px solid @border-color-base;
content: ' ';
}
Expand Down

0 comments on commit f7b5d35

Please sign in to comment.