Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions Glossary_wip.md

This file was deleted.

27 changes: 0 additions & 27 deletions website/docs/glossary/Glossary.md

This file was deleted.

10 changes: 10 additions & 0 deletions website/docs/glossary/Glossary.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
id: interactive-glossary
title: Interactive Glossary
---

import GlossaryTable from '@site/src/components/Glossary/GlossaryTable';

Use the search boxes to filter by term or perform a fuzzy free-text search across definitions. Click any row or alias to deep-link to a glossary entry.

<GlossaryTable />
31 changes: 27 additions & 4 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
"clsx": "^2.1.1",
"docusaurus-lunr-search": "^3.6.0",
"dompurify": "^3.3.0",
"fuse.js": "^7.1.0",
"marked": "^12.0.2",
"prism-react-renderer": "^2.4.1",
"quizdown-extended": "^1.2.1",
"react": "^19.2.0",
"prism-react-renderer": "^2.4.1",
"react-dom": "^19.2.0",
"react-markdown": "^10.1.0",
"rehype-raw": "^7.0.0",
Expand Down
151 changes: 151 additions & 0 deletions website/src/components/Glossary/GlossaryTable.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
.wrapper {
margin: 1.5rem 0;
display: flex;
flex-direction: column;
gap: 1rem;
}

.controls {
display: grid;
gap: 0.75rem;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.control {
display: flex;
flex-direction: column;
gap: 0.35rem;
font-weight: 600;
color: var(--ifm-color-primary);
}

.control input {
padding: 0.5rem 0.75rem;
border-radius: 0.35rem;
border: 1px solid var(--ifm-color-emphasis-300);
background: var(--ifm-background-color);
color: var(--ifm-font-color-base);
}

.tableWrapper {
overflow-x: auto;
border: 1px solid var(--ifm-color-emphasis-200);
border-radius: 0.5rem;
}

.table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}

.termCol {
width: 28%;
}

.definitionCol {
width: 72%;
}
Comment thread
Snooz82 marked this conversation as resolved.
Outdated

Comment thread
Snooz82 marked this conversation as resolved.
Outdated
th,
td {
padding: 0.85rem 1rem;
text-align: left;
vertical-align: top;
}

th {
background: var(--ifm-color-emphasis-100);
font-size: 0.95rem;
letter-spacing: 0.01em;
}

tr:nth-child(even) {
background: var(--ifm-table-stripe-background);
}

tbody tr {
scroll-margin-top: 72px; /* leave space for sticky header */
}

.activeRow {
outline: 2px solid var(--ifm-color-primary);
outline-offset: -2px;
background: var(--ifm-color-emphasis-100);
}

.termCell {
min-width: 180px;
font-weight: 700;
}

.clickable {
cursor: pointer;
}

.termName {
margin-bottom: 0.25rem;
}

.definitionCell {
width: 100%;
}

.emptyState {
text-align: center;
padding: 1rem;
color: var(--ifm-color-emphasis-700);
}
Comment thread
Snooz82 marked this conversation as resolved.
Outdated

.definitionText > :first-child {
margin-top: 0;
}

.definitionText > :last-child {
margin-bottom: 0;
}

.pillRow {
display: flex;
gap: 0.4rem;
flex-wrap: wrap;
margin-top: 0.5rem;
}

.pill {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.15rem 0.6rem;
border-radius: 999px;
font-size: 0.8rem;
border: 1px solid var(--ifm-color-emphasis-300);
background: var(--ifm-color-emphasis-100);
color: var(--ifm-font-color-base);
text-decoration: none;
}

.pill:hover,
.pill:focus-visible {
border-color: var(--ifm-color-primary);
color: var(--ifm-color-primary);
}

.abbreviationPill {
font-weight: 700;
}

.aliasPill {
font-weight: 600;
}

.aliasLink {
color: var(--ifm-color-primary);
text-decoration: underline;
font-weight: 600;
}

.aliasLink:hover,
.aliasLink:focus-visible {
color: var(--ifm-color-primary-darker);
}
Loading