From 111158967fa49dc6c8a8eed78343b7cb61e828ff Mon Sep 17 00:00:00 2001 From: M_Viper Date: Mon, 9 Feb 2026 21:05:50 +0000 Subject: [PATCH] Upload popup.css via GUI --- BungeeCord-Chrome/popup.css | 287 ++++++++++++++++++------------------ 1 file changed, 142 insertions(+), 145 deletions(-) diff --git a/BungeeCord-Chrome/popup.css b/BungeeCord-Chrome/popup.css index b2dffac..7855d08 100644 --- a/BungeeCord-Chrome/popup.css +++ b/BungeeCord-Chrome/popup.css @@ -10,34 +10,63 @@ --offline: #ef4444; } -* { 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; } +* { box-sizing: border-box; } -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; } +html, body { + margin: 0; + 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 { - display:flex; - gap:12px; + display: flex; + gap: 12px; position: relative; + align-items: flex-start; } .server-list { - width:45%; - background:var(--panel); - padding:8px; - border-radius:var(--radius); + width: 45%; + background: var(--panel); + padding: 8px; + border-radius: var(--radius); flex-shrink: 0; } .detail { - flex:1; - background:var(--panel); - padding:8px; - border-radius:var(--radius); - min-height:220px; + flex: 1; + background: var(--panel); + padding: 8px; + border-radius: var(--radius); + min-height: 220px; transition: all 0.3s ease; } @@ -46,175 +75,143 @@ header .actions button { background:transparent; border:1px solid var(--muted); flex: 1 1 100%; } -.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 button { padding:6px 8px; border-radius:6px; border:none; background:var(--accent); color:white; cursor:pointer; } +.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 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 { - display:flex; - align-items:center; - justify-content:space-between; - padding:6px; - margin-bottom:6px; - border-radius:6px; - cursor:pointer; + display: flex; + align-items: center; + justify-content: space-between; + padding: 8px; + margin-bottom: 6px; + border-radius: 6px; + cursor: pointer; background: rgba(255,255,255,0.02); transition: background 0.2s ease; } .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 { - font-size:12px; - padding:3px 6px; - border-radius:999px; - color:#fff; - transition: background-color 0.3s ease; + font-size: 11px; + padding: 2px 8px; + border-radius: 999px; + color: #fff; } -.placeholder { color:var(--muted); padding:12px; } -.hidden { display:none; } +.placeholder { color: var(--muted); padding: 12px; font-size: 13px; } +.hidden { display: none; } -/* --- Detail Header (Zeile 1) --- */ .detail-header { - display: flex; - justify-content: space-between; - align-items: center; - margin-bottom: 8px; + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 12px; } -.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-identity h2 { margin: 0; font-size: 18px; line-height: 1.2; } +.server-url { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; } .status-wrapper { - display: flex; - align-items: center; - gap: 8px; - font-weight: 600; + display: flex; + align-items: center; + gap: 8px; + font-weight: 600; + font-size: 13px; } -/* --- 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; + width: 10px; height: 10px; border-radius: 50%; + background-color: var(--offline); + 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; + background-color: var(--online); + 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-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);} } +@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);} } -@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; + display: flex; + 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-left:16px; - max-height:140px; - overflow:auto; - margin:6px 0; - display:flex; - flex-wrap:wrap; - gap:8px; + 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 */ } -.playerList li { - display:flex; - align-items:center; - gap:4px; - font-size:13px; - color:var(--text); +.player-item { + position: relative; + display: flex; + flex-direction: column; + align-items: center; } .player-avatar { - width:24px; - height:24px; - border-radius:4px; + width: 42px; height: 42px; + border-radius: 6px; 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); } - -.detailButtons { - display:flex; - gap:8px; - margin-top:8px; - transition: opacity 0.3s ease; +.player-avatar:hover { + transform: scale(1.1); + border-color: var(--accent); } -.detailButtons button { - padding:6px 8px; - border-radius:6px; - border:none; - cursor:pointer; - transition: opacity 0.2s ease, transform 0.1s ease; +.player-hover-info { + position: absolute; + bottom: -28px; + background: rgba(0, 0, 0, 0.95); + color: white; + 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); } -.detailButtons button:active { transform: translateY(0); } - -#btnEdit { background: #f59e0b; color:#000; } -#btnDelete { background: var(--danger); color:#fff; } - -#serversContainer::-webkit-scrollbar, -.playerList::-webkit-scrollbar { - width: 6px; +.player-item:hover .player-hover-info { + opacity: 1; + transform: translateY(0); } -#serversContainer::-webkit-scrollbar-track, -.playerList::-webkit-scrollbar-track { - background: rgba(255,255,255,0.05); - border-radius: 3px; -} +.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; } +#btnDelete { background: var(--danger); color: #fff; } -#serversContainer::-webkit-scrollbar-thumb, -.playerList::-webkit-scrollbar-thumb { - background: var(--muted); - border-radius: 3px; -} - -#serversContainer::-webkit-scrollbar-thumb:hover, -.playerList::-webkit-scrollbar-thumb:hover { - background: var(--accent); -} \ No newline at end of file +::-webkit-scrollbar { width: 6px; } +::-webkit-scrollbar-track { background: transparent; } +::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; } +::-webkit-scrollbar-thumb:hover { background: var(--accent); } \ No newline at end of file