Skip to content

All your computers and your phone/iPhone, working as one desk. Screens, apps, files, clipboard, calls, texts, notifications, mouse and keyboard, shared between Mac, Windows, Linux , Android, Web and ios / ipados . Free and open source. No account, no cloud, and no shared network needed.

20.5 KB
Raw Blame
/* TwinDesk — Copyright (C) 2026 inukaasith, Erdoğan Yeşil. GPL-3.0, see LICENSE. */
/* Page-specific pieces: overview hero, layout picker, clipboard history, roadmap pages. */

/* Overview hero */
.hero { padding: 22px 20px 16px; }
.hero-devices { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; }
.hero-device { text-align: center; }
.hero-name { font-weight: 600; font-size: 14px; margin-top: 8px; }
.hero-sub { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.device { margin: 0 auto; position: relative; }
.device.mac { width: 92px; height: 58px; border-radius: 6px; border: 3px solid var(--text); opacity: 0.85; }
.device.mac::after { content: ""; position: absolute; left: -14px; right: -14px; bottom: -9px; height: 5px; border-radius: 0 0 6px 6px; background: var(--text); }
.device.phone { width: 38px; height: 70px; border-radius: 9px; border: 3px solid var(--text); opacity: 0.85; background: var(--phone-wall, none) center / cover; }
.device.phone::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--text); }
.device.pc { width: 84px; height: 56px; border-radius: 4px; border: 3px solid var(--text); opacity: 0.85; }
.device.pc::after { content: ""; position: absolute; left: 30px; right: 30px; bottom: -12px; height: 9px; border-bottom: 3px solid var(--text); border-left: 3px solid transparent; border-right: 3px solid transparent; }
.hero-mid { text-align: center; padding: 0 8px; }
.hero-link { height: 3px; border-radius: 2px; position: relative; overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--idle) 0 6px, transparent 6px 12px); background-size: 24px 3px;
  animation: dash 1.6s linear 6; transition: box-shadow 0.4s; }
.hero-link.up { background: linear-gradient(90deg, var(--good), var(--accent)); animation: none; box-shadow: 0 0 8px rgba(48, 185, 77, 0.35); }
.hero-pulse { display: none; }
.hero-link.up .hero-pulse { display: block; position: absolute; top: 0; left: 0; width: 40px; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent); animation: travel 2.2s var(--ease) 3; }
@keyframes dash { to { background-position: 24px 0; } }
@keyframes travel { from { left: -40px; } to { left: 100%; } }
.device { transition: opacity 0.4s; }
.hero-link-text { color: var(--muted); font-size: 12px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.hero-status { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--row-line); text-align: center; color: var(--muted); }
.hero-status.bad { color: var(--bad); }
.hero-actions { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.hero-actions[hidden] { display: none; }

/* Cursor: layout picker */
.layout { display: flex; align-items: center; gap: 24px; padding: 18px; }
.layout-grid { display: grid; flex: none; grid-auto-rows: minmax(96px, auto); gap: 8px; padding: 12px; box-sizing: border-box; width: 100%; }
.screen { border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.mac-screen { background: linear-gradient(135deg, #5ac8fa, #0a84ff); color: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.slot { border: 1.5px dashed var(--control-line); border-radius: 6px; background: none; font-weight: 600; font-size: 12px; color: #fff; cursor: default; }
.slot:hover { border-color: var(--accent); background: var(--accent-soft); }
.slot.on { border: 0; background: linear-gradient(135deg, #8e8e93, #48484a); }
.slot { transition: border-color 0.2s, background-color 0.2s, transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1); }
.slot.on { animation: pop 0.35s cubic-bezier(0.34, 1.4, 0.64, 1); }
@keyframes pop { from { transform: scale(0.85); } to { transform: none; } }
.layout-hint { color: var(--muted); }
kbd, kbd.key { font: 12px system-ui, "Ubuntu", "Cantarell", "Noto Sans", sans-serif; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--control-line); border-bottom-width: 2px; background: var(--control); }

/* Clipboard: history */
.history { max-height: 360px; overflow-y: auto; }
.hist-item { display: flex; align-items: center; gap: 12px; padding: 9px 14px; position: relative; }
.hist-item + .hist-item::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; height: 1px; background: var(--row-line); }
.hist-dir { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.hist-dir svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hist-dir.out { background: var(--accent); }
.hist-dir.in { background: var(--good); }
.hist-text { flex: 1; min-width: 0; }
.hist-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-text .hint { color: var(--muted); font-size: 12px; }

.tl-bar { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 4px; }
.tl-search { width: 100%; box-sizing: border-box; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--control-line); background: var(--control); color: var(--text); font: inherit; box-shadow: var(--shadow); }
.tl-search:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-chips button { border: 0; background: var(--track-off); color: inherit; border-radius: 999px; padding: 3px 10px; cursor: default; font: inherit; }
.tl-chips button.on { background: var(--accent); color: #fff; }
.tl-chips button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.tl-count { opacity: .75; font-variant-numeric: tabular-nums; }
.tl-list { max-height: 520px; }
.tl-empty { padding: 22px 16px; color: var(--muted); }
.tl-kind { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.tl-kind svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tl-kind.clip { background: #30b0c7; }
.tl-kind.notif { background: #ff9f0a; }
.tl-kind.file { background: #0a84ff; }
.tl-kind.call { background: #30d158; }

/* Roadmap pages */
.soon { padding: 6px 0; }
.soon-head { padding: 10px 14px 4px; }
.soon-item { padding: 8px 14px; }
.soon-item .hint { color: var(--muted); margin-top: 1px; }

/* ---------- Windows additions ---------- */
.keys { display: inline-flex; gap: 4px; }
/* Cursor: read-only layout (the Mac sets it) */
.layout-grid .pc-screen { background: linear-gradient(135deg, #8e8e93, #48484a); color: #fff; }
.layout-grid .cell { border: 1.5px dashed var(--control-line); border-radius: 6px; }
.layout-grid .cell.mac-here { border: 0; background: linear-gradient(135deg, #5ac8fa, #0a84ff); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.layout-grid .cell:not(.mac-here):hover { border-color: var(--accent); background: var(--accent-soft); }
/* Apps grid */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; padding: 8px 10px; max-height: 420px; overflow-y: auto; }
.app-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 0; border-radius: 8px; background: none; cursor: default; }
.app-tile { transition: background-color 0.15s, transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1); }
.app-tile:hover { background: var(--nav-hover); transform: translateY(-2px); }
.app-tile:active { transform: scale(0.96); }
.app-tile:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.app-tile img, .app-noicon { width: 48px; height: 48px; }
.app-noicon { display: grid; place-items: center; border-radius: 12px; background: var(--track-off); font-size: 20px; font-weight: 600; }
.app-tile .app-name { font-size: 12px; text-align: center; line-height: 1.25; max-width: 92px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Overview address, nearby list, OS glyphs */
.row .value.addr { color: var(--text); user-select: text; }
.row .hint.bad { color: var(--bad); }
.row.with-ico .text { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.row.with-ico .os-ico { grid-row: span 2; }
.os-ico { display: inline-block; position: relative; width: 22px; height: 14px; border: 2px solid var(--muted); border-radius: 3px; margin-bottom: 4px; }
.os-ico.mac::after { content: ""; position: absolute; left: -5px; right: -5px; bottom: -5px; height: 2px; border-radius: 0 0 2px 2px; background: var(--muted); }
.os-ico.phone { width: 11px; height: 17px; border-radius: 3px; margin: 0 5px 1px; }
.os-ico.phone::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 1px; height: 1.5px; border-radius: 1px; background: var(--muted); }
.os-ico.pc::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: -6px; height: 3px; border-bottom: 2px solid var(--muted); }

/* Setup screen (like the Mac's) */
body.setup #sidebar { display: none; }
.setup-page { max-width: 560px; margin: 0 auto; padding: 56px 28px 40px; }
.setup-page h1 { font-size: 24px; margin: 14px 0 4px; text-align: center; }
.setup-page > p { text-align: center; color: var(--muted); margin: 0 0 24px; }
.setup-page .app-mark { margin: 26px auto 36px; transform: scale(1.5); }
.setup-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 12px; }
.setup-foot .hint { color: var(--muted); font-size: 12px; }

/* Send files drop zone, progress bar, shortcut recorder (same as mac/control-pages.css) */
.dropzone { margin: 12px 14px; height: 96px; border: 1.5px dashed var(--control-line); border-radius: 10px; display: grid; place-items: center; text-align: center; color: var(--muted); transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--spring); }
.dropzone .big { color: var(--text); font-weight: 500; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.01); }
.dropzone.off { opacity: 0.5; }
.bar { height: 4px; border-radius: 2px; background: var(--track-off); overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; background: var(--accent); transition: width 0.3s var(--ease); }
.btn.keyrec { min-width: 84px; font-variant-numeric: tabular-nums; }
.btn.keyrec.on { border-color: var(--accent); color: var(--accent); }
.hint.bad { color: var(--bad); }

/* Pin to Start on a Mac app tile (shows on hover, like the Mac's Add to Dock) */
.app-tile { position: relative; }
.app-pin { position: absolute; top: 2px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; opacity: 0; transform: scale(0.7); transition: opacity 0.15s, transform 0.2s var(--spring); }
.app-pin svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.app-tile:hover .app-pin, .app-pin:focus-visible { opacity: 1; transform: none; }

/* About: app icon, name and version */
.about-hero { display: flex; flex-direction: column; align-items: center; padding: 26px 20px 22px; text-align: center; }
.about-icon { width: 96px; height: 96px;
  background: image-set(url(../assets/[email protected]) 1x, url(../assets/[email protected]) 2x) center / contain no-repeat; }
.about-name { font-weight: 700; font-size: 20px; letter-spacing: -0.2px; margin-top: 12px; }
.about-ver { color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; user-select: text; }
.about-tag { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* ---------- Phone page ---------- */
.phone-hero { display: flex; align-items: center; gap: 22px; padding: 18px 22px; }
.device.phone.big { width: 58px; height: 108px; border-radius: 13px; margin: 0; flex: none; }
.device.phone.big::after { left: 18px; right: 18px; bottom: 6px; }
.phone-hero-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.phone-hero-text .hero-name { text-align: left; margin-top: 0; }
.phone-hero-text .hero-status { text-align: left; margin: 0; padding: 0; border: 0; }
.phone-hero-actions { display: flex; gap: 8px; margin-top: 8px; }
.how-steps { margin: 4px 16px 12px 36px; padding: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.how-steps li { margin: 4px 0; }
.phone-hero-via { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 4px; padding: 6px 10px 12px; max-height: 340px; overflow-y: auto; }
.app-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; border: 0; border-radius: 9px; background: none; cursor: default; }
.app-tile:hover:not(:disabled) { background: var(--nav-hover); }
.app-tile:disabled { opacity: 0.45; }
.app-tile img { width: 40px; height: 40px; }
.app-tile span { font-size: 11px; line-height: 1.25; text-align: center; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card .row input[type="search"] { flex: 1; width: 100%; }

/* The dark icon on a dark appearance (the light one above). */
@media (prefers-color-scheme: dark) {
  .about-icon { background-image: image-set(url(../assets/[email protected]) 1x, url(../assets/[email protected]) 2x); }
}

/* From ../app.css and ../app-pages.css: TwinDesk iPhone (iOS signing), ReZume icons, history thumbnails, the
   spinner, code hints and the Multi-device popup, which this window loads too. */
.mesh-art { margin: 8px 0 0; text-align: center; color: var(--muted); }

.mesh-art svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }

.mesh-art p { max-width: 460px; margin: 8px auto 0; font-size: 13px; }

.mesh-art .mi-link { stroke: #5e5ce6; stroke-width: 2; opacity: 0.35; }

.mesh-art .mi-body { fill: var(--card); stroke: #5e5ce6; stroke-width: 2; }

.mesh-art .mi-screen { fill: rgba(94, 92, 230, 0.22); }

.mesh-art .mi-dot { fill: #7d7bff; }

@media (prefers-reduced-motion: reduce) {
  .mesh-art .mi-dot { display: none; }
}

.mesh-pop { border-color: #5e5ce6; }

.mesh-pop .pill { margin-left: 4px; vertical-align: 2px; }

.mesh-pop p { margin: 8px 0; }

.spin { width: 12px; height: 12px; flex: none; border: 2px solid var(--control-line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }

.code-hint { font-variant-numeric: tabular-nums; color: var(--text); }

.ios-warn { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin: 0 0 22px; border-radius: 12px;
  background: color-mix(in srgb, var(--bad) 9%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); }

.ios-warn > svg { flex: none; width: 24px; height: 24px; color: var(--bad); }

.ios-warn .body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }

.ios-warn .title { font-weight: 600; font-size: 14px; color: var(--bad); }

.ios-warn p { margin: 0; line-height: 1.45; }

.ios-warn .alt { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin-top: 6px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--bad) 22%, transparent); }

.ios-warn .alt span { color: var(--text); }

.ios-dev { cursor: default; }

.ios-dev.pick { cursor: pointer; }

.ios-dev .tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--control-line); display: inline-grid; place-items: center; }

.ios-dev.on .tick { background: var(--accent); border-color: var(--accent); }

.ios-dev.on .tick::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.ios-steps { list-style: none; margin: 0; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }

.ios-steps li { display: flex; align-items: center; gap: 10px; color: var(--faint); }

.ios-steps li.done { color: var(--muted); }

.ios-steps li.now { color: var(--text); font-weight: 500; }

.ios-steps li.bad { color: var(--bad); }

.ios-steps svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ios-steps li.done svg { color: var(--good); }

.ios-steps li .pct { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 400; }

.ios-spin { width: 14px; height: 14px; margin: 1px; flex: none; border-radius: 50%; border: 2px solid var(--track-off); border-top-color: var(--accent); animation: ios-spin 0.8s linear infinite; }

.ios-bar { height: 4px; border-radius: 2px; background: var(--track-off); margin: 0 16px 12px; overflow: hidden; }

.ios-bar > div { height: 100%; background: var(--accent); transition: width 0.3s var(--ease); }

.ios-result { padding: 10px 16px 12px; border-top: 1px solid var(--row-line); line-height: 1.45; }

.ios-result.good { color: var(--good); }

.ios-result.bad { color: var(--bad); }
.ios-items { list-style: none; margin: 0; padding: 10px 16px 12px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--row-line); }
.ios-items li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 1px; align-items: center; }
.ios-items li > svg, .ios-items li > .ios-spin { grid-row: 1 / 3; align-self: start; margin-top: 2px; }
.ios-items svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--faint); }
.ios-items .name { font-weight: 500; overflow-wrap: anywhere; }
.ios-items .pct { font-variant-numeric: tabular-nums; color: var(--muted); }
.ios-items .state { grid-column: 2 / 4; color: var(--muted); font-size: 12px; line-height: 1.4; }
.ios-items li.done svg { color: var(--good); }
.ios-items li.bad svg, .ios-items li.bad .state { color: var(--bad); }
.ios-items li.skip svg { color: var(--muted); }

.ios-how { margin: 6px 2px 28px; max-width: 760px; }

.ios-how > summary { cursor: pointer; font-size: 13px; font-weight: 600; padding: 6px 0; list-style: none; display: flex; align-items: center; gap: 6px; }

.ios-how > summary::-webkit-details-marker { display: none; }

.ios-how > summary::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin: 0 3px; }

.ios-how[open] > summary::before { transform: rotate(45deg); }

.ios-how[open] > summary { margin-bottom: 6px; }

.ios-how p { margin: 0 0 10px; line-height: 1.55; color: var(--muted); }

.ios-hero { display: flex; justify-content: center; margin: 4px 0 2px; }

.ios-hero svg { width: 150px; height: 112px; }

.ios-hero .arc { fill: none; stroke: var(--accent, #5e5ce6); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.ios-hero .ring { transform-origin: 80px 60px; animation: ios-turn 6s linear 2; }

.ios-hero .phone { fill: var(--card, rgba(127,127,127,.12)); stroke: var(--muted); stroke-width: 2; }

.ios-hero .notch { fill: var(--muted); opacity: .5; }

.ios-hero .app { fill: #5e5ce6; animation: ios-pulse 3s ease-in-out 3; transform-origin: 80px 60px; }

.ios-hero .tick { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; animation: ios-draw 3s ease-in-out 3; }

@media (prefers-reduced-motion: reduce) {
  .ios-hero .ring, .ios-hero .app, .ios-hero .tick { animation: none; }
  .ios-hero .tick { stroke-dashoffset: 0; }
}

.ios-alt { display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, rgba(127,127,127,.25)); }

.ios-alt .body { flex: 1; min-width: 0; }

.ios-alt .title { font-weight: 600; font-size: 13px; margin-bottom: 2px; }

.ios-alt p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 560px) {
  .ios-alt { flex-direction: column; align-items: flex-start; }
}

.hist-thumb { height: 40px; max-width: 72px; border-radius: 4px; object-fit: cover; flex: none; }

.row.with-ico .text > :first-child { grid-row: span 2; }

.rezume-icon { display: flex; flex: none; margin-right: 12px; }

.rezume-icon img { width: 36px; height: 36px; border-radius: 8px; }

.rezume-list .rezume-icon img { width: 28px; height: 28px; border-radius: 6px; }

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes ios-spin { to { transform: rotate(360deg); } }

@keyframes ios-turn { to { transform: rotate(360deg); } }

@keyframes ios-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

@keyframes ios-draw { 0%, 20% { stroke-dashoffset: 16; } 55%, 100% { stroke-dashoffset: 0; } }