- HistoryPopup: Vanilla JS, 다크 카드(#242427), 앰버 악센트(#f25b29) - Ctrl+Shift+V → 커서 위치에 최근 10건 히스토리 팝업 - Arrow↑↓ 선택, Enter 붙여넣기, 1-9 직접 선택, ESC 닫기 - focusable: false → 활성 앱 포커스 유지 - 2-phase 리사이즈, 등장/퇴장 애니메이션 - WindowManager: HistoryPopup 관리 + 프리로딩 - Bootstrap: globalShortcut 등록 + IPC 연동
124 lines
2.3 KiB
CSS
124 lines
2.3 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
background: transparent;
|
|
overflow: hidden;
|
|
-webkit-app-region: no-drag;
|
|
user-select: none;
|
|
}
|
|
|
|
#root {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.history-popup {
|
|
background: #242427;
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 12px;
|
|
padding: 6px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
|
|
opacity: 0;
|
|
transform: translateY(4px) scale(0.98);
|
|
transition: opacity 0.15s ease-out, transform 0.15s ease-out;
|
|
min-width: 300px;
|
|
max-width: 420px;
|
|
}
|
|
|
|
.history-popup.visible {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
|
|
.history-popup.hiding {
|
|
opacity: 0;
|
|
transform: translateY(-4px) scale(0.98);
|
|
transition-duration: 0.1s;
|
|
transition-timing-function: ease-in;
|
|
}
|
|
|
|
.items {
|
|
max-height: 360px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8px 10px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: background 100ms;
|
|
gap: 8px;
|
|
position: relative;
|
|
}
|
|
|
|
.item:hover,
|
|
.item.selected {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.item.selected::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 4px;
|
|
bottom: 4px;
|
|
width: 3px;
|
|
background: #f25b29;
|
|
border-radius: 1.5px;
|
|
}
|
|
|
|
.item-number {
|
|
color: rgba(255, 255, 255, 0.3);
|
|
font-size: 11px;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", monospace;
|
|
min-width: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
.item-text {
|
|
flex: 1;
|
|
color: rgba(255, 255, 255, 0.87);
|
|
font-size: 13px;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
line-height: 1.4;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.item-time {
|
|
color: rgba(255, 255, 255, 0.3);
|
|
font-size: 11px;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.hints {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 16px;
|
|
padding: 6px 0 4px;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.06);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.hints span {
|
|
color: rgba(255, 255, 255, 0.25);
|
|
font-size: 10px;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
}
|
|
|
|
.empty-state {
|
|
color: rgba(255, 255, 255, 0.4);
|
|
font-size: 13px;
|
|
text-align: center;
|
|
padding: 24px 16px;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
}
|