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.

2.9 KB
Raw Blame
/* TwinDesk — Copyright (C) 2026 inukaasith. GPL-3.0, see LICENSE. */
:root { color-scheme: dark; --bar: #1c1c1e; --text: #f5f5f7; --muted: #98989d; --hover: rgba(255, 255, 255, 0.1); }
html, body { margin: 0; height: 100%; background: #000; color: var(--text); font: 13px "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; overflow: hidden; user-select: none; }
#bar {
  height: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 146px 0 10px; /* Windows' own minimize, maximize and close sit on the right */
  background: var(--bar); -webkit-app-region: drag; box-sizing: border-box;
}
#title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* How the picture comes: the USB cable or Wi-Fi. */
#via { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; margin: 0 auto 0 6px; flex: none; background: var(--hover); color: var(--muted); }
#via.usb { background: rgba(48, 209, 88, 0.22); color: #30d158; }
.tools { display: flex; gap: 2px; flex: none; }
.ctl {
  -webkit-app-region: no-drag; width: 26px; height: 24px; border: 0; border-radius: 6px; background: none; display: grid; place-items: center; padding: 0;
}
.ctl:hover { background: var(--hover); }
.ctl.on { background: rgba(10, 132, 255, 0.4); }
.ctl svg { width: 15px; height: 15px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#stage { position: absolute; top: 32px; left: 0; right: 0; bottom: 0; display: grid; place-items: center; }
/* Where the controls sit: the title bar (the default) or, with Phone page › Side panel, all of them
   down the right, Back, Home and Recents at its foot (phoneview.js sizes the window for it: PANEL_W). */
#panel {
  display: none; position: absolute; top: 32px; right: 0; bottom: 0; width: 44px; box-sizing: border-box; padding: 8px 0;
  flex-direction: column; align-items: center; gap: 4px; background: var(--bar); overflow-y: auto; scrollbar-width: none;
}
#panel::-webkit-scrollbar { display: none; }
#panel .ctl { flex: none; width: 34px; height: 32px; }
#panel .ctl svg { width: 17px; height: 17px; }
#panel .gap { flex: 1; min-height: 10px; }
body[data-controls="side"] #panel { display: flex; }
body[data-controls="side"] #stage { right: 44px; }
#screen { max-width: 100%; max-height: 100%; outline: none; cursor: default; touch-action: none; }
#status { position: absolute; color: var(--muted); text-align: center; padding: 0 24px; }
body.drop #stage { outline: 3px solid #0a84ff; outline-offset: -3px; }
body.sound #bar, body.sound #panel, body.netsound #bar, body.netsound #panel { display: none !important; }
#bar { justify-content: flex-start; }
#bar .tools { margin-left: auto; }
#fullBtn { flex: none; margin-left: 2px; }
/* Fullscreen: only the picture, as large as it fits, black around it. */
body.full #bar, body.full #panel { display: none !important; }
body.full #stage { top: 0; right: 0; bottom: 0; }