New help-center module adds a question-mark icon to the sidebar with an aside panel containing three sections: Documentation (permission- gated links to docs viewer and API docs), Keyboard Shortcuts (inline reference from HotkeyService with Mac/Win variants), and About (application info). Visible to all logged-in users — individual resource links respect existing permissions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
104 lines
2.1 KiB
CSS
104 lines
2.1 KiB
CSS
@layer components {
|
|
.app-help-panel {
|
|
padding: var(--app-spacing);
|
|
}
|
|
|
|
.app-help-panel .app-sidebar-title {
|
|
text-transform: uppercase;
|
|
font-size: var(--app-text-2xs);
|
|
font-weight: 600;
|
|
color: var(--app-muted-color);
|
|
margin: 0 0 0.5rem;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.app-help-panel .app-sidebar-group {
|
|
margin-bottom: calc(var(--app-spacing) * 1.5);
|
|
}
|
|
|
|
.app-help-panel .app-sidebar-group ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.app-help-panel .app-sidebar-group ul li a {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.35rem 0.5rem;
|
|
border-radius: var(--app-border-radius);
|
|
color: var(--app-color);
|
|
text-decoration: none;
|
|
font-size: var(--app-text-sm);
|
|
transition: background-color 0.15s;
|
|
}
|
|
|
|
.app-help-panel .app-sidebar-group ul li a:hover {
|
|
background-color: var(--app-accordion-border-color);
|
|
}
|
|
|
|
.app-help-panel .app-sidebar-group ul li a i {
|
|
font-size: 1rem;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
.app-help-shortcuts-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: var(--app-text-sm);
|
|
}
|
|
|
|
.app-help-shortcuts-table th,
|
|
.app-help-shortcuts-table td {
|
|
padding: 0.3rem 0.5rem;
|
|
text-align: left;
|
|
border: none;
|
|
background: transparent;
|
|
}
|
|
|
|
.app-help-shortcuts-table th {
|
|
font-weight: 600;
|
|
color: var(--app-muted-color);
|
|
font-size: var(--app-text-2xs);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
border-bottom: 1px solid var(--app-border);
|
|
}
|
|
|
|
.app-help-shortcuts-table td {
|
|
border-bottom: 1px solid var(--app-border);
|
|
}
|
|
|
|
.app-help-shortcuts-table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.app-help-shortcuts-table kbd {
|
|
display: inline-block;
|
|
padding: 0.1rem 0.35rem;
|
|
font-size: var(--app-text-xs);
|
|
font-family: var(--app-font-family-mono, monospace);
|
|
background: var(--app-card-background-color);
|
|
border: 1px solid var(--app-border);
|
|
border-radius: 3px;
|
|
box-shadow: 0 1px 0 var(--app-border);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.app-help-about-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 0.35rem 0.5rem;
|
|
font-size: var(--app-text-sm);
|
|
}
|
|
|
|
.app-help-about-label {
|
|
color: var(--app-muted-color);
|
|
}
|
|
|
|
.app-help-about-value {
|
|
font-weight: 500;
|
|
}
|
|
}
|