Skip to content

Commit

Permalink
docs: optimize layout demo css (ant-design#27369)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg authored Oct 26, 2020
1 parent a7ae888 commit c84cd88
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 35 deletions.
8 changes: 4 additions & 4 deletions components/layout/demo/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ ReactDOM.render(
}
#components-layout-demo-basic .ant-layout-header,
#components-layout-demo-basic .ant-layout-footer {
background: #7dbcea;
color: #fff;
background: #7dbcea;
}
[data-theme="dark"] #components-layout-demo-basic .ant-layout-header {
background: #6aa0c7;
Expand All @@ -76,18 +76,18 @@ ReactDOM.render(
line-height: 1.5;
}
#components-layout-demo-basic .ant-layout-sider {
background: #3ba0e9;
color: #fff;
line-height: 120px;
background: #3ba0e9;
}
[data-theme="dark"] #components-layout-demo-basic .ant-layout-sider {
background: #3499ec;
}
#components-layout-demo-basic .ant-layout-content {
background: rgba(16, 142, 233, 1);
color: #fff;
min-height: 120px;
color: #fff;
line-height: 120px;
background: rgba(16, 142, 233, 1);
}
[data-theme="dark"] #components-layout-demo-basic .ant-layout-content {
background: #107bcb;
Expand Down
10 changes: 0 additions & 10 deletions components/layout/demo/custom-trigger-debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,4 @@ ReactDOM.render(<SiderDemo />, mountNode);
#components-layout-demo-custom-trigger .trigger:hover {
color: #1890ff;
}

#components-layout-demo-custom-trigger .logo {
height: 32px;
background: rgba(255, 255, 255, 0.2);
margin: 16px;
}

.site-layout-background {
background: #fff;
}
```
2 changes: 1 addition & 1 deletion components/layout/demo/custom-trigger.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ ReactDOM.render(<SiderDemo />, mountNode);

#components-layout-demo-custom-trigger .logo {
height: 32px;
background: rgba(255, 255, 255, 0.2);
background: rgba(255, 255, 255, 0.3);
margin: 16px;
}

Expand Down
2 changes: 1 addition & 1 deletion components/layout/demo/side.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ ReactDOM.render(<SiderDemo />, mountNode);
```css
#components-layout-demo-side .logo {
height: 32px;
background: rgba(255, 255, 255, 0.2);
margin: 16px;
background: rgba(255, 255, 255, 0.3);
}

.site-layout .site-layout-background {
Expand Down
17 changes: 8 additions & 9 deletions components/layout/demo/top-side-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,19 @@ ReactDOM.render(

```css
#components-layout-demo-top-side-2 .logo {
float: left;
width: 120px;
height: 31px;
background: rgba(255, 255, 255, 0.2);
margin: 16px 28px 16px 0;
float: left;
margin: 16px 24px 16px 0;
background: rgba(255, 255, 255, 0.3);
}

.ant-row-rtl #components-layout-demo-top-side-2 .logo {
float: right;
margin: 16px 0 16px 24px;
}

.site-layout-background {
background: #fff;
}
```

<style>
#components-layout-demo-top-side-2 .logo {
background: rgba(255, 255, 255, 0.3);
}
</style>
11 changes: 8 additions & 3 deletions components/layout/demo/top-side.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,16 @@ ReactDOM.render(

```css
#components-layout-demo-top-side .logo {
float: left;
width: 120px;
height: 31px;
background: rgba(255, 255, 255, 0.2);
margin: 16px 28px 16px 0;
float: left;
margin: 16px 24px 16px 0;
background: rgba(255, 255, 255, 0.3);
}

.ant-row-rtl #components-layout-demo-top-side .logo {
float: right;
margin: 16px 0 16px 24px;
}

.site-layout-background {
Expand Down
15 changes: 8 additions & 7 deletions components/layout/demo/top.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,25 @@ ReactDOM.render(

```css
.site-layout-content {
background: #fff;
padding: 24px;
min-height: 280px;
padding: 24px;
background: #fff;
}
#components-layout-demo-top .logo {
float: left;
width: 120px;
height: 31px;
background: rgba(255, 255, 255, 0.2);
margin: 16px 24px 16px 0;
float: left;
background: rgba(255, 255, 255, 0.3);
}
.ant-row-rtl #components-layout-demo-top .logo {
float: right;
margin: 16px 0 16px 24px;
}
```

<style>
[data-theme="dark"] .site-layout-content {
background: #141414;
}
[data-theme="dark"] #components-layout-demo-top .logo {
background: rgba(255,255,255,0.3);
}
</style>

0 comments on commit c84cd88

Please sign in to comment.