142 lines
2.7 KiB
SCSS
142 lines
2.7 KiB
SCSS
.keyboard-shortcuts-modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
backdrop-filter: blur(5px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 10000;
|
|
animation: fadeIn 0.2s ease;
|
|
}
|
|
|
|
.shortcuts-content {
|
|
background: var(--color-bg, #ffffff);
|
|
border-radius: 10px;
|
|
padding: 30px;
|
|
max-width: 600px;
|
|
width: 90%;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
|
animation: slideUp 0.3s ease;
|
|
}
|
|
|
|
.shortcuts-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 15px;
|
|
border-bottom: 1px solid var(--color-border, #e0e0e0);
|
|
}
|
|
|
|
.shortcuts-header h2 {
|
|
margin: 0;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.close-button {
|
|
background: transparent;
|
|
border: none;
|
|
font-size: 2rem;
|
|
cursor: pointer;
|
|
color: var(--color-text-dimmed, #999);
|
|
line-height: 1;
|
|
padding: 0;
|
|
width: 30px;
|
|
height: 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
transition: all 0.2s ease;
|
|
|
|
&:hover {
|
|
background: var(--color-alt-bg, #f0f0f0);
|
|
color: var(--color-text, #000);
|
|
}
|
|
}
|
|
|
|
.shortcuts-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.shortcut-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px;
|
|
background: var(--color-alt-bg, #f5f5f5);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.shortcut-keys {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
kbd {
|
|
background: var(--color-bg, #ffffff);
|
|
border: 1px solid var(--color-border, #e0e0e0);
|
|
border-radius: 4px;
|
|
padding: 4px 8px;
|
|
font-family: monospace;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
min-width: 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.shortcut-description {
|
|
color: var(--color-text-dimmed, #666);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
transform: translateY(20px);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
// Dark theme
|
|
[data-theme="dark"] .shortcuts-content,
|
|
.dark .shortcuts-content {
|
|
background: rgba(0, 0, 0, 0.9);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
[data-theme="dark"] .shortcut-item,
|
|
.dark .shortcut-item {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
[data-theme="dark"] kbd,
|
|
.dark kbd {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-color: rgba(255, 255, 255, 0.2);
|
|
color: #fff;
|
|
}
|
|
|