Merge pull request #16071 from ant-design/up-dev-deps

chore: 🆙 upgrade devDependencies
This commit is contained in:
偏右 2019-04-15 13:15:44 +08:00 committed by GitHub
commit 76b3f76033
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
58 changed files with 91 additions and 13 deletions

View File

@ -7,11 +7,9 @@
"plugins": ["stylelint-order", "stylelint-declaration-block-no-ignored-properties"],
"rules": {
"comment-empty-line-before": null,
"declaration-empty-line-before": null,
"function-name-case": ["lower", { "ignoreFunctions": ["/colorPalette/"] }],
"no-invalid-double-slash-comments": null,
"no-descending-specificity": null,
"plugin/declaration-block-no-ignored-properties": true
"no-descending-specificity": null
},
"ignoreFiles": ["components/style/color/{bezierEasing,colorPalette,tinyColor}.less"]
}

View File

@ -10,6 +10,7 @@
.@{alert-prefix-cls} {
.reset-component;
position: relative;
padding: 8px 15px 8px 37px;
border-radius: @border-radius-base;

View File

@ -5,6 +5,7 @@
.@{ant-prefix}-anchor {
.reset-component;
position: relative;
padding-left: @anchor-border-width;

View File

@ -54,6 +54,7 @@
}
&[disabled] {
.disabled;
background-color: transparent;
}
}

View File

