SHA256
518 lines
9.4 KiB
CSS
518 lines
9.4 KiB
CSS
/* Shared call UI styles. */
|
|
|
|
.call-overlay[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
|
|
.call-ui-root[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
|
|
.call-ui-root {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 80;
|
|
pointer-events: none;
|
|
}
|
|
|
|
|
|
.call-minimized-bar {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-height: 44px;
|
|
padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
|
|
border-bottom: 1px solid rgba(159, 255, 196, 0.28);
|
|
background: linear-gradient(180deg, rgba(30, 138, 79, 0.98), rgba(18, 106, 60, 0.98));
|
|
box-shadow: 0 10px 24px rgba(5, 30, 16, 0.28);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
|
|
.call-minimized-bar-text {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
background-image: none;
|
|
box-shadow: none;
|
|
color: #ffffff;
|
|
text-shadow: none;
|
|
backdrop-filter: none;
|
|
-webkit-backdrop-filter: none;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
line-height: 1.2;
|
|
text-align: left;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
transition: transform 90ms ease, box-shadow 90ms ease, background-color 90ms ease, filter 120ms ease;
|
|
}
|
|
|
|
|
|
.call-minimized-bar-text:hover {
|
|
color: #ffffff;
|
|
filter: brightness(1.12);
|
|
}
|
|
|
|
.call-minimized-bar-text:active {
|
|
color: #ffffff;
|
|
background: rgba(0, 0, 0, 0.12);
|
|
box-shadow:
|
|
inset 0 3px 8px rgba(0, 0, 0, 0.58),
|
|
inset 0 -1px 2px rgba(255, 255, 255, 0.08);
|
|
transform: translateY(1px) scale(0.97);
|
|
filter: brightness(0.9);
|
|
}
|
|
|
|
.call-minimized-bar-text:focus-visible {
|
|
outline: 2px solid rgba(255, 255, 255, 0.62);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.call-minimized-bar-text::before,
|
|
.call-minimized-bar-text::after {
|
|
background: transparent;
|
|
background-image: none;
|
|
border-color: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
|
|
.call-minimized-bar-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
|
|
.call-icon-btn {
|
|
width: 40px;
|
|
min-width: 40px;
|
|
height: 40px;
|
|
padding: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 0;
|
|
border-radius: 12px;
|
|
background: transparent;
|
|
background-image: none;
|
|
box-shadow: none;
|
|
color: #ffffff;
|
|
text-shadow: none;
|
|
backdrop-filter: none;
|
|
-webkit-backdrop-filter: none;
|
|
cursor: pointer;
|
|
transition: transform 90ms ease, box-shadow 90ms ease, background-color 90ms ease, filter 120ms ease;
|
|
}
|
|
|
|
|
|
.call-icon-btn:hover {
|
|
color: #ffffff;
|
|
background: transparent;
|
|
border: 0;
|
|
box-shadow: none;
|
|
transform: translateY(-1px);
|
|
filter: brightness(1.12);
|
|
}
|
|
|
|
|
|
.call-icon-btn:active {
|
|
color: #ffffff;
|
|
background: rgba(0, 0, 0, 0.12);
|
|
border: 0;
|
|
box-shadow:
|
|
inset 0 3px 8px rgba(0, 0, 0, 0.58),
|
|
inset 0 -1px 2px rgba(255, 255, 255, 0.08);
|
|
transform: translateY(1px) scale(0.97);
|
|
filter: brightness(0.9);
|
|
}
|
|
|
|
|
|
.call-icon-btn:disabled {
|
|
opacity: 1;
|
|
color: rgba(255, 255, 255, 0.42);
|
|
background: transparent;
|
|
border: 0;
|
|
box-shadow: none;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
filter: none;
|
|
}
|
|
|
|
|
|
.call-icon-btn:focus-visible {
|
|
outline: 2px solid rgba(255, 255, 255, 0.62);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
|
|
.call-icon-btn::before,
|
|
.call-icon-btn::after {
|
|
background: transparent;
|
|
background-image: none;
|
|
border-color: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
|
|
.call-icon-btn svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
|
|
/* secondary/danger visual shells were never observable in Stage 3.1; only geometry variants remain. */
|
|
|
|
|
|
.call-icon-btn--bar {
|
|
width: 34px;
|
|
min-width: 34px;
|
|
height: 34px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
|
|
.call-icon-btn--bar svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
|
|
.call-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: rgba(4, 8, 16, 0.88);
|
|
backdrop-filter: blur(8px);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
|
|
.call-overlay-panel {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
background:
|
|
radial-gradient(circle at 50% 18%, rgba(79, 124, 208, 0.24), transparent 34%),
|
|
linear-gradient(180deg, rgba(11, 20, 38, 0.98), rgba(3, 7, 15, 1));
|
|
}
|
|
|
|
|
|
.call-overlay-panel--remote-video {
|
|
background: #010203;
|
|
}
|
|
|
|
|
|
.call-overlay-head {
|
|
position: absolute;
|
|
top: calc(12px + env(safe-area-inset-top));
|
|
left: 14px;
|
|
right: 14px;
|
|
z-index: 4;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
|
|
.call-overlay-title {
|
|
margin: 0;
|
|
min-height: 22px;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: rgba(236, 242, 255, 0.94);
|
|
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.44);
|
|
}
|
|
|
|
|
|
.call-overlay-minimize-btn {
|
|
flex: 0 0 auto;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
|
|
.call-overlay-status {
|
|
position: absolute;
|
|
left: 18px;
|
|
right: 18px;
|
|
bottom: calc(12px + env(safe-area-inset-bottom));
|
|
z-index: 4;
|
|
text-align: center;
|
|
color: rgba(207, 219, 246, 0.84);
|
|
font-size: 13px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
|
|
.call-video-stage {
|
|
position: absolute;
|
|
inset: 0;
|
|
overflow: hidden;
|
|
background:
|
|
radial-gradient(circle at 50% 24%, rgba(54, 88, 151, 0.48), transparent 30%),
|
|
linear-gradient(180deg, rgba(9, 17, 32, 0.98), rgba(2, 5, 12, 1));
|
|
}
|
|
|
|
|
|
.call-video-stage--remote-video {
|
|
background: #000;
|
|
}
|
|
|
|
|
|
.call-remote-video,
|
|
.call-local-video {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
background: #02050a;
|
|
}
|
|
|
|
|
|
.call-remote-video[hidden],
|
|
.call-local-preview[hidden],
|
|
.call-hero[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
|
|
.call-hero {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: clamp(8vh, 16vh, 19vh);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 14px;
|
|
padding: 0 24px;
|
|
text-align: center;
|
|
z-index: 2;
|
|
}
|
|
|
|
|
|
.call-peer-avatar-slot {
|
|
width: min(42vw, 168px);
|
|
height: min(42vw, 168px);
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
|
|
.call-peer-avatar-slot .call-peer-avatar {
|
|
width: 100%;
|
|
height: 100%;
|
|
min-width: 100%;
|
|
min-height: 100%;
|
|
border-radius: 999px;
|
|
border: 2px solid rgba(221, 233, 255, 0.2);
|
|
background: linear-gradient(180deg, rgba(18, 31, 58, 0.96), rgba(9, 15, 29, 0.98));
|
|
box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
|
|
}
|
|
|
|
|
|
.call-peer-avatar-slot .call-peer-avatar .avatar-fallback {
|
|
font-size: clamp(34px, 9vw, 58px);
|
|
font-weight: 800;
|
|
}
|
|
|
|
|
|
.call-peer-login {
|
|
max-width: 86vw;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: #f4f8ff;
|
|
font-size: clamp(20px, 5.8vw, 28px);
|
|
font-weight: 700;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
|
|
.call-kind {
|
|
color: #ffffff;
|
|
font-size: clamp(27px, 8vw, 40px);
|
|
font-weight: 800;
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
|
|
.call-hero-status {
|
|
max-width: 88vw;
|
|
color: rgba(211, 223, 246, 0.9);
|
|
font-size: 14px;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
|
|
.call-local-preview {
|
|
position: absolute;
|
|
right: 16px;
|
|
bottom: calc(18px + env(safe-area-inset-bottom));
|
|
z-index: 4;
|
|
width: min(30vw, 130px);
|
|
aspect-ratio: 3 / 4;
|
|
border-radius: 14px;
|
|
overflow: hidden;
|
|
border: 1px solid rgba(176, 205, 255, 0.38);
|
|
background: rgba(7, 12, 22, 0.94);
|
|
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
|
|
cursor: grab;
|
|
touch-action: none;
|
|
user-select: none;
|
|
}
|
|
|
|
|
|
.call-local-preview:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
|
|
.call-overlay-controls {
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
bottom: calc(env(safe-area-inset-bottom) + clamp(54px, 16vh, 112px));
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
gap: 18px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: min(92vw, 520px);
|
|
z-index: 4;
|
|
}
|
|
|
|
|
|
.call-overlay-controls[hidden],
|
|
.call-overlay-controls--incoming[hidden],
|
|
.call-overlay-controls--active[hidden],
|
|
.call-icon-btn[hidden],
|
|
.call-accept-btn[hidden],
|
|
.call-decline-btn[hidden],
|
|
.call-minimized-bar-actions[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
|
|
.call-overlay-controls--incoming {
|
|
justify-content: center;
|
|
}
|
|
|
|
|
|
.call-overlay-controls--active {
|
|
justify-content: center;
|
|
}
|
|
|
|
|
|
|
|
|
|
.call-decline-btn {
|
|
min-width: 132px;
|
|
}
|
|
|
|
|
|
.call-accept-btn {
|
|
min-width: 132px;
|
|
min-height: 38px;
|
|
padding: 9px 12px;
|
|
border: 0;
|
|
border-radius: var(--radius-sm);
|
|
background: transparent;
|
|
background-image: none;
|
|
box-shadow: none;
|
|
color: #ffffff;
|
|
text-shadow: none;
|
|
backdrop-filter: none;
|
|
-webkit-backdrop-filter: none;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: transform 90ms ease, box-shadow 90ms ease, background-color 90ms ease, filter 120ms ease;
|
|
}
|
|
|
|
|
|
.call-accept-btn:hover {
|
|
color: #ffffff;
|
|
background: transparent;
|
|
border: 0;
|
|
box-shadow: none;
|
|
transform: translateY(-1px);
|
|
filter: brightness(1.12);
|
|
}
|
|
|
|
|
|
.call-accept-btn:active {
|
|
color: #ffffff;
|
|
background: rgba(0, 0, 0, 0.12);
|
|
border: 0;
|
|
box-shadow:
|
|
inset 0 3px 8px rgba(0, 0, 0, 0.58),
|
|
inset 0 -1px 2px rgba(255, 255, 255, 0.08);
|
|
transform: translateY(1px) scale(0.97);
|
|
filter: brightness(0.9);
|
|
}
|
|
|
|
|
|
.call-accept-btn:disabled {
|
|
opacity: 1;
|
|
color: rgba(255, 255, 255, 0.42);
|
|
background: transparent;
|
|
border: 0;
|
|
box-shadow: none;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
filter: none;
|
|
}
|
|
|
|
|
|
.call-accept-btn:focus-visible {
|
|
outline: 2px solid rgba(255, 255, 255, 0.62);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
|
|
.call-accept-btn::before,
|
|
.call-accept-btn::after {
|
|
background: transparent;
|
|
background-image: none;
|
|
border-color: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
|
|
@media (max-width: 420px) {
|
|
.call-overlay-controls {
|
|
gap: 16px;
|
|
bottom: calc(env(safe-area-inset-bottom) + clamp(48px, 14vh, 96px));
|
|
}
|
|
.call-icon-btn {
|
|
width: 46px;
|
|
min-width: 46px;
|
|
height: 46px;
|
|
border-radius: 14px;
|
|
}
|
|
.call-icon-btn svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
.call-accept-btn,
|
|
.call-decline-btn {
|
|
min-width: 124px;
|
|
}
|
|
}
|