164 lines
3.1 KiB
CSS
164 lines
3.1 KiB
CSS
/* 按钮包裹容器 */
|
|
.button-with-tip-wrapper {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.button-with-tip {
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* 提示指示器 */
|
|
.button-tip-indicator {
|
|
font-size: 12px;
|
|
color: rgba(0, 0, 0, 0.25);
|
|
cursor: help;
|
|
transition: all 0.3s ease;
|
|
animation: pulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
.button-with-tip-wrapper:hover .button-tip-indicator {
|
|
color: #1677ff;
|
|
animation: none;
|
|
}
|
|
|
|
/* 脉冲动画 */
|
|
@keyframes pulse {
|
|
0%, 100% {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
50% {
|
|
opacity: 0.6;
|
|
transform: scale(1.1);
|
|
}
|
|
}
|
|
|
|
/* 提示框样式 */
|
|
.button-tip-overlay {
|
|
max-width: 360px;
|
|
}
|
|
|
|
.button-tip-overlay .ant-tooltip-inner {
|
|
padding: 12px 16px;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border-radius: 8px;
|
|
box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
|
|
}
|
|
|
|
.button-tip-overlay .ant-tooltip-arrow {
|
|
--antd-arrow-background-color: #667eea;
|
|
}
|
|
|
|
.button-tip-overlay .ant-tooltip-arrow-content {
|
|
background: #667eea;
|
|
}
|
|
|
|
/* 提示内容布局 */
|
|
.button-tip-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
color: #ffffff;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.button-tip-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
|
padding-bottom: 6px;
|
|
}
|
|
|
|
.button-tip-description {
|
|
color: rgba(255, 255, 255, 0.95);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.button-tip-shortcut {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-top: 4px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.15);
|
|
}
|
|
|
|
.tip-label {
|
|
font-size: 12px;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.tip-kbd {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
font-family: 'Monaco', 'Consolas', monospace;
|
|
color: #ffffff;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.button-tip-notes {
|
|
margin-top: 4px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.15);
|
|
}
|
|
|
|
.tip-notes-title {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.tip-notes-list {
|
|
margin: 0;
|
|
padding-left: 16px;
|
|
list-style-type: disc;
|
|
}
|
|
|
|
.tip-notes-list li {
|
|
font-size: 12px;
|
|
color: rgba(255, 255, 255, 0.85);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.tip-notes-list li:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* 不同主题的提示框 */
|
|
.tip-theme-success.button-tip-overlay .ant-tooltip-inner {
|
|
background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
|
|
}
|
|
|
|
.tip-theme-warning.button-tip-overlay .ant-tooltip-inner {
|
|
background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
|
|
}
|
|
|
|
.tip-theme-danger.button-tip-overlay .ant-tooltip-inner {
|
|
background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
|
|
}
|
|
|
|
.tip-theme-info.button-tip-overlay .ant-tooltip-inner {
|
|
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
|
|
}
|
|
|
|
/* 响应式调整 */
|
|
@media (max-width: 768px) {
|
|
.button-tip-overlay {
|
|
max-width: 280px;
|
|
}
|
|
|
|
.button-tip-indicator {
|
|
display: none;
|
|
}
|
|
}
|