Files
desktop/public/assets/desktop/desktop.css
Lars Gebhardt-Kusche afbb0a13f0
All checks were successful
Deploy / deploy-staging (push) Successful in 25s
Deploy / deploy-production (push) Has been skipped
asdasd
2026-06-09 02:24:17 +02:00

825 lines
15 KiB
CSS

:root {
color-scheme: light;
--shell-text: #f8fafc;
--shell-border: rgba(255, 255, 255, 0.16);
--card-bg: rgba(255, 255, 255, 0.14);
--window-bg: #f8fafc;
--window-header-bg: #eef2ff;
--window-text: #0f172a;
--accent: #60a5fa;
--taskbar-bg: rgba(15, 23, 42, 0.8);
--shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
--desktop-font: "IBM Plex Sans", "Segoe UI", sans-serif;
--taskbar-height: 60px;
--taskbar-left: 24px;
--taskbar-right: 24px;
--taskbar-bottom: 24px;
--taskbar-width: auto;
--taskbar-radius: 22px;
--taskbar-justify: flex-start;
--stage-top-offset: 0px;
--icon-top: 24px;
--icon-left: 24px;
font-family: var(--desktop-font);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: var(--wallpaper);
color: var(--shell-text);
}
.desktop-shell {
min-height: 100vh;
}
.system-bar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 140;
display: flex;
align-items: center;
justify-content: space-between;
height: 32px;
padding: 0 14px;
background: rgba(244, 244, 245, 0.82);
color: #111827;
backdrop-filter: blur(20px);
}
.system-bar-left,
.system-bar-right {
display: flex;
align-items: center;
gap: 10px;
font-size: 13px;
}
.system-brand {
font-weight: 700;
}
.system-divider {
width: 1px;
height: 14px;
background: rgba(17, 24, 39, 0.2);
}
.eyebrow {
margin: 0 0 12px;
text-transform: uppercase;
letter-spacing: 0.16em;
font-size: 12px;
opacity: 0.72;
}
h1,
h2,
h3,
p,
ul {
margin-top: 0;
}
h1 {
font-size: 40px;
line-height: 1;
margin-bottom: 16px;
}
.lede {
max-width: 24rem;
font-size: 16px;
opacity: 0.88;
}
.desktop-stage {
position: relative;
overflow: hidden;
min-height: 100vh;
padding: 0;
}
.desktop-icons {
position: absolute;
top: var(--icon-top);
left: var(--icon-left);
z-index: 10;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
gap: 16px;
width: min(720px, calc(100% - 80px));
}
.desktop-icon {
width: 96px;
padding: 12px 10px;
border: 1px solid transparent;
border-radius: 16px;
text-align: center;
background: rgba(255, 255, 255, 0.05);
cursor: pointer;
transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
.desktop-icon:hover {
transform: translateY(-2px);
background: rgba(255, 255, 255, 0.12);
border-color: var(--shell-border);
}
.desktop-icon-badge {
display: grid;
place-items: center;
width: 52px;
height: 52px;
margin: 0 auto 10px;
border-radius: 18px;
background: rgba(15, 23, 42, 0.6);
font-weight: 700;
}
.desktop-icon-label {
position: relative;
z-index: 0;
display: inline-block;
max-width: 100%;
padding: 3px 8px;
border-radius: 6px;
font-size: 14px;
color: #ffffff;
line-height: 1.25;
text-shadow: none;
mix-blend-mode: difference;
isolation: isolate;
}
.desktop-icon-label::before {
content: "";
position: absolute;
inset: -2px -4px;
z-index: -1;
border-radius: 8px;
background: rgba(255, 255, 255, 0.18);
backdrop-filter: blur(8px) saturate(1.08);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.app-icon-image,
.app-icon-fallback {
display: block;
width: 100%;
height: 100%;
}
.app-icon-image {
object-fit: contain;
}
.app-icon-fallback {
display: grid;
place-items: center;
font-size: 11px;
font-weight: 700;
line-height: 1;
}
.widget-zone {
position: absolute;
top: calc(var(--stage-top-offset) + 24px);
right: 24px;
display: grid;
gap: 14px;
width: min(320px, calc(100% - 48px));
z-index: 20;
}
.widget-card {
padding: 16px;
border-radius: 18px;
border: 1px solid var(--shell-border);
background: var(--card-bg);
backdrop-filter: blur(16px);
box-shadow: var(--shadow);
}
.widget-card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
}
.widget-badge {
display: inline-grid;
place-items: center;
width: 34px;
height: 34px;
border-radius: 12px;
background: rgba(15, 23, 42, 0.58);
font-size: 12px;
font-weight: 700;
}
.window-layer {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 40;
}
.window {
position: absolute;
display: flex;
flex-direction: column;
min-height: 240px;
border-radius: 20px;
overflow: hidden;
background: var(--window-bg);
color: var(--window-text);
box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
border: 1px solid rgba(148, 163, 184, 0.25);
pointer-events: auto;
max-width: calc(100% - 48px);
max-height: calc(100% - 120px);
}
.window-resize-handle {
position: absolute;
z-index: 2;
}
.window-resize-handle[data-edge="right"] {
top: 18px;
right: 0;
width: 8px;
height: calc(100% - 36px);
cursor: ew-resize;
}
.window-resize-handle[data-edge="left"] {
top: 18px;
left: 0;
width: 8px;
height: calc(100% - 36px);
cursor: ew-resize;
}
.window-resize-handle[data-edge="bottom"] {
left: 18px;
bottom: 0;
width: calc(100% - 36px);
height: 8px;
cursor: ns-resize;
}
.window-resize-handle[data-edge="top"] {
left: 18px;
top: 0;
width: calc(100% - 36px);
height: 8px;
cursor: ns-resize;
}
.window-resize-handle[data-edge="corner"] {
right: 0;
bottom: 0;
width: 18px;
height: 18px;
cursor: nwse-resize;
background:
linear-gradient(135deg, transparent 0 45%, rgba(100, 116, 139, 0.8) 45% 55%, transparent 55% 100%);
}
.window.is-minimized {
display: none;
}
.window.is-maximized {
border-radius: 0;
border: 0;
box-shadow: none;
max-width: none;
max-height: none;
}
.window.is-maximized .window-header {
cursor: default;
}
.window.is-maximized .window-content {
height: 100%;
overflow: auto;
}
.window.is-maximized .window-resize-handle {
display: none;
}
.window-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background: var(--window-header-bg);
border-bottom: 1px solid rgba(148, 163, 184, 0.28);
cursor: move;
}
.window-title {
display: inline-flex;
align-items: center;
min-width: 0;
font-size: 14px;
font-weight: 700;
letter-spacing: 0.01em;
}
.window-header-spacer {
width: 64px;
flex: 0 0 64px;
}
.window-actions {
display: flex;
gap: 8px;
align-items: center;
}
.window-action {
display: inline-grid;
place-items: center;
width: 12px;
height: 12px;
padding: 0;
border: 0;
border-radius: 999px;
background: #cbd5e1;
cursor: pointer;
}
.window-action span {
font-size: 10px;
line-height: 1;
}
.window-action[data-action="close"] {
background: #ef4444;
}
.window-action[data-action="minimize"] {
background: #f59e0b;
}
.window-action[data-action="maximize"] {
background: #22c55e;
}
.window-content {
flex: 1 1 auto;
min-height: 0;
padding: 18px;
font-size: 15px;
line-height: 1.5;
overflow: auto;
}
.window-content--embedded {
position: relative;
display: block;
flex: 1 1 auto;
min-height: 0;
padding: 0;
overflow: hidden;
}
.window-app-frame {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border: 0;
background: #ffffff;
}
.window-content--module {
position: relative;
background: #f8fafc;
}
.window-module-host {
position: absolute;
inset: 0;
overflow: auto;
}
.window-module-error {
padding: 18px;
color: #991b1b;
}
.window-embed-fallback {
position: absolute;
inset: auto 16px 16px 16px;
z-index: 1;
padding: 12px 14px;
border-radius: 14px;
background: rgba(255, 255, 255, 0.92);
color: #0f172a;
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
font-size: 13px;
line-height: 1.45;
}
.window-embed-fallback p {
margin: 0;
}
.window-embed-fallback p + p {
margin-top: 6px;
}
.window-embed-fallback a {
color: #2563eb;
}
.taskbar {
position: fixed;
left: var(--taskbar-left);
right: var(--taskbar-right);
bottom: var(--taskbar-bottom);
width: var(--taskbar-width);
display: flex;
align-items: center;
gap: 16px;
justify-content: var(--taskbar-justify);
min-height: var(--taskbar-height);
padding: 12px 16px;
border-radius: var(--taskbar-radius);
background: var(--taskbar-bg);
backdrop-filter: blur(18px);
border: 1px solid var(--shell-border);
z-index: 120;
}
.start-button,
.taskbar-app-button {
border: 0;
border-radius: 999px;
padding: 10px 14px;
background: rgba(255, 255, 255, 0.12);
color: inherit;
cursor: pointer;
}
.start-button {
display: inline-flex;
align-items: center;
gap: 8px;
white-space: nowrap;
}
.start-button-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
flex: 0 0 18px;
}
.taskbar-app-button.is-focused {
background: var(--accent);
color: #0f172a;
}
.taskbar-app-button.is-minimized {
opacity: 0.62;
}
.start-glyph {
display: inline-grid;
place-items: center;
}
.start-glyph-windows {
grid-template-columns: repeat(2, 1fr);
gap: 2px;
width: 16px;
height: 16px;
}
.start-glyph-windows span {
width: 7px;
height: 7px;
background: currentColor;
border-radius: 1px;
}
.start-glyph-apple {
position: relative;
width: 14px;
height: 16px;
}
.start-glyph-apple::before,
.start-glyph-apple::after {
content: "";
position: absolute;
background: currentColor;
}
.start-glyph-apple::before {
inset: 3px 1px 0;
border-radius: 48% 48% 42% 42% / 42% 42% 58% 58%;
}
.start-glyph-apple::after {
top: 0;
right: 3px;
width: 5px;
height: 5px;
border-radius: 0 100% 0 100%;
transform: rotate(-24deg);
}
.start-glyph-linux {
gap: 2px;
width: 14px;
}
.start-glyph-linux span {
display: block;
width: 14px;
height: 3px;
border-radius: 999px;
background: currentColor;
}
.start-glyph-label {
font-size: 10px;
font-weight: 700;
letter-spacing: 0.04em;
}
.start-menu {
position: fixed;
left: 24px;
bottom: calc(var(--taskbar-height) + 28px);
z-index: 130;
display: grid;
align-content: start;
grid-template-columns: minmax(240px, 280px) minmax(280px, 360px);
gap: 16px;
width: min(720px, calc(100% - 48px));
padding: 18px;
border-radius: 24px;
background: rgba(15, 23, 42, 0.82);
border: 1px solid var(--shell-border);
box-shadow: var(--shadow);
backdrop-filter: blur(24px);
}
.start-menu::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
}
.start-menu[hidden] {
display: none !important;
}
.start-menu-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
grid-column: 1 / -1;
padding-bottom: 10px;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.start-menu-header h2 {
margin-bottom: 0;
}
.start-menu-column,
.start-menu-block {
display: grid;
gap: 12px;
}
.start-menu-column {
align-content: start;
}
.start-menu-entry {
display: grid;
grid-template-columns: 44px minmax(0, 1fr) auto;
align-items: center;
gap: 12px;
width: 100%;
padding: 12px 14px;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 18px;
background: rgba(255, 255, 255, 0.06);
color: inherit;
text-align: left;
cursor: pointer;
}
.start-menu-entry:hover {
background: rgba(255, 255, 255, 0.18);
}
.start-menu-entry strong,
.start-menu-entry span {
display: block;
}
.start-menu-entry small {
opacity: 0.7;
}
.start-menu-entry-badge,
.start-menu-entry-toggle {
display: inline-grid;
place-items: center;
min-width: 32px;
height: 32px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.1);
font-size: 12px;
font-weight: 700;
}
.start-menu-entry-toggle.is-active {
background: var(--accent);
color: #0f172a;
}
.taskbar-apps {
display: flex;
gap: 10px;
flex: 1;
overflow: auto;
scrollbar-width: none;
}
.taskbar-apps::-webkit-scrollbar {
display: none;
}
.taskbar-app-button {
display: inline-flex;
align-items: center;
gap: 10px;
}
.taskbar-app-button-badge {
display: inline-grid;
place-items: center;
width: 26px;
height: 26px;
border-radius: 8px;
background: rgba(15, 23, 42, 0.22);
font-size: 11px;
font-weight: 700;
line-height: 1;
}
.desktop-app-icon {
width: 40px;
height: 40px;
}
.start-menu-app-icon {
width: 22px;
height: 22px;
}
.taskbar-app-icon {
width: 18px;
height: 18px;
}
.taskbar-app-button-label {
display: inline-block;
white-space: nowrap;
}
.tray {
display: flex;
align-items: center;
gap: 8px;
white-space: nowrap;
}
.tray-skins {
display: flex;
align-items: center;
gap: 6px;
}
.tray-skin-button {
border: 0;
border-radius: 999px;
padding: 8px 10px;
background: rgba(255, 255, 255, 0.08);
color: inherit;
cursor: pointer;
font-size: 12px;
}
.tray-skin-button.is-active {
background: var(--accent);
color: #0f172a;
}
.tray-pill {
padding: 8px 10px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
font-size: 13px;
}
.tray-action {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 8px 12px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
color: inherit;
font-size: 13px;
text-decoration: none;
transition: background-color 140ms ease, transform 140ms ease;
}
.tray-action:hover {
background: rgba(255, 255, 255, 0.16);
transform: translateY(-1px);
}
.window-content p:last-child {
margin-bottom: 0;
}
@media (max-width: 1100px) {
.desktop-stage {
min-height: 100vh;
padding-bottom: 120px;
}
.desktop-icons {
position: relative;
top: auto;
left: auto;
margin: 24px;
width: calc(100% - 48px);
}
.widget-zone {
position: static;
width: 100%;
margin-top: 24px;
}
.start-menu {
position: fixed;
left: 16px;
right: 16px;
bottom: 88px;
transform: none;
width: auto;
grid-template-columns: 1fr;
}
.window-layer {
position: static;
inset: auto;
margin-top: 24px;
display: grid;
gap: 18px;
}
.window {
position: relative;
width: 100% !important;
height: auto !important;
left: auto !important;
top: auto !important;
}
}