From 0b7c4001d7da9e83e5b2f08ebba96ed489f099d2 Mon Sep 17 00:00:00 2001 From: Tatiana Fokina Date: Tue, 4 Jun 2024 20:45:37 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D1=8F=D1=87=D0=B5=D1=82=20=D0=BD?= =?UTF-8?q?=D0=B5=D0=B2=D0=B8=D0=B4=D0=B8=D0=BC=D1=8B=D0=B9=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=B3=D0=BE=D0=BB=D0=BE=D0=B2=D0=BE=D0=BA=20=D1=80=D0=B0=D0=B7?= =?UTF-8?q?=D0=B4=D0=B5=D0=BB=D0=BE=D0=B2=20=D0=BD=D0=B0=D0=B4=D1=91=D0=B6?= =?UTF-8?q?=D0=BD=D0=B5=D0=B5=20(#1270)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Прячет невидимый заголовок разделов надёжнее * Обнуляет `margin-top` --- src/styles/blocks/index-block.css | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/styles/blocks/index-block.css b/src/styles/blocks/index-block.css index 7f051b8b..bc726880 100644 --- a/src/styles/blocks/index-block.css +++ b/src/styles/blocks/index-block.css @@ -17,11 +17,19 @@ } .index-block__title { + position: relative; + margin-left: 0; + margin-right: 0; margin-top: 0; margin-bottom: 10px; + height: auto; font-size: var(--font-size-xl); line-height: var(--font-line-height-xl); font-weight: normal; + white-space: initial; + overflow: unset; + clip-path: unset; + clip: unset; } .index-block__description {} @@ -99,7 +107,15 @@ .index-block__title { position: absolute; - opacity: 0; + margin: -1px; + clip-path: inset(50%); + clip: rect(0 0 0 0); + overflow: hidden; + width: 1px; + height: 1px; + border: 0; + padding: 0; + white-space: nowrap; } .index-block__description {}