MediaWiki:MindMap.css

From CoraTO Wiki - Official Wiki
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
.mindmap {
  position: relative;
  height: 640px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  box-shadow: 0 6px 24px var(--shadow-soft);
  margin: 16px 0;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.mindmap.mm-dragging {
  cursor: grabbing;
}

.mindmap-stage {
  position: relative;
  width: 100%;
  height: 640px;
  transform-origin: 0 0;
  transition: none;
  touch-action: none;
  z-index: 1;
}

@media (max-width: 1023.98px) {
  .mindmap {
    height: 720px;
  }
  .mindmap-stage {
    height: 720px;
  }
}

.mm-links {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.mm-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px var(--shadow-soft);
  color: var(--heading);
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.mm-node:focus-visible {
  outline: 2px solid var(--border-strong);
  outline-offset: 4px;
}

.mm-node:hover {
  box-shadow: 0 10px 28px var(--shadow-medium);
}

.mm-node a {
  color: inherit;
  text-decoration: none;
}

.mm-node a:hover {
  text-decoration: underline;
}

.mm-node:not(.mm-center):hover {
  transform: translateY(-1px);
}

.mm-center {
  left: 8%;
  top: 50%;
  transform: translate(0, -50%);
  min-width: 220px;
  justify-content: center;
}

.mm-branch {
  position: absolute;
  min-width: 220px;
  display: flex;
  align-items: flex-start;
  gap: 34px;
}

.mm-branch > .mm-node {
  position: relative;
}

.mm-branch .mm-node {
  background: var(--bg-2);
  border-left: 4px solid var(--border-strong);
  color: var(--heading);
}

.mm-branch .mm-children {
  position: relative;
  margin-top: 0;
}

.mm-branch .mm-children {
  display: none;
}

.mm-branch.open .mm-children {
  display: flex;
  flex-direction: column;
}

.mm-item {
  display: flex;
  align-items: flex-start;
  gap: 26px;
}

.mm-subchildren {
  display: none;
  flex-direction: column;
}

.mm-item.open .mm-subchildren {
  display: flex;
}

.mm-subchildren .mm-node {
  margin: 0 0 14px 0;
}

.mm-subchildren .mm-node:last-child {
  margin-bottom: 0;
}

.mm-branch .mm-children .mm-node {
  position: relative;
  display: block;
  font-weight: 600;
  background: var(--bg-2);
  border-left: 4px solid var(--border-strong);
  color: var(--heading);
  margin: 0 0 14px 0;
}

.mm-branch .mm-children .mm-node:last-child {
  margin-bottom: 0;
}

#mm-locations-coral,
#mm-locations-coral-shop {
  background: linear-gradient(135deg, #ff7fb2 0%, #9BCF53 100%);
  border-left-color: #5f8f2a;
  color: #0c1a0a;
}

#mm-locations-desert,
#mm-locations-desert-statue,
#mm-locations-desert-mine {
  background: linear-gradient(135deg, #ffffff 0%, #F5F5DC 55%, #e6dec7 100%);
  border-left-color: #c9c2a5;
  color: #2a2418;
}

#mm-locations-ghostblue,
#mm-locations-ghostblue-gate,
#mm-locations-ghostblue-shop {
  background: linear-gradient(135deg, #1a123d 0%, #483D8B 55%, #2f0a5a 100%);
  border-left-color: #241f46;
  color: #ffffff;
}

#mm-locations-megalopolis,
#mm-locations-megalopolis-gate {
  background: linear-gradient(135deg, #ff7fb2 0%, #FFD700 45%, #00BFFF 100%);
  border-left-color: #d4af37;
  color: #1a1a1a;
}

#mm-locations-caballa,
#mm-locations-caballa-gate,
#mm-locations-caballa-field,
#mm-locations-caballa-mine {
  background: linear-gradient(135deg, #8B8B00 0%, #6e6e12 55%, #3e3e1a 100%);
  border-left-color: #5f5f00;
  color: #ffffff;
}

#mm-locations-oopswarf,
#mm-locations-oopswarf-gate,
#mm-locations-oopswarf-phantom {
  background: linear-gradient(135deg, #00002a 0%, #00008B 65%, #07071d 100%);
  border-left-color: #00004d;
  color: #ffffff;
}

#mm-locations-mermaid,
#mm-locations-mermaid-gate,
#mm-locations-mermaid-dungeon {
  background: linear-gradient(135deg, #00BFFF 0%, #62d8ff 55%, #0099cc 100%);
  border-left-color: #0079a6;
  color: #003041;
}

#mm-locations-snowhill,
#mm-locations-snowhill-gate,
#mm-locations-snowhill-mine,
#mm-locations-snowhill-blueice {
  background: linear-gradient(135deg, #ffffff 0%, #E0FFFF 55%, #bfefff 100%);
  border-left-color: #9fd8d8;
  color: #0a2a2a;
}

#mm-locations-techichi,
#mm-locations-techichi-goldenash,
#mm-locations-techichi-blackash {
  background: linear-gradient(135deg, #A52A2A 0%, #7a1f1f 55%, #3a0f0f 100%);
  border-left-color: #6f1c1c;
  color: #ffffff;
}

#mm-locations-tapasco,
#mm-locations-tapasco-gate,
#mm-locations-tapasco-mine,
#mm-locations-tapasco-themespa {
  background: linear-gradient(135deg, #FF4500 0%, #ff7a2a 55%, #b83200 100%);
  border-left-color: #b83200;
  color: #ffffff;
}

#mm-locations-rosegarden,
#mm-locations-rosegarden-gate {
  background: linear-gradient(135deg, #7b2a2a 0%, #556B2F 60%, #2f2f1a 100%);
  border-left-color: #34421d;
  color: #ffffff;
}

#mm-locations-blackswamp,
#mm-locations-blackswamp-gate-maze,
#mm-locations-blackswamp-mine {
  background: linear-gradient(135deg, #0f1f1f 0%, #2F4F4F 60%, #1a2a2a 100%);
  border-left-color: #1e3232;
  color: #ffffff;
}

#mm-locations-devroom,
#mm-locations-devroom-lobby {
  background: linear-gradient(135deg, #00CED1 0%, #1e90ff 40%, #9400D3 100%);
  border-left-color: #00a6a8;
  color: #ffffff;
}

#mm-locations-alteo,
#mm-locations-alteo-gate {
  background: linear-gradient(135deg, #c9ffd2 0%, #98FB98 55%, #6dcf7a 100%);
  border-left-color: #58b858;
  color: #0c2a0c;
}

#mm-locations-mirage,
#mm-locations-mirage-field {
  background: linear-gradient(135deg, #d2b48c 0%, #F0E68C 60%, #c2d68c 100%);
  border-left-color: #b9ae57;
  color: #2a250c;
}

#mm-locations-abyss,
#mm-locations-abyss-gate {
  background: linear-gradient(135deg, #0000FF 0%, #002a7a 45%, #00FFFF 100%);
  border-left-color: #0000b8;
  color: #eaf8ff;
}

.pos-1 { left: 34%; top: 10%; }
.pos-2 { left: 34%; top: 30%; }
.pos-3 { left: 34%; top: 50%; }
.pos-4 { left: 34%; top: 70%; }
.pos-5 { left: 34%; top: 84%; }
.pos-6 { left: 62%; top: 84%; }

.mm-controls {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  z-index: 3;
}

.mm-controls button {
  background: linear-gradient(135deg, var(--heading-gradient-start) 0%, var(--heading-gradient-end) 100%);
  color: var(--text-strong);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
}

.mm-detail {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: 360px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 18px var(--shadow-medium);
  padding: 12px 14px;
  display: none;
  z-index: 3;
  user-select: text;
  color: var(--text);
}

.mm-detail.active {
  display: block;
}

.mm-table-root {
  display: grid;
  gap: 18px;
}

.mm-table-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
}

.mm-table-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}

