From 74febe185b4211c1399ba8ac942662e45532ea6f Mon Sep 17 00:00:00 2001 From: FastD Date: Sat, 14 Nov 2026 15:29:14 +0300 Subject: [PATCH] Move the card tagline into the facts column MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/index.html | 6 +++--- src/js/main.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.html b/src/index.html index 32099ce..0900793 100644 --- a/src/index.html +++ b/src/index.html @@ -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} diff --git a/src/js/main.js b/src/js/main.js index 33003eb..2d48ac6 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -314,11 +314,11 @@ if (window.matchMedia('(max-width: 767px)').matches) { return '
' + '

' + esc(p.title) + '

' + badge + '
' + - (p.tagline ? '

' + esc(p.tagline) + '

' : '') + '
' + '
' + shotsHTML + '
' + '
' + (facts ? '
' + facts + '
' : '') + + (p.tagline ? '

' + esc(p.tagline) + '

' : '') + (media ? '
' + media + '
' : '') + (projectLinksHTML(p, 'case-card__link') ? '' : '') +