Initial commit — Meridian OS browser desktop demo

This commit is contained in:
2026-04-19 23:18:55 +00:00
commit 8e30dd3597
30 changed files with 6277 additions and 0 deletions

643
css/shell.css Normal file
View File

@@ -0,0 +1,643 @@
/* Shell layout styles */
#login {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
transition: opacity 0.4s ease, visibility 0.4s ease;
}
#login.hidden {
opacity: 0;
visibility: hidden;
pointer-events: none;
}
.login-card {
width: 360px;
padding: 40px 32px;
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-2);
display: flex;
flex-direction: column;
align-items: center;
gap: 24px;
}
.login-logo {
font-size: var(--fs);
font-size: 28px;
font-weight: 600;
color: var(--text);
letter-spacing: -0.5px;
}
.login-time {
position: absolute;
top: 24px;
right: 32px;
font-size: 14px;
color: var(--text-dim);
}
.login-input {
width: 100%;
padding: 12px 16px;
background: var(--bg-2);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text);
font-size: 14px;
transition: border-color 0.2s;
}
.login-input:focus {
border-color: var(--accent);
outline: none;
}
.login-input::placeholder {
color: var(--text-faint);
}
.login-btn {
width: 100%;
padding: 12px 16px;
background: var(--accent);
color: var(--bg-0);
font-size: 14px;
font-weight: 600;
border-radius: var(--radius);
cursor: pointer;
transition: background 0.2s, opacity 0.2s;
}
.login-btn:hover {
opacity: 0.9;
}
.login-btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* Desktop */
#desktop {
position: fixed;
inset: 0;
display: flex;
flex-direction: column;
}
#desktop.hidden {
display: none;
}
#wallpaper-layer {
position: absolute;
inset: 0;
transition: background 250ms ease;
z-index: 0;
}
#windows-layer {
position: absolute;
inset: 0;
z-index: 1;
overflow: hidden;
}
/* Widgets Tray */
#widgets-tray {
position: fixed;
right: 16px;
top: 16px;
bottom: 64px;
width: 240px;
z-index: 10;
display: flex;
flex-direction: column;
gap: 12px;
overflow-y: auto;
overflow-x: hidden;
}
.widget {
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 16px;
backdrop-filter: blur(12px);
}
.widget-title {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-faint);
margin-bottom: 12px;
}
/* Clock Widget */
.clock-time {
font-size: 32px;
font-weight: 600;
color: var(--text);
line-height: 1;
}
.clock-date {
font-size: 13px;
color: var(--text-dim);
margin-top: 4px;
}
/* Active Apps Widget */
.active-apps-list {
display: flex;
flex-direction: column;
gap: 4px;
}
.active-app-chip {
padding: 8px 12px;
background: var(--bg-2);
border-radius: var(--radius-sm);
font-size: 13px;
color: var(--text);
cursor: pointer;
border: none;
background: none;
text-align: left;
width: 100%;
transition: background 0.15s;
}
.active-app-chip:hover {
background: var(--bg-3);
}
.active-app-chip:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 1px;
}
.active-app-chip.active {
border-left: 2px solid var(--accent);
background: var(--bg-3);
}
.active-apps-empty {
font-size: 13px;
color: var(--text-faint);
font-style: italic;
}
/* Achievements Widget */
.achievements-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.achievement-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 0;
}
.achievement-icon {
width: 32px;
height: 32px;
border-radius: var(--radius-sm);
background: var(--accent-dim);
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
font-weight: 600;
color: var(--accent);
flex-shrink: 0;
}
.achievement-info {
display: flex;
flex-direction: column;
gap: 2px;
overflow: hidden;
}
.achievement-name {
font-size: 13px;
font-weight: 500;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.achievement-game {
font-size: 12px;
color: var(--text-faint);
}
.achievements-empty {
font-size: 13px;
color: var(--text-faint);
font-style: italic;
}
/* Taskbar */
#taskbar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 48px;
background: var(--bg-1);
border-top: 1px solid var(--border);
display: flex;
align-items: center;
padding: 0 8px;
z-index: 100;
gap: 4px;
}
#launcher {
padding: 6px 16px;
font-size: 13px;
font-weight: 500;
color: var(--text);
background: var(--bg-2);
border: 1px solid var(--border);
border-radius: var(--radius);
cursor: pointer;
transition: background 0.15s;
}
#launcher:hover {
background: var(--bg-3);
}
#launcher:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
#launcher.active {
background: var(--accent);
color: var(--bg-0);
border-color: var(--accent);
}
#taskbar-apps {
flex: 1;
display: flex;
align-items: center;
gap: 4px;
overflow-x: auto;
padding: 0 8px;
}
.taskbar-app {
padding: 4px 12px;
font-size: 12px;
color: var(--text-dim);
background: var(--bg-2);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
cursor: pointer;
white-space: nowrap;
border: none;
background: none;
transition: background 0.15s, color 0.15s;
}
.taskbar-app:hover {
color: var(--text);
background: var(--bg-3);
}
.taskbar-app.active {
color: var(--text);
background: var(--bg-3);
border-bottom: 2px solid var(--accent);
}
.taskbar-app:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
#status-bar {
display: flex;
align-items: center;
gap: 12px;
padding: 0 8px;
font-size: 12px;
color: var(--text-dim);
}
.status-user {
display: flex;
align-items: center;
gap: 8px;
}
.status-avatar {
width: 24px;
height: 24px;
border-radius: 50%;
background: var(--accent-dim);
color: var(--accent);
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: 600;
}
.status-separator {
color: var(--text-faint);
}
.status-connection {
display: flex;
align-items: center;
gap: 4px;
}
.connection-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--danger);
transition: background 0.3s;
}
.connection-dot.online {
background: #4caf50;
}
/* Launcher Popover */
.launcher-popover {
position: absolute;
bottom: 56px;
left: 8px;
width: 280px;
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-2);
padding: 12px;
z-index: 150;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
}
.launcher-app-btn {
padding: 12px 8px;
background: var(--bg-2);
border: 1px solid var(--border);
border-radius: var(--radius);
text-align: center;
cursor: pointer;
transition: background 0.15s, border-color 0.15s;
color: var(--text);
}
.launcher-app-btn:hover {
background: var(--bg-3);
border-color: var(--border-strong);
}
.launcher-app-btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.launcher-app-icon {
font-size: 20px;
margin-bottom: 4px;
}
.launcher-app-label {
font-size: 12px;
color: var(--text-dim);
}
/* Wallpaper Picker Modal */
#wallpaper-picker {
position: fixed;
inset: 0;
z-index: 200;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0,0,0,0.6);
backdrop-filter: blur(4px);
transition: opacity 0.3s, visibility 0.3s;
}
#wallpaper-picker.hidden {
opacity: 0;
visibility: hidden;
pointer-events: none;
}
.wallpaper-picker-card {
width: 560px;
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-2);
overflow: hidden;
}
.wallpaper-picker-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 24px;
border-bottom: 1px solid var(--border);
}
.wallpaper-picker-title {
font-size: 16px;
font-weight: 600;
}
.wallpaper-picker-close {
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-sm);
cursor: pointer;
font-size: 16px;
color: var(--text-dim);
border: none;
background: none;
}
.wallpaper-picker-close:hover {
background: var(--bg-3);
color: var(--text);
}
.wallpaper-picker-close:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.wallpaper-picker-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
padding: 20px 24px;
}
.wallpaper-swatch {
aspect-ratio: 16/9;
border-radius: var(--radius);
cursor: pointer;
border: 3px solid transparent;
transition: border-color 0.2s, transform 0.2s;
position: relative;
}
.wallpaper-swatch:hover {
transform: scale(1.03);
}
.wallpaper-swatch.active {
border-color: var(--accent);
}
.wallpaper-swatch-label {
position: absolute;
bottom: 4px;
left: 0;
right: 0;
text-align: center;
font-size: 11px;
color: white;
text-shadow: 0 1px 3px rgba(0,0,0,0.8);
background: rgba(0,0,0,0.4);
padding: 2px 4px;
border-radius: 2px;
}
/* Toast Layer */
#toast-layer {
position: fixed;
bottom: 60px;
right: 16px;
z-index: 300;
display: flex;
flex-direction: column;
gap: 8px;
pointer-events: none;
}
.toast {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 14px 16px;
background: var(--bg-2);
border: 1px solid var(--border);
border-left: 3px solid var(--accent);
border-radius: var(--radius);
box-shadow: var(--shadow-1);
min-width: 280px;
max-width: 360px;
pointer-events: auto;
animation: toast-in 0.3s ease;
}
.toast-removing {
animation: toast-out 0.3s ease forwards;
}
.toast-title {
font-size: 13px;
font-weight: 600;
color: var(--text);
}
.toast-desc {
font-size: 12px;
color: var(--text-dim);
margin-top: 2px;
}
.toast-close {
margin-left: auto;
padding: 2px;
cursor: pointer;
color: var(--text-faint);
border: none;
background: none;
font-size: 14px;
line-height: 1;
}
.toast-close:hover {
color: var(--text);
}
@keyframes toast-in {
from {
opacity: 0;
transform: translateX(24px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes toast-out {
from {
opacity: 1;
transform: translateX(0);
}
to {
opacity: 0;
transform: translateX(24px);
}
}
/* Wallpaper picker toggle button in taskbar */
.wallpaper-toggle {
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-sm);
cursor: pointer;
color: var(--text-dim);
font-size: 16px;
border: none;
background: none;
}
.wallpaper-toggle:hover {
background: var(--bg-3);
color: var(--text);
}
.wallpaper-toggle:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}