Card tagline: one-line description under every project title
- New `tagline` frontmatter field, separate from `summary` (which stays the dialog text): one phrase, 50-65 characters, derived from the project text. - The card renders it under the title; on desktop every one of the 20 lines fits a single row, on 390 it wraps to two. - Contrast 7.45 light / 10.45 dark at 14px (AA and AAA). - Template documents the field; the router records the card anatomy.
This commit is contained in:
1 parent
3fd8ebcea4
commit
14eb4fb539
26 files changed
+48
-2
No files matched your search
@@ -423,6 +423,9 @@
|
||||
.case-card:focus-visible{outline:2px solid var(--brand-deep);outline-offset:3px}
|
||||
.case-card__head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 20px 0}
|
||||
.case-card__title{font-size:20px;letter-spacing:1px}
|
||||
/* Строка описания под заголовком: одна фраза из текста проекта, ~50–65 знаков —
|
||||
в одну строку на десктопе и в две на 390. */
|
||||
.case-card__tagline{margin:6px 20px 0;font-size:14px;line-height:1.45;color:var(--text-2)}
|
||||
.badge{display:inline-flex;align-items:center;min-height:26px;padding:4px 12px;border-radius:999px;
|
||||
background:var(--brand-soft);color:var(--brand-deep);font-family:var(--font-head);
|
||||
font-weight:700;font-size:11px;letter-spacing:1px;text-transform:uppercase;white-space:nowrap}
|
||||
|
||||
Reference in new issue
Block a user