-
+
`;
diff --git a/components/tag/demo/control.md b/components/tag/demo/control.md
index 4107b2360a..46d9529aaa 100644
--- a/components/tag/demo/control.md
+++ b/components/tag/demo/control.md
@@ -15,7 +15,7 @@ Generating a set of Tags by array, you can add and remove dynamically.
It's based on `afterClose` event, which will be triggered while the close animation end.
````jsx
-import { Tag, Input, Tooltip, Button } from 'antd';
+import { Tag, Input, Tooltip } from 'antd';
class EditableTagGroup extends React.Component {
state = {
@@ -80,7 +80,14 @@ class EditableTagGroup extends React.Component {
onPressEnter={this.handleInputConfirm}
/>
)}
- {!inputVisible &&
}
+ {!inputVisible && (
+
+ + New Tag
+
+ )}
);
}
diff --git a/components/tag/style/index.less b/components/tag/style/index.less
index fa76eb50bf..fb81e411bd 100644
--- a/components/tag/style/index.less
+++ b/components/tag/style/index.less
@@ -10,7 +10,7 @@
height: 22px;
padding: 0 8px;
border-radius: @border-radius-base;
- border: @border-width-base @border-style-base @border-color-split;
+ border: @border-width-base @border-style-base @border-color-base;
background: @tag-default-bg;
font-size: @tag-font-size;
transition: all 0.3s @ease-out;
@@ -39,6 +39,8 @@
.@{iconfont-css-prefix}-cross {
.iconfont-size-under-12px(10px);
+ position: relative;
+ top: .8px;
cursor: pointer;
font-weight: bold;
margin-left: 3px;
@@ -102,12 +104,13 @@
.make-color-classes(@i: length(@colors)) when (@i > 0) {
.make-color-classes(@i - 1);
@color: extract(@colors, @i);
- @lightColor: "@{color}-2";
+ @lightColor: "@{color}-1";
+ @lightBorderColor: "@{color}-2";
@darkColor: "@{color}-6";
&-@{color} {
color: @@darkColor;
background: @@lightColor;
- border-color: @@lightColor;
+ border-color: @@lightBorderColor;
}
&-@{color}-inverse {
background: @@darkColor;
diff --git a/components/time-picker/style/index.less b/components/time-picker/style/index.less
index 594a22a6ff..a1dbfd0f07 100644
--- a/components/time-picker/style/index.less
+++ b/components/time-picker/style/index.less
@@ -19,7 +19,6 @@
border-radius: @border-radius-base;
box-shadow: @box-shadow-base;
background-clip: padding-box;
- line-height: 1.5;
overflow: hidden;
left: -2px;
}
@@ -30,7 +29,6 @@
border: 0;
width: 100%;
cursor: auto;
- line-height: 1.5;
outline: 0;
.placeholder;
@@ -38,8 +36,9 @@
&-wrap {
box-sizing: border-box;
position: relative;
- padding: 6px;
+ padding: 7px @control-padding-horizontal;
border-bottom: @border-width-base @border-style-base @border-color-split;
+ max-width: @time-picker-panel-column-width * 3;
}
&-invalid {
@@ -49,14 +48,14 @@
&-clear-btn {
position: absolute;
- right: 5px;
+ right: 8px;
cursor: pointer;
overflow: hidden;
width: 20px;
height: 20px;
text-align: center;
line-height: 20px;
- top: 5px;
+ top: 7px;
margin: 0;
}
@@ -86,7 +85,7 @@
width: @time-picker-panel-column-width;
overflow: hidden;
position: relative; // Fix chrome weird render bug
- max-height: 144px;
+ max-height: 32px * 6;
&:hover {
overflow-y: auto;
@@ -117,10 +116,10 @@
list-style: none;
box-sizing: content-box;
margin: 0;
- padding: 0 0 0 8px;
+ padding: 0 0 0 @control-padding-horizontal;
width: 100%;
- height: 24px;
- line-height: 24px;
+ height: 32px;
+ line-height: 32px;
text-align: left;
cursor: pointer;
user-select: none;
@@ -187,8 +186,8 @@
position: relative;
display: inline-block;
outline: none;
- transition: opacity 0.3s ease;
- width: 100px;
+ transition: opacity .3s;
+ width: 128px;
&-input {
.input;
@@ -197,14 +196,6 @@
}
}
- &-large &-input {
- .input-lg;
- }
-
- &-small &-input {
- .input-sm;
- }
-
&-open {
opacity: 0;
}
@@ -214,19 +205,30 @@
user-select: none;
transition: all .3s @ease-in-out;
width: 14px;
- height: 12px;
- line-height: 12px;
- right: 8px;
+ height: 14px;
+ line-height: 14px;
+ right: @control-padding-horizontal - 1px;
color: @text-color-secondary;
top: 50%;
- margin-top: -6px;
+ margin-top: -7px;
&:after {
content: "\e641";
font-family: "anticon";
- font-size: @font-size-base - 2px;
color: @text-color-secondary;
display: block;
line-height: 1;
}
}
+
+ &-large &-input {
+ .input-lg;
+ }
+
+ &-small &-input {
+ .input-sm;
+ }
+
+ &-small &-icon {
+ right: @control-padding-horizontal-sm - 1px;
+ }
}
diff --git a/components/timeline/style/index.less b/components/timeline/style/index.less
index f355e12ec9..a6c5cfebdc 100644
--- a/components/timeline/style/index.less
+++ b/components/timeline/style/index.less
@@ -56,16 +56,15 @@
&-head-custom {
position: absolute;
text-align: center;
- width: 40px;
- left: -14px;
line-height: 1;
- margin-top: 6px;
+ margin-top: 0;
border: 0;
height: auto;
border-radius: 0;
padding: 3px 0;
- font-size: @font-size-base;
- transform: translateY(-50%);
+ transform: translate(-50%, -50%);
+ left: 6px;
+ width: auto;
}
&-content {
diff --git a/components/tooltip/style/index.less b/components/tooltip/style/index.less
index 02e4394f04..0b0a6b3de7 100644
--- a/components/tooltip/style/index.less
+++ b/components/tooltip/style/index.less
@@ -40,14 +40,14 @@
// Wrapper for the tooltip content
.@{tooltip-prefix-cls}-inner {
max-width: @tooltip-max-width;
- padding: 8px 10px;
+ padding: 6px 10px;
color: @tooltip-color;
text-align: left;
text-decoration: none;
background-color: @tooltip-bg;
border-radius: @border-radius-base;
box-shadow: @box-shadow-base;
- min-height: 34px;
+ min-height: 32px;
}
// Arrows
diff --git a/components/transfer/style/index.less b/components/transfer/style/index.less
index 6d8f55bbfb..598f244545 100644
--- a/components/transfer/style/index.less
+++ b/components/transfer/style/index.less
@@ -23,6 +23,7 @@
}
&-search {
+ padding: 0 @control-padding-horizontal-sm;
&-action {
color: @disabled-color;
position: absolute;
@@ -30,12 +31,10 @@
right: 4px;
bottom: 4px;
width: 28px;
- line-height: 26px;
+ line-height: @input-height-base;
text-align: center;
- font-size: @font-size-lg;
.@{iconfont-css-prefix} {
transition: all .3s;
- font-size: @font-size-base;
color: @disabled-color;
&:hover {
color: @text-color-secondary;
@@ -48,7 +47,7 @@
}
&-header {
- padding: 7px 15px;
+ padding: 6px @control-padding-horizontal;
border-radius: @border-radius-base @border-radius-base 0 0;
background: @component-background;
color: @text-color;
@@ -61,7 +60,7 @@
&-title {
position: absolute;
- right: 15px;
+ right: 12px;
}
}
@@ -86,6 +85,9 @@
&-content {
height: 100%;
overflow: auto;
+ list-style: none;
+ padding: 0;
+ margin: 0;
> .LazyLoad {
animation: transferHighlightIn 1s;
}
@@ -94,9 +96,12 @@
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
- padding: 7px 15px;
+ padding: 6px @control-padding-horizontal;
min-height: 32px;
transition: all .3s;
+ > span {
+ padding-right: 0;
+ }
}
&-item:not(&-item-disabled):hover {
diff --git a/components/tree/style/index.less b/components/tree/style/index.less
index 26fd9a36e0..676d6c2f7b 100644
--- a/components/tree/style/index.less
+++ b/components/tree/style/index.less
@@ -12,6 +12,13 @@
.reset-component;
margin: 0;
padding: 0;
+
+ ol, ul {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ }
+
li {
padding: 4px 0;
margin: 0;
@@ -78,7 +85,6 @@
span {
&.@{tree-prefix-cls}-checkbox {
margin: 0 4px 0 2px;
- top: 1px;
}
&.@{tree-prefix-cls}-switcher,
&.@{tree-prefix-cls}-iconEle {
diff --git a/components/upload/style/index.less b/components/upload/style/index.less
index 2b9b8a7c6e..00a197bc24 100644
--- a/components/upload/style/index.less
+++ b/components/upload/style/index.less
@@ -9,6 +9,10 @@
.reset-component;
outline: 0;
+ p {
+ margin: 0;
+ }
+
&-btn {
display: block;
width: 100%;
@@ -51,13 +55,14 @@
&&-drag {
border: @border-width-base dashed @border-color-base;
- transition: border-color 0.3s ease;
+ transition: border-color .3s;
cursor: pointer;
border-radius: @border-radius-base;
text-align: center;
width: 100%;
height: 100%;
position: relative;
+ padding: 16px 0;
&.@{upload-prefix-cls}-drag-hover:not(.@{upload-prefix-cls}-disabled) {
border: 2px dashed @primary-5;
@@ -83,15 +88,15 @@
p.@{upload-prefix-cls}-drag-icon {
.@{iconfont-css-prefix} {
- font-size: 80px;
- margin-top: -5px;
+ font-size: 60px;
color: @primary-5;
}
- height: 60px;
- margin-bottom: 24px;
+ margin-bottom: 8px;
}
p.@{upload-prefix-cls}-text {
font-size: @font-size-lg;
+ margin: 0 0 4px;
+ color: @heading-color;
}
p.@{upload-prefix-cls}-hint {
font-size: @font-size-base;
@@ -99,7 +104,7 @@
}
.@{iconfont-css-prefix}-plus {
font-size: 30px;
- transition: all 0.3s ease;
+ transition: all .3s;
color: @disabled-color;
&:hover {
color: @text-color-secondary;
@@ -124,7 +129,7 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
- padding-left: 16px;
+ padding-left: @font-size-base + 4px;
width: 100%;
display: inline-block;
}
@@ -134,13 +139,16 @@
padding: 0 12px 0 4px;
transition: background-color .3s;
+ > span {
+ display: block;
+ }
+
.@{iconfont-css-prefix}-loading,
.@{iconfont-css-prefix}-paper-clip {
- margin-right: 4px;
font-size: @font-size-base;
color: @text-color-secondary;
position: absolute;
- top: 5.5px;
+ top: @font-size-base / 2 - 0.5px;
}
}
diff --git a/site/theme/static/toc.less b/site/theme/static/toc.less
index 09638e413f..0d5dfb7ac2 100644
--- a/site/theme/static/toc.less
+++ b/site/theme/static/toc.less
@@ -53,8 +53,10 @@
.demos-anchor {
color: #aaa;
font-size: 12px;
- margin-top: -4px;
+ margin: -4px 0 0;
background-color: #fff;
+ padding: 0;
+ list-style: none;
a {
padding-left: 8px;
display: block;
diff --git a/site/theme/template/IconSet/index.jsx b/site/theme/template/IconSet/index.jsx
index 1d2f728ed8..ed28048c5f 100644
--- a/site/theme/template/IconSet/index.jsx
+++ b/site/theme/template/IconSet/index.jsx
@@ -10,12 +10,20 @@ export default class IconSet extends React.Component {
icons = {
direction: ['step-backward', 'step-forward', 'fast-backward', 'fast-forward', 'shrink', 'arrows-alt', 'down', 'up', 'left', 'right', 'caret-up', 'caret-down', 'caret-left', 'caret-right', 'up-circle', 'down-circle', 'left-circle', 'right-circle', 'up-circle-o', 'down-circle-o', 'right-circle-o', 'left-circle-o', 'double-right', 'double-left', 'verticle-left', 'verticle-right', 'forward', 'backward', 'rollback', 'enter', 'retweet', 'swap', 'swap-left', 'swap-right', 'arrow-up', 'arrow-down', 'arrow-left', 'arrow-right', 'play-circle', 'play-circle-o', 'up-square', 'down-square', 'left-square', 'right-square', 'up-square-o', 'down-square-o', 'left-square-o', 'right-square-o', 'login', 'logout', 'menu-fold', 'menu-unfold'],
suggestion: ['question', 'question-circle-o', 'question-circle', 'plus', 'plus-circle-o', 'plus-circle', 'pause', 'pause-circle-o', 'pause-circle', 'minus', 'minus-circle-o', 'minus-circle', 'plus-square', 'plus-square-o', 'minus-square', 'minus-square-o', 'info', 'info-circle-o', 'info-circle', 'exclamation', 'exclamation-circle-o', 'exclamation-circle', 'close', 'close-circle', 'close-circle-o', 'close-square', 'close-square-o', 'check', 'check-circle', 'check-circle-o', 'check-square', 'check-square-o', 'clock-circle-o', 'clock-circle', 'warning'],
- logo: ['android', 'android-o', 'apple', 'apple-o', 'windows', 'windows-o', 'ie', 'chrome', 'github', 'aliwangwang', 'aliwangwang-o', 'dingding', 'dingding-o'],
+ logo: [
+ 'android', 'android-o', 'apple', 'apple-o', 'windows', 'windows-o', 'ie', 'chrome', 'github', 'aliwangwang', 'aliwangwang-o', 'dingding', 'dingding-o',
+ 'html5', 'weibo', 'twitter', 'wechat', 'youtube', 'alipay-circle', 'taobao', 'skype', 'qq', 'medium-workmark', 'gitlab', 'medium', 'linkedin', 'google-plus',
+ 'dropbox', 'facebook', 'codepen', 'amazon', 'google', 'codepen-circle', 'alipay', 'ant-design',
+ ],
other: ['lock', 'unlock', 'area-chart', 'pie-chart', 'bar-chart', 'dot-chart', 'bars', 'book', 'calendar', 'cloud', 'cloud-download', 'code', 'code-o', 'copy', 'credit-card', 'delete', 'desktop', 'download', 'edit', 'ellipsis', 'file', 'file-text', 'file-unknown', 'file-pdf', 'file-excel', 'file-jpg', 'file-ppt', 'file-add', 'folder', 'folder-open', 'folder-add', 'hdd', 'frown', 'frown-o', 'meh', 'meh-o', 'smile', 'smile-o', 'inbox', 'laptop', 'appstore-o', 'appstore', 'line-chart', 'link', 'mail', 'mobile', 'notification', 'paper-clip', 'picture', 'poweroff', 'reload', 'search', 'setting', 'share-alt', 'shopping-cart', 'tablet', 'tag', 'tag-o', 'tags', 'tags-o', 'to-top', 'upload', 'user', 'video-camera', 'home', 'loading', 'loading-3-quarters', 'cloud-upload-o', 'cloud-download-o', 'cloud-upload', 'cloud-o', 'star-o', 'star', 'heart-o', 'heart', 'environment', 'environment-o', 'eye', 'eye-o', 'camera', 'camera-o', 'save', 'team', 'solution', 'phone', 'filter', 'exception', 'export', 'customer-service', 'qrcode', 'scan', 'like', 'like-o', 'dislike', 'dislike-o', 'message', 'pay-circle', 'pay-circle-o', 'calculator', 'pushpin', 'pushpin-o', 'bulb', 'select', 'switcher', 'rocket', 'bell', 'disconnect', 'database', 'compass', 'barcode', 'hourglass', 'key', 'flag', 'layout', 'printer', 'sound', 'usb', 'skin', 'tool', 'sync', 'wifi', 'car', 'schedule', 'user-add', 'user-delete', 'usergroup-add', 'usergroup-delete', 'man', 'woman', 'shop', 'gift', 'idcard', 'medicine-box', 'red-envelope', 'coffee', 'copyright', 'trademark', 'safety', 'wallet', 'bank', 'trophy', 'contacts', 'global', 'shake', 'api', 'fork', 'dashboard', 'form', 'table', 'profile'],
};
// Show badges
- newIcons = ['warning', 'dashboard', 'form', 'table', 'profile'];
+ newIcons = [
+ 'warning', 'dashboard', 'form', 'table', 'profile',
+ 'html5', 'weibo', 'twitter', 'wechat', 'youtube', 'alipay-circle', 'taobao', 'skype', 'qq', 'medium-workmark', 'gitlab', 'medium', 'linkedin', 'google-plus',
+ 'dropbox', 'facebook', 'codepen', 'amazon', 'google', 'codepen-circle', 'alipay', 'ant-design',
+ ];
render() {
const { className, catigory } = this.props;