Move the card tagline into the facts column
The line belongs between the platform chips and the action button, where the old «Место под материал» caption sat, not under the title. At 1440 it takes two lines in the 262px column.
This commit is contained in:
1 parent
e8910e87da
commit
74febe185b
2 files changed
+4
-4
No files matched your search
+3
-3
@@ -423,9 +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)}
|
||||
/* Строка описания карточки: стоит в колонке фактов между чипами и кнопкой,
|
||||
одна фраза 50–65 знаков из текста проекта. */
|
||||
.case-card__tagline{margin:0;font-size:14px;line-height:1.5;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}
|
||||
|
||||
+1
-1
@@ -314,11 +314,11 @@ if (window.matchMedia('(max-width: 767px)').matches) {
|
||||
return '<article class="case-card' + (p.media === 'portrait' ? ' case-card--portrait' : '') +
|
||||
'" data-slug="' + esc(p.slug) + '">' +
|
||||
'<div class="case-card__head"><h3 class="case-card__title">' + esc(p.title) + '</h3>' + badge + '</div>' +
|
||||
(p.tagline ? '<p class="case-card__tagline">' + esc(p.tagline) + '</p>' : '') +
|
||||
'<div class="case-card__body">' +
|
||||
'<div class="case-card__shots">' + shotsHTML + '</div>' +
|
||||
'<div class="case-card__facts">' +
|
||||
(facts ? '<div class="quickview__chips">' + facts + '</div>' : '') +
|
||||
(p.tagline ? '<p class="case-card__tagline">' + esc(p.tagline) + '</p>' : '') +
|
||||
(media ? '<hr class="case-divider"><div class="case-metrics">' + media + '</div>' : '') +
|
||||
(projectLinksHTML(p, 'case-card__link')
|
||||
? '<div class="case-card__links">' + projectLinksHTML(p, 'case-card__link') + '</div>' : '') +
|
||||
|
||||
Reference in new issue
Block a user