Skip to content

Commit

Permalink
fix: site dark, tweak style
Browse files Browse the repository at this point in the history
  • Loading branch information
ycjcl868 committed Dec 31, 2019
1 parent 4aa4285 commit f230ac5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 18 deletions.
2 changes: 1 addition & 1 deletion components/button/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ It accepts all props which native buttons support.

Following the Ant Design specification, we will add one space between if Button contains two Chinese characters only. If you don't need that, you can use [ConfigProvider](/components/config-provider/#API) to set `autoInsertSpaceInButton` as `false`.

![Button with two Chinese characters](https://gw.alipayobjects.com/zos/antfincdn/Hz5HL9gsT4/f29f170d-b78d-4d2b-aa71-0da6a9ead4d9.png)
<img src="http://alipay-rmsdeploy-image.cn-hangzhou.alipay.aliyun-inc.com/antfincdn/NstpRYFrCr/f29f170d-b78d-4d2b-aa71-0da6a9ead4d9.png" style="box-shadow: none" alt="Button with two Chinese characters" />

<style>
[id^=components-button-demo-] .ant-btn {
Expand Down
2 changes: 1 addition & 1 deletion components/button/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ subtitle: 按钮

根据 Ant Design 设计规范要求,我们会在按钮内只有两个汉字时自动添加空格,如果你不需要这个特性,可以设置 [ConfigProvider](/components/config-provider/#API)`autoInsertSpaceInButton``false`

![](https://gw.alipayobjects.com/zos/antfincdn/Hz5HL9gsT4/f29f170d-b78d-4d2b-aa71-0da6a9ead4d9.png)
<img src="http://alipay-rmsdeploy-image.cn-hangzhou.alipay.aliyun-inc.com/antfincdn/NstpRYFrCr/f29f170d-b78d-4d2b-aa71-0da6a9ead4d9.png" style="box-shadow: none" alt="移除两个汉字之间的空格" />

<style>
[id^="components-button-demo-"] .ant-btn {
Expand Down
6 changes: 0 additions & 6 deletions components/style/themes/dark.less
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,6 @@

// TimePicker
// ---
@time-picker-bg: @popover-background;
@time-picker-inner-bg: @popover-background;
@time-picker-panel-inner-bg: @popover-background;
@month-panel-bg: @popover-background;
@year-panel-bg: @popover-background;
@picker-basic-cell-hover-color: @background-color-light;
@picker-basic-cell-hover-with-range-color: #303030;
@picker-basic-cell-disabled-bg: #303030;
@picker-border-color: @border-color-split;
Expand Down
8 changes: 0 additions & 8 deletions components/style/themes/default.less
Original file line number Diff line number Diff line change
Expand Up @@ -516,14 +516,6 @@

// TimePicker
// ---
@time-picker-bg: @component-background;
@time-picker-panel-column-width: 56px;
@time-picker-panel-width: @time-picker-panel-column-width * 3;
@time-picker-selected-bg: @item-active-bg;
@time-picker-inner-bg: @component-background;
@time-picker-panel-inner-bg: @component-background;
@month-panel-bg: @component-background;
@year-panel-bg: @component-background;
@picker-bg: @component-background;
@picker-basic-cell-hover-color: @item-hover-bg;
@picker-basic-cell-hover-with-range-color: lighten(@primary-color, 35%);
Expand Down
4 changes: 2 additions & 2 deletions components/table/demo/summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ ReactDOM.render(
#components-table-demo-summary tfoot td {
background: #fafafa;
}
[data-theme="dark"] #components-table-demo-summary tfoot th,
#components-table-demo-summary tfoot td {
[data-theme="dark"] #components-table-demo-summary tfoot th,
[data-theme="dark"] #components-table-demo-summary tfoot td {
background: #1d1d1d;
}
</style>

0 comments on commit f230ac5

Please sign in to comment.