Upload via Git Manager GUI
This commit is contained in:
@@ -1,217 +1,435 @@
|
|||||||
:root {
|
:root {
|
||||||
--bg: #111827;
|
--bg: #0d1117;
|
||||||
--panel: #0b1220;
|
--panel: #161b27;
|
||||||
--text: #e6eef8;
|
--panel2: #111620;
|
||||||
--muted: #9aa7b3;
|
--text: #e6eef8;
|
||||||
--accent: #3b82f6;
|
--muted: #5a6a7a;
|
||||||
--danger: #ef4444;
|
--muted2: #8899aa;
|
||||||
--radius: 8px;
|
--accent: #3b82f6;
|
||||||
--online: #22c55e;
|
--radius: 9px;
|
||||||
--offline: #ef4444;
|
--online: #22c55e;
|
||||||
}
|
--offline: #ef4444;
|
||||||
|
--border: rgba(255,255,255,0.07);
|
||||||
* { box-sizing: border-box; }
|
}
|
||||||
|
|
||||||
html, body {
|
* { box-sizing: border-box; }
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
html, body {
|
||||||
font-family: Inter, Arial, sans-serif;
|
margin: 0; padding: 0;
|
||||||
background: var(--bg);
|
font-family: Inter, Arial, sans-serif;
|
||||||
color: var(--text);
|
background: var(--bg);
|
||||||
overflow-x: hidden;
|
color: var(--text);
|
||||||
}
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
.root {
|
|
||||||
width: 520px;
|
.root {
|
||||||
padding: 12px;
|
width: 560px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
/* ── Header ── */
|
||||||
display: flex;
|
header {
|
||||||
align-items: center;
|
background: var(--panel);
|
||||||
justify-content: space-between;
|
display: flex;
|
||||||
margin-bottom: 8px;
|
align-items: center;
|
||||||
}
|
justify-content: space-between;
|
||||||
|
padding: 13px 20px;
|
||||||
header h1 { font-size: 16px; margin: 0; }
|
border-bottom: 1px solid var(--border);
|
||||||
|
}
|
||||||
header .actions button {
|
|
||||||
background: transparent;
|
header h1 {
|
||||||
border: 1px solid var(--muted);
|
font-size: 14px;
|
||||||
color: var(--text);
|
font-weight: 700;
|
||||||
padding: 4px 8px;
|
margin: 0;
|
||||||
border-radius: 6px;
|
letter-spacing: 0.03em;
|
||||||
cursor: pointer;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
header .actions { display: flex; gap: 7px; }
|
||||||
display: flex;
|
|
||||||
gap: 12px;
|
header .actions button {
|
||||||
position: relative;
|
background: rgba(255,255,255,0.07);
|
||||||
align-items: flex-start;
|
border: 1px solid rgba(255,255,255,0.1);
|
||||||
}
|
color: var(--muted2);
|
||||||
|
border-radius: 7px;
|
||||||
.server-list {
|
width: 32px; height: 32px;
|
||||||
width: 45%;
|
cursor: pointer;
|
||||||
background: var(--panel);
|
font-size: 16px;
|
||||||
padding: 8px;
|
display: flex; align-items: center; justify-content: center;
|
||||||
border-radius: var(--radius);
|
transition: background 0.15s, color 0.15s;
|
||||||
flex-shrink: 0;
|
}
|
||||||
}
|
|
||||||
|
header .actions button:hover {
|
||||||
.detail {
|
background: rgba(255,255,255,0.12);
|
||||||
flex: 1;
|
color: #fff;
|
||||||
background: var(--panel);
|
}
|
||||||
padding: 8px;
|
|
||||||
border-radius: var(--radius);
|
/* ── Main layout ── */
|
||||||
min-height: 220px;
|
.main {
|
||||||
transition: all 0.3s ease;
|
display: flex;
|
||||||
}
|
flex-direction: column;
|
||||||
|
}
|
||||||
.detail.full-width {
|
|
||||||
width: 100%;
|
/* ── Settings / add-form panel ── */
|
||||||
flex: 1 1 100%;
|
.settings-panel {
|
||||||
}
|
background: var(--panel2);
|
||||||
|
border-bottom: 1px solid var(--border);
|
||||||
.add-form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
|
padding: 14px 20px;
|
||||||
.add-form input { padding: 6px 8px; border-radius: 6px; border: 1px solid #21303b; background: #071019; color: var(--text); }
|
display: flex;
|
||||||
.add-form button { padding: 6px 8px; border-radius: 6px; border: none; background: var(--accent); color: white; cursor: pointer; }
|
flex-direction: column;
|
||||||
|
gap: 8px;
|
||||||
#serversContainer {
|
}
|
||||||
list-style: none;
|
|
||||||
margin: 0;
|
.settings-panel input {
|
||||||
padding: 0;
|
padding: 8px 12px;
|
||||||
}
|
border-radius: 7px;
|
||||||
|
border: 1px solid rgba(255,255,255,0.09);
|
||||||
.server-item {
|
background: rgba(0,0,0,0.3);
|
||||||
display: flex;
|
color: var(--text);
|
||||||
align-items: center;
|
font-size: 13px;
|
||||||
justify-content: space-between;
|
outline: none;
|
||||||
padding: 8px;
|
}
|
||||||
margin-bottom: 6px;
|
|
||||||
border-radius: 6px;
|
.settings-panel input:focus {
|
||||||
cursor: pointer;
|
border-color: var(--accent);
|
||||||
background: rgba(255,255,255,0.02);
|
}
|
||||||
transition: background 0.2s ease;
|
|
||||||
}
|
.settings-panel button {
|
||||||
|
padding: 8px 12px;
|
||||||
.server-item:hover { background: rgba(255,255,255,0.05); }
|
border-radius: 7px;
|
||||||
.server-item .meta { display: flex; flex-direction: column; }
|
border: none;
|
||||||
.server-item .meta .name { font-weight: 600; }
|
background: var(--accent);
|
||||||
.server-item .meta .url { font-size: 11px; color: var(--muted); }
|
color: white;
|
||||||
|
font-size: 13px;
|
||||||
.server-item .status-bubble {
|
font-weight: 600;
|
||||||
font-size: 11px;
|
cursor: pointer;
|
||||||
padding: 2px 8px;
|
}
|
||||||
border-radius: 999px;
|
|
||||||
color: #fff;
|
/* ── Server list ── */
|
||||||
}
|
.server-list-panel {
|
||||||
|
background: var(--panel2);
|
||||||
.placeholder { color: var(--muted); padding: 12px; font-size: 13px; }
|
border-bottom: 1px solid var(--border);
|
||||||
.hidden { display: none; }
|
padding: 10px 12px;
|
||||||
|
}
|
||||||
.detail-header {
|
|
||||||
display: flex;
|
#serversContainer {
|
||||||
justify-content: space-between;
|
list-style: none;
|
||||||
align-items: center;
|
margin: 0; padding: 0;
|
||||||
margin-bottom: 12px;
|
display: flex;
|
||||||
}
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
.server-identity h2 { margin: 0; font-size: 18px; line-height: 1.2; }
|
}
|
||||||
.server-url { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
|
|
||||||
|
.server-item {
|
||||||
.status-wrapper {
|
display: flex;
|
||||||
display: flex;
|
align-items: center;
|
||||||
align-items: center;
|
justify-content: space-between;
|
||||||
gap: 8px;
|
padding: 9px 12px;
|
||||||
font-weight: 600;
|
border-radius: 8px;
|
||||||
font-size: 13px;
|
cursor: pointer;
|
||||||
}
|
background: transparent;
|
||||||
|
border: 1px solid transparent;
|
||||||
.pulsing-dot {
|
transition: background 0.15s, border-color 0.15s;
|
||||||
width: 10px; height: 10px; border-radius: 50%;
|
}
|
||||||
background-color: var(--offline);
|
|
||||||
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
|
.server-item:hover { background: rgba(255,255,255,0.04); }
|
||||||
animation: pulse-red 2s infinite;
|
.server-item.selected { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.25); }
|
||||||
}
|
|
||||||
.pulsing-dot.online {
|
.server-item .meta { display: flex; flex-direction: column; gap: 2px; }
|
||||||
background-color: var(--online);
|
.server-item .meta .name { font-size: 13px; font-weight: 600; color: #fff; }
|
||||||
animation: pulse-green 2s infinite;
|
.server-item .meta .url { font-size: 11px; color: var(--muted); }
|
||||||
}
|
|
||||||
|
.status-bubble {
|
||||||
@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);} }
|
font-size: 11px;
|
||||||
@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);} }
|
font-weight: 600;
|
||||||
|
padding: 3px 10px;
|
||||||
.detail-stats {
|
border-radius: 999px;
|
||||||
display: flex;
|
color: #fff;
|
||||||
justify-content: space-between;
|
background: transparent;
|
||||||
background: rgba(255,255,255,0.05);
|
}
|
||||||
padding: 10px;
|
|
||||||
border-radius: var(--radius);
|
/* ── Detail panel ── */
|
||||||
margin-bottom: 12px;
|
.detail-panel {
|
||||||
font-size: 13px;
|
padding: 18px 20px;
|
||||||
}
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
.playerList {
|
gap: 16px;
|
||||||
list-style: none;
|
min-height: 200px;
|
||||||
padding: 10px 0;
|
}
|
||||||
margin: 0;
|
|
||||||
display: flex;
|
.placeholder {
|
||||||
flex-wrap: wrap;
|
color: var(--muted);
|
||||||
gap: 12px;
|
font-size: 13px;
|
||||||
justify-content: center; /* Das hier setzt die Köpfe wieder in die Mitte */
|
padding: 24px 0;
|
||||||
}
|
text-align: center;
|
||||||
|
}
|
||||||
.player-item {
|
|
||||||
position: relative;
|
/* Server identity + online badge */
|
||||||
display: flex;
|
.srv-identity {
|
||||||
flex-direction: column;
|
display: flex;
|
||||||
align-items: center;
|
justify-content: space-between;
|
||||||
}
|
align-items: flex-start;
|
||||||
|
}
|
||||||
.player-avatar {
|
|
||||||
width: 42px; height: 42px;
|
.srv-name { font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 4px; }
|
||||||
border-radius: 6px;
|
.srv-url { font-size: 12px; color: var(--muted); }
|
||||||
transition: transform 0.2s ease;
|
|
||||||
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
|
.online-badge {
|
||||||
border: 2px solid rgba(255,255,255,0.1);
|
display: flex;
|
||||||
}
|
align-items: center;
|
||||||
|
gap: 7px;
|
||||||
.player-avatar:hover {
|
border-radius: 999px;
|
||||||
transform: scale(1.1);
|
padding: 5px 14px;
|
||||||
border-color: var(--accent);
|
font-size: 13px;
|
||||||
}
|
font-weight: 600;
|
||||||
|
}
|
||||||
.player-hover-info {
|
|
||||||
position: absolute;
|
.online-badge.online {
|
||||||
bottom: -28px;
|
background: rgba(34,197,94,0.12);
|
||||||
background: rgba(0, 0, 0, 0.95);
|
border: 1px solid rgba(34,197,94,0.25);
|
||||||
color: white;
|
color: #4ade80;
|
||||||
padding: 3px 10px;
|
}
|
||||||
border-radius: 4px;
|
|
||||||
font-size: 11px;
|
.online-badge.offline {
|
||||||
white-space: nowrap;
|
background: rgba(239,68,68,0.1);
|
||||||
pointer-events: none;
|
border: 1px solid rgba(239,68,68,0.2);
|
||||||
opacity: 0;
|
color: #f87171;
|
||||||
transform: translateY(5px);
|
}
|
||||||
transition: all 0.2s ease;
|
|
||||||
z-index: 100;
|
.pulsing-dot {
|
||||||
border: 1px solid rgba(255,255,255,0.2);
|
width: 7px; height: 7px;
|
||||||
}
|
border-radius: 50%;
|
||||||
|
flex-shrink: 0;
|
||||||
.player-item:hover .player-hover-info {
|
}
|
||||||
opacity: 1;
|
|
||||||
transform: translateY(0);
|
.pulsing-dot.online {
|
||||||
}
|
background: var(--online);
|
||||||
|
animation: pulse-green 2s infinite;
|
||||||
.detailButtons { display: flex; gap: 8px; margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; }
|
}
|
||||||
.detailButtons button { padding: 6px 12px; border-radius: 6px; border: none; cursor: pointer; font-size: 12px; font-weight: 600; }
|
|
||||||
#btnEdit { background: #f59e0b; color: #000; }
|
.pulsing-dot.offline {
|
||||||
#btnDelete { background: var(--danger); color: #fff; }
|
background: var(--offline);
|
||||||
|
animation: pulse-red 2s infinite;
|
||||||
::-webkit-scrollbar { width: 6px; }
|
}
|
||||||
::-webkit-scrollbar-track { background: transparent; }
|
|
||||||
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
|
@keyframes pulse-green {
|
||||||
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
|
0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
|
||||||
|
50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
|
||||||
|
}
|
||||||
|
@keyframes pulse-red {
|
||||||
|
0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
|
||||||
|
50% { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* MOTD */
|
||||||
|
.motd-bar {
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--muted2);
|
||||||
|
background: rgba(255,255,255,0.03);
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 8px 14px;
|
||||||
|
border-left: 2px solid rgba(59,130,246,0.35);
|
||||||
|
font-style: italic;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Stats row – 3 gleich breite Karten */
|
||||||
|
.stats-row {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr 1fr;
|
||||||
|
gap: 10px;
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-card {
|
||||||
|
background: var(--panel);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: var(--radius);
|
||||||
|
padding: 12px 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-label {
|
||||||
|
font-size: 10px;
|
||||||
|
color: var(--muted);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-val {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #fff;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-val.small {
|
||||||
|
font-size: 12px;
|
||||||
|
padding-top: 4px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: var(--muted2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Section label */
|
||||||
|
.section-label {
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--muted);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
margin-bottom: 9px;
|
||||||
|
padding-top: 6px;
|
||||||
|
border-top: 1px solid var(--border);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sub-server chips – immer 3 pro Zeile */
|
||||||
|
.sub-servers {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-chip {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 7px;
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 8px 12px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 600;
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
background: var(--panel);
|
||||||
|
color: var(--muted2);
|
||||||
|
cursor: default;
|
||||||
|
transition: background 0.15s;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-chip.active {
|
||||||
|
background: rgba(59,130,246,0.1);
|
||||||
|
border-color: rgba(59,130,246,0.3);
|
||||||
|
color: #93c5fd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-chip-dot {
|
||||||
|
width: 7px; height: 7px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: #2a3040;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-chip.active .sub-chip-dot {
|
||||||
|
background: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-chip-name {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-chip-count {
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 500;
|
||||||
|
opacity: 0.65;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-left: auto;
|
||||||
|
padding-left: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Players grid – 2 Spalten */
|
||||||
|
.players-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.player-card {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
background: var(--panel);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: var(--radius);
|
||||||
|
padding: 10px 14px;
|
||||||
|
transition: background 0.15s;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.player-card:hover {
|
||||||
|
background: rgba(255,255,255,0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.player-avatar {
|
||||||
|
width: 40px; height: 40px;
|
||||||
|
border-radius: 7px;
|
||||||
|
border: 1px solid rgba(255,255,255,0.1);
|
||||||
|
flex-shrink: 0;
|
||||||
|
image-rendering: pixelated;
|
||||||
|
}
|
||||||
|
|
||||||
|
.player-info { flex: 1; min-width: 0; }
|
||||||
|
|
||||||
|
.player-name {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--text);
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.player-prefix {
|
||||||
|
font-size: 11px;
|
||||||
|
color: var(--muted2);
|
||||||
|
margin-bottom: 2px;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.player-server-tag {
|
||||||
|
display: inline-block;
|
||||||
|
margin-top: 3px;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 600;
|
||||||
|
background: rgba(59,130,246,0.18);
|
||||||
|
color: #93c5fd;
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 2px 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Edit/Delete buttons */
|
||||||
|
.detail-buttons {
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
padding-top: 10px;
|
||||||
|
border-top: 1px solid var(--border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-buttons button {
|
||||||
|
padding: 7px 16px;
|
||||||
|
border-radius: 7px;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
#btnEdit { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
|
||||||
|
#btnDelete { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
|
||||||
|
|
||||||
|
.hidden { display: none !important; }
|
||||||
|
|
||||||
|
::-webkit-scrollbar { width: 5px; }
|
||||||
|
::-webkit-scrollbar-track { background: transparent; }
|
||||||
|
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
|
||||||
|
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
|
||||||
|
|||||||
Reference in New Issue
Block a user