Lift the planet tag above the sticky navbar

At large zoom the project card extends into the header band and was clipped. z-index 55 paints it above the navbar (50); dialogs are unaffected (top layer). Stack documented in spec 10.2.
This commit is contained in:
FastD committed 2026-11-10 19:12:14 +03:00
1 parent af75141c02
commit 7e3b030e7d
2 files changed
+5 -2

No files matched your search

+4 -1
View File
@@ -154,7 +154,10 @@
Карточка «сложена» (max-height:0) и разворачивается по наведению на пилюлю —
класс `is-open` ставит main.js по своим pointer-событиям, не CSS `:hover`
(плашка переставляется каждый кадр → `:hover` на ней теряется через раз). */
.planet-tag{position:absolute;left:0;top:0;width:max-content;max-width:100%;height:0;z-index:3;
/* z-index 55 — выше sticky-шапки (50): при крупном масштабе карточка плашки уходит под
шапку и обрезается. Плашка — всплывающий слой, ей положено рисоваться поверх хедера
(решение заказчика 2026-11-10). Диалоги не задевает: они в top layer. */
.planet-tag{position:absolute;left:0;top:0;width:max-content;max-width:100%;height:0;z-index:55;
display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
padding-bottom:6px;opacity:0;pointer-events:none;
translate:0 0;transition:opacity var(--dur-med) var(--motion-ease);