styles:部分icon在hover的时候,需要有背景色

This commit is contained in:
黄海婷
2022-11-01 19:17:44 +08:00
committed by 早晚会起风
parent dd5869e246
commit c69c289bc4
6 changed files with 49 additions and 15 deletions

View File

@@ -32,6 +32,13 @@
color: #74788d; color: #74788d;
cursor: pointer; cursor: pointer;
} }
.refresh-icon{
padding: 0 6px;
border-radius: 50%;
&:hover {
background: rgba(33, 37, 41, 0.04);
}
}
.right .search-input { .right .search-input {
width: 248px; width: 248px;
margin-right: 8px; margin-right: 8px;

View File

@@ -7,7 +7,7 @@ import { Tag, Tooltip, Utils } from 'knowdesign';
import api from '@src/api'; import api from '@src/api';
import { QuestionCircleOutlined } from '@ant-design/icons'; import { QuestionCircleOutlined } from '@ant-design/icons';
import { HealthStateEnum } from '../HealthState'; import { HealthStateEnum } from '../HealthState';
import './index.less';
export default () => { export default () => {
const routeParams = useParams<{ const routeParams = useParams<{
clusterId: string; clusterId: string;
@@ -87,7 +87,7 @@ export default () => {
<div> <div>
<span style={{ display: 'inline-block', marginRight: '8px' }}>Similar Config</span> <span style={{ display: 'inline-block', marginRight: '8px' }}>Similar Config</span>
<Tooltip overlayClassName="rebalance-tooltip" title="所有Broker配置是否一致"> <Tooltip overlayClassName="rebalance-tooltip" title="所有Broker配置是否一致">
<QuestionCircleOutlined /> <span className='rebalance-tooltip-bg'><QuestionCircleOutlined /></span>
</Tooltip> </Tooltip>
</div> </div>
); );

View File

@@ -177,3 +177,13 @@
border-radius: 6px; border-radius: 6px;
} }
} }
.rebalance-tooltip-bg {
padding: 6px;
margin-left: -6px;
font-size: 14px;
cursor: pointer;
border-radius: 50%;
&:hover {
background: rgba(33, 37, 41, 0.04);
}
}

View File

@@ -37,8 +37,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 22px; padding: 6px;
height: 22px;
border-radius: 50%; border-radius: 50%;
cursor: pointer; cursor: pointer;
.icon { .icon {
@@ -46,7 +45,7 @@
color: #74788d; color: #74788d;
} }
&:hover { &:hover {
background: #21252904; background: rgba(33, 37, 41, 0.04);
.refresh-icon { .refresh-icon {
color: #495057; color: #495057;
} }

View File

@@ -312,6 +312,13 @@ li {
font-size: 20px; font-size: 20px;
color: #74788d; color: #74788d;
cursor: pointer; cursor: pointer;
padding: 0px 6px;
color: #74788d;
cursor: pointer;
border-radius: 50%;
&:hover {
background: rgba(33, 37, 41, 0.04);
}
} }
} }

View File

@@ -35,14 +35,19 @@
} }
.edit-icon-box { .edit-icon-box {
position: relative; position: relative;
width: 20px; width: 24px;
cursor: pointer; cursor: pointer;
.edit-icon { .edit-icon {
position: absolute; position: absolute;
bottom: 2px; bottom: -2px;
padding: 3px;
margin-left: 4px; margin-left: 4px;
font-size: 16px; font-size: 16px;
color: #74788d; color: #74788d;
border-radius: 50%;
&:hover {
background: rgba(33, 37, 41, 0.04);
}
} }
} }
} }
@@ -205,9 +210,15 @@
margin-bottom: 10px; margin-bottom: 10px;
.icon { .icon {
padding: 3px 3px 2px 3px;
margin-left: 4px; margin-left: 4px;
font-size: 14px; font-size: 14px;
cursor: pointer; cursor: pointer;
border-radius: 50%;
line-height: 12px;
&:hover {
background: rgba(33, 37, 41, 0.04);
}
} }
} }