Sektor-Browser
This commit is contained in:
@@ -611,3 +611,149 @@ body, html {
|
||||
}
|
||||
}
|
||||
|
||||
/* Haupt-Container für die Sektor-Auswahl */
|
||||
#sector-browser-layer {
|
||||
position: absolute;
|
||||
width: 1240px; /* Breit genug für 4 Karten nebeneinander */
|
||||
height: 650px;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
/* Der Scale wird jetzt dynamisch von JS gesteuert! */
|
||||
transform: translate(-50%, -50%);
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
/* Positionierung der Sektor-Tabs */
|
||||
#sector-tab-container {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
|
||||
/* Flexbox übernimmt das automatische Zentrieren */
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
/* Wir überschreiben die festen Koordinaten vom Login-Screen */
|
||||
#sector-tab-container .tab-btn {
|
||||
position: relative;
|
||||
left: 0 !important;
|
||||
top: 0 !important;
|
||||
}
|
||||
|
||||
#tab-my-sectors { left: 45px; }
|
||||
#tab-new-sectors { left: 235px; }
|
||||
|
||||
/* Grid-Bereich für die Sektor-Karten (Scrollbar bei Überlauf) */
|
||||
#sector-list-container {
|
||||
position: absolute;
|
||||
top: 80px;
|
||||
width: 100%;
|
||||
height: 540px;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden; /* NEU: Verhindert horizontales Scrollen strikt */
|
||||
|
||||
/* KORREKTUR: Von 45px auf 40px reduziert, damit wir bei exakt 1235px landen */
|
||||
padding: 20px 40px;
|
||||
box-sizing: border-box;
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 270px);
|
||||
gap: 20px 25px;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
/* Styling der einzelnen Sektor-Karte als vollwertiger Link */
|
||||
.sector-card-link {
|
||||
display: block;
|
||||
width: 270px;
|
||||
height: 90px;
|
||||
text-decoration: none;
|
||||
color: var(--color-text-main);
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Flex-Layout für den Inhalt der Karte */
|
||||
.sector-card-content {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 15px 25px;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* Zeile 1: Name, Lupe und Status */
|
||||
.sector-row-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
/* Das Unicode-Lupen-Symbol mit speziellem Hover-Effekt */
|
||||
.sector-details-icon {
|
||||
font-size: 14px;
|
||||
color: var(--color-text-inactive);
|
||||
transition: transform 0.2s ease, color 0.2s ease;
|
||||
}
|
||||
|
||||
/* Bei Hover rotiert und leuchtet die Lupe leicht auf */
|
||||
.sector-card-link:hover .sector-details-icon {
|
||||
color: var(--color-cyan-bright);
|
||||
transform: scale(1.2) rotate(10deg);
|
||||
}
|
||||
|
||||
/* Status-Anzeige (Online / Wartung) */
|
||||
.sector-status {
|
||||
margin-left: auto; /* Schiebt den Status ganz nach rechts */
|
||||
font-size: 14px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
.status-online {
|
||||
color: var(--color-green-bright);
|
||||
text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
|
||||
}
|
||||
.status-maintenance {
|
||||
color: var(--color-error);
|
||||
text-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
|
||||
}
|
||||
|
||||
/* Zeile 2: Spieleranzahl & Planetenanzahl */
|
||||
.sector-row-mid {
|
||||
display: flex;
|
||||
gap: 30px;
|
||||
font-size: 13px;
|
||||
color: var(--color-text-placeholder);
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
/* Zeile 3: Lokaler Username (falls vorhanden) */
|
||||
.sector-row-bottom {
|
||||
font-size: 12px;
|
||||
color: var(--color-cyan-bright);
|
||||
margin-top: 4px;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Custom Scrollbar für die Sektor-Liste im Sci-Fi Look */
|
||||
#sector-list-container::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
height: 6px; /* NEU: Falls je wieder ein x-Scrollbar auftaucht, ist er wenigstens nur 6px hoch */
|
||||
}
|
||||
#sector-list-container::-webkit-scrollbar-track {
|
||||
background: rgba(11, 25, 44, 0.3);
|
||||
}
|
||||
#sector-list-container::-webkit-scrollbar-thumb {
|
||||
background: var(--color-cyan-dark);
|
||||
border-radius: 3px;
|
||||
}
|
||||
Reference in New Issue
Block a user