Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
5 changes: 5 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ export default defineConfig({
tag: 'script',
content: "(function(){try{var at=Number(localStorage.getItem('didactika-theme-at'));if(!at||Date.now()-at>2592000000){localStorage.removeItem('starlight-theme');}}catch(e){}var a=new URLSearchParams(location.search).get('mode');if(a==='dark'||a==='light'){try{localStorage.setItem('starlight-theme',a);}catch(e){}document.documentElement.dataset.theme=a;}})();",
},
{
// A hyphen is a place where a browser may break a line: keep identifiers such as UC-001 on one line.
tag: 'script',
content: "document.addEventListener('DOMContentLoaded',function(){document.querySelectorAll('.sl-markdown-content td,.sl-markdown-content th').forEach(function(c){if(/^[A-Z]{2,5}-[0-9]{2,4}$/.test(c.textContent.trim())){c.classList.add('nowrap');}});});",
},
{tag: 'link', attrs: {rel: 'icon', href: '/brand/favicon.svg', type: 'image/svg+xml'}},
{tag: 'link', attrs: {rel: 'icon', href: '/brand/favicon-32x32.png', sizes: '32x32', type: 'image/png'}},
{tag: 'link', attrs: {rel: 'icon', href: '/brand/favicon-16x16.png', sizes: '16x16', type: 'image/png'}},
Expand Down
1 change: 1 addition & 0 deletions src/styles/didactika.css
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ dialog.d-search::backdrop { background: rgb(2 8 10 / 60%); backdrop-filter: blur
.sl-markdown-content table { display: table; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 0.875rem; }
.sl-markdown-content :is(th, td) { padding: 0.65rem 0.85rem; border: 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.sl-markdown-content tr:last-child td { border-bottom: 0; }
.sl-markdown-content :is(td, th).nowrap { white-space: nowrap; }
.sl-markdown-content th { background: var(--panel-2); color: var(--muted); font: 600 0.72rem/1.2 var(--font); letter-spacing: 0.06em; text-transform: uppercase; }
.sl-markdown-content tbody tr:hover td { background: color-mix(in srgb, var(--accent) 5%, transparent); }

Expand Down
Loading