The category panel gets "Alle anzeigen" / "Alle verstecken" buttons. Tactics belong to a region and are split into steps, each its own drawing layer: pen, arrow, line, area, circle, labelled point, text and eraser, with colour, stroke width and undo. A new step can start empty or as a copy of the current one, earlier steps can be shown faded underneath, and steps can be renamed, reordered and deleted. Viewing needs map.view, editing map.tactics. Drawings are stored per shape in world coordinates (the same as the markers) through tactics_api.php in three new tables; the map page offers to create them when they are missing. The viewer's own code only gains two hooks (view change, map change) and the show/hide-all method. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
737 lines
13 KiB
CSS
737 lines
13 KiB
CSS
/* Aion 2 Map Viewer - Styles */
|
|
|
|
:root {
|
|
--bg-primary: #1a1a2e;
|
|
--bg-secondary: rgba(20, 20, 40, 0.9);
|
|
--border-color: rgba(100, 100, 150, 0.3);
|
|
--text-primary: #e0e0e0;
|
|
--text-secondary: #aaa;
|
|
--accent-gold: #ffd700;
|
|
--accent-blue: #3388FF;
|
|
--panel-radius: 8px;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Map container */
|
|
#map-container {
|
|
position: relative;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
}
|
|
|
|
canvas {
|
|
display: block;
|
|
cursor: grab;
|
|
}
|
|
|
|
canvas:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
/* Loading overlay */
|
|
#loading-overlay {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
text-align: center;
|
|
z-index: 100;
|
|
}
|
|
|
|
.spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid var(--border-color);
|
|
border-top-color: var(--accent-gold);
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin: 0 auto 16px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* UI overlay */
|
|
#ui-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.panel {
|
|
pointer-events: auto;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--panel-radius);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
/* Title bar */
|
|
#title-bar {
|
|
position: absolute;
|
|
top: 16px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
padding: 12px 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
#title-bar h1 {
|
|
font-size: 24px;
|
|
color: var(--accent-gold);
|
|
text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.map-selector-container select {
|
|
background: rgba(30, 30, 60, 0.9);
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-primary);
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
min-width: 250px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.map-selector-container select:hover {
|
|
border-color: var(--accent-gold);
|
|
}
|
|
|
|
/* Zoom controls */
|
|
#zoom-controls {
|
|
position: absolute;
|
|
top: 16px;
|
|
right: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
padding: 8px;
|
|
}
|
|
|
|
button {
|
|
background: rgba(50, 50, 80, 0.8);
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-primary);
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
transition: background 0.2s, border-color 0.2s;
|
|
}
|
|
|
|
button:hover {
|
|
background: rgba(70, 70, 100, 0.8);
|
|
border-color: var(--accent-gold);
|
|
}
|
|
|
|
/* Category panel */
|
|
#category-panel {
|
|
position: absolute;
|
|
bottom: 16px;
|
|
left: 16px;
|
|
padding: 12px;
|
|
max-height: 70vh;
|
|
overflow-y: auto;
|
|
width: 300px;
|
|
}
|
|
|
|
#category-panel h3 {
|
|
font-size: 14px;
|
|
color: var(--accent-gold);
|
|
margin-bottom: 8px;
|
|
border-bottom: 1px solid rgba(255, 215, 0, 0.3);
|
|
padding-bottom: 4px;
|
|
}
|
|
|
|
.category-group {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.category-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 4px 0;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.category-item:hover {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.category-item.group-toggle {
|
|
margin-bottom: 6px;
|
|
padding-bottom: 6px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.category-item input[type="checkbox"] {
|
|
margin-right: 8px;
|
|
accent-color: var(--accent-gold);
|
|
}
|
|
|
|
.category-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-right: 8px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.category-item label {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
flex: 1;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.category-count {
|
|
font-size: 10px;
|
|
color: #888;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
/* Zoom indicator */
|
|
#zoom-indicator {
|
|
position: absolute;
|
|
bottom: 16px;
|
|
right: 16px;
|
|
padding: 8px 12px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Tooltip */
|
|
#tooltip {
|
|
position: absolute;
|
|
background: rgba(10, 10, 30, 0.95);
|
|
border: 1px solid rgba(255, 215, 0, 0.5);
|
|
border-radius: 6px;
|
|
padding: 8px 12px;
|
|
font-size: 12px;
|
|
color: #fff;
|
|
pointer-events: none;
|
|
max-width: 300px;
|
|
z-index: 1000;
|
|
}
|
|
|
|
#tooltip .name {
|
|
font-weight: bold;
|
|
color: var(--accent-gold);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
#tooltip .category {
|
|
font-size: 10px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Utility classes */
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Scrollbar styling */
|
|
#category-panel::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
#category-panel::-webkit-scrollbar-track {
|
|
background: rgba(0, 0, 0, 0.2);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
#category-panel::-webkit-scrollbar-thumb {
|
|
background: rgba(100, 100, 150, 0.5);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Alle anzeigen / Alle verstecken */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.category-bulk {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.category-bulk button {
|
|
flex: 1;
|
|
font-size: 11px;
|
|
padding: 5px 6px;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Taktiken */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
/* Zeichenebene ueber der Karte - faengt die Maus nur ab, wenn ein Werkzeug aktiv ist. */
|
|
#tactic-canvas {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#tactic-canvas.drawing {
|
|
pointer-events: auto;
|
|
cursor: crosshair;
|
|
}
|
|
|
|
#tactic-canvas.erasing {
|
|
cursor: pointer;
|
|
}
|
|
|
|
#tactic-panel {
|
|
position: absolute;
|
|
top: 16px;
|
|
right: 76px;
|
|
width: 290px;
|
|
max-height: calc(100% - 90px);
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
#tactic-panel.collapsed .tp-body {
|
|
display: none;
|
|
}
|
|
|
|
.tp-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.tp-head h3 {
|
|
flex: 1;
|
|
font-size: 14px;
|
|
color: var(--accent-gold);
|
|
}
|
|
|
|
.tp-body {
|
|
margin-top: 8px;
|
|
overflow-y: auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
button.tp-collapse {
|
|
background: none;
|
|
border: none;
|
|
padding: 0 4px;
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
button.tp-collapse:hover {
|
|
background: none;
|
|
color: var(--accent-gold);
|
|
}
|
|
|
|
button.tp-btn {
|
|
font-size: 12px;
|
|
padding: 4px 8px;
|
|
}
|
|
|
|
button.tp-icon {
|
|
background: none;
|
|
border: 1px solid transparent;
|
|
padding: 1px 5px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
button.tp-icon:hover:not(:disabled) {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: var(--accent-gold);
|
|
}
|
|
|
|
button.tp-icon:disabled {
|
|
opacity: 0.3;
|
|
cursor: default;
|
|
}
|
|
|
|
button.tp-danger:hover:not(:disabled) {
|
|
color: #ff6b6b;
|
|
border-color: rgba(255, 107, 107, 0.5);
|
|
}
|
|
|
|
.tp-edit-only {
|
|
display: none !important;
|
|
}
|
|
|
|
#tactic-panel.can-edit .tp-edit-only {
|
|
display: flex !important;
|
|
}
|
|
|
|
.tp-empty,
|
|
.tp-message {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.tp-message {
|
|
color: #ff9b9b;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
button.tp-item {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
width: 100%;
|
|
margin-bottom: 4px;
|
|
padding: 6px 8px;
|
|
font-size: 13px;
|
|
text-align: left;
|
|
background: rgba(40, 40, 70, 0.6);
|
|
}
|
|
|
|
button.tp-item.active {
|
|
border-color: var(--accent-gold);
|
|
background: rgba(255, 215, 0, 0.12);
|
|
}
|
|
|
|
.tp-item-name {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tp-item-meta {
|
|
flex-shrink: 0;
|
|
font-size: 10px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.tp-detail {
|
|
margin-top: 10px;
|
|
padding-top: 10px;
|
|
border-top: 1px solid rgba(255, 215, 0, 0.3);
|
|
}
|
|
|
|
.tp-detail-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 6px;
|
|
}
|
|
|
|
.tp-detail-head strong {
|
|
font-size: 14px;
|
|
color: var(--accent-gold);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.tp-desc {
|
|
margin-top: 6px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
white-space: pre-wrap;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.tp-detail h4 {
|
|
margin: 10px 0 4px;
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.tp-steps {
|
|
list-style: none;
|
|
}
|
|
|
|
.tp-step {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 6px;
|
|
border-radius: 4px;
|
|
border: 1px solid transparent;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tp-step:hover {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.tp-step.active {
|
|
border-color: var(--accent-gold);
|
|
background: rgba(255, 215, 0, 0.1);
|
|
}
|
|
|
|
.tp-step-no {
|
|
flex-shrink: 0;
|
|
width: 18px;
|
|
height: 18px;
|
|
line-height: 18px;
|
|
border-radius: 50%;
|
|
text-align: center;
|
|
font-size: 10px;
|
|
font-weight: bold;
|
|
background: rgba(255, 215, 0, 0.2);
|
|
color: var(--accent-gold);
|
|
}
|
|
|
|
.tp-step-name {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tp-step-count {
|
|
font-size: 10px;
|
|
color: #888;
|
|
}
|
|
|
|
.tp-step-tools {
|
|
display: none;
|
|
}
|
|
|
|
.tp-step:hover .tp-step-tools,
|
|
.tp-step.active .tp-step-tools {
|
|
display: flex;
|
|
}
|
|
|
|
.tp-step-actions {
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.tp-check {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-top: 10px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tp-check input {
|
|
accent-color: var(--accent-gold);
|
|
}
|
|
|
|
/* Werkzeugleiste im Taktik-Panel - bleibt auch beim Einklappen sichtbar */
|
|
#tactic-toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-top: 8px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid rgba(255, 215, 0, 0.3);
|
|
}
|
|
|
|
#tactic-toolbar.hidden {
|
|
display: none;
|
|
}
|
|
|
|
#tactic-toolbar .tool {
|
|
min-width: 30px;
|
|
height: 30px;
|
|
padding: 0 5px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
#tactic-toolbar .tool.active {
|
|
border-color: var(--accent-gold);
|
|
background: rgba(255, 215, 0, 0.2);
|
|
}
|
|
|
|
.tool-sep {
|
|
width: 1px;
|
|
height: 22px;
|
|
margin: 0 2px;
|
|
background: var(--border-color);
|
|
}
|
|
|
|
#tool-color {
|
|
width: 30px;
|
|
height: 30px;
|
|
padding: 2px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
background: rgba(50, 50, 80, 0.8);
|
|
cursor: pointer;
|
|
}
|
|
|
|
#tool-width {
|
|
height: 30px;
|
|
padding: 0 6px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
background: rgba(50, 50, 80, 0.8);
|
|
color: var(--text-primary);
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Schritt-Leiste unten mittig zwischen Kategorien-Panel (links, 300px) und
|
|
Zoom-Anzeige (rechts) - left/right plus margin auto zentriert sie in diesem Streifen. */
|
|
#step-bar {
|
|
position: absolute;
|
|
bottom: 16px;
|
|
left: 332px;
|
|
right: 100px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 8px 10px;
|
|
width: fit-content;
|
|
min-width: 240px;
|
|
max-width: 560px;
|
|
}
|
|
|
|
#step-bar button:disabled {
|
|
opacity: 0.3;
|
|
cursor: default;
|
|
}
|
|
|
|
.sb-text {
|
|
flex: 1;
|
|
min-width: 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.sb-title {
|
|
font-size: 13px;
|
|
font-weight: bold;
|
|
color: var(--accent-gold);
|
|
}
|
|
|
|
.sb-desc {
|
|
margin-top: 3px;
|
|
max-height: 60px;
|
|
overflow-y: auto;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
/* Eingabedialog */
|
|
#tactic-dialog {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(0, 0, 0, 0.45);
|
|
z-index: 2000;
|
|
}
|
|
|
|
#tactic-dialog form {
|
|
width: min(420px, calc(100% - 32px));
|
|
padding: 18px 20px;
|
|
}
|
|
|
|
#tactic-dialog h3 {
|
|
margin-bottom: 12px;
|
|
font-size: 16px;
|
|
color: var(--accent-gold);
|
|
}
|
|
|
|
.td-field {
|
|
display: block;
|
|
margin-bottom: 10px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.td-field input,
|
|
.td-field textarea {
|
|
display: block;
|
|
width: 100%;
|
|
margin-top: 4px;
|
|
padding: 7px 9px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
background: rgba(30, 30, 60, 0.9);
|
|
color: var(--text-primary);
|
|
font: inherit;
|
|
font-size: 13px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.td-field input:focus,
|
|
.td-field textarea:focus {
|
|
outline: none;
|
|
border-color: var(--accent-gold);
|
|
}
|
|
|
|
.td-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
#td-submit {
|
|
border-color: var(--accent-gold);
|
|
background: rgba(255, 215, 0, 0.2);
|
|
}
|
|
|
|
/* Kurze Rueckmeldungen */
|
|
#toast {
|
|
position: absolute;
|
|
bottom: 96px;
|
|
left: 332px;
|
|
right: 100px;
|
|
margin: 0 auto;
|
|
width: fit-content;
|
|
max-width: 480px;
|
|
padding: 8px 14px;
|
|
border: 1px solid rgba(255, 215, 0, 0.5);
|
|
border-radius: 6px;
|
|
background: rgba(10, 10, 30, 0.95);
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
text-align: center;
|
|
z-index: 1500;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#toast.error {
|
|
border-color: #ff6b6b;
|
|
color: #ffb3b3;
|
|
}
|
|
|
|
/* Bei schmaler Karte stoesst der mittige Titel sonst an das Taktik-Panel. */
|
|
@media (max-width: 1100px) {
|
|
#title-bar {
|
|
left: 16px;
|
|
transform: none;
|
|
}
|
|
|
|
#title-bar h1 {
|
|
font-size: 18px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.map-selector-container select {
|
|
min-width: 180px;
|
|
}
|
|
}
|