changeset 2190:3a78200e6ca2

More citymap cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 13 Oct 2019 01:09:40 +0300
parents 9b55f93116b6
children aa51a5a3e4e8
files misc/misc.css mkcitymap.c
diffstat 2 files changed, 30 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- a/misc/misc.css	Sun Oct 13 00:14:07 2019 +0300
+++ b/misc/misc.css	Sun Oct 13 01:09:40 2019 +0300
@@ -7,6 +7,14 @@
   margin: 0;
 }
 
+body > h1 {
+  margin: 0;
+  font-size: 1.5em;
+  background: #222;
+  padding: 0.3em;
+}
+
+
 .holder {
   display: block;
   color: #000;
@@ -22,24 +30,6 @@
   margin-right: -400px;
 }
 
-a.loc {
-  background: black;
-  color: red;
-  text-decoration: none;
-}
-
-a.loc:hover {
-  background: white;
-  color: red;
-}
-
-body > h1 {
-  margin: 0;
-  font-size: 1.5em;
-  background: #222;
-  padding: 0.3em;
-}
-
 div.tooltip {
   position: absolute;
   display: none;
@@ -79,6 +69,18 @@
   text-align: center;
 }
 
+div.map a.loc {
+  background: black;
+  color: red;
+  text-decoration: none;
+}
+
+div.map a.loc:hover {
+  background: white;
+  color: red;
+}
+
+
 div.loctab {
   background: black;
   color: white;
@@ -97,36 +99,36 @@
   padding-top: 1em;
 }
 
-div.loctab a {
+div.loctab a.loc {
   display: block;
 }
 
-
-a.nloc {
+div.loctab a.loc {
   color: red;
   text-decoration: none;
 }
 
-a.nloc:hover {
+div.loctab a.loc:hover {
   background: #666;
 }
 
-a.nloc.ltguild.lt1  {
+div.loctab .ltguild.lt1  {
   color: #080;
 }
 
-a.nloc.ltguild.lt2  {
+div.loctab .ltguild.lt2  {
   color: #0f0;
 }
 
-a.nloc.ltgov.lt0 {
+div.loctab .ltgov.lt0 {
   color: #f0f;
 }
 
-a.nloc.ltgov.lt1 {
+div.loctab .ltgov.lt1 {
   color: #ff0;
 }
-a.nloc.ltshop {
+
+div.loctab .ltshop {
   color: #cc0;
 }
 
--- a/mkcitymap.c	Sun Oct 13 00:14:07 2019 +0300
+++ b/mkcitymap.c	Sun Oct 13 01:09:40 2019 +0300
@@ -185,7 +185,7 @@
         for (int i = 0; i < marker->nnames; i++)
         {
             fprintf(outFile,
-                "<a class=\"nloc lt%s lt%d\" id=\"listloc%d_%d\" href=\"?%d_%d\" "
+                "<a class=\"loc lt%s lt%d\" id=\"listloc%d_%d\" href=\"?%d_%d\" "
                 "onmouseover=\"%s('%d_%d');\" onmouseout=\"qn();\">",
                 getCityLocationType(marker),
                 marker->align,