@import './components/common.less'; @import './components/timeline/timeline-preparing.less'; html, body { padding: 0; margin: 0; line-height: 1; overflow: hidden; background: #f2f4f7; } .rspress-nav { transition: 0.2s; } :root { --modern-sidebar-width: 0 !important; --modern-aside-width: 0 !important; --modern-preview-padding: 0 !important; } .modern-doc-layout, .modern-doc { width: 100% !important; margin: 0 !important; padding: 0 !important; height: 100vh; } .modern-sidebar, header.w-full { display: none !important; } .modern-doc-container { padding: 0 !important; } footer.mt-8 { display: none; } .mobile-report-tabs { display: none; } .mobile-detail-trigger, .mobile-detail-drawer { display: none; } // ---------- .page-container { --report-surface: var(--runner-surface, #fff); blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; } display: flex; flex-direction: column; height: 100%; color: @main-text; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'; font-size: 14px; border-top: 1px solid @border-color; border-bottom: 1px solid @border-color; font-synthesis: style; text-rendering: optimizelegibility; -webkit-font-smoothing: antialiased; line-height: 1.5; padding: 0 8px; } // Player-only mode: embedding pages pass `?playerOnly=1` to keep just the Player. .page-container.player-only { padding: 0; border-top: none; border-bottom: none; .player-only-content { display: flex; flex-direction: column; justify-content: center; flex-grow: 1; width: 100%; height: 100%; min-height: 0; overflow: hidden; } } .main-layout { display: flex; flex-direction: row; flex-grow: 1; height: 100%; overflow: hidden; } .page-side { height: calc(100% - 8px); background: #f2f4f7; margin-bottom: 8px; flex-shrink: 0; overflow-x: hidden; overflow-y: auto; } .resize-handle { width: 8px; flex-shrink: 0; cursor: col-resize; } [data-theme='dark'] .page-side { background: #141414; } .page-nav { height: 48px; padding: 0 16px; display: flex; align-items: center; flex-direction: row; justify-content: space-between; .page-nav-left { display: flex; flex-direction: row; align-items: center; gap: 12px; min-width: 0; .page-nav-title { padding-left: 4px; font-size: 16px; font-weight: 600; } } .page-nav-right { color: #595959; font-size: 12px; display: flex; align-items: center; gap: 8px; white-space: nowrap; .page-nav-version { margin-right: 4px; } .theme-divider { width: 1px; height: 16px; background: #00000014; } .theme-toggle-button { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: none; background: transparent; color: #595959; cursor: pointer; transition: all 0.2s; padding: 0; &:hover { background: #e6e8eb; } svg { width: 20px; height: 20px; } } } } @media (max-width: 960px) { .page-nav { .page-nav-left { gap: 8px; } } } .cost-str { color: @weak-text; } .ant-layout { flex-grow: 1; height: 100%; } .main-right { display: flex; flex-direction: column; width: 100%; height: calc(100% - 8px); box-sizing: border-box; border-radius: 16px; background: var(--report-surface); margin-bottom: 8px; min-width: 0; overflow: hidden; .main-right-toolbar { display: flex; flex-shrink: 0; .main-right-header { flex: 1; width: auto; min-width: 0; } } .main-right-header { height: @report-pane-header-height; box-sizing: border-box; padding-left: 17px; display: flex; align-items: center; gap: 8px; width: 100%; padding-right: 17px; border: 0; background: transparent; color: inherit; font-family: inherit; text-align: left; cursor: pointer; user-select: none; flex-shrink: 0; .report-pane-title-typography(); .main-right-header-icon { width: 16px; height: 16px; flex-shrink: 0; } &:focus-visible { outline: 2px solid #1677ff; outline-offset: -2px; } } .replay-all-mode-wrapper { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; margin: 0 auto; .player-tools-wrapper { border-bottom: 1px solid rgba(0, 0, 0, 0.06); border-left: 1px solid rgba(0, 0, 0, 0.06); border-right: 1px solid rgba(0, 0, 0, 0.06); border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; } } .main-content { display: flex; flex-direction: row; flex-grow: 1; overflow: hidden; background: inherit; border-radius: 16px; } .main-content-container { flex-grow: 1; height: 100%; background: inherit; overflow: hidden; border-right: 1px solid rgba(0, 0, 0, 0.06); } .main-side { box-sizing: border-box; overflow-y: scroll; height: 100%; } .json-content { word-wrap: break-word; white-space: pre-wrap; } } // Dark mode styles [data-theme='dark'] { background: #141414; .page-container { --report-surface: var(--runner-surface, #191c20); color: #f8fafd; border-top-color: rgba(255, 255, 255, 0.12); border-bottom-color: rgba(255, 255, 255, 0.12); } .page-nav { .page-nav-title { color: #f8fafd; } } .cost-str { color: #f8fafd; } .page-nav-right { color: #f8fafd; .theme-divider { background: rgba(255, 255, 255, 0.08); } .theme-toggle-button { color: #f8fafd; &:hover { background: #2c2e31; } } } .main-right .main-right-header { color: #f8fafd; } .main-content-container { border-right: 1px solid rgba(255, 255, 255, 0.12); } .mobile-report-tabs { background: #2c2e31; button { color: rgba(248, 250, 253, 0.62); &.is-active { color: #f8fafd; background: #3a3d42; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28); } } } .replay-all-mode-wrapper .player-tools-wrapper { border-bottom: 1px solid rgba(255, 255, 255, 0.12); border-left: 1px solid rgba(255, 255, 255, 0.12); border-right: 1px solid rgba(255, 255, 255, 0.12); } } @media (max-width: 640px), (max-width: 932px) and (max-height: 500px) and (pointer: coarse) { .page-container { padding: 0; } .page-nav { padding: 0 12px; .page-nav-version, .theme-divider { display: none; } .page-nav-left { overflow: hidden; } } .main-layout { position: relative; flex-direction: column; padding-top: 64px; box-sizing: border-box; min-height: 0; } .mobile-report-tabs { position: absolute; z-index: 3; top: 8px; left: 12px; display: grid; grid-template-columns: 1fr 1fr; width: calc(100% - 24px); padding: 2px; border-radius: 12px; background: #e8eaf0; button { height: 44px; border: 0; border-radius: 9px; color: #596176; background: transparent; font-weight: 600; &.is-active { color: #181f32; background: #fff; box-shadow: 0 2px 8px rgba(20, 27, 48, 0.1); } } } .page-side, .main-right { width: 100% !important; height: 100%; margin: 0; border-radius: 16px 16px 0 0; } .main-right .main-content { position: relative; padding: 0; box-sizing: border-box; border-radius: 0; } .main-right .main-content-container { padding: 0 12px max(20px, env(safe-area-inset-bottom)); box-sizing: border-box; border-right: 0; } .main-right-toolbar { border-radius: 16px 16px 0 0; overflow: hidden; } .mobile-detail-trigger { display: inline-flex; align-items: center; justify-content: center; align-self: stretch; min-width: 48px; min-height: 48px; gap: 6px; padding: 0 16px; border: 0; color: #596176; background: transparent; font: inherit; font-weight: 600; cursor: pointer; &:active { background: rgba(0, 0, 0, 0.06); } &:focus-visible { outline: 2px solid #1677ff; outline-offset: -4px; } } .desktop-detail-layout > .information-panel, .desktop-detail-layout > .resize-handle { display: none; } .desktop-detail-layout > .player-panel { flex: 1 1 100% !important; width: 100% !important; max-width: none !important; } .mobile-detail-drawer { position: absolute; z-index: 5; inset: 0; display: block; width: 100%; height: 100%; box-sizing: border-box; margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--report-surface); visibility: hidden; pointer-events: none; transform: translateX(100%); transition: transform 180ms ease, visibility 180ms; &.is-open { visibility: visible; pointer-events: auto; transform: translateX(0); } .detail-side { width: 100%; } } .main-right .replay-all-mode-wrapper { justify-content: flex-start; } .main-layout > .resize-handle, .mobile-pane-hidden { display: none; } [data-theme='dark'] { .mobile-detail-trigger { color: #f8fafd; &:active { background: rgba(255, 255, 255, 0.08); } } } } @media (prefers-reduced-motion: reduce) { .mobile-detail-drawer { transition: none !important; } }