Files
radixOS/public/styles/os.css
2026-04-23 09:07:52 +02:00

224 lines
8.9 KiB
CSS

/* public/css/desktop.css */
body, html { margin:0; padding:0; height:100%; overflow: hidden; font-family: var(--fontFamily); font-size: var(--fontSize); }
#desktop { position:relative; height:100vh; overflow:hidden; background-size:var(--theme-desktop-background-size); background-repeat: no-repeat; background-position: center; touch-action: none; }
#windows { z-index: 1; position:absolute; inset:0; padding:8px; box-sizing:border-box; }
.window { min-width:250px; min-height:250px; position:absolute; width: 800px; height: 600px; border-radius:6px; box-shadow: 0 6px 20px rgba(0,0,0,0.4); overflow:hidden; top:50px; left:50px; display:flex; flex-direction:column; resize:both; }
.window-titlebar { padding: 0 0 1px 0; height: auto; display:flex; justify-content:space-between; align-items:center; }
.window-titlebar .title { display: flex; align-items: center; min-width: 0; flex: 1; overflow: hidden; }
.window-titlebar .window-title { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-left:8px; }
.window-icon { height: 12px; background-size:contain; transform: translate(1px, -1px); background-repeat: no-repeat; background-position: left; background-color: rgb(144, 179, 144); padding:4px;border-radius: 6px;}
.window .controls { display: flex; flex-shrink: 0;}
.window .controls button { transition: background-color var(--times-transition-colors), color var(--times-transition-colors); padding: 2px 10px; border:none;}
.window-content { display: flex; flex-direction: column; flex:1; padding:8px; overflow: auto; }
.window[class="max"] .window-resize-handle { display: none; }
.window-resize-handle { position:absolute; right:0; bottom:0; width:12px; height:12px; cursor:se-resize; z-index: 10; }
.window-resize-n { top: -4px; left: 0; right: 0; height: 8px; cursor: n-resize; }
.window-resize-s { bottom: -4px; left: 0; right: 0; height: 8px; cursor: s-resize; }
.window-resize-e { right: -4px; top: 0; bottom: 0; width: 8px; cursor: e-resize; }
.window-resize-w { left: -4px; top: 0; bottom: 0; width: 8px; cursor: w-resize; }
.window-resize-ne { top: -4px; right: -4px; width: 12px; height: 12px; cursor: ne-resize; }
.window-resize-nw { top: -4px; left: -4px; width: 12px; height: 12px; cursor: nw-resize; }
.window-resize-se { bottom: -4px; right: -4px; width: 12px; height: 12px; cursor: se-resize; }
.window-resize-sw { bottom: -4px; left: -4px; width: 12px; height: 12px; cursor: sw-resize; }
#taskbar { z-index: 2; position: absolute; width:100%; bottom:0; left:0; height:auto; overflow:visible; display:flex; flex: 0 0 auto; min-width:0; align-items:center; padding:0 8px; box-sizing:border-box; }
#start-btn { transition: background-color var(--times-transition-colors) ease; padding: 8px 12px; border-radius: 5px; border: none; margin-right:8px; }
#taskbar-windows { display:flex; gap:6px; align-items:center; flex:1; overflow-y:hidden;overflow-x: auto; min-width: 0;scrollbar-width: thin; }
.taskbar-item { display: flex; position: relative; padding:4px 10px; border-radius:4px; }
.taskbar-item::before { content: ''; position: absolute; bottom:1px; left:50%; width:40%; height: 4px; border-radius:4px; transform:translateX(-50%) scaleX(0); transform-origin:center; transition:transform var(--times-transition-colors) ease; }
.taskbar-item.focus::before { transform: translateX(-50%) scaleX(1); }
.notify-button { margin-left:auto; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.notify-button.resume, .notify-button.pulse { animation: pulse 1.5s infinite; animation-play-state: running; }
.notify-button.pause, .notify-button.pause *, .notify-button.active, .notify-button.active * { animation-play-state: paused; }
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}
.hidden { opacity: 0; pointer-events: none; }
/* Open submenu vertical */
#start-menu { z-index: 2; transition: opacity var(--times-transition-opacity); display:flex; flex-direction:column; position: absolute; bottom: 50px; left: 8px; width: auto; min-width: 300px; border-radius: 8px; overflow: hidden; }
.start-header { display: flex; align-items: center; padding: 8px; font-weight: 600; }
.start-header > img { height: 24px; width: 24px; margin-right: 5px; }
.start-list { list-style: none; margin: 0; padding: 8px 0; height: 60vh; overflow-y: auto; }
.start-item { padding: 8px 12px 16px 20px; display: flex; gap: 8px; transition: background var(--times-transition-colors); border-radius: 4px; }
.start-item:not(:has(.submenu)) { padding: 12px;align-items:center; }
.start-icon, #start-menu-icon { height: 20px; width: 20px; border-radius: 8px; padding:4px; }
.menu-label { display: block; margin-top: 4px; padding-bottom: 0; margin-left: 26px }
.start-item.has-submenu { position: relative; display: flex; flex-direction: column; padding-bottom: 8px; }
.start-item.has-submenu > .submenu { width: 100%; list-style: none; padding-left: 2px; max-height: 0; overflow: hidden; transition: max-height var(--times-transition-transform) ease; margin: 2px 0 0 8px; }
.start-item-sys-container { position: relative; left:0; bottom: -8px; padding: 5px 0px; width:100%; display:flex; height:30px; flex-direction:row; justify-content:flex-end; }
.start-sys-item { margin: 0 10px 0 8px !important; }
.start-submenu-head { position: relative; margin-left: 16px; height:32px; display:flex; flex-direction: row; align-items: center; gap:8px; }
.start-item.has-submenu > .menu-label::after { content: ""; position: absolute; right: 14px; transform: translateY(50%) rotate(0deg); border: 5px solid transparent; border-top-color: #aaa; transition: transform var(--times-transition-transform); }
.start-item.has-submenu.open > .menu-label::after { content: ""; position: absolute; right: 14px; transform: translateY(50%) rotate(180deg); border: 5px solid transparent; border-top-color: #aaa; transition: var(--times-transition-transform); }
.start-item.has-submenu.open > .submenu { max-height: 500px; }
.start-item.has-submenu > .submenu li { opacity: 0; transform: translateY(-5px); transition: opacity var(--times-transition-opacity), transform 0.2s; }
.start-item.has-submenu.open > .submenu li { opacity: 1; transform: translateY(0); }
img.icon { width: auto; height:20px; object-fit: contain; filter: var(--theme-notifybubble-filter); transform: translate(2px, 2px) }
@media (max-width: 768px) {
body, html {
overflow: auto;
}
#desktop {
height: 100dvh;
}
/* Fenster = Fullscreen */
.window {
width: 100% !important;
height: calc(100% - 54px) !important;
top: 0 !important;
left: 0 !important;
border-radius: 0;
resize: none;
}
.window-resize-handle {
display: none !important;
}
.window-titlebar {
height: 29px;
padding: 0 0px;
}
.window-content {
padding: 0px;
}
/* Taskbar größer für Touch */
#taskbar {
padding: 0 6px;
overflow: hidden;
}
#start-btn {
padding: 4px 8px;
font-size: 16px;
}
.taskbar-item {
padding: 0 5px 4px 0;
top: 0px;
white-space:nowrap;
text-overflow:ellipsis;
}
.start-list { list-style: none; margin: 0; padding: 8px 0; height: 100%; overflow-y: auto; }
#start-menu {
bottom: 50px !important;
height: calc(100dvh - 65px) !important;
width: calc(100dvw - 5px);
left: 0 !important;
border-radius: 0 !important;
} */
.start-item {
padding: 14px;
font-size: 16px;
}
.start-icon {
height: 24px;
width: 24px;
}
.start-item.has-submenu > .menu-label { margin: 8px 0 0 40px; }
.start-item-sys-container { margin:auto; bottom: -10px; }
/* Buttons besser klickbar */
.window .controls button {
padding: 10px 12px;
}
/* Notify Button */
.notify-button {
padding: 8px;
}
}
@media (max-width: 1000px) AND (orientation: landscape) {
body, html {
overflow: auto;
}
#desktop {
height: 100dvh;
}
/* Fenster IMMER fullscreen */
.window {
width: 100% !important;
height: calc(100dvh - 46px) !important;
top: 0 !important;
left: 0 !important;
border-radius: 0 !important;
}
/* Resize komplett aus */
.window-resize-handle {
display: none !important;
}
.window-titlebar {
height: 30px;
padding: 0 0px;
}
/* Startmenü bis ganz oben */
#start-menu {
bottom: 44px !important;
height: calc(100dvh - 60px) !important;
width: 300px;
max-width: 35dvw;
left: 0 !important;
border-radius: 0 !important;
}
/* Taskbar bleibt sichtbar, aber oben drüber sauber */
#taskbar {
z-index: 9999;
}
/* Startliste nutzt volle Höhe */
.start-list {
height: 100%;
}
.start-item-sys-container { bottom: -10px;}
.start-item.has-submenu > .menu-label { margin: 8px 0 0 28px; }
}