截图模块优化调整

This commit is contained in:
zhongluofeng
2026-08-03 17:36:07 +08:00
parent f51a7f894e
commit c913379e2b
19 changed files with 1744 additions and 300 deletions
+35
View File
@@ -198,4 +198,39 @@
opacity: 1;
transform: translateY(0);
}
}
/* 快捷键录入器(全局,截图/剪切板等模块共用) */
.hotkey-recorder {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 120px;
height: 36px;
padding: 0 12px;
border-radius: var(--radius);
border: 1px solid hsl(var(--input));
background-color: hsl(var(--background));
font-size: 0.875rem;
color: hsl(var(--foreground));
cursor: pointer;
user-select: none;
outline: none;
transition: border-color 0.15s, box-shadow 0.15s;
}
.hotkey-recorder:hover {
border-color: hsl(var(--ring));
}
.hotkey-recorder:focus-visible {
border-color: hsl(var(--ring));
box-shadow: 0 0 0 2px hsl(var(--ring) / 0.4);
}
.hotkey-recorder.recording {
border-color: hsl(var(--primary));
box-shadow: 0 0 0 2px hsl(var(--primary) / 0.3);
animation: recordPulse 1.2s ease-in-out infinite;
}
@keyframes recordPulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}