Document the 2026-11-05 UI/UX upgrade and keep roster/live gates aligned with face-check and presence. Co-authored-by: Cursor <cursoragent@cursor.com>
348 lines
8.9 KiB
CSS
348 lines
8.9 KiB
CSS
/**
|
||
* nomadro white-label overlay for MiroTalk P2P client (iframe embed).
|
||
* Colors align with portal /social (#0a0e17 + coral/gold/teal).
|
||
* Default UX language: zh-CN (see config brand.app.language).
|
||
*/
|
||
:root {
|
||
--ds-brand-50: #fff5f5;
|
||
--ds-brand-100: #ffe3e3;
|
||
--ds-brand-300: #ff9f9f;
|
||
--ds-brand-500: #ff6b6b;
|
||
--ds-brand-600: #f05959;
|
||
--ds-brand-700: #d94848;
|
||
--ds-neutral-900: #0a0e17;
|
||
--ds-neutral-800: #111827;
|
||
--ds-neutral-700: #1f2937;
|
||
--ds-warning: #ffe66d;
|
||
--ds-info: #4ecdc4;
|
||
--ds-success: #4ecdc4;
|
||
}
|
||
|
||
html,
|
||
body {
|
||
background: #0a0e17 !important;
|
||
color: #f1f5f9 !important;
|
||
font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui,
|
||
sans-serif !important;
|
||
}
|
||
|
||
/* Hide Google Translate chrome (language still applied) */
|
||
#google_translate_element,
|
||
.goog-te-banner-frame,
|
||
.goog-te-balloon-frame,
|
||
.skiptranslate iframe,
|
||
body > .skiptranslate {
|
||
display: none !important;
|
||
}
|
||
body {
|
||
top: 0 !important;
|
||
}
|
||
|
||
/* Loading gate — nomadro, not MiroTalk */
|
||
#loadingDiv.nomadro-loading,
|
||
#loadingDiv {
|
||
z-index: 9999 !important;
|
||
min-width: min(420px, 92vw);
|
||
padding: 36px 28px !important;
|
||
border-radius: 20px !important;
|
||
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
||
background:
|
||
radial-gradient(ellipse 80% 60% at 50% 0%, rgba(78, 205, 196, 0.16), transparent),
|
||
rgba(10, 14, 23, 0.92) !important;
|
||
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45) !important;
|
||
backdrop-filter: blur(14px);
|
||
}
|
||
|
||
#loadingDiv h1 {
|
||
font-size: 28px !important;
|
||
font-weight: 700 !important;
|
||
letter-spacing: 0.02em;
|
||
background: linear-gradient(135deg, #ff6b6b 0%, #ffe66d 50%, #4ecdc4 100%);
|
||
-webkit-background-clip: text;
|
||
background-clip: text;
|
||
color: transparent !important;
|
||
font-family: inherit !important;
|
||
}
|
||
|
||
#loadingDiv pre {
|
||
margin: 12px 0 0 !important;
|
||
font-size: 14px !important;
|
||
line-height: 1.7 !important;
|
||
color: #94a3b8 !important;
|
||
font-family: inherit !important;
|
||
white-space: pre-wrap !important;
|
||
}
|
||
|
||
.nomadro-mark,
|
||
.spinner-logo.nomadro-mark {
|
||
display: grid !important;
|
||
place-items: center;
|
||
width: 72px !important;
|
||
height: 72px !important;
|
||
margin: 0 auto;
|
||
border-radius: 18px !important;
|
||
font-size: 34px !important;
|
||
font-weight: 800 !important;
|
||
color: #0a0e17 !important;
|
||
background: linear-gradient(135deg, #ff6b6b 0%, #ffe66d 50%, #4ecdc4 100%) !important;
|
||
object-fit: unset !important;
|
||
border: 0 !important;
|
||
}
|
||
|
||
.spinner-ring {
|
||
border-top-color: #4ecdc4 !important;
|
||
}
|
||
|
||
#qrRoomPopupContainer {
|
||
display: none !important;
|
||
}
|
||
|
||
/* Hide leftover MiroTalk gif/logo assets if any remain */
|
||
img[src*="mirotalk"],
|
||
img.spinner-logo[src*="logo.svg"] {
|
||
display: none !important;
|
||
}
|
||
|
||
/* Kill MiroTalk promo / share / about chrome
|
||
* DO NOT hide #initVideoAudioBtn / .init-wrap / init video UI —
|
||
* that left the hall black with only a text avatar after “美化”. */
|
||
#shareRoomBtn,
|
||
#shareRoomBtn *,
|
||
#qrRoomBtn,
|
||
#aboutBtn,
|
||
#extraBtn,
|
||
#support-button,
|
||
#linkedin-button,
|
||
#email-button,
|
||
button#shareButton,
|
||
.fa-share-alt,
|
||
.fa-qrcode,
|
||
button[data-umami-event*="Share"],
|
||
button[data-umami-event*="About"],
|
||
button[data-umami-event*="Support"],
|
||
.emoji-picker-react,
|
||
#showChatOnMsgDiv,
|
||
.swal2-image {
|
||
display: none !important;
|
||
visibility: hidden !important;
|
||
pointer-events: none !important;
|
||
}
|
||
|
||
/*
|
||
* Codex “美化”曾把 .swal2-container 整块 display:none,进房弹窗没了。
|
||
* 后续又给 .swal2-popup 强加 display:flex 却不设 column →「进入房间」竖条贴右边。
|
||
* 这里只恢复正常 SweetAlert 纵向布局(相机预览 + 昵称 + 横条进房)。
|
||
*/
|
||
html.nomadro-embed .swal2-container,
|
||
body.nomadro-embed .swal2-container {
|
||
display: flex !important;
|
||
pointer-events: auto !important;
|
||
opacity: 1 !important;
|
||
visibility: visible !important;
|
||
z-index: 10000 !important;
|
||
background: rgba(5, 7, 12, 0.72) !important;
|
||
padding: 12px !important;
|
||
align-items: center !important;
|
||
justify-content: center !important;
|
||
overflow-y: auto !important;
|
||
}
|
||
|
||
html.nomadro-embed .swal2-popup,
|
||
html.nomadro-embed .swal2-popup.init-modal-size,
|
||
body.nomadro-embed .swal2-popup,
|
||
body.nomadro-embed .swal2-popup.init-modal-size {
|
||
display: flex !important;
|
||
flex-direction: column !important;
|
||
align-items: stretch !important;
|
||
visibility: visible !important;
|
||
opacity: 1 !important;
|
||
background: #111827 !important;
|
||
color: #f1f5f9 !important;
|
||
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
||
border-radius: 16px !important;
|
||
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55) !important;
|
||
width: min(92vw, 420px) !important;
|
||
max-width: calc(100% - 16px) !important;
|
||
max-height: calc(100vh - 24px) !important;
|
||
height: auto !important;
|
||
margin: 0 auto !important;
|
||
padding: 16px !important;
|
||
overflow: auto !important;
|
||
box-sizing: border-box !important;
|
||
}
|
||
|
||
/* MiroTalk .init-user 默认横排;窄 iframe 里改成竖排,避免预览被挤没 */
|
||
html.nomadro-embed .init-user,
|
||
html.nomadro-embed #initUser {
|
||
display: flex !important;
|
||
flex-direction: column !important;
|
||
gap: 10px !important;
|
||
width: 100% !important;
|
||
padding: 0 !important;
|
||
}
|
||
|
||
html.nomadro-embed #initVideoContainer,
|
||
html.nomadro-embed .init-video-container {
|
||
width: 100% !important;
|
||
margin: 0 !important;
|
||
max-height: 200px !important;
|
||
}
|
||
|
||
html.nomadro-embed #initVideo {
|
||
width: 100% !important;
|
||
height: 180px !important;
|
||
max-height: 180px !important;
|
||
object-fit: cover !important;
|
||
border-radius: 12px !important;
|
||
background: #05070c !important;
|
||
}
|
||
|
||
html.nomadro-embed .initComands,
|
||
html.nomadro-embed #initUser select,
|
||
html.nomadro-embed .init-wrap select {
|
||
width: 100% !important;
|
||
max-width: 100% !important;
|
||
box-sizing: border-box !important;
|
||
}
|
||
|
||
html.nomadro-embed .swal2-html-container {
|
||
margin: 0 !important;
|
||
padding: 0 !important;
|
||
overflow: visible !important;
|
||
}
|
||
|
||
html.nomadro-embed .swal2-title,
|
||
html.nomadro-embed .swal2-html-container,
|
||
html.nomadro-embed .swal2-input,
|
||
body.nomadro-embed .swal2-title,
|
||
body.nomadro-embed .swal2-html-container,
|
||
body.nomadro-embed .swal2-input {
|
||
color: #f1f5f9 !important;
|
||
}
|
||
|
||
html.nomadro-embed .swal2-input {
|
||
width: 100% !important;
|
||
box-sizing: border-box !important;
|
||
background: #0a0e17 !important;
|
||
border: 1px solid rgba(255, 255, 255, 0.12) !important;
|
||
border-radius: 10px !important;
|
||
margin: 10px 0 0 !important;
|
||
}
|
||
|
||
/* 进房按钮:必须横排全宽,禁止竖排贴边 */
|
||
html.nomadro-embed .swal2-actions,
|
||
body.nomadro-embed .swal2-actions {
|
||
display: flex !important;
|
||
flex-direction: row !important;
|
||
flex-wrap: nowrap !important;
|
||
width: 100% !important;
|
||
margin: 12px 0 0 !important;
|
||
padding: 0 !important;
|
||
}
|
||
|
||
html.nomadro-embed .swal2-confirm,
|
||
body.nomadro-embed .swal2-confirm {
|
||
display: inline-flex !important;
|
||
align-items: center !important;
|
||
justify-content: center !important;
|
||
width: 100% !important;
|
||
min-height: 44px !important;
|
||
margin: 0 !important;
|
||
padding: 12px 16px !important;
|
||
writing-mode: horizontal-tb !important;
|
||
text-orientation: mixed !important;
|
||
white-space: nowrap !important;
|
||
background: linear-gradient(135deg, #ff6b6b 0%, #ffe66d 50%, #4ecdc4 100%) !important;
|
||
color: #0a0e17 !important;
|
||
font-weight: 700 !important;
|
||
font-size: 15px !important;
|
||
border: 0 !important;
|
||
border-radius: 12px !important;
|
||
}
|
||
|
||
/* Toolbar: glass dark like portal */
|
||
#controlButtons,
|
||
.control-bar,
|
||
.navbar,
|
||
#bottomButtons,
|
||
.fa-bar {
|
||
background: rgba(10, 14, 23, 0.82) !important;
|
||
border-color: rgba(255, 255, 255, 0.08) !important;
|
||
backdrop-filter: blur(12px);
|
||
}
|
||
|
||
#controlButtons button,
|
||
.control-button,
|
||
.btn,
|
||
button.btn {
|
||
border-radius: 12px !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
#controlButtons button:hover,
|
||
.control-button:hover {
|
||
filter: brightness(1.08);
|
||
}
|
||
|
||
/* Video stage */
|
||
#videoMediaContainer,
|
||
#videoPinMediaContainer,
|
||
.Video {
|
||
background: #05070c !important;
|
||
}
|
||
|
||
/* Chat panel (rarely used when portal has side chat) */
|
||
#msgerDraggable,
|
||
.msger {
|
||
background: rgba(17, 24, 39, 0.92) !important;
|
||
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
||
border-radius: 16px !important;
|
||
}
|
||
|
||
/* Settings / menus */
|
||
.settings,
|
||
.tabcontent,
|
||
.select,
|
||
select {
|
||
background: #111827 !important;
|
||
color: #f1f5f9 !important;
|
||
border-color: rgba(255, 255, 255, 0.1) !important;
|
||
}
|
||
|
||
/* Hide powered-by / version footers inside room if any */
|
||
.footer,
|
||
#footerDiv,
|
||
.powered-by,
|
||
[class*="poweredBy"],
|
||
#mirotalkVersion {
|
||
display: none !important;
|
||
}
|
||
|
||
/* Silent room archive — never show REC / recording chrome to users */
|
||
#recordingStatus,
|
||
#recordingTime,
|
||
#startRecButton,
|
||
#stopRecButton,
|
||
#pauseRecButton,
|
||
#resumeRecButton,
|
||
.recording-status,
|
||
.recordingStatus,
|
||
.rec-status,
|
||
[class*="recording"],
|
||
[id*="Recording"],
|
||
[id*="recording"],
|
||
[class*="RecButton"],
|
||
[id*="RecButton"],
|
||
.fa-circle.recording,
|
||
.fa-record-vinyl,
|
||
button[title*="Record"],
|
||
button[title*="record"],
|
||
button[aria-label*="Record"],
|
||
button[aria-label*="record"],
|
||
button[aria-label*="录制"] {
|
||
display: none !important;
|
||
visibility: hidden !important;
|
||
pointer-events: none !important;
|
||
opacity: 0 !important;
|
||
}
|