feat(map): Implement interactive area overlays
This major update introduces a complete system for visualizing protected areas on the OpenLayers map. It adds a new sync script to process area data and heavily modifies the frontend to support interactive, multi-layer display with custom popups. Additionally, data-sync scripts were refactored to run globally on all configured worlds, simplifying cron automation.
This commit is contained in:
parent
fa94f0e23d
commit
a225feef98
11 changed files with 568 additions and 687 deletions
|
|
@ -96,7 +96,7 @@ a.world-preview:hover {
|
|||
.online-status-badge { font-size: 0.8em; padding: 3px 8px; border-radius: 10px; color: white !important; margin-left: 10px; }
|
||||
.online-status-badge.online { background-color: #3E8E41; }
|
||||
.online-status-badge.offline { background-color: #C0392B; }
|
||||
.online-status-badge.unknown { background-color: #808080; } /* HINZUGEFÜGT */
|
||||
.online-status-badge.unknown { background-color: #808080; }
|
||||
|
||||
/* Welt-Detailseite */
|
||||
.page-nav-buttons { text-align: right; margin-top: 10px; margin-bottom: 15px; }
|
||||
|
|
@ -114,68 +114,17 @@ a.world-preview:hover {
|
|||
.map-sub-info .map-last-update { text-align: right; }
|
||||
.info-box { background-color: #3a3a3a; border: 1px solid #555; padding: 15px; margin-bottom: 20px; border-left: 5px solid #FFD700; border-radius: 3px;}
|
||||
.info-box h3 { margin-top: 0; border-bottom: none; padding-bottom: 0.2em; }
|
||||
|
||||
/* Admin Sektion */
|
||||
.admin-section h3 { margin-top: 2.5em !important; }
|
||||
.admin-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 15px;
|
||||
}
|
||||
.admin-box {
|
||||
background-color: #303030;
|
||||
padding: 15px;
|
||||
border-radius: 5px;
|
||||
border: 1px solid #4a4a4a;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 1;
|
||||
flex-basis: calc(50% - 8px);
|
||||
box-sizing: border-box;
|
||||
min-width: 280px;
|
||||
}
|
||||
.admin-grid { display: flex; flex-wrap: wrap; gap: 15px; }
|
||||
.admin-box { background-color: #303030; padding: 15px; border-radius: 5px; border: 1px solid #4a4a4a; flex-grow: 0; flex-shrink: 1; flex-basis: calc(50% - 8px); box-sizing: border-box; min-width: 280px; }
|
||||
.admin-contact-block { display: flex; align-items: center; }
|
||||
.admin-skin-icon { width: 48px; height: 48px; margin-right: 15px; border: 1px solid #666; border-radius: 3px; flex-shrink: 0;}
|
||||
.admin-text-details p { margin: 0.2em 0; }
|
||||
.admin-player-name { font-weight: bold; color: #FFD700; font-size: 1.1em; }
|
||||
.contact-links {
|
||||
margin-top: 10px;
|
||||
padding-top: 10px;
|
||||
border-top: 1px solid #555;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.contact-button {
|
||||
background-color: #555;
|
||||
color: #ddd;
|
||||
border: 1px solid #666;
|
||||
padding: 3px 8px;
|
||||
font-size: 0.85em;
|
||||
border-radius: 3px;
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
}
|
||||
.contact-button:hover {
|
||||
background-color: #666;
|
||||
color: #FFA500;
|
||||
text-decoration: none;
|
||||
}
|
||||
.contact-links a[data-title]:hover::after {
|
||||
content: attr(data-title);
|
||||
position: absolute;
|
||||
background-color: #222;
|
||||
color: #fff;
|
||||
padding: 3px 7px;
|
||||
border-radius: 3px;
|
||||
font-size: 0.7rem;
|
||||
white-space: nowrap;
|
||||
z-index: 100;
|
||||
left: 50%;
|
||||
bottom: 125%;
|
||||
transform: translateX(-50%);
|
||||
border: 1px solid #555;
|
||||
}
|
||||
|
||||
.contact-links { margin-top: 10px; padding-top: 10px; border-top: 1px solid #555; display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
.contact-button { background-color: #555; color: #ddd; border: 1px solid #666; padding: 3px 8px; font-size: 0.85em; border-radius: 3px; text-decoration: none; position: relative; }
|
||||
.contact-button:hover { background-color: #666; color: #FFA500; text-decoration: none; }
|
||||
.contact-links a[data-title]:hover::after { content: attr(data-title); position: absolute; background-color: #222; color: #fff; padding: 3px 7px; border-radius: 3px; font-size: 0.7rem; white-space: nowrap; z-index: 100; left: 50%; bottom: 125%; transform: translateX(-50%); border: 1px solid #555; }
|
||||
.server-details p { margin: 0.5em 0; display: flex; align-items: center;} .server-details strong { min-width: 120px; display: inline-block; flex-shrink: 0;}
|
||||
.status-text-colored.online { color: #7CFC00; font-weight: bold; }
|
||||
.status-text-colored.offline { color: #FF4500; font-weight: bold; }
|
||||
|
|
@ -184,16 +133,7 @@ a.world-preview:hover {
|
|||
.copy-button:hover { background: #666; }
|
||||
.player-list-container { margin-top: 1em; }
|
||||
.player-list-grid { display: flex; flex-wrap: wrap; gap: 15px; box-sizing: border-box; }
|
||||
.player-box {
|
||||
background-color: #303030;
|
||||
border: 1px solid #555;
|
||||
border-radius: 5px;
|
||||
padding: 10px;
|
||||
width: calc((100% - 30px) / 3);
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.player-box { background-color: #303030; border: 1px solid #555; border-radius: 5px; padding: 10px; width: calc((100% - 30px) / 3); box-sizing: border-box; display: flex; flex-direction: column; }
|
||||
.player-box.has-server-priv { border-left: 5px solid #FFD700; }
|
||||
.player-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
|
||||
.player-identity { display: flex; align-items: center; }
|
||||
|
|
@ -201,22 +141,12 @@ a.world-preview:hover {
|
|||
.player-icon { width: 40px; height: 40px; margin-right: 10px; border: 1px solid #666; border-radius: 3px; flex-shrink: 0;}
|
||||
.player-name-status { display: flex; align-items: center; }
|
||||
.player-name { font-weight: bold; margin-left: 5px; color: #FFD700; }
|
||||
.privilege-separator {
|
||||
height: 1px;
|
||||
background-color: #555;
|
||||
border: 0;
|
||||
margin: 8px 0;
|
||||
}
|
||||
.privilege-separator { height: 1px; background-color: #555; border: 0; margin: 8px 0; }
|
||||
.player-attributes { font-size: 0.9em; line-height: 1.5; }
|
||||
.player-attributes .icon { margin-right: 8px; cursor: help; font-size: 1.2em; }
|
||||
.player-attributes .icon.privilege { opacity: 0.15; }
|
||||
.player-attributes .icon.privilege.active { opacity: 1; }
|
||||
.player-attributes .icon[data-title]:hover::after, .status-dot[data-title]:hover::after, .player-vitals .icon[data-title]:hover::after {
|
||||
content: attr(data-title); position: absolute; background-color: #222; color: #fff;
|
||||
padding: 3px 7px; border-radius: 3px; font-size: 0.85em; white-space: nowrap;
|
||||
z-index: 100; margin-left: 5px; transform: translateY(-28px);
|
||||
border: 1px solid #555;
|
||||
}
|
||||
.player-attributes .icon[data-title]:hover::after, .status-dot[data-title]:hover::after, .player-vitals .icon[data-title]:hover::after { content: attr(data-title); position: absolute; background-color: #222; color: #fff; padding: 3px 7px; border-radius: 3px; font-size: 0.85em; white-space: nowrap; z-index: 100; margin-left: 5px; transform: translateY(-28px); border: 1px solid #555; }
|
||||
footer { text-align: center; margin-top: 30px; padding: 20px; background-color: #222; color: #aaa; border-top: 2px solid #4A2E0A;}
|
||||
.scrollable-mod-list { max-height: 20em; overflow-y: auto; border: 1px solid #555; padding: 10px; background-color: #303030; margin-top: 0.5em; border-radius: 3px; }
|
||||
ul.mod-list, ul.mod-list ul { list-style-type: none; padding-left: 20px; } ul.mod-list > li { margin-bottom: 0.5em; }
|
||||
|
|
@ -236,315 +166,50 @@ ul.mod-list > li > ul > li { font-size: 0.9em; }
|
|||
.archive-image-container img { max-width: 100%; border: 1px solid #666; background-color: #222; }
|
||||
.archive-image-container p { color: #aaa; }
|
||||
/* Stile für responsive Navigation & Burger-Menü */
|
||||
.responsive-nav {
|
||||
position: relative;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.burger-menu {
|
||||
display: none;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background-color: #555;
|
||||
border: 1px solid #666;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
padding: 8px;
|
||||
box-sizing: border-box;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: 101;
|
||||
}
|
||||
.burger-menu:hover {
|
||||
background-color: #666;
|
||||
}
|
||||
.burger-menu span {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
background-color: #FFA500;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.responsive-nav { position: relative; margin-bottom: 15px; }
|
||||
.burger-menu { display: none; width: 40px; height: 40px; background-color: #555; border: 1px solid #666; border-radius: 5px; cursor: pointer; flex-direction: column; justify-content: space-around; align-items: center; padding: 8px; box-sizing: border-box; position: absolute; top: 0; right: 0; z-index: 101; }
|
||||
.burger-menu:hover { background-color: #666; }
|
||||
.burger-menu span { display: block; width: 100%; height: 3px; background-color: #FFA500; border-radius: 3px; }
|
||||
/* Stile für Live/Archiv Umschalter */
|
||||
.section-header-flex {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.map-toggle-controls {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
}
|
||||
.map-toggle-button {
|
||||
background-color: #555;
|
||||
color: #ddd;
|
||||
border: 1px solid #666;
|
||||
padding: 3px 8px;
|
||||
font-size: 0.85em;
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.map-toggle-button:hover {
|
||||
background-color: #666;
|
||||
}
|
||||
.map-toggle-button.active {
|
||||
color: #FFA500;
|
||||
border-color: #FFA500;
|
||||
font-weight: bold;
|
||||
}
|
||||
.section-header-flex { display: flex; justify-content: space-between; align-items: center; }
|
||||
.map-toggle-controls { display: flex; gap: 5px; }
|
||||
.map-toggle-button { background-color: #555; color: #ddd; border: 1px solid #666; padding: 3px 8px; font-size: 0.85em; border-radius: 3px; cursor: pointer; }
|
||||
.map-toggle-button:hover { background-color: #666; }
|
||||
.map-toggle-button.active { color: #FFA500; border-color: #FFA500; font-weight: bold; }
|
||||
/* Spielerliste Filter */
|
||||
.filter-container {
|
||||
position: relative;
|
||||
}
|
||||
.filter-dropdown-btn {
|
||||
background-color: #555;
|
||||
color: #ddd;
|
||||
border: 1px solid #666;
|
||||
padding: 3px 8px;
|
||||
font-size: 0.85em;
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.filter-dropdown-btn:hover {
|
||||
background-color: #666;
|
||||
}
|
||||
.filter-dropdown {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
right: 0;
|
||||
background-color: #3a3a3a;
|
||||
border: 1px solid #666;
|
||||
border-radius: 5px;
|
||||
padding: 10px;
|
||||
z-index: 100;
|
||||
min-width: 220px;
|
||||
box-shadow: 0 4px 8px rgba(0,0,0,0.5);
|
||||
}
|
||||
.filter-dropdown.show {
|
||||
display: block;
|
||||
}
|
||||
.filter-option {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 8px;
|
||||
cursor: pointer;
|
||||
font-size: 0.9em;
|
||||
font-weight: normal;
|
||||
color: #ddd;
|
||||
}
|
||||
.filter-option:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.filter-option input[type="checkbox"] {
|
||||
margin-right: 8px;
|
||||
}
|
||||
.filter-option .icon {
|
||||
font-size: 1.2em;
|
||||
width: 20px;
|
||||
text-align: center;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.filter-option .status-dot {
|
||||
margin-left: 0;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.filter-container { position: relative; }
|
||||
.filter-dropdown-btn { background-color: #555; color: #ddd; border: 1px solid #666; padding: 3px 8px; font-size: 0.85em; border-radius: 3px; cursor: pointer; }
|
||||
.filter-dropdown-btn:hover { background-color: #666; }
|
||||
.filter-dropdown { display: none; position: absolute; top: 100%; right: 0; background-color: #3a3a3a; border: 1px solid #666; border-radius: 5px; padding: 10px; z-index: 100; min-width: 220px; box-shadow: 0 4px 8px rgba(0,0,0,0.5); }
|
||||
.filter-dropdown.show { display: block; }
|
||||
.filter-option { display: flex; align-items: center; margin-bottom: 8px; cursor: pointer; font-size: 0.9em; font-weight: normal; color: #ddd; }
|
||||
.filter-option:last-child { margin-bottom: 0; }
|
||||
.filter-option input[type="checkbox"] { margin-right: 8px; }
|
||||
.filter-option .icon { font-size: 1.2em; width: 20px; text-align: center; margin-right: 8px; }
|
||||
.filter-option .status-dot { margin-left: 0; margin-right: 8px; }
|
||||
/* Stile für "Weiterlesen"-Funktion */
|
||||
.collapsible-text {
|
||||
max-height: 250px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
transition: max-height 0.5s ease-in-out;
|
||||
}
|
||||
.collapsible-text.expanded {
|
||||
max-height: 10000px;
|
||||
}
|
||||
.collapsible-text::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 80px;
|
||||
background: linear-gradient(to bottom, rgba(68, 68, 68, 0), rgba(68, 68, 68, 1) 100%);
|
||||
pointer-events: none;
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
.collapsible-text.expanded::after {
|
||||
opacity: 0;
|
||||
}
|
||||
.read-more-container {
|
||||
text-align: right;
|
||||
margin-top: 5px;
|
||||
}
|
||||
a.read-more-link {
|
||||
font-size: 0.9em;
|
||||
font-weight: bold;
|
||||
}
|
||||
.collapsible-text { max-height: 250px; overflow: hidden; position: relative; transition: max-height 0.5s ease-in-out; }
|
||||
.collapsible-text.expanded { max-height: 10000px; }
|
||||
.collapsible-text::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to bottom, rgba(68, 68, 68, 0), rgba(68, 68, 68, 1) 100%); pointer-events: none; transition: opacity 0.3s; }
|
||||
.collapsible-text.expanded::after { opacity: 0; }
|
||||
.read-more-container { text-align: right; margin-top: 5px; }
|
||||
a.read-more-link { font-size: 0.9em; font-weight: bold; }
|
||||
/* Schließen-Button (X) */
|
||||
.close-button-container {
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
right: 15px;
|
||||
z-index: 10;
|
||||
}
|
||||
.close-button {
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background-color: #555;
|
||||
color: #ddd;
|
||||
border: 1px solid #666;
|
||||
border-radius: 50%;
|
||||
text-decoration: none;
|
||||
font-size: 1em;
|
||||
line-height: 1;
|
||||
}
|
||||
.close-button:hover {
|
||||
background-color: #C0392B;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
.close-button-container { position: absolute; top: 15px; right: 15px; z-index: 10; }
|
||||
.close-button { display: inline-flex; justify-content: center; align-items: center; width: 30px; height: 30px; background-color: #555; color: #ddd; border: 1px solid #666; border-radius: 50%; text-decoration: none; font-size: 1em; line-height: 1; }
|
||||
.close-button:hover { background-color: #C0392B; color: white; text-decoration: none; }
|
||||
/* Stile für "Nach oben"-Button */
|
||||
.scroll-to-top-btn {
|
||||
display: none;
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
z-index: 999;
|
||||
background-color: #555;
|
||||
color: #FFA500;
|
||||
border: 1px solid #666;
|
||||
border-radius: 50%;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
text-align: center;
|
||||
font-size: 24px;
|
||||
line-height: 38px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s, opacity 0.3s;
|
||||
}
|
||||
.scroll-to-top-btn:hover {
|
||||
background-color: #666;
|
||||
text-decoration: none;
|
||||
}
|
||||
.scroll-to-top-btn.show {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
/* Responsive Stile für Burger-Menü */
|
||||
.responsive-nav {
|
||||
height: 50px;
|
||||
}
|
||||
.burger-menu {
|
||||
display: flex;
|
||||
}
|
||||
.page-nav-buttons {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 45px;
|
||||
right: 0;
|
||||
width: 200px;
|
||||
background-color: #3a3a3a;
|
||||
border: 1px solid #666;
|
||||
border-radius: 5px;
|
||||
z-index: 100;
|
||||
padding: 5px;
|
||||
box-shadow: 0 4px 8px rgba(0,0,0,0.5);
|
||||
}
|
||||
.page-nav-buttons.menu-open {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
.page-nav-buttons .button {
|
||||
text-align: left;
|
||||
margin: 5px;
|
||||
width: auto;
|
||||
}
|
||||
.player-box { width: calc((100% - 15px) / 2); }
|
||||
.page-nav-buttons .button { margin-top: 5px;}
|
||||
|
||||
.world-preview .world-preview-content {
|
||||
flex-direction: column;
|
||||
}
|
||||
.world-preview img {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
margin-right: 0;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.map-view-container {
|
||||
height: auto;
|
||||
aspect-ratio: 4 / 3;
|
||||
max-height: 70vh;
|
||||
}
|
||||
}
|
||||
@media (max-width: 480px) {
|
||||
.player-box { width: 100%; }
|
||||
.admin-box { flex-basis: 100%; }
|
||||
}
|
||||
|
||||
.scroll-to-top-btn { display: none; position: fixed; bottom: 20px; right: 20px; z-index: 999; background-color: #555; color: #FFA500; border: 1px solid #666; border-radius: 50%; width: 40px; height: 40px; text-align: center; font-size: 24px; line-height: 38px; cursor: pointer; transition: background-color 0.3s, opacity 0.3s; }
|
||||
.scroll-to-top-btn:hover { background-color: #666; text-decoration: none; }
|
||||
.scroll-to-top-btn.show { display: block; }
|
||||
/* Stile für OpenLayers Popups (Leaflet-Look-and-Feel) */
|
||||
.ol-popup {
|
||||
position: absolute;
|
||||
background-color: #303030;
|
||||
box-shadow: 0 1px 4px rgba(0,0,0,0.4);
|
||||
padding: 1px;
|
||||
border-radius: 5px;
|
||||
bottom: 12px;
|
||||
left: -50px;
|
||||
min-width: 280px;
|
||||
border: 1px solid #555;
|
||||
color: #ddd;
|
||||
}
|
||||
.ol-popup:after, .ol-popup:before {
|
||||
top: 100%;
|
||||
border: solid transparent;
|
||||
content: " ";
|
||||
height: 0;
|
||||
width: 0;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
}
|
||||
.ol-popup:after {
|
||||
border-top-color: #303030;
|
||||
border-width: 10px;
|
||||
left: 48px;
|
||||
margin-left: -10px;
|
||||
}
|
||||
.ol-popup:before {
|
||||
border-top-color: #555;
|
||||
border-width: 11px;
|
||||
left: 48px;
|
||||
margin-left: -11px;
|
||||
}
|
||||
.ol-popup-closer {
|
||||
text-decoration: none;
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 8px;
|
||||
color: #ddd;
|
||||
font-size: 1.5em;
|
||||
font-weight: bold;
|
||||
}
|
||||
.ol-popup-closer:hover {
|
||||
color: #fff;
|
||||
}
|
||||
.ol-popup-content {
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
padding: 10px;
|
||||
margin: 0;
|
||||
}
|
||||
/* Stile für den Inhalt innerhalb des Popups */
|
||||
.ol-popup { position: absolute; background-color: #303030; box-shadow: 0 1px 4px rgba(0,0,0,0.4); padding: 1px; border-radius: 5px; bottom: 12px; left: -50px; min-width: 280px; border: 1px solid #555; color: #ddd; }
|
||||
.ol-popup:after, .ol-popup:before { top: 100%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; }
|
||||
.ol-popup:after { border-top-color: #303030; border-width: 10px; left: 48px; margin-left: -10px; }
|
||||
.ol-popup:before { border-top-color: #555; border-width: 11px; left: 48px; margin-left: -11px; }
|
||||
.ol-popup-closer { text-decoration: none; position: absolute; top: 2px; right: 8px; color: #ddd; font-size: 1.5em; font-weight: bold; }
|
||||
.ol-popup-closer:hover { color: #fff; }
|
||||
.ol-popup-content { font-size: 13px; line-height: 1.5; padding: 10px; margin: 0; }
|
||||
.popup-player-box .player-header { display: flex; align-items: center; margin-bottom: 8px; }
|
||||
.popup-player-box .player-identity { display: flex; align-items: center; }
|
||||
.popup-player-box .player-icon { width: 40px; height: 40px; margin-right: 10px; border-radius: 3px; flex-shrink: 0;}
|
||||
|
|
@ -554,3 +219,68 @@ a.read-more-link {
|
|||
.popup-player-box .popup-player-vitals { display: flex; justify-content: space-around; gap: 10px; align-items: center; margin-top: 8px; }
|
||||
.popup-player-box .popup-player-vitals .vital { display: flex; align-items: center; gap: 5px; }
|
||||
.popup-player-box .popup-player-vitals .icon { font-size: 1.2em; }
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.responsive-nav { height: 50px; }
|
||||
.burger-menu { display: flex; }
|
||||
.page-nav-buttons { display: none; position: absolute; top: 45px; right: 0; width: 200px; background-color: #3a3a3a; border: 1px solid #666; border-radius: 5px; z-index: 100; padding: 5px; box-shadow: 0 4px 8px rgba(0,0,0,0.5); }
|
||||
.page-nav-buttons.menu-open { display: flex; flex-direction: column; align-items: stretch; }
|
||||
.page-nav-buttons .button { text-align: left; margin: 5px; width: auto; }
|
||||
.player-box { width: calc((100% - 15px) / 2); }
|
||||
.world-preview .world-preview-content { flex-direction: column; }
|
||||
.world-preview img { width: 100%; max-width: 100%; height: auto; margin-right: 0; margin-bottom: 15px; }
|
||||
.map-view-container { height: auto; aspect-ratio: 4 / 3; max-height: 70vh; }
|
||||
}
|
||||
@media (max-width: 480px) {
|
||||
.player-box { width: 100%; }
|
||||
.admin-box { flex-basis: 100%; }
|
||||
}
|
||||
|
||||
/* KORREKTUR: Stile für OpenLayers Layer Switcher */
|
||||
|
||||
.layer-switcher.shown {
|
||||
background-color: #303030 !important;
|
||||
}
|
||||
|
||||
.layer-switcher button {
|
||||
font-size: 1.2em !important;
|
||||
}
|
||||
|
||||
.layer-switcher button:hover, .layer-switcher button:focus {
|
||||
background-color: #666 !important;
|
||||
}
|
||||
|
||||
.layer-switcher .panel {
|
||||
background-color: #303030 !important;
|
||||
border: 1px solid #555 !important;
|
||||
color: #ddd !important;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.layer-switcher ul {
|
||||
padding-left: 1em;
|
||||
}
|
||||
|
||||
.layer-switcher label {
|
||||
color: #ddd !important;
|
||||
}
|
||||
|
||||
/* NEU: Styling für Checkboxen im Layer-Switcher */
|
||||
.layer-switcher input[type=checkbox],
|
||||
.layer-switcher input[type=radio] {
|
||||
accent-color: #FFA500;
|
||||
vertical-align: middle;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
/* NEU: Vergrößerung der Standard-Karten-Buttons */
|
||||
.ol-zoom .ol-zoom-in,
|
||||
.ol-zoom .ol-zoom-out,
|
||||
.ol-rotate .ol-rotate-reset,
|
||||
.ol-full-screen button {
|
||||
width: 25px !important;
|
||||
height: 25px !important;
|
||||
font-size: 1.5em;
|
||||
line-height: 1;
|
||||
padding: 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue