UI: круг создания партии — крупнее, полукруг, по центру разделяет слоты, смещён вниз и на передний план

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-26 16:36:54 +03:00
co-authored by Claude Opus 4.8
parent 8f4a58d33d
commit 6196c39d25
2 changed files with 11 additions and 7 deletions
+9 -5
View File
@@ -60,26 +60,30 @@
.bottom-bar .slot .name { color: var(--text); font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bottom-bar .slot .name { color: var(--text); font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom-bar .spacer { width: var(--fab-width); flex: 0 0 var(--fab-width); } .bottom-bar .spacer { width: var(--fab-width); flex: 0 0 var(--fab-width); }
/* Круг создания партии: полукруг-купол, по центру разделяет слоты, смещён вниз
(база у нижней кромки панели) и поднят на передний план (z-index выше панели). */
.fab { .fab {
position: absolute; position: absolute;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
bottom: calc(var(--bottombar-height) + var(--safe-bottom) - 2px); bottom: calc(var(--safe-bottom) + 8px);
width: var(--fab-width); width: var(--fab-width);
height: var(--fab-height); height: var(--fab-height);
border: 1px solid var(--accent); border: 1px solid var(--accent);
border-bottom: none; border-bottom: none;
border-top-left-radius: var(--fab-width); /* Радиус = половина ширины → ровный полукруг (ширина = 2× высоты). */
border-top-right-radius: var(--fab-width); border-top-left-radius: calc(var(--fab-width) / 2);
border-top-right-radius: calc(var(--fab-width) / 2);
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
display: grid; display: grid;
place-items: center; place-items: center;
background: var(--accent); background: var(--accent);
color: #fff; color: #fff;
box-shadow: 0 -4px 14px rgba(224, 83, 61, 0.45); box-shadow: 0 -4px 16px rgba(224, 83, 61, 0.5);
z-index: 25;
} }
.fab svg { margin-top: 6px; } .fab svg { margin-top: 8px; }
.fab[aria-disabled="true"] { .fab[aria-disabled="true"] {
background: var(--surface-2); background: var(--surface-2);
border-color: var(--border); border-color: var(--border);
+2 -2
View File
@@ -15,8 +15,8 @@
/* Размеры */ /* Размеры */
--app-max-w: 480px; --app-max-w: 480px;
--bottombar-height: 64px; --bottombar-height: 64px;
--fab-width: 88px; --fab-width: 100px;
--fab-height: 44px; --fab-height: 50px;
--radius: 14px; --radius: 14px;
--radius-sm: 10px; --radius-sm: 10px;
--safe-bottom: env(safe-area-inset-bottom, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);