mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 08:09:18 +02:00
feat: render actual elements in markdown cheatsheet instead of labels
Replace text labels (h1, bold, italic) with rendered HTML in the Rendu column: headings, strong, em, del, code, links, blockquote, lists, hr, sup, small
This commit is contained in:
@@ -2200,3 +2200,115 @@ th.admin-ap-col {
|
||||
color: var(--error);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* ── Markdown Cheatsheet Dialog ──────────────────────────────────────── */
|
||||
|
||||
.md-cheatsheet-dialog {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-m, 8px);
|
||||
padding: 0;
|
||||
max-width: 640px;
|
||||
width: 90vw;
|
||||
box-shadow: 0 8px 32px rgba(0,0,0,0.18);
|
||||
}
|
||||
|
||||
.md-cheatsheet-dialog::backdrop {
|
||||
background: rgba(0,0,0,0.35);
|
||||
}
|
||||
|
||||
.md-cheatsheet-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: var(--space-s) var(--space-m);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.md-cheatsheet-header h2 {
|
||||
margin: 0;
|
||||
font-size: var(--step-0);
|
||||
}
|
||||
|
||||
.md-cheatsheet-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: var(--step--1);
|
||||
}
|
||||
|
||||
.md-cheatsheet-table th {
|
||||
text-align: left;
|
||||
padding: var(--space-2xs) var(--space-s);
|
||||
background: var(--surface2);
|
||||
font-weight: 600;
|
||||
border-bottom: 2px solid var(--border);
|
||||
}
|
||||
|
||||
.md-cheatsheet-table td {
|
||||
padding: var(--space-2xs) var(--space-s);
|
||||
border-bottom: 1px solid var(--border);
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.md-cheatsheet-syntax {
|
||||
font-family: var(--font-mono, monospace);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.md-cheatsheet-syntax code {
|
||||
background: var(--surface2);
|
||||
padding: 0.1em 0.35em;
|
||||
border-radius: 3px;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.md-cheatsheet-render {
|
||||
min-width: 140px;
|
||||
}
|
||||
|
||||
.md-cheatsheet-render h1,
|
||||
.md-cheatsheet-render h2,
|
||||
.md-cheatsheet-render h3 {
|
||||
margin: 0;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.md-cheatsheet-render h1 { font-size: var(--step-2); }
|
||||
.md-cheatsheet-render h2 { font-size: var(--step-1); }
|
||||
.md-cheatsheet-render h3 { font-size: var(--step-0); }
|
||||
|
||||
.md-cheatsheet-render blockquote {
|
||||
margin: 0;
|
||||
padding-left: var(--space-2xs);
|
||||
border-left: 3px solid var(--border);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.md-cheatsheet-render ul,
|
||||
.md-cheatsheet-render ol {
|
||||
margin: 0;
|
||||
padding-left: var(--space-m);
|
||||
}
|
||||
|
||||
.md-cheatsheet-render hr {
|
||||
margin: var(--space-3xs) 0;
|
||||
border: 0;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.md-cheatsheet-link {
|
||||
color: var(--accent-blue, var(--link));
|
||||
}
|
||||
|
||||
.md-cheatsheet-img {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.md-cheatsheet-note {
|
||||
color: var(--text-tertiary);
|
||||
font-size: var(--step--2);
|
||||
}
|
||||
|
||||
.md-cheatsheet-separator td {
|
||||
padding: var(--space-3xs) 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user