.mm-table-meta {
  margin-left: auto;
  min-width: 80px;
  text-align: right;
  font-weight: 700;
  color: var(--primary);
}

.mm-table-label {
  font-weight: 700;
  color: var(--heading);
}

.mm-table-input,
.mm-table-select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--bg-1);
  color: var(--text);
  box-shadow: 0 4px 14px var(--shadow-soft);
}

.mm-table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.mm-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-1);
}

.mm-table th,
.mm-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}

.mm-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg);
  color: var(--heading);
  text-align: left;
}

.mm-table--enhanced thead th[data-key] {
  cursor: pointer;
}

.mm-table a {
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
}

.mm-table a:hover {
  text-decoration: underline;
}

.mm-list {
  margin: 0;
  padding-left: 18px;
}

.mm-table-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  box-shadow: 0 6px 24px var(--shadow-soft);
  padding: 14px;
}

.mm-table-title {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--heading);
}

.mm-table-card--beach { --mm-accent: var(--primary); --mm-tint: var(--bg); --mm-tint-strong: var(--bg-1); }
.mm-table-card--cities { --mm-accent: var(--primary); --mm-tint: var(--bg); --mm-tint-strong: var(--bg-1); }
.mm-table-card--volcanic { --mm-accent: var(--primary); --mm-tint: var(--bg); --mm-tint-strong: var(--bg-1); }
.mm-table-card--special { --mm-accent: var(--primary); --mm-tint: var(--bg); --mm-tint-strong: var(--bg-1); }

.mm-table-card[class*="mm-table-card--"] {
  border-left: 6px solid var(--mm-accent);
}

.mm-table-card[class*="mm-table-card--"] .mm-table thead th {
  background: var(--mm-tint);
  color: var(--mm-accent);
}

.mm-table-card[class*="mm-table-card--"] .mm-td-town {
  background: var(--mm-tint-strong);
  font-weight: 800;
}