tinymist/tools/editor-tools/src/style.css
QuadnucYard 4ebdd906c2
Some checks are pending
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::ci / Duplicate Actions Detection (push) Waiting to run
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Waiting to run
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Waiting to run
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / announce (push) Blocked by required conditions
tinymist::ci / build (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
feat: revamp symbol view and add optional details (#2101)
- Restructured files.
- Render non-printable symbols, following typst documentation's
convention.
- Add a toggle to show details: symbol name and unicode, both of which
can be copied to clipboard on click.
- Make detypify import async, so that it will not block symbol
rendering.
- Show detypify canvas only when available.

<img width="1289" height="421" alt="image"
src="https://github.com/user-attachments/assets/ed6469c4-57a0-4d17-a4be-206875a03e43"
/>

<img width="1238" height="632" alt="image"
src="https://github.com/user-attachments/assets/e6bba758-7836-4230-9ab9-f9550454b4de"
/>

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-09-10 11:27:44 +08:00

81 lines
1.4 KiB
CSS

.template-card {
padding: 18px 24px;
margin: 1em 0;
}
.tinymist-search {
width: calc(100% - 1em);
margin: 0.2em;
}
.tinymist-author-container {
font-size: 0.8em;
}
.tinymist-template-action-container {
margin-top: 0.2em;
margin-bottom: 0.3em;
}
.tinymist-category-container {
margin-bottom: 0.1em;
}
.tinymist-category {
background: rgba(255, 255, 255, 0.15);
border-radius: 0.4rem;
padding: 0.1rem 0.5rem;
}
.tinymist-category-filter {
display: flex;
margin-top: 6px;
gap: 0.5rem;
}
.tinymist-highlight {
background: rgba(255, 255, 0, 0.15);
}
.tinymist-code {
font-family: Cascadia Code, Consolas, SF Mono, DejaVu Sans Mono, monospace;
}
#tinymist-app, .tinymist-main-window {
margin: 1rem;
}
#tinymist-app code, .tinymist-main-window code, .tinymist-window code {
background-color: transparent;
padding: 0;
border-radius: 0;
}
#tinymist-app.no-wrap {
margin: 0;
}
body.typst-preview-dark {
--modal-background: rgba(0, 0, 0, 0.6);
}
body.typst-preview-light {
--modal-background: rgba(255, 255, 255, 0.8);
}
body.typst-preview-dark .tinymist-category {
background: rgba(255, 255, 255, 0.05);
}
body.typst-preview-light .tinymist-category {
background: rgba(0, 0, 0, 0.05);
}
.tinymist-icon :is(path, rect) {
fill: currentColor;
}
.tinymist-icon :is(path, rect).stroke-based {
fill: none;
stroke: currentColor;
}