sorted.map((entry) => (
<>
<dt>
- <a href={generateContentUrl(entry)}>{entry.data.title}</a>
+ <a href={generateContentUrl(entry)}>
+ <h4>{entry.data.title}</h4>
+ </a>
</dt>
{entry.data.description && <dd>{entry.data.description}</dd>}
</>
<tr>
<td>{review.data.category}</td>
<td>
- <a href={generateContentUrl(review)}>{review.data.title}</a>
+ <h4>
+ <a href={generateContentUrl(review)}>{review.data.title}</a>
+ </h4>
</td>
<td>
<Rating rating={review.data.rating} />
table {
width: 100%;
}
+ thead {
+ font-family: var(--font-sans);
+ }
td:nth-child(2) {
text-align: left;
}
<dl id="searchResults" aria-live="polite"></dl>
<template id="searchResultTemplate">
<dt class="searchResult">
- <a href=""></a>
+ <h4><a href=""></a></h4>
</dt>
<dd class="excerpt"></dd>
</template>
:root {
color-scheme: light dark;
+ /* Fonts */
+ --font-serif: 'Source Serif 4 Variable', serif;
+ --font-sans: 'Public Sans Variable', sans-serif;
+ --font-mono: 'Source Code Pro Variable', monospace;
+
/* Primary colors */
--color-bg: light-dark(#e6e2d6, #000000);
--color-text: light-dark(#000000, #e6e2d6);
html {
background-color: var(--color-bg);
color: var(--color-text);
- font-family: 'Source Serif 4 Variable', serif;
+ font-family: var(--font-serif);
font-kerning: normal;
font-weight: 400;
font-size: 100%;
h4,
h5,
h6 {
- font-family: 'Public Sans Variable', sans-serif;
+ font-family: var(--font-sans);
font-weight: 700;
}
strong {
padding: 0.5rem;
}
code {
- font-family: 'Source Code Pro Variable', monospace;
+ font-family: var(--font-mono);
font-size: 0.9rem;
}
.astro-code,
.astro-code span {
- font-family: 'Source Code Pro Variable', monospace;
+ font-family: var(--font-mono);
margin-bottom: 1rem;
padding: 0.1rem;
}