Upload popup.css via GUI

This commit is contained in:
2026-02-09 21:05:50 +00:00
parent f7e99f8625
commit 111158967f

View File

@@ -10,34 +10,63 @@
--offline: #ef4444; --offline: #ef4444;
} }
* { box-sizing:border-box; } * { box-sizing: border-box; }
html,body { margin:0; padding:0; font-family:Inter, Arial, sans-serif; background:var(--bg); color:var(--text);}
.root { width:520px; max-width:520px; padding:12px; }
header { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; } html, body {
header h1 { font-size:16px; margin:0; } margin: 0;
header .actions button { background:transparent; border:1px solid var(--muted); color:var(--text); padding:4px 8px; border-radius:6px; cursor:pointer; } padding: 0;
font-family: Inter, Arial, sans-serif;
background: var(--bg);
color: var(--text);
overflow-x: hidden;
}
.root {
width: 520px;
padding: 12px;
display: flex;
flex-direction: column;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
}
header h1 { font-size: 16px; margin: 0; }
header .actions button {
background: transparent;
border: 1px solid var(--muted);
color: var(--text);
padding: 4px 8px;
border-radius: 6px;
cursor: pointer;
}
.main { .main {
display:flex; display: flex;
gap:12px; gap: 12px;
position: relative; position: relative;
align-items: flex-start;
} }
.server-list { .server-list {
width:45%; width: 45%;
background:var(--panel); background: var(--panel);
padding:8px; padding: 8px;
border-radius:var(--radius); border-radius: var(--radius);
flex-shrink: 0; flex-shrink: 0;
} }
.detail { .detail {
flex:1; flex: 1;
background:var(--panel); background: var(--panel);
padding:8px; padding: 8px;
border-radius:var(--radius); border-radius: var(--radius);
min-height:220px; min-height: 220px;
transition: all 0.3s ease; transition: all 0.3s ease;
} }
@@ -46,175 +75,143 @@ header .actions button { background:transparent; border:1px solid var(--muted);
flex: 1 1 100%; flex: 1 1 100%;
} }
.add-form { display:flex; flex-direction:column; gap:6px; margin-bottom:8px; } .add-form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.add-form input { padding:6px 8px; border-radius:6px; border:1px solid #21303b; background:#071019; color:var(--text); } .add-form input { padding: 6px 8px; border-radius: 6px; border: 1px solid #21303b; background: #071019; color: var(--text); }
.add-form button { padding:6px 8px; border-radius:6px; border:none; background:var(--accent); color:white; cursor:pointer; } .add-form button { padding: 6px 8px; border-radius: 6px; border: none; background: var(--accent); color: white; cursor: pointer; }
#serversContainer {
list-style: none;
margin: 0;
padding: 0;
}
#serversContainer { list-style:none; margin:0; padding:0; max-height:260px; overflow:auto; }
.server-item { .server-item {
display:flex; display: flex;
align-items:center; align-items: center;
justify-content:space-between; justify-content: space-between;
padding:6px; padding: 8px;
margin-bottom:6px; margin-bottom: 6px;
border-radius:6px; border-radius: 6px;
cursor:pointer; cursor: pointer;
background: rgba(255,255,255,0.02); background: rgba(255,255,255,0.02);
transition: background 0.2s ease; transition: background 0.2s ease;
} }
.server-item:hover { background: rgba(255,255,255,0.05); } .server-item:hover { background: rgba(255,255,255,0.05); }
.server-item .meta { display: flex; flex-direction: column; }
.server-item .meta .name { font-weight: 600; }
.server-item .meta .url { font-size: 11px; color: var(--muted); }
.server-item .meta { display:flex; flex-direction:column; }
.server-item .meta .name { font-weight:600; }
.server-item .meta .url { font-size:12px; color:var(--muted); }
.server-item .status-bubble { .server-item .status-bubble {
font-size:12px; font-size: 11px;
padding:3px 6px; padding: 2px 8px;
border-radius:999px; border-radius: 999px;
color:#fff; color: #fff;
transition: background-color 0.3s ease;
} }
.placeholder { color:var(--muted); padding:12px; } .placeholder { color: var(--muted); padding: 12px; font-size: 13px; }
.hidden { display:none; } .hidden { display: none; }
/* --- Detail Header (Zeile 1) --- */
.detail-header { .detail-header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin-bottom: 8px; margin-bottom: 12px;
} }
.server-identity h2 { .server-identity h2 { margin: 0; font-size: 18px; line-height: 1.2; }
margin: 0; .server-url { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
font-size: 18px;
line-height: 1.2;
}
.server-url {
display: block;
font-size: 12px;
color: var(--muted);
margin-top: 2px;
}
.status-wrapper { .status-wrapper {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px; gap: 8px;
font-weight: 600; font-weight: 600;
}
/* --- Pulsierender Punkt Animation --- */
.pulsing-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background-color: var(--offline); /* Standard Offline Rot */
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
animation: pulse-red 2s infinite;
}
.pulsing-dot.online {
background-color: var(--online); /* Online Grün */
animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes pulse-red {
0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
/* --- Detail Stats (Zeile 2) --- */
.detail-stats {
display: flex;
justify-content: space-between;
align-items: center;
background: rgba(255,255,255,0.05);
padding: 8px;
border-radius: var(--radius);
margin-bottom: 16px;
font-size: 13px; font-size: 13px;
} }
/* ---------------------------------- */ .pulsing-dot {
width: 10px; height: 10px; border-radius: 50%;
.playerList { background-color: var(--offline);
list-style:none; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
padding-left:16px; animation: pulse-red 2s infinite;
max-height:140px; }
overflow:auto; .pulsing-dot.online {
margin:6px 0; background-color: var(--online);
display:flex; animation: pulse-green 2s infinite;
flex-wrap:wrap;
gap:8px;
} }
.playerList li { @keyframes pulse-green { 0% {box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);} 70% {box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);} 100% {box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);} }
display:flex; @keyframes pulse-red { 0% {box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);} 70% {box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);} 100% {box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);} }
align-items:center;
gap:4px; .detail-stats {
font-size:13px; display: flex;
color:var(--text); justify-content: space-between;
background: rgba(255,255,255,0.05);
padding: 10px;
border-radius: var(--radius);
margin-bottom: 12px;
font-size: 13px;
}
.playerList {
list-style: none;
padding: 10px 0;
margin: 0;
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: center; /* Das hier setzt die Köpfe wieder in die Mitte */
}
.player-item {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
} }
.player-avatar { .player-avatar {
width:24px; width: 42px; height: 42px;
height:24px; border-radius: 6px;
border-radius:4px;
transition: transform 0.2s ease; transition: transform 0.2s ease;
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
border: 2px solid rgba(255,255,255,0.1);
} }
.player-avatar:hover { transform: scale(1.1); } .player-avatar:hover {
transform: scale(1.1);
.detailButtons { border-color: var(--accent);
display:flex;
gap:8px;
margin-top:8px;
transition: opacity 0.3s ease;
} }
.detailButtons button { .player-hover-info {
padding:6px 8px; position: absolute;
border-radius:6px; bottom: -28px;
border:none; background: rgba(0, 0, 0, 0.95);
cursor:pointer; color: white;
transition: opacity 0.2s ease, transform 0.1s ease; padding: 3px 10px;
border-radius: 4px;
font-size: 11px;
white-space: nowrap;
pointer-events: none;
opacity: 0;
transform: translateY(5px);
transition: all 0.2s ease;
z-index: 100;
border: 1px solid rgba(255,255,255,0.2);
} }
.detailButtons button:hover { opacity: 0.9; transform: translateY(-1px); } .player-item:hover .player-hover-info {
.detailButtons button:active { transform: translateY(0); } opacity: 1;
transform: translateY(0);
#btnEdit { background: #f59e0b; color:#000; }
#btnDelete { background: var(--danger); color:#fff; }
#serversContainer::-webkit-scrollbar,
.playerList::-webkit-scrollbar {
width: 6px;
} }
#serversContainer::-webkit-scrollbar-track, .detailButtons { display: flex; gap: 8px; margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; }
.playerList::-webkit-scrollbar-track { .detailButtons button { padding: 6px 12px; border-radius: 6px; border: none; cursor: pointer; font-size: 12px; font-weight: 600; }
background: rgba(255,255,255,0.05); #btnEdit { background: #f59e0b; color: #000; }
border-radius: 3px; #btnDelete { background: var(--danger); color: #fff; }
}
#serversContainer::-webkit-scrollbar-thumb, ::-webkit-scrollbar { width: 6px; }
.playerList::-webkit-scrollbar-thumb { ::-webkit-scrollbar-track { background: transparent; }
background: var(--muted); ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
border-radius: 3px; ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
}
#serversContainer::-webkit-scrollbar-thumb:hover,
.playerList::-webkit-scrollbar-thumb:hover {
background: var(--accent);
}