From a2a9831abb8737802f32e880a29997bfd5cf0ce5 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 15 Apr 2019 10:52:00 +0800 Subject: [PATCH] :lipstick: Fix less code style --- .stylelintrc.json | 4 +--- components/alert/style/index.less | 1 + components/anchor/style/index.less | 1 + components/auto-complete/style/index.less | 1 + components/avatar/style/index.less | 1 + components/back-top/style/index.less | 1 + components/badge/style/index.less | 1 + components/breadcrumb/style/index.less | 1 + components/button/style/mixin.less | 6 ++++++ components/calendar/style/index.less | 1 + components/card/style/index.less | 1 + components/cascader/style/index.less | 2 ++ components/checkbox/style/mixin.less | 5 +++++ components/collapse/style/index.less | 2 ++ components/date-picker/style/Calendar.less | 1 + components/date-picker/style/Picker.less | 2 ++ components/date-picker/style/RangePicker.less | 1 + components/divider/style/index.less | 1 + components/dropdown/style/index.less | 1 + components/form/style/index.less | 1 + components/grid/style/index.less | 1 + components/input-number/style/index.less | 3 +++ components/list/style/index.less | 1 + components/mention/style/index.less | 3 +++ components/menu/style/index.less | 2 +- components/message/style/index.less | 1 + components/modal/style/modal.less | 1 + components/notification/style/index.less | 2 ++ components/page-header/style/index.less | 1 + components/pagination/style/index.less | 3 +++ components/popover/style/index.less | 1 + components/progress/style/index.less | 1 + components/radio/style/index.less | 4 ++++ components/rate/style/index.less | 1 + components/select/style/index.less | 7 ++++--- components/slider/style/index.less | 1 + components/spin/style/index.less | 1 + components/steps/style/index.less | 1 + components/style/core/motion/swing.less | 1 + components/style/mixins/iconfont.less | 1 + components/style/mixins/motion.less | 2 ++ components/switch/style/index.less | 1 + components/table/style/index.less | 2 ++ components/tabs/style/index.less | 2 +- components/tag/style/index.less | 2 ++ components/time-picker/style/index.less | 2 ++ components/timeline/style/index.less | 1 + components/tooltip/style/index.less | 1 + components/transfer/style/index.less | 1 + components/tree-select/style/index.less | 1 + components/tree/style/index.less | 1 + components/tree/style/mixin.less | 1 + components/upload/style/index.less | 3 +++ site/theme/static/colors.less | 2 ++ site/theme/static/highlight.less | 2 -- site/theme/static/home.less | 1 + site/theme/static/new-version-info-modal.less | 1 + 57 files changed, 88 insertions(+), 10 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index 8948db2b3032..ec0633f7a9a1 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -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"] } diff --git a/components/alert/style/index.less b/components/alert/style/index.less index fcb57381ca13..28638faef5df 100644 --- a/components/alert/style/index.less +++ b/components/alert/style/index.less @@ -10,6 +10,7 @@ .@{alert-prefix-cls} { .reset-component; + position: relative; padding: 8px 15px 8px 37px; border-radius: @border-radius-base; diff --git a/components/anchor/style/index.less b/components/anchor/style/index.less index c4b724d1378c..9307fb2cbdb5 100644 --- a/components/anchor/style/index.less +++ b/components/anchor/style/index.less @@ -5,6 +5,7 @@ .@{ant-prefix}-anchor { .reset-component; + position: relative; padding-left: @anchor-border-width; diff --git a/components/auto-complete/style/index.less b/components/auto-complete/style/index.less index b7713e341087..601db7305ca0 100644 --- a/components/auto-complete/style/index.less +++ b/components/auto-complete/style/index.less @@ -54,6 +54,7 @@ } &[disabled] { .disabled; + background-color: transparent; } } diff --git a/components/avatar/style/index.less b/components/avatar/style/index.less index e1ec77ad66a6..53af3b6aacfe 100644 --- a/components/avatar/style/index.less +++ b/components/avatar/style/index.less @@ -5,6 +5,7 @@ .@{avatar-prefix-cls} { .reset-component; + position: relative; display: inline-block; overflow: hidden; diff --git a/components/back-top/style/index.less b/components/back-top/style/index.less index e4280723eab8..9c6e06c98398 100644 --- a/components/back-top/style/index.less +++ b/components/back-top/style/index.less @@ -5,6 +5,7 @@ .@{backtop-prefix-cls} { .reset-component; + position: fixed; right: 100px; bottom: 50px; diff --git a/components/badge/style/index.less b/components/badge/style/index.less index d9ed1bda1db3..cb3a36e18fb5 100644 --- a/components/badge/style/index.less +++ b/components/badge/style/index.less @@ -6,6 +6,7 @@ .@{badge-prefix-cls} { .reset-component; + position: relative; display: inline-block; color: unset; diff --git a/components/breadcrumb/style/index.less b/components/breadcrumb/style/index.less index 30caa834441c..f51b42b99cf6 100644 --- a/components/breadcrumb/style/index.less +++ b/components/breadcrumb/style/index.less @@ -5,6 +5,7 @@ .@{breadcrumb-prefix-cls} { .reset-component; + color: @breadcrumb-base-color; font-size: @breadcrumb-font-size; diff --git a/components/button/style/mixin.less b/components/button/style/mixin.less index 58b0f6fd0f15..76669445ee80 100644 --- a/components/button/style/mixin.less +++ b/components/button/style/mixin.less @@ -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 diff --git a/components/calendar/style/index.less b/components/calendar/style/index.less index e1e908209b06..025d031e353a 100644 --- a/components/calendar/style/index.less +++ b/components/calendar/style/index.less @@ -5,6 +5,7 @@ .@{full-calendar-prefix-cls} { .reset-component; + border-top: @border-width-base @border-style-base @border-color-base; outline: none; diff --git a/components/card/style/index.less b/components/card/style/index.less index 370173fb3d85..037e5dd95ee6 100644 --- a/components/card/style/index.less +++ b/components/card/style/index.less @@ -10,6 +10,7 @@ .@{card-prefix-cls} { .reset-component; + position: relative; background: @component-background; border-radius: @card-radius; diff --git a/components/cascader/style/index.less b/components/cascader/style/index.less index e4353fd00f07..a078e03669f1 100644 --- a/components/cascader/style/index.less +++ b/components/cascader/style/index.less @@ -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; diff --git a/components/checkbox/style/mixin.less b/components/checkbox/style/mixin.less index 5454c9aca9f5..6e136528a03f 100644 --- a/components/checkbox/style/mixin.less +++ b/components/checkbox/style/mixin.less @@ -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; diff --git a/components/collapse/style/index.less b/components/collapse/style/index.less index 5db9b1454cc9..d4cefd3308df 100644 --- a/components/collapse/style/index.less +++ b/components/collapse/style/index.less @@ -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; diff --git a/components/date-picker/style/Calendar.less b/components/date-picker/style/Calendar.less index 2a8cdc5462be..95eb1601aa6e 100644 --- a/components/date-picker/style/Calendar.less +++ b/components/date-picker/style/Calendar.less @@ -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(); diff --git a/components/date-picker/style/Picker.less b/components/date-picker/style/Picker.less index d212460f0ac5..c0fd7d269ec0 100644 --- a/components/date-picker/style/Picker.less +++ b/components/date-picker/style/Picker.less @@ -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; diff --git a/components/date-picker/style/RangePicker.less b/components/date-picker/style/RangePicker.less index 16f4dccbf744..b8acbe2511d0 100644 --- a/components/date-picker/style/RangePicker.less +++ b/components/date-picker/style/RangePicker.less @@ -96,6 +96,7 @@ .@{calendar-prefix-cls}-input, .@{calendar-timepicker-prefix-cls}-input { .input; + height: @input-height-sm; padding-right: 0; padding-left: 0; diff --git a/components/divider/style/index.less b/components/divider/style/index.less index c8c3bf88006f..69b6b7e7f988 100644 --- a/components/divider/style/index.less +++ b/components/divider/style/index.less @@ -5,6 +5,7 @@ .@{divider-prefix-cls} { .reset-component; + background: @border-color-split; &, /* for compatiable */ diff --git a/components/dropdown/style/index.less b/components/dropdown/style/index.less index 8603ead68513..39dba7287471 100644 --- a/components/dropdown/style/index.less +++ b/components/dropdown/style/index.less @@ -5,6 +5,7 @@ .@{dropdown-prefix-cls} { .reset-component; + position: absolute; top: -9999px; left: -9999px; diff --git a/components/form/style/index.less b/components/form/style/index.less index 8911b52e454d..10d8c90b9cd6 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -98,6 +98,7 @@ input[type='checkbox'] { } .reset-component; + margin-bottom: @form-item-margin-bottom; vertical-align: top; diff --git a/components/grid/style/index.less b/components/grid/style/index.less index 97087aa22352..4cf84e90ce30 100644 --- a/components/grid/style/index.less +++ b/components/grid/style/index.less @@ -5,6 +5,7 @@ // Grid system .@{ant-prefix}-row { .make-row(); + display: block; box-sizing: border-box; } diff --git a/components/input-number/style/index.less b/components/input-number/style/index.less index 455f1b124a71..6703693b2a5c 100644 --- a/components/input-number/style/index.less +++ b/components/input-number/style/index.less @@ -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; } diff --git a/components/list/style/index.less b/components/list/style/index.less index 6b612202a827..f68081f6b2d2 100644 --- a/components/list/style/index.less +++ b/components/list/style/index.less @@ -5,6 +5,7 @@ .@{list-prefix-cls} { .reset-component; + position: relative; * { diff --git a/components/mention/style/index.less b/components/mention/style/index.less index 2f936b83135b..2099c7b3b72f 100644 --- a/components/mention/style/index.less +++ b/components/mention/style/index.less @@ -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; diff --git a/components/menu/style/index.less b/components/menu/style/index.less index b16aa0c49303..0a0751545c4d 100644 --- a/components/menu/style/index.less +++ b/components/menu/style/index.less @@ -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; diff --git a/components/message/style/index.less b/components/message/style/index.less index 0c833b4e257b..554a0f0c1e9e 100644 --- a/components/message/style/index.less +++ b/components/message/style/index.less @@ -5,6 +5,7 @@ .@{message-prefix-cls} { .reset-component; + position: fixed; top: 16px; left: 0; diff --git a/components/modal/style/modal.less b/components/modal/style/modal.less index 4b86bee4de4d..b2b63d3481cc 100644 --- a/components/modal/style/modal.less +++ b/components/modal/style/modal.less @@ -5,6 +5,7 @@ .@{dialog-prefix-cls} { .reset-component; + position: relative; top: 100px; width: auto; diff --git a/components/notification/style/index.less b/components/notification/style/index.less index 507dc04b3773..9d7741f5f134 100644 --- a/components/notification/style/index.less +++ b/components/notification/style/index.less @@ -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; } diff --git a/components/page-header/style/index.less b/components/page-header/style/index.less index 23f3d097e0cf..64a1544b88a4 100644 --- a/components/page-header/style/index.less +++ b/components/page-header/style/index.less @@ -5,6 +5,7 @@ .@{pageheader-prefix-cls} { .reset-component; + position: relative; padding: @page-header-padding-vertical @page-header-padding-horizontal; background: @component-background; diff --git a/components/pagination/style/index.less b/components/pagination/style/index.less index 4fec32f1643a..7e83a5f9a893 100644 --- a/components/pagination/style/index.less +++ b/components/pagination/style/index.less @@ -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; } } diff --git a/components/popover/style/index.less b/components/popover/style/index.less index c76e8a7fa0ea..e3c6ad5417aa 100644 --- a/components/popover/style/index.less +++ b/components/popover/style/index.less @@ -5,6 +5,7 @@ .@{popover-prefix-cls} { .reset-component; + position: absolute; top: 0; left: 0; diff --git a/components/progress/style/index.less b/components/progress/style/index.less index c5b09b6bfdcc..5ed6e7eaa7ca 100644 --- a/components/progress/style/index.less +++ b/components/progress/style/index.less @@ -5,6 +5,7 @@ .@{progress-prefix-cls} { .reset-component; + display: inline-block; &-line { diff --git a/components/radio/style/index.less b/components/radio/style/index.less index 7471f46e622c..295b0dfba0d1 100644 --- a/components/radio/style/index.less +++ b/components/radio/style/index.less @@ -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; diff --git a/components/rate/style/index.less b/components/rate/style/index.less index ef4738246e6f..8f54d318ebe3 100644 --- a/components/rate/style/index.less +++ b/components/rate/style/index.less @@ -5,6 +5,7 @@ .@{rate-prefix-cls} { .reset-component; + display: inline-block; margin: 0; padding: 0; diff --git a/components/select/style/index.less b/components/select/style/index.less index cc9e1a22b0c5..f4ee11fd28ea 100644 --- a/components/select/style/index.less +++ b/components/select/style/index.less @@ -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; diff --git a/components/slider/style/index.less b/components/slider/style/index.less index 44c00402401c..41643ed6ebe2 100644 --- a/components/slider/style/index.less +++ b/components/slider/style/index.less @@ -5,6 +5,7 @@ .@{slider-prefix-cls} { .reset-component; + position: relative; height: 12px; margin: @slider-margin; diff --git a/components/spin/style/index.less b/components/spin/style/index.less index bd700287c613..5b11f43151bc 100644 --- a/components/spin/style/index.less +++ b/components/spin/style/index.less @@ -6,6 +6,7 @@ .@{spin-prefix-cls} { .reset-component; + position: absolute; display: none; color: @primary-color; diff --git a/components/steps/style/index.less b/components/steps/style/index.less index 6564deb0c89c..da7b0f3e91a1 100644 --- a/components/steps/style/index.less +++ b/components/steps/style/index.less @@ -29,6 +29,7 @@ .@{steps-prefix-cls} { .reset-component; + display: flex; width: 100%; font-size: 0; diff --git a/components/style/core/motion/swing.less b/components/style/core/motion/swing.less index 8aac66c20b27..138a942d47a7 100644 --- a/components/style/core/motion/swing.less +++ b/components/style/core/motion/swing.less @@ -2,6 +2,7 @@ .@{className}-enter, .@{className}-appear { .motion-common(); + animation-play-state: paused; } .@{className}-enter.@{className}-enter-active, diff --git a/components/style/mixins/iconfont.less b/components/style/mixins/iconfont.less index c548bcb88857..13438599e8c0 100644 --- a/components/style/mixins/iconfont.less +++ b/components/style/mixins/iconfont.less @@ -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'; diff --git a/components/style/mixins/motion.less b/components/style/mixins/motion.less index 50aff38f8f78..0a31d9c78148 100644 --- a/components/style/mixins/motion.less +++ b/components/style/mixins/motion.less @@ -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, diff --git a/components/switch/style/index.less b/components/switch/style/index.less index 0fab6cc8b084..d6eff907f8b2 100644 --- a/components/switch/style/index.less +++ b/components/switch/style/index.less @@ -6,6 +6,7 @@ .@{switch-prefix-cls} { .reset-component; + position: relative; display: inline-block; box-sizing: border-box; diff --git a/components/table/style/index.less b/components/table/style/index.less index 2d553a3e9c1b..9d0116c29370 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -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; diff --git a/components/tabs/style/index.less b/components/tabs/style/index.less index 4cb5299bd378..59e64fa121c1 100644 --- a/components/tabs/style/index.less +++ b/components/tabs/style/index.less @@ -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 { diff --git a/components/tag/style/index.less b/components/tag/style/index.less index 72854c5271e0..ec154827e57a 100644 --- a/components/tag/style/index.less +++ b/components/tag/style/index.less @@ -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; diff --git a/components/time-picker/style/index.less b/components/time-picker/style/index.less index 42038a29a8a2..9e2fc81481b9 100644 --- a/components/time-picker/style/index.less +++ b/components/time-picker/style/index.less @@ -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; diff --git a/components/timeline/style/index.less b/components/timeline/style/index.less index acac31da9efc..82cb7a481581 100644 --- a/components/timeline/style/index.less +++ b/components/timeline/style/index.less @@ -6,6 +6,7 @@ .@{timeline-prefix-cls} { .reset-component; + margin: 0; padding: 0; list-style: none; diff --git a/components/tooltip/style/index.less b/components/tooltip/style/index.less index 376b70613d2f..366fc672561a 100644 --- a/components/tooltip/style/index.less +++ b/components/tooltip/style/index.less @@ -6,6 +6,7 @@ // Base class .@{tooltip-prefix-cls} { .reset-component; + position: absolute; z-index: @zindex-tooltip; display: block; diff --git a/components/transfer/style/index.less b/components/transfer/style/index.less index e0caae4d38d6..0eb3951f718b 100644 --- a/components/transfer/style/index.less +++ b/components/transfer/style/index.less @@ -6,6 +6,7 @@ .@{transfer-prefix-cls} { .reset-component; + position: relative; &-disabled { diff --git a/components/tree-select/style/index.less b/components/tree-select/style/index.less index 0c5bd1698db5..bc22c9c25abb 100644 --- a/components/tree-select/style/index.less +++ b/components/tree-select/style/index.less @@ -10,6 +10,7 @@ .@{select-tree-prefix-cls} { .reset-component; + margin: 0; margin-top: -4px; padding: 0 4px; diff --git a/components/tree/style/index.less b/components/tree/style/index.less index f3ae2d6c1d02..f806b2d6f18f 100644 --- a/components/tree/style/index.less +++ b/components/tree/style/index.less @@ -12,6 +12,7 @@ .@{tree-prefix-cls} { .reset-component; + margin: 0; padding: 0; diff --git a/components/tree/style/mixin.less b/components/tree/style/mixin.less index e90dfc6513f6..929cecdee3c4 100644 --- a/components/tree/style/mixin.less +++ b/components/tree/style/mixin.less @@ -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 { diff --git a/components/upload/style/index.less b/components/upload/style/index.less index cb240e03d9b9..c45a2b82b880 100644 --- a/components/upload/style/index.less +++ b/components/upload/style/index.less @@ -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; diff --git a/site/theme/static/colors.less b/site/theme/static/colors.less index df95a59d3f5c..09972d9e42b6 100644 --- a/site/theme/static/colors.less +++ b/site/theme/static/colors.less @@ -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 { diff --git a/site/theme/static/highlight.less b/site/theme/static/highlight.less index 43ab5c4b25ff..51bc84cf14b7 100644 --- a/site/theme/static/highlight.less +++ b/site/theme/static/highlight.less @@ -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; diff --git a/site/theme/static/home.less b/site/theme/static/home.less index b6f56e886f84..7cd51eb7d342 100644 --- a/site/theme/static/home.less +++ b/site/theme/static/home.less @@ -42,6 +42,7 @@ height: 100%; overflow: hidden; } + position: absolute; bottom: -200px; left: 0%; diff --git a/site/theme/static/new-version-info-modal.less b/site/theme/static/new-version-info-modal.less index 888c36683b3b..6ef556e080c9 100644 --- a/site/theme/static/new-version-info-modal.less +++ b/site/theme/static/new-version-info-modal.less @@ -15,6 +15,7 @@ .ant-confirm-title { font-size: 18px; } + margin-left: 120px; .ant-confirm-content { margin-left: 0;