Skip to content

OpenReel Video - Professional browser-based video editor. Open source CapCut alternative. 100% browser-based, no installation, no cloud uploads, no watermarks.

TypeScript
7.6 KB
Raw Blame
.mobile-project-home { --mobile-bg: #0b0c0e; --mobile-panel: #16171a; --mobile-border: #26282d; --mobile-fg: #e8e9ec; --mobile-muted: #a1a4ac; position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; height: 100dvh; overflow: hidden; background: var(--mobile-bg); color: var(--mobile-fg); font: 14px -apple-system, 'SF Pro Text', Inter, system-ui, sans-serif; }
.mobile-project-home[data-platform="android"] { font-family: Roboto, Inter, system-ui, sans-serif; }
.mobile-project-home { letter-spacing: normal; }
.mobile-project-home button { font-family: inherit; font-weight: 400; line-height: normal; }
.mobile-project-header { display: flex; align-items: center; gap: 4px; flex-shrink: 0; padding: calc(6px + env(safe-area-inset-top, 0px)) 8px 10px 16px; }
.mobile-project-header h1 { flex: 1; min-width: 0; margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 44px; }
.mobile-project-header > button { width: 44px; height: 44px; padding: 0; border-radius: 50%; color: inherit; }
.mobile-project-header > button svg { width: 22px; height: 22px; }
.mobile-project-scroll { flex: 1; min-height: 0; }
.mobile-project-body { display: flex; flex-direction: column; gap: 18px; padding: 4px 16px 18px; }
.mobile-project-home .mobile-new-project { display: flex; justify-content: flex-start; flex-shrink: 0; gap: 14px; width: 100%; height: 88px; border: 0; padding: 0 18px; border-radius: 18px; background: #2bd49a; color: #062a1d; text-align: left; white-space: normal; }
.mobile-new-project > span:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.mobile-new-project strong { font-size: 18px; font-weight: 700; }
.mobile-new-project small { font-size: 13px; font-weight: 400; opacity: .8; }
.mobile-new-icon { width: 48px; height: 48px; border-radius: 50%; background: #062a1d24; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mobile-project-home .mobile-new-icon svg { width: 26px; height: 26px; stroke-width: 2.4; }
.mobile-project-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mobile-project-quick > button { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; height: auto; min-width: 0; gap: 4px; padding: 12px; border: 1px solid var(--mobile-border); border-radius: 14px; background: var(--mobile-panel); text-align: left; white-space: normal; color: inherit; }
.mobile-project-quick > button > span { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; border-radius: 10px; background: #24262b; }
.mobile-project-quick > button svg { width: 22px; height: 22px; stroke-width: 1.9; }
.mobile-project-quick strong { font-size: 13px; font-weight: 600; }
.mobile-project-quick small { color: var(--mobile-muted); font-size: 11.5px; font-weight: 400; line-height: 1.3; }
.mobile-project-quick > .is-ai { background: #1f1a30; border-color: #3a3160; }
.mobile-project-quick > .is-ai > span { background: #2d2545; color: #dcd0ff; }
.mobile-project-drafts { display: flex; flex-direction: column; gap: 10px; }
.mobile-project-section-title { display: flex; align-items: baseline; justify-content: space-between; }
.mobile-project-section-title h2 { margin: 0; font-size: 17px; font-weight: 600; }
.mobile-project-home .mobile-project-section-title button { position: relative; height: 18px; min-height: 0; padding: 0; background: transparent; color: #2bd49a; font-size: 14px; font-weight: 400; }
.mobile-project-section-title button::after { content: ''; position: absolute; inset: -13px -8px; }
.mobile-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mobile-project-home .mobile-project-draft { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: 100%; min-width: 0; height: auto; padding: 0; gap: 6px; background: transparent; color: inherit; text-align: left; white-space: normal; }
.mobile-project-thumbnail { position: relative; width: 100%; aspect-ratio: 16/10; border: 1px solid var(--mobile-border); border-radius: 10px; overflow: hidden; background: var(--mobile-panel); display: flex; align-items: center; justify-content: center; }
.mobile-project-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.mobile-project-home .mobile-project-thumbnail > svg { width: 28px; height: 28px; color: var(--mobile-muted); }
.mobile-project-thumbnail > .animate-spin { position: absolute; }
.mobile-project-thumbnail > span { position: absolute; right: 6px; bottom: 6px; padding: 1px 5px; border-radius: 4px; background: #000b; color: #fff; font: 500 11px 'JetBrains Mono', monospace; }
.mobile-project-draft > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; }
.mobile-project-draft > small { margin-top: -4px; font-size: 12px; font-weight: 400; color: var(--mobile-muted); }
.mobile-project-empty { margin: 0; color: var(--mobile-muted); line-height: 1.5; }
.mobile-project-nav { display: flex; flex-shrink: 0; height: calc(58px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: #121316f5; border-top: 1px solid #1f2024; }
.mobile-project-nav > button { display: flex; flex: 1; flex-direction: column; justify-content: flex-start; height: auto; gap: 4px; padding: 8px 0 0; color: var(--mobile-muted); border-radius: 0; }
.mobile-project-nav > button > span { display: inline-flex; }
.mobile-project-home .mobile-project-nav svg { width: 22px; height: 22px; stroke-width: 1.9; }
.mobile-project-nav small { font-size: 10.5px; font-weight: 500; }
.mobile-project-nav > .is-active { color: #2bd49a; }
.mobile-project-nav > .is-active small { font-weight: 600; }
.mobile-project-secondary, .mobile-project-learn { padding: 4px 16px 24px; }
.mobile-project-learn { display: flex; flex-direction: column; gap: 16px; }
.mobile-project-learn h2 { margin: 0; font-size: 18px; font-weight: 600; }
.mobile-project-learn p { margin: 0; color: var(--mobile-muted); line-height: 1.5; }
.mobile-project-learn > svg { color: #2bd49a; }
.mobile-project-home[data-platform="android"] .mobile-project-header { padding: calc(8px + env(safe-area-inset-top, 0px)) 4px 12px 16px; }
.mobile-project-home[data-platform="android"] .mobile-project-header h1 { font-size: 28px; font-weight: 400; letter-spacing: normal; }
.mobile-project-home[data-platform="android"] .mobile-new-project { border-radius: 28px; }
.mobile-project-home[data-platform="android"] .mobile-project-quick > button { border-radius: 16px; }
.mobile-project-home[data-platform="android"] .mobile-project-thumbnail { border-radius: 12px; }
.mobile-project-home[data-platform="android"] .mobile-project-nav { height: calc(78px + env(safe-area-inset-bottom, 0px)); border: 0; background: #16171b; }
.mobile-project-home[data-platform="android"] .mobile-project-nav > button { padding-top: 12px; }
.mobile-project-home[data-platform="android"] .mobile-project-nav > button > span { width: 64px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.mobile-project-home[data-platform="android"] .mobile-project-nav small { font-size: 12px; }
.mobile-project-home[data-platform="android"] .mobile-project-nav > .is-active { color: var(--mobile-fg); }
.mobile-project-home[data-platform="android"] .mobile-project-nav > .is-active > span { background: #1e3a30; color: #c4f5e2; }
[data-theme="light"] .mobile-project-home { --mobile-bg: #f7f8fa; --mobile-panel: #fff; --mobile-border: #dedfe3; --mobile-fg: #17181b; --mobile-muted: #60646d; }
[data-theme="light"] .mobile-project-nav { background: #f1f2f5; border-color: #dedfe3; }