@ -5,6 +5,7 @@
.@{avatar-prefix-cls} {
.reset-component;
position: relative;
display: inline-block;
overflow: hidden;

View File

@ -5,6 +5,7 @@
.@{backtop-prefix-cls} {
.reset-component;
position: fixed;
right: 100px;
bottom: 50px;

View File

@ -6,6 +6,7 @@
.@{badge-prefix-cls} {
.reset-component;
position: relative;
display: inline-block;
color: unset;

View File

@ -5,6 +5,7 @@
.@{breadcrumb-prefix-cls} {
.reset-component;
color: @breadcrumb-base-color;
font-size: @breadcrumb-font-size;

View File

@ -17,6 +17,7 @@
&:active,
&.active {
.button-color(@btn-disable-color; @btn-disable-bg; @btn-disable-border);
text-shadow: none;
box-shadow: none;
}
@ -25,6 +26,7 @@
.button-variant-primary(@color; @background) {
.button-color(@color; @background; @background);
text-shadow: @btn-text-shadow;
box-shadow: @btn-primary-shadow;
@ -86,6 +88,7 @@
}
.button-variant-ghost(@color) {
.button-color(@color; transparent; @color);
text-shadow: none;
&:hover,
&:focus {
@ -136,11 +139,13 @@
&-lg > .@{btnClassName},
&-lg > span > .@{btnClassName} {
.button-size(@btn-height-lg; @btn-padding-lg; @btn-font-size-lg; 0);
line-height: @btn-height-lg - 2px;
}
&-sm > .@{btnClassName},
&-sm > span > .@{btnClassName} {
.button-size(@btn-height-sm; @btn-padding-sm; @font-size-base; 0);
line-height: @btn-height-sm - 2px;
> .@{iconfont-css-prefix} {
font-size: @font-size-base;
@ -214,6 +219,7 @@
// dashed button style
.btn-dashed() {
.button-variant-other(@btn-default-color, @btn-default-bg, @btn-default-border);
border-style: dashed;
}
// danger button style

View File

@ -5,6 +5,7 @@
.@{full-calendar-prefix-cls} {
.reset-component;
border-top: @border-width-base @border-style-base @border-color-base;
outline: none;

View File

@ -10,6 +10,7 @@
.@{card-prefix-cls} {
.reset-component;
position: relative;
background: @component-background;
border-radius: @card-radius;

View File

@ -22,6 +22,7 @@
&-picker {
.reset-component;
position: relative;
display: inline-block;
background-color: @component-background;
@ -206,6 +207,7 @@
&-expand &-expand-icon,
&-expand &-loading-icon {
.iconfont-size-under-12px(10px);
position: absolute;
right: @control-padding-horizontal;
color: @text-color-secondary;

View File

@ -5,6 +5,7 @@
// 一般状态
.@{checkbox-prefix-cls} {
.reset-component;
position: relative;
top: -0.09em;
display: inline-block;
@ -57,6 +58,7 @@
&::after {
@check-width: (@checkbox-size / 14) * 5px;
@check-height: (@checkbox-size / 14) * 8px;
position: absolute;
top: 50%;
left: 21%;
@ -139,6 +141,7 @@
.@{checkbox-prefix-cls}-wrapper {
.reset-component;
display: inline-block;
line-height: unset;
cursor: pointer;
@ -155,6 +158,7 @@
.@{checkbox-prefix-cls}-group {
.reset-component;
display: inline-block;
&-item {
display: inline-block;
@ -177,6 +181,7 @@
.@{checkbox-inner-prefix-cls}::after {
@indeterminate-width: @checkbox-size - 8px;
@indeterminate-height: @checkbox-size - 8px;
top: 50%;
left: 50%;
width: @indeterminate-width;

View File

@ -5,6 +5,7 @@
.@{collapse-prefix-cls} {
.reset-component;
background-color: @collapse-header-bg;
border: @border-width-base @border-style-base @border-color-base;
border-bottom: 0;
@ -30,6 +31,7 @@
.@{collapse-prefix-cls}-arrow {
.iconfont-mixin();
position: absolute;
top: 50%;
left: @padding-md;

View File

@ -342,6 +342,7 @@
.btn;
.btn-primary;
.button-size(@btn-height-sm; @btn-padding-sm; @font-size-base; @border-radius-base);
line-height: @btn-height-sm - 2px;
.button-disabled();

View File

@ -2,6 +2,7 @@
.@{calendar-prefix-cls}-picker-container {
.reset-component;
position: absolute;
z-index: @zindex-picker;
font-family: @font-family;
@ -33,6 +34,7 @@
.@{calendar-prefix-cls}-picker {
.reset-component;
position: relative;
display: inline-block;
outline: none;

View File

@ -96,6 +96,7 @@
.@{calendar-prefix-cls}-input,
.@{calendar-timepicker-prefix-cls}-input {
.input;
height: @input-height-sm;
padding-right: 0;
padding-left: 0;

View File

@ -5,6 +5,7 @@
.@{divider-prefix-cls} {
.reset-component;
background: @border-color-split;
&, /* for compatiable */

View File

@ -5,6 +5,7 @@
.@{dropdown-prefix-cls} {
.reset-component;
position: absolute;
top: -9999px;
left: -9999px;

View File

@ -98,6 +98,7 @@ input[type='checkbox'] {
}
.reset-component;
margin-bottom: @form-item-margin-bottom;
vertical-align: top;

View File

@ -5,6 +5,7 @@
// Grid system
.@{ant-prefix}-row {
.make-row();
display: block;
box-sizing: border-box;
}

View File

@ -7,6 +7,7 @@
.@{input-number-prefix-cls} {
.reset-component;
.input;
display: inline-block;
width: 90px;
margin: 0;
@ -37,6 +38,7 @@
&-handler-up-inner,
&-handler-down-inner {
.iconfont-mixin();
position: absolute;
right: 4px;
width: 12px;
@ -116,6 +118,7 @@
.@{input-number-prefix-cls}-handler-up-inner,
.@{input-number-prefix-cls}-handler-down-inner {
.iconfont-size-under-12px(7px);
min-width: auto;
margin-right: 0;
}

View File

@ -5,6 +5,7 @@
.@{list-prefix-cls} {
.reset-component;
position: relative;
* {

View File

@ -6,6 +6,7 @@
.@{mention-prefix-cls}-wrapper {
.reset-component;
position: relative;
display: inline-block;
width: 100%;
@ -13,6 +14,7 @@
.@{mention-prefix-cls}-editor {
.input;
display: block;
height: auto; // To override height in .input mixin
min-height: @input-height-base;
@ -50,6 +52,7 @@
.@{mention-prefix-cls}-dropdown {
.reset-component;
position: absolute;
top: -9999px;
left: -9999px;

View File

@ -6,6 +6,7 @@
// default theme
.@{menu-prefix-cls} {
.reset-component;
margin-bottom: 0;
padding-left: 0; // Override default ul/ol
color: @menu-item-color;
@ -225,7 +226,6 @@
background: ~'@{menu-item-color} \9';
background-image: linear-gradient(to right, @menu-item-color, @menu-item-color);
background-image: ~'none \9';
border-radius: 2px;
transition: background 0.3s @ease-in-out, transform 0.3s @ease-in-out,
top 0.3s @ease-in-out;

View File

@ -5,6 +5,7 @@
.@{message-prefix-cls} {
.reset-component;
position: fixed;
top: 16px;
left: 0;

View File

@ -5,6 +5,7 @@
.@{dialog-prefix-cls} {
.reset-component;
position: relative;
top: 100px;
width: auto;

View File

@ -131,11 +131,13 @@
&-fade-appear {
opacity: 0;
.notification-fade-effect();
animation-play-state: paused;
}
&-fade-leave {
.notification-fade-effect();
animation-duration: 0.2s;
animation-play-state: paused;
}

View File

@ -5,6 +5,7 @@
.@{pageheader-prefix-cls} {
.reset-component;
position: relative;
padding: @page-header-padding-vertical @page-header-padding-horizontal;
background: @component-background;

View File

@ -92,6 +92,7 @@
.@{pagination-prefix-cls}-item-link-icon {
.iconfont-size-under-12px(12px);
color: @primary-color;
letter-spacing: -1px;
opacity: 0;
@ -225,6 +226,7 @@
input {
.input;
width: 50px;
margin: 0 8px;
}
@ -320,6 +322,7 @@
input {
.input-sm;
width: 44px;
}
}

View File

@ -5,6 +5,7 @@
.@{popover-prefix-cls} {
.reset-component;
position: absolute;
top: 0;
left: 0;

View File

@ -5,6 +5,7 @@
.@{progress-prefix-cls} {
.reset-component;
display: inline-block;
&-line {

View File

@ -9,6 +9,7 @@
.@{radio-group-prefix-cls} {
.reset-component;
display: inline-block;
line-height: unset;
}
@ -16,6 +17,7 @@
// 一般状态
.@{radio-prefix-cls}-wrapper {
.reset-component;
position: relative;
display: inline-block;
margin-right: 8px;
@ -25,6 +27,7 @@
.@{radio-prefix-cls} {
.reset-component;
position: relative;
display: inline-block;
line-height: 1;
@ -65,6 +68,7 @@
&-inner {
&::after {
@radio-dot-size: @radio-size - 8px;
position: absolute;
top: (@radio-size - @radio-dot-size) / 2 - 1px;
left: (@radio-size - @radio-dot-size) / 2 - 1px;

View File

@ -5,6 +5,7 @@
.@{rate-prefix-cls} {
.reset-component;
display: inline-block;
margin: 0;
padding: 0;

View File

@ -34,6 +34,7 @@
.@{select-prefix-cls} {
.reset-component;
position: relative;
display: inline-block;
outline: 0;
@ -53,6 +54,7 @@
// arrow
&-arrow {
.iconfont-mixin();
position: absolute;
top: 50%;
right: @control-padding-horizontal - 1px;
@ -69,9 +71,7 @@
&-selection {
display: block;
box-sizing: border-box;
background-color: @component-background;
border: @border-width-base @border-style-base @select-border-color;
// strange align fix for chrome but works
@ -351,6 +351,7 @@
.@{select-prefix-cls}-selection__choice__remove {
.iconfont-mixin();
position: absolute;
right: 4px;
display: inline-block;
@ -422,6 +423,7 @@
.@{select-prefix-cls}-dropdown {
.reset-component;
position: absolute;
top: -9999px;
left: -9999px;
@ -432,7 +434,6 @@
// https://github.com/ant-design/ant-design/issues/11456
// https://github.com/ant-design/ant-design/issues/11843
font-variant: initial;
background-color: @component-background;
border-radius: @border-radius-base;
outline: none;

View File

@ -5,6 +5,7 @@
.@{slider-prefix-cls} {
.reset-component;
position: relative;
height: 12px;
margin: @slider-margin;

View File

@ -6,6 +6,7 @@
.@{spin-prefix-cls} {
.reset-component;
position: absolute;
display: none;
color: @primary-color;

View File

@ -29,6 +29,7 @@
.@{steps-prefix-cls} {
.reset-component;
display: flex;
width: 100%;
font-size: 0;

View File

@ -2,6 +2,7 @@
.@{className}-enter,
.@{className}-appear {
.motion-common();
animation-play-state: paused;
}
.@{className}-enter.@{className}-enter-active,

View File

@ -32,6 +32,7 @@
.iconfont-size-under-12px(@size, @rotate: 0deg) {
display: inline-block;
@font-scale: unit(@size / 12px);
font-size: 12px;
// IE9
font-size: ~'@{size} \9';

View File

@ -14,10 +14,12 @@
.@{className}-enter,
.@{className}-appear {
.motion-common(@duration);
animation-play-state: paused;
}
.@{className}-leave {
.motion-common-leave(@duration);
animation-play-state: paused;
}
.@{className}-enter.@{className}-enter-active,

View File

@ -6,6 +6,7 @@
.@{switch-prefix-cls} {
.reset-component;
position: relative;
display: inline-block;
box-sizing: border-box;

View File

@ -13,6 +13,7 @@
.@{table-prefix-cls} {
.reset-component;
position: relative;
clear: both;
@ -85,6 +86,7 @@
.@{table-prefix-cls}-column-sorter-up,
.@{table-prefix-cls}-column-sorter-down {
.iconfont-size-under-12px(11px);
display: block;
height: 1em;
line-height: 1em;

View File

@ -18,6 +18,7 @@
.@{tab-prefix-cls} {
.reset-component;
position: relative;
overflow: hidden;
.clearfix;
@ -178,7 +179,6 @@
padding: @tabs-horizontal-padding;
text-decoration: none;
cursor: pointer;
transition: color 0.3s @ease-in-out;
&:last-child {

View File

@ -5,6 +5,7 @@
.@{tag-prefix-cls} {
.reset-component;
display: inline-block;
height: auto;
margin-right: 8px;
@ -37,6 +38,7 @@
.@{iconfont-css-prefix}-close {
.iconfont-size-under-12px(10px);
margin-left: 3px;
color: @text-color-secondary;
font-weight: bold;

View File

@ -7,6 +7,7 @@
.@{timepicker-prefix-cls}-panel {
.reset-component;
position: absolute;
z-index: @zindex-picker;
font-family: @font-family;
@ -158,6 +159,7 @@
.@{timepicker-prefix-cls} {
.reset-component;
position: relative;
display: inline-block;
width: 128px;

View File

@ -6,6 +6,7 @@
.@{timeline-prefix-cls} {
.reset-component;
margin: 0;
padding: 0;
list-style: none;

View File

@ -6,6 +6,7 @@
// Base class
.@{tooltip-prefix-cls} {
.reset-component;
position: absolute;
z-index: @zindex-tooltip;
display: block;

View File

@ -6,6 +6,7 @@
.@{transfer-prefix-cls} {
.reset-component;
position: relative;
&-disabled {

View File

@ -10,6 +10,7 @@
.@{select-tree-prefix-cls} {
.reset-component;
margin: 0;
margin-top: -4px;
padding: 0 4px;

View File

@ -12,6 +12,7 @@
.@{tree-prefix-cls} {
.reset-component;
margin: 0;
padding: 0;

View File

@ -7,6 +7,7 @@
.@{tree-prefix-cls}-switcher-icon,
.@{tree-select-prefix-cls}-switcher-icon {
.iconfont-size-under-12px(10px);
display: inline-block;
font-weight: bold;
svg {

View File

@ -8,6 +8,7 @@
.@{upload-prefix-cls} {
.reset-component;
outline: 0;
p {
@ -98,6 +99,7 @@
color: @primary-5;
font-size: 48px;
}
margin-bottom: 20px;
}
p.@{upload-prefix-cls}-text {
@ -160,6 +162,7 @@
.@{iconfont-css-prefix}-close {
.iconfont-size-under-12px(10px);
position: absolute;
top: 6px;
right: 4px;

View File

@ -129,7 +129,7 @@
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^4.0.0",
"eslint-plugin-babel": "^5.2.1",
"eslint-plugin-import": "~2.16.0",
"eslint-plugin-import": "^2.17.1",
"eslint-plugin-jest": "^22.4.1",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-markdown": "~1.0.0-beta.6",
@ -182,9 +182,9 @@
"reqwest": "^2.0.5",
"rimraf": "^2.6.2",
"scrollama": "^2.0.0",
"stylelint": "~9.10.1",
"stylelint": "^10.0.0",
"stylelint-config-prettier": "^5.0.0",
"stylelint-config-rational-order": "^0.0.4",
"stylelint-config-rational-order": "^0.1.0",
"stylelint-config-standard": "^18.2.0",
"stylelint-declaration-block-no-ignored-properties": "^1.1.0",
"stylelint-order": "^2.0.0",

View File

@ -1,6 +1,7 @@
.make-palette(@color, @index: 1) when (@index <= 10) {
.palette-@{color}-@{index} {
@background: '@{color}-@{index}';
background: @@background;
}
.make-palette(@color, (@index + 1)); // next iteration
@ -63,6 +64,7 @@
.make-palette(lime);
.make-palette(geekblue);
.make-palette(gray);
text-align: left;
&-item {

View File

@ -28,11 +28,9 @@ pre[class*='language-'] {
word-wrap: normal;
word-break: normal;
word-spacing: normal;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;

View File

@ -42,6 +42,7 @@
height: 100%;
overflow: hidden;
}
position: absolute;
bottom: -200px;
left: 0%;

View File

@ -15,6 +15,7 @@
.ant-confirm-title {
font-size: 18px;
}
margin-left: 120px;
.ant-confirm-content {
margin-left: 0;