mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
fix: dropdown menu
This commit is contained in:
parent
8795a3106b
commit
8a7beb02bd
@ -27,12 +27,11 @@ const menu = (
|
||||
ReactDOM.render(
|
||||
<Dropdown overlay={menu} trigger={['contextMenu']}>
|
||||
<div
|
||||
className="site-dropdown-context-menu"
|
||||
style={{
|
||||
textAlign: 'center',
|
||||
background: '#f7f7f7',
|
||||
height: 200,
|
||||
lineHeight: '200px',
|
||||
color: '#777',
|
||||
}}
|
||||
>
|
||||
Right Click on here
|
||||
@ -41,3 +40,17 @@ ReactDOM.render(
|
||||
mountNode,
|
||||
);
|
||||
```
|
||||
|
||||
```css
|
||||
.site-dropdown-context-menu {
|
||||
background: #f7f7f7;
|
||||
color: #777;
|
||||
}
|
||||
```
|
||||
|
||||
<style>
|
||||
[data-theme="dark"] .site-dropdown-context-menu {
|
||||
background: #141414;
|
||||
color: rgba(255,255,255,.65);
|
||||
}
|
||||
</style>
|
||||
|
@ -157,6 +157,11 @@
|
||||
background: rgba(0, 0, 0, 0.02);
|
||||
}
|
||||
|
||||
[data-theme='dark'] .markdown > table th {
|
||||
color: fade(@white, 65%);
|
||||
background: #1d1d1d;
|
||||
}
|
||||
|
||||
.markdown > table th,
|
||||
.markdown > table td {
|
||||
padding: 16px 24px;
|
||||
@ -275,6 +280,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
[data-theme='dark'] .markdown.api-container {
|
||||
table {
|
||||
tbody tr {
|
||||
&:hover {
|
||||
background: #262626;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.grid-demo,
|
||||
[id^='components-grid-demo-'] {
|
||||
.demo-row,
|
||||
|
Loading…
Reference in New Issue
Block a user