@cogenta/theme-entreprise 1.1.3 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/render/blocks/accordion.d.ts.map +1 -1
- package/dist/src/render/blocks/accordion.js +12 -15
- package/dist/src/render/blocks/accordion.js.map +1 -1
- package/dist/src/render/blocks/collection-list.d.ts +5 -7
- package/dist/src/render/blocks/collection-list.d.ts.map +1 -1
- package/dist/src/render/blocks/collection-list.js +48 -32
- package/dist/src/render/blocks/collection-list.js.map +1 -1
- package/dist/src/render/blocks/cta.d.ts +6 -6
- package/dist/src/render/blocks/cta.d.ts.map +1 -1
- package/dist/src/render/blocks/cta.js +12 -12
- package/dist/src/render/blocks/cta.js.map +1 -1
- package/dist/src/render/blocks/embed.d.ts.map +1 -1
- package/dist/src/render/blocks/embed.js +22 -27
- package/dist/src/render/blocks/embed.js.map +1 -1
- package/dist/src/render/blocks/faq.d.ts.map +1 -1
- package/dist/src/render/blocks/faq.js +13 -16
- package/dist/src/render/blocks/faq.js.map +1 -1
- package/dist/src/render/blocks/feature-grid.d.ts.map +1 -1
- package/dist/src/render/blocks/feature-grid.js +22 -22
- package/dist/src/render/blocks/feature-grid.js.map +1 -1
- package/dist/src/render/blocks/gallery.d.ts +7 -8
- package/dist/src/render/blocks/gallery.d.ts.map +1 -1
- package/dist/src/render/blocks/gallery.js +16 -14
- package/dist/src/render/blocks/gallery.js.map +1 -1
- package/dist/src/render/blocks/hero.d.ts +13 -8
- package/dist/src/render/blocks/hero.d.ts.map +1 -1
- package/dist/src/render/blocks/hero.js +27 -17
- package/dist/src/render/blocks/hero.js.map +1 -1
- package/dist/src/render/blocks/logo-strip.d.ts.map +1 -1
- package/dist/src/render/blocks/logo-strip.js +14 -11
- package/dist/src/render/blocks/logo-strip.js.map +1 -1
- package/dist/src/render/blocks/logos.d.ts.map +1 -1
- package/dist/src/render/blocks/logos.js +21 -12
- package/dist/src/render/blocks/logos.js.map +1 -1
- package/dist/src/render/blocks/media-figure.d.ts +10 -6
- package/dist/src/render/blocks/media-figure.d.ts.map +1 -1
- package/dist/src/render/blocks/media-figure.js +18 -13
- package/dist/src/render/blocks/media-figure.js.map +1 -1
- package/dist/src/render/blocks/pricing-table.d.ts.map +1 -1
- package/dist/src/render/blocks/pricing-table.js +15 -11
- package/dist/src/render/blocks/pricing-table.js.map +1 -1
- package/dist/src/render/blocks/prose.d.ts +9 -3
- package/dist/src/render/blocks/prose.d.ts.map +1 -1
- package/dist/src/render/blocks/prose.js +11 -4
- package/dist/src/render/blocks/prose.js.map +1 -1
- package/dist/src/render/blocks/quote.d.ts +10 -10
- package/dist/src/render/blocks/quote.d.ts.map +1 -1
- package/dist/src/render/blocks/quote.js +14 -13
- package/dist/src/render/blocks/quote.js.map +1 -1
- package/dist/src/render/blocks/stat-counter.d.ts.map +1 -1
- package/dist/src/render/blocks/stat-counter.js +11 -13
- package/dist/src/render/blocks/stat-counter.js.map +1 -1
- package/dist/src/render/blocks/stats.d.ts.map +1 -1
- package/dist/src/render/blocks/stats.js +12 -13
- package/dist/src/render/blocks/stats.js.map +1 -1
- package/dist/src/render/blocks/testimonial.d.ts +9 -9
- package/dist/src/render/blocks/testimonial.d.ts.map +1 -1
- package/dist/src/render/blocks/testimonial.js +15 -14
- package/dist/src/render/blocks/testimonial.js.map +1 -1
- package/dist/src/render/chrome.d.ts +3 -1
- package/dist/src/render/chrome.d.ts.map +1 -1
- package/dist/src/render/chrome.js +71 -46
- package/dist/src/render/chrome.js.map +1 -1
- package/dist/src/render/layout.d.ts +26 -0
- package/dist/src/render/layout.d.ts.map +1 -0
- package/dist/src/render/layout.js +51 -0
- package/dist/src/render/layout.js.map +1 -0
- package/dist/src/render/render-block.d.ts.map +1 -1
- package/dist/src/render/render-block.js +23 -2
- package/dist/src/render/render-block.js.map +1 -1
- package/dist/src/render/term-archive.d.ts +8 -6
- package/dist/src/render/term-archive.d.ts.map +1 -1
- package/dist/src/render/term-archive.js +22 -16
- package/dist/src/render/term-archive.js.map +1 -1
- package/dist/src/render/widget-areas.d.ts +13 -0
- package/dist/src/render/widget-areas.d.ts.map +1 -0
- package/dist/src/render/widget-areas.js +20 -0
- package/dist/src/render/widget-areas.js.map +1 -0
- package/dist/theme.config.js +2 -2
- package/dist/theme.config.js.map +1 -1
- package/package.json +5 -5
- package/src/index.ts +1 -0
- package/src/render/blocks/accordion.ts +32 -27
- package/src/render/blocks/collection-list.ts +84 -53
- package/src/render/blocks/cta.ts +27 -28
- package/src/render/blocks/embed.ts +46 -43
- package/src/render/blocks/faq.ts +25 -21
- package/src/render/blocks/feature-grid.ts +42 -35
- package/src/render/blocks/gallery.ts +21 -16
- package/src/render/blocks/hero.ts +40 -28
- package/src/render/blocks/logo-strip.ts +26 -16
- package/src/render/blocks/logos.ts +33 -17
- package/src/render/blocks/media-figure.ts +22 -14
- package/src/render/blocks/pricing-table.ts +26 -15
- package/src/render/blocks/prose.ts +18 -4
- package/src/render/blocks/quote.ts +18 -14
- package/src/render/blocks/stat-counter.ts +25 -20
- package/src/render/blocks/stats.ts +31 -21
- package/src/render/blocks/testimonial.ts +22 -18
- package/src/render/chrome.ts +84 -49
- package/src/render/layout.ts +67 -0
- package/src/render/render-block.ts +24 -1
- package/src/render/term-archive.ts +54 -50
- package/src/render/widget-areas.ts +23 -0
- package/src/styles/archive.css +135 -38
- package/src/styles/base.css +553 -426
- package/src/styles/blocks.css +1192 -1000
- package/src/styles/theme.css +18 -24
- package/src/styles/tokens.css +162 -192
- package/src/styles/widgets.css +913 -0
- package/tokens.json +17 -17
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { type Attributes, type Child, type HtmlElement, h } from '@cogenta/theme-kit'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The frame every block of this theme renders into.
|
|
5
|
+
*
|
|
6
|
+
* The outer element is full width, so a band (the ink call to action, a
|
|
7
|
+
* muted variant) can paint edge to edge and so the section rhythm
|
|
8
|
+
* (`--cg-section`) is applied once, to every block alike. The inner element
|
|
9
|
+
* is the twelve-column container: one maximum width, one gutter, one column
|
|
10
|
+
* gap, for the whole site.
|
|
11
|
+
*
|
|
12
|
+
* `inner` is `figure` for the blocks whose own semantics are a figure (a
|
|
13
|
+
* quotation and its attribution, an image and its caption): `<figcaption>`
|
|
14
|
+
* must be a direct child of its `<figure>`, so the figure has to be the
|
|
15
|
+
* container itself rather than something nested inside it.
|
|
16
|
+
*/
|
|
17
|
+
export function section(
|
|
18
|
+
outer: 'section' | 'div',
|
|
19
|
+
block: string,
|
|
20
|
+
className: string,
|
|
21
|
+
attrs: Attributes,
|
|
22
|
+
inner: 'div' | 'figure',
|
|
23
|
+
...children: readonly Child[]
|
|
24
|
+
): HtmlElement {
|
|
25
|
+
return h(
|
|
26
|
+
outer,
|
|
27
|
+
{ class: `cg-section ${className}`, 'data-block': block, ...attrs },
|
|
28
|
+
h(inner, { class: `cg-container ${className}__inner` }, ...children),
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** A two-digit, zero-padded ordinal: `01`, `02`… — the index language this theme uses for numbered rows. */
|
|
33
|
+
export function ordinal(index: number): string {
|
|
34
|
+
return String(index + 1).padStart(2, '0')
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* A thin right arrow, drawn inline and hidden from assistive technology: it
|
|
39
|
+
* repeats what the link it sits in already says.
|
|
40
|
+
*/
|
|
41
|
+
export function arrow(): HtmlElement {
|
|
42
|
+
return h(
|
|
43
|
+
'svg',
|
|
44
|
+
{
|
|
45
|
+
class: 'cg-arrow',
|
|
46
|
+
viewBox: '0 0 20 20',
|
|
47
|
+
fill: 'none',
|
|
48
|
+
stroke: 'currentColor',
|
|
49
|
+
'stroke-width': '1.5',
|
|
50
|
+
'stroke-linecap': 'square',
|
|
51
|
+
'aria-hidden': 'true',
|
|
52
|
+
focusable: 'false',
|
|
53
|
+
},
|
|
54
|
+
h('path', { d: 'M3 10h13M11.5 5.5 16 10l-4.5 4.5' }),
|
|
55
|
+
)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** `March 2026` in the page's locale, or `null` when the value is not a date `Intl` can format. */
|
|
59
|
+
export function monthYear(iso: string, locale: string): string | null {
|
|
60
|
+
const date = new Date(iso)
|
|
61
|
+
if (Number.isNaN(date.getTime())) return null
|
|
62
|
+
try {
|
|
63
|
+
return new Intl.DateTimeFormat(locale, { month: 'long', year: 'numeric' }).format(date)
|
|
64
|
+
} catch {
|
|
65
|
+
return new Intl.DateTimeFormat('en', { month: 'long', year: 'numeric' }).format(date)
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
h,
|
|
6
6
|
type PageContent,
|
|
7
7
|
pageHasOwnHeading,
|
|
8
|
+
providedBlockNode,
|
|
8
9
|
type RenderContext,
|
|
9
10
|
renderEntryHeader,
|
|
10
11
|
resolveBlockForRender,
|
|
@@ -38,6 +39,11 @@ export function renderBlock(
|
|
|
38
39
|
entries: FetchedEntries = {},
|
|
39
40
|
registry?: BlockRegistry,
|
|
40
41
|
): HtmlElement | null {
|
|
42
|
+
// A block a plugin provides arrives already rendered by the host, in a
|
|
43
|
+
// process of its own (contract D theme@1.7). Nothing else in this theme
|
|
44
|
+
// needs to know such blocks exist.
|
|
45
|
+
const provided = providedBlockNode(block, ctx)
|
|
46
|
+
if (provided !== null) return withBlockVariant(provided, block.variant)
|
|
41
47
|
// `block`'s type says `VocabularyBlock`, but the value crossing this
|
|
42
48
|
// boundary from stored content is not always literally one of the shared
|
|
43
49
|
// vocabulary — resolving here is what turns an unimplemented theme-private
|
|
@@ -106,6 +112,23 @@ function renderKnownBlock(
|
|
|
106
112
|
}
|
|
107
113
|
}
|
|
108
114
|
|
|
115
|
+
/** Below this, a reading time says nothing a reader can use. */
|
|
116
|
+
const MIN_READING_MINUTES_SHOWN = 3
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* A practice page or a short case study announcing "1 min read" reads like a
|
|
120
|
+
* blog, not like a firm: this theme shows a reading time only for a long
|
|
121
|
+
* read. The rest of the entry furniture is passed through untouched.
|
|
122
|
+
*/
|
|
123
|
+
function withoutShortReadingTime(page: PageContent): PageContent {
|
|
124
|
+
const entry = page.entry
|
|
125
|
+
if (entry?.readingMinutes === undefined || entry.readingMinutes >= MIN_READING_MINUTES_SHOWN) {
|
|
126
|
+
return page
|
|
127
|
+
}
|
|
128
|
+
const { readingMinutes: _short, ...rest } = entry
|
|
129
|
+
return { ...page, entry: rest }
|
|
130
|
+
}
|
|
131
|
+
|
|
109
132
|
/**
|
|
110
133
|
* `<main id="cg-main">` is mandatory: it is the skip-link's target, written
|
|
111
134
|
* once by `@cogenta/cli`'s `theme-render.ts` outside any theme's control.
|
|
@@ -129,7 +152,7 @@ export function renderPage(
|
|
|
129
152
|
entries: FetchedEntries = {},
|
|
130
153
|
registry?: BlockRegistry,
|
|
131
154
|
): HtmlElement {
|
|
132
|
-
const entryHeader = renderEntryHeader(page, ctx)
|
|
155
|
+
const entryHeader = renderEntryHeader(withoutShortReadingTime(page), ctx)
|
|
133
156
|
return h(
|
|
134
157
|
'main',
|
|
135
158
|
{ class: 'cg-main', id: 'cg-main' },
|
|
@@ -1,67 +1,71 @@
|
|
|
1
1
|
import { type HtmlElement, h, type TermArchiveInput } from '@cogenta/theme-kit'
|
|
2
|
+
import { monthYear } from './layout.js'
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
|
-
* The taxonomy-term archive (contract D `theme@1.3`)
|
|
5
|
+
* The taxonomy-term archive (contract D `theme@1.3`): an index, set the way a
|
|
6
|
+
* firm lists its work by sector.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* A breadcrumb in small capitals, the term as the page title in the display
|
|
9
|
+
* serif, its sub-terms as a ruled line of links, then one hairline row per
|
|
10
|
+
* entry: the title on the left half of the grid, the summary on the right,
|
|
11
|
+
* the date (when there is one) in the margin. `TermArchiveEntry` carries no
|
|
12
|
+
* picture, so this is a typographic index by design rather than a grid of
|
|
13
|
+
* cards with empty image slots.
|
|
11
14
|
*/
|
|
12
15
|
export function renderTermArchive(input: TermArchiveInput): HtmlElement {
|
|
13
|
-
const rows = input.entries.map((entry) =>
|
|
14
|
-
|
|
16
|
+
const rows = input.entries.map((entry) => {
|
|
17
|
+
const date = entry.publishedAt === null ? null : monthYear(entry.publishedAt, input.locale)
|
|
18
|
+
return h(
|
|
15
19
|
'li',
|
|
16
|
-
{ class: 'cg-
|
|
17
|
-
entry.publishedAt === null
|
|
18
|
-
? null
|
|
19
|
-
: h(
|
|
20
|
-
'time',
|
|
21
|
-
{ class: 'cg-list__date', datetime: entry.publishedAt },
|
|
22
|
-
entry.publishedAt.slice(0, 10),
|
|
23
|
-
),
|
|
20
|
+
{ class: 'cg-index__row' },
|
|
24
21
|
h(
|
|
25
|
-
'
|
|
26
|
-
{ class: 'cg-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
{ class: 'cg-
|
|
30
|
-
entry.href === null
|
|
31
|
-
? entry.title
|
|
32
|
-
: h('a', { class: 'cg-list__link', href: entry.href }, entry.title),
|
|
33
|
-
),
|
|
34
|
-
entry.summary === null ? null : h('p', { class: 'cg-list__excerpt' }, entry.summary),
|
|
22
|
+
'h2',
|
|
23
|
+
{ class: 'cg-index__title' },
|
|
24
|
+
entry.href === null
|
|
25
|
+
? entry.title
|
|
26
|
+
: h('a', { class: 'cg-index__link', href: entry.href }, entry.title),
|
|
35
27
|
),
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
entry.summary === null ? null : h('p', { class: 'cg-index__summary' }, entry.summary),
|
|
29
|
+
entry.publishedAt === null || date === null
|
|
30
|
+
? null
|
|
31
|
+
: h('time', { class: 'cg-index__date', datetime: entry.publishedAt }, date),
|
|
32
|
+
)
|
|
33
|
+
})
|
|
38
34
|
|
|
39
35
|
return h(
|
|
40
36
|
'main',
|
|
41
37
|
{ class: 'cg-main cg-archive', id: 'cg-main' },
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
'
|
|
49
|
-
{},
|
|
50
|
-
|
|
38
|
+
h(
|
|
39
|
+
'div',
|
|
40
|
+
{ class: 'cg-container cg-archive__inner' },
|
|
41
|
+
input.ancestors.length === 0
|
|
42
|
+
? null
|
|
43
|
+
: h(
|
|
44
|
+
'nav',
|
|
45
|
+
{ class: 'cg-archive__breadcrumb', 'aria-label': input.labels.breadcrumb },
|
|
46
|
+
h(
|
|
47
|
+
'ol',
|
|
48
|
+
{},
|
|
49
|
+
...input.ancestors.map((link) =>
|
|
50
|
+
h('li', {}, h('a', { href: link.href }, link.label)),
|
|
51
|
+
),
|
|
52
|
+
),
|
|
51
53
|
),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
54
|
+
h('h1', { class: 'cg-archive__title' }, input.term.label),
|
|
55
|
+
input.children.length === 0
|
|
56
|
+
? null
|
|
57
|
+
: h(
|
|
58
|
+
'ul',
|
|
59
|
+
{ class: 'cg-archive__children', 'aria-label': input.labels.subterms },
|
|
60
|
+
...input.children.map((child) =>
|
|
61
|
+
h('li', {}, h('a', { href: child.href }, child.label)),
|
|
62
|
+
),
|
|
63
|
+
),
|
|
64
|
+
rows.length === 0
|
|
65
|
+
? h('p', { class: 'cg-archive__empty' }, input.labels.empty)
|
|
66
|
+
: h('ol', { class: 'cg-index' }, ...rows),
|
|
67
|
+
pager(input),
|
|
68
|
+
),
|
|
65
69
|
)
|
|
66
70
|
}
|
|
67
71
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The widget areas this theme names (contract D `theme@1.6`). Declaring them
|
|
3
|
+
* is what tells the host this theme draws the footer columns inside its own
|
|
4
|
+
* footer; the page areas are placed by the host in the shared
|
|
5
|
+
* `cg-sidebar-layout` markup, which `styles/widgets.css` sets as the side
|
|
6
|
+
* column of a firm's report.
|
|
7
|
+
*/
|
|
8
|
+
export const widgetAreas: readonly {
|
|
9
|
+
readonly id: string
|
|
10
|
+
readonly label: string
|
|
11
|
+
readonly description?: string
|
|
12
|
+
}[] = [
|
|
13
|
+
{
|
|
14
|
+
id: 'sidebar',
|
|
15
|
+
label: 'Side column',
|
|
16
|
+
description: 'Beside a case study, a practice, a sector and search results.',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: 'content-after',
|
|
20
|
+
label: 'Under the text',
|
|
21
|
+
description: 'After a case study, a practice or a page, before the comments.',
|
|
22
|
+
},
|
|
23
|
+
]
|
package/src/styles/archive.css
CHANGED
|
@@ -1,60 +1,123 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* The taxonomy-term archive (contract D `theme@1.3`).
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* styles — a breadcrumb, a sub-term row, a prev/next pager. The entry list
|
|
6
|
-
* itself reuses the `cg-entry`/`cg-collection__items` rules, on purpose: an
|
|
7
|
-
* archive of articles must look like this theme's list of articles, and a
|
|
8
|
-
* second set of card rules is exactly how those two drift apart.
|
|
2
|
+
* The taxonomy-term archive (contract D `theme@1.3`): a typographic index.
|
|
3
|
+
* `TermArchiveEntry` carries no picture, so every row is title, summary and
|
|
4
|
+
* (when there is one) a date, between hairlines.
|
|
9
5
|
*/
|
|
10
6
|
|
|
11
|
-
.cg-
|
|
12
|
-
|
|
13
|
-
margin-inline: auto;
|
|
14
|
-
padding: var(--cg-s10) var(--cg-gutter);
|
|
7
|
+
.cg-archive__inner {
|
|
8
|
+
padding-block: calc(var(--cg-section) * 0.4) calc(var(--cg-section) / 2);
|
|
15
9
|
}
|
|
16
10
|
|
|
17
|
-
.cg-archive__breadcrumb ol
|
|
18
|
-
.cg-archive__children {
|
|
11
|
+
.cg-archive__breadcrumb ol {
|
|
19
12
|
display: flex;
|
|
20
13
|
flex-wrap: wrap;
|
|
21
14
|
gap: var(--cg-s3);
|
|
22
|
-
margin: 0 0 var(--cg-
|
|
15
|
+
margin: 0 0 var(--cg-s6);
|
|
23
16
|
padding: 0;
|
|
24
17
|
list-style: none;
|
|
25
|
-
font-size: var(--cg-text-
|
|
18
|
+
font-size: var(--cg-text-xs);
|
|
19
|
+
font-weight: var(--cg-weight-medium);
|
|
20
|
+
letter-spacing: var(--cg-tracking-label);
|
|
21
|
+
text-transform: uppercase;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.cg-archive__breadcrumb li + li::before {
|
|
25
|
+
content: "/";
|
|
26
|
+
margin-inline-end: var(--cg-s3);
|
|
27
|
+
color: var(--cg-ink-subtle);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.cg-archive__breadcrumb a {
|
|
31
|
+
color: var(--cg-ink-muted);
|
|
32
|
+
text-decoration: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.cg-archive__breadcrumb a:hover {
|
|
36
|
+
color: var(--cg-ink);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.cg-archive__title {
|
|
40
|
+
max-inline-size: 18ch;
|
|
41
|
+
margin-block-end: var(--cg-s12);
|
|
42
|
+
font-size: var(--cg-size-display);
|
|
43
|
+
line-height: var(--cg-leading-display);
|
|
44
|
+
letter-spacing: var(--cg-tracking-display);
|
|
26
45
|
}
|
|
27
46
|
|
|
28
47
|
.cg-archive__children {
|
|
29
|
-
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-wrap: wrap;
|
|
50
|
+
gap: var(--cg-s2) var(--cg-s6);
|
|
51
|
+
margin: calc(var(--cg-s6) * -1) 0 var(--cg-s12);
|
|
52
|
+
padding: 0;
|
|
53
|
+
list-style: none;
|
|
54
|
+
font-size: var(--cg-text-ui);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.cg-archive__children a {
|
|
58
|
+
color: var(--cg-ink);
|
|
59
|
+
text-decoration-color: var(--cg-line-strong);
|
|
30
60
|
}
|
|
31
61
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
62
|
+
.cg-index {
|
|
63
|
+
margin: 0;
|
|
64
|
+
padding: 0;
|
|
65
|
+
list-style: none;
|
|
66
|
+
border-block-start: var(--cg-rule) solid var(--cg-ink);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.cg-index__row {
|
|
70
|
+
position: relative;
|
|
39
71
|
display: grid;
|
|
40
|
-
gap:
|
|
72
|
+
gap: var(--cg-s3);
|
|
73
|
+
padding-block: var(--cg-s6) var(--cg-s8);
|
|
74
|
+
border-block-end: var(--cg-rule) solid var(--cg-line);
|
|
41
75
|
}
|
|
42
76
|
|
|
43
|
-
.cg-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
77
|
+
.cg-index__title {
|
|
78
|
+
font-size: var(--cg-size-subheading);
|
|
79
|
+
line-height: 1.15;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.cg-index__link {
|
|
83
|
+
color: var(--cg-ink);
|
|
84
|
+
text-decoration-line: underline;
|
|
85
|
+
text-decoration-color: transparent;
|
|
86
|
+
text-underline-offset: 0.18em;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.cg-index__link::after {
|
|
90
|
+
content: "";
|
|
91
|
+
position: absolute;
|
|
92
|
+
inset: 0;
|
|
49
93
|
}
|
|
50
94
|
|
|
51
|
-
.cg-
|
|
52
|
-
|
|
95
|
+
.cg-index__row:hover .cg-index__link {
|
|
96
|
+
text-decoration-color: currentColor;
|
|
53
97
|
}
|
|
54
98
|
|
|
55
|
-
.cg-
|
|
56
|
-
|
|
57
|
-
inline-size:
|
|
99
|
+
.cg-index__summary {
|
|
100
|
+
margin: 0;
|
|
101
|
+
max-inline-size: 52ch;
|
|
102
|
+
color: var(--cg-ink-muted);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.cg-index__date {
|
|
106
|
+
font-size: var(--cg-text-xs);
|
|
107
|
+
font-weight: var(--cg-weight-medium);
|
|
108
|
+
letter-spacing: var(--cg-tracking-label);
|
|
109
|
+
text-transform: uppercase;
|
|
110
|
+
font-variant-numeric: lining-nums tabular-nums;
|
|
111
|
+
color: var(--cg-ink-subtle);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.cg-archive__empty {
|
|
115
|
+
margin: 0;
|
|
116
|
+
padding-block: var(--cg-s10);
|
|
117
|
+
border-block: var(--cg-rule) solid var(--cg-line);
|
|
118
|
+
font-family: var(--cg-font-display);
|
|
119
|
+
font-size: var(--cg-text-xl);
|
|
120
|
+
color: var(--cg-ink-muted);
|
|
58
121
|
}
|
|
59
122
|
|
|
60
123
|
.cg-archive__pager {
|
|
@@ -62,7 +125,41 @@
|
|
|
62
125
|
justify-content: space-between;
|
|
63
126
|
gap: var(--cg-s4);
|
|
64
127
|
margin-block-start: var(--cg-s10);
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
128
|
+
font-size: var(--cg-text-ui);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.cg-archive__pager a {
|
|
132
|
+
color: var(--cg-ink);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.cg-archive__pager a[rel="next"] {
|
|
136
|
+
margin-inline-start: auto;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@media (min-width: 64rem) {
|
|
140
|
+
.cg-archive__title {
|
|
141
|
+
grid-column: 1 / span 10;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.cg-index__row {
|
|
145
|
+
grid-template-columns: repeat(var(--cg-columns), minmax(0, 1fr));
|
|
146
|
+
column-gap: var(--cg-col-gap);
|
|
147
|
+
align-items: baseline;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.cg-index__title {
|
|
151
|
+
grid-column: 1 / span 5;
|
|
152
|
+
grid-row: 1;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.cg-index__summary {
|
|
156
|
+
grid-column: 7 / span 5;
|
|
157
|
+
grid-row: 1;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.cg-index__date {
|
|
161
|
+
grid-column: 12;
|
|
162
|
+
grid-row: 1;
|
|
163
|
+
justify-self: end;
|
|
164
|
+
}
|
|
68
165
|
}
|