openvibers/openvibe.live Commits

The floating buttons' names: a 12 px tag on their own ground (#613)

OP OpenVibers committed 7 days ago · 96876c5aed · 1 file, +13 −4

Global and DM hung 16 px under the button at 9.6 px in the page's muted grey, over whatever the page showed there
(1.01:1 on a violet page in the light theme, phone sweep 11-05). They are now a small pill on the theme's secondary
ground, straddling the button's lower edge, so they read on any page and never pass the screen's bottom.

Changes

ddiff --git a/public/css/style.css b/public/css/style.css
iindex 8e3e483d..5083984b 100644
---- a/public/css/style.css
++++ b/public/css/style.css
@@@ -7388,15 +7388,24 @@ body.fabs-tucked .messenger-toggle, body.fabs-tucked .floating-chat-fab, body.fa
justify-content: center;
font-weight: 700;
}
++/* The floating buttons' names (Global, DM) hang below the button, over whatever the page shows there: a small pill of
++ their own ground keeps them legible on any page and theme, at the phone minimum of 12 px (was 9.6 px and the
++ page's muted grey, 1.01:1 over a violet page in the light theme: phone sweep 11-05). It straddles the button's lower
++ edge like a tag, so it never reaches past the screen's bottom. */
.fab-label {
position: absolute;
-- bottom: -16px;
++ bottom: -9px;
left: 50%;
transform: translateX(-50%);
-- font-size: 0.6rem;
++ font-size: 0.75rem;
++ line-height: 1.3;
font-weight: 700;
-- letter-spacing: 0.5px;
-- color: var(--text-muted, #888);
++ letter-spacing: 0.3px;
++ padding: 1px 7px;
++ border-radius: 999px;
++ background: var(--bg-secondary, #1a1f2e);
++ color: var(--text-secondary, #c3cad8);
++ box-shadow: 0 0 0 1px var(--border, rgba(127, 127, 127, 0.25));
white-space: nowrap;
pointer-events: none;
}