feat(reader): implement FEAT-01 Focus Zen Mode (100% vh/vw, auto-hiding HUD, hotkeys F/Esc, native fullscreen)

This commit is contained in:
2026-10-08 10:45:09 +03:00
parent 9bbc9473de
commit f10965eff5
13 changed files with 3157 additions and 792 deletions
+148
View File
@@ -1688,3 +1688,151 @@
}
}
/* ==========================================================================
FEAT-02: Murphy Cheatsheet Tables & Rich Detailed Notes
========================================================================== */
.grammar-table-wrap {
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
border-radius: var(--radius-md);
border: 1px solid var(--border-color);
background: var(--bg-card);
box-shadow: var(--shadow-sm);
margin: 12px 0 16px 0;
}
.grammar-cheatsheet-table {
width: 100%;
border-collapse: collapse;
font-size: 13.5px;
line-height: 1.5;
text-align: left;
}
.grammar-cheatsheet-table thead th {
background: var(--bg-surface-hover);
color: var(--text-main);
font-weight: 700;
padding: 10px 14px;
border-bottom: 2px solid var(--border-color);
white-space: nowrap;
}
.grammar-cheatsheet-table tbody td {
padding: 10px 14px;
border-bottom: 1px solid var(--border-color);
color: var(--text-main);
vertical-align: top;
}
.grammar-cheatsheet-table tbody tr:last-child td {
border-bottom: none;
}
.grammar-cheatsheet-table tbody tr:hover {
background: rgba(99, 102, 241, 0.04);
}
.grammar-inline-code {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 12.5px;
background: var(--bg-input);
color: var(--color-primary);
padding: 2px 5px;
border-radius: 4px;
border: 1px solid var(--border-color);
}
.grammar-notes-box {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 20px 24px;
color: var(--text-main);
font-size: 14px;
line-height: 1.65;
box-shadow: var(--shadow-sm);
}
.grammar-notes-box .grammar-note-h3 {
font-size: 16px;
font-weight: 800;
color: var(--text-main);
margin: 16px 0 8px 0;
letter-spacing: -0.01em;
}
.grammar-notes-box .grammar-note-h4 {
font-size: 15px;
font-weight: 700;
color: var(--color-primary);
margin: 16px 0 8px 0;
}
.grammar-notes-box .grammar-note-h5 {
font-size: 13.5px;
font-weight: 700;
color: var(--text-muted);
margin: 12px 0 6px 0;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.grammar-notes-box .grammar-note-p {
margin: 0 0 10px 0;
}
.grammar-notes-box .grammar-note-quote {
border-left: 3px solid var(--color-primary);
background: rgba(99, 102, 241, 0.06);
padding: 8px 14px;
margin: 10px 0;
border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
font-style: italic;
color: var(--text-main);
}
.grammar-notes-list {
margin: 0 0 12px 0;
padding-left: 20px;
}
.grammar-notes-list li {
margin-bottom: 6px;
line-height: 1.55;
}
/* Collapsible Practice Cheatsheet Drawer */
.practice-cheatsheet-toggle-wrap {
margin-bottom: 16px;
}
.practice-cheatsheet-btn {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12.5px;
font-weight: 600;
padding: 6px 12px;
border-radius: var(--radius-md);
background: var(--bg-surface);
border: 1px solid var(--border-color);
color: var(--text-muted);
cursor: pointer;
transition: all 0.15s ease;
}
.practice-cheatsheet-btn:hover {
color: var(--text-main);
background: var(--bg-surface-hover);
border-color: var(--color-primary);
}
.practice-cheatsheet-drawer {
margin-top: 10px;
animation: fadeIn 0.2s ease-out;
}