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.

4.5 KB
Raw Blame
/* TwinDesk — Copyright (C) 2026 inukaasith. GPL-3.0, see LICENSE. */
:root {
  color-scheme: light dark; font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fg: #202124; --muted: #66666b; --bg: #f5f5f7; --line: #d8d8dc; --chip: #e5e5ea; --hover: #e8e8ed; --accent: #007aff;
  color: var(--fg); background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #f5f5f7; --muted: #a5a5ad; --bg: #202124; --line: #3a3a40; --chip: #303138; --hover: #303138; --accent: #4c9dff; }
}
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
header { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 34px 12px 4px 16px; -webkit-app-region: drag; }
h1 { flex: 1; font-size: 16px; font-weight: 650; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tools { display: flex; align-items: center; gap: 2px; -webkit-app-region: no-drag; }
#hint { margin: 0; padding: 0 16px 6px; color: var(--muted); font-size: 11px; min-height: 6px; }
main { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 10px; }
ul { margin: 0; padding: 0; list-style: none; }
li { border-bottom: 1px solid var(--line); }
li:last-child { border-bottom: 0; }
.item { display: flex; align-items: center; gap: 10px; min-width: 0; border-radius: 8px; cursor: grab; padding: 6px; }
.item:active { cursor: grabbing; }
.all { justify-content: center; font-weight: 600; color: var(--accent); border: 1px dashed var(--line); margin-bottom: 6px; padding: 8px; }
.icon { display: grid; place-items: center; flex: 0 0 36px; height: 40px; background: var(--chip); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 9px; font-weight: 650; }
.label { min-width: 0; }
.name { font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail { font-size: 11px; color: var(--muted); margin-top: 2px; }
button { font: inherit; color: var(--accent); background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; color: var(--muted); }
.text { padding: 5px 8px; }
button:focus-visible, .item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#empty { margin: 10px 4px; padding: 32px 14px; text-align: center; color: var(--muted); border-radius: 12px; }
#empty.drop { border: 1.5px dashed var(--line); }
body.dragging #empty.drop { border-color: var(--accent); color: var(--accent); }
[hidden] { display: none !important; }
@media (hover: hover) { button:hover, .item:hover { background: var(--hover); } }

/* The share corner: a small chip at the bottom right; a drag over the window (or a click) opens its devices. */
footer { flex: 0 0 auto; position: relative; padding: 0 10px 10px; display: flex; flex-direction: column; align-items: flex-end; }
#corner { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 16px; background: var(--chip); color: var(--muted); font-size: 12px; cursor: pointer; transition: opacity .15s; }
#panel { width: 100%; max-height: 0; overflow: hidden; transition: max-height .22s ease, padding .22s ease; border-radius: 12px; background: var(--chip); }
#panel p { margin: 0; padding: 0 12px 8px; color: var(--muted); font-size: 11px; }
#devices { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 10px 4px; }
.device { flex: 0 0 72px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; border: 1.5px solid transparent; color: var(--fg); background: var(--bg); text-align: center; font-size: 11px; }
.device span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device.over { border-color: var(--accent); color: var(--accent); transform: scale(1.04); }
.device.sent { border-color: #2fb36b; }
.device.choice { flex-basis: 76px; }
.device.back { flex-basis: 40px; color: var(--muted); }
.device.back span { display: none; }
#corner { cursor: default; }
body.sharing #corner { opacity: 0; height: 0; padding: 0; overflow: hidden; }
body.sharing #panel { max-height: 200px; padding: 10px 0 8px; }
@media (prefers-reduced-motion: reduce) { #panel, #corner { transition: none; } }
/* Windows and Linux: a normal window frame, so no room for the Mac's window buttons */
:root:not([data-os="darwin"]) header { padding-top: 10px; -webkit-app-region: no-drag; }
:root[data-os="darwin"] #close { display: none; } /* the Mac's own window buttons close it */