* Change the appearance of rooms with and without new messages in the
authorArt Cancro <ajc@citadel.org>
Wed, 4 Jun 2003 03:41:27 +0000 (03:41 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 4 Jun 2003 03:41:27 +0000 (03:41 +0000)
  room list -- now defined using CSS

webcit/ChangeLog
webcit/roomops.c
webcit/static/style.css

index 5583e17dbd94ba5f0f415fc17915523061e71948..178515384c549111c0f4d84beeae07ee40a90ce6 100644 (file)
@@ -1,4 +1,8 @@
 $Log$
+Revision 410.43  2003/06/04 03:41:25  ajc
+* Change the appearance of rooms with and without new messages in the
+  room list -- now defined using CSS
+
 Revision 410.42  2003/06/03 03:57:42  ajc
 * Tightened up the room banner a bit.  Smaller padding, smaller font,
   smaller images.
@@ -1447,3 +1451,4 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
+
index 948a1374804efc66efbbe1de7c54eaef2041f10d..e22c591f58858c084fa8ecf601cb2702f687f42f 100644 (file)
@@ -1842,10 +1842,15 @@ void do_folder_view(struct folder *fold, int max_folders, int num_floors) {
                else {
                        wprintf("<i>");
                }
-               if (fold[i].hasnewmsgs) wprintf("<B>");
+               if (fold[i].hasnewmsgs) {
+                       wprintf("<SPAN CLASS=\"roomlist_new\">");
+               }
+               else {
+                       wprintf("<SPAN CLASS=\"roomlist_old\">");
+               }
                extract(buf, fold[i].name, levels-1);
                escputs(buf);
-               if (fold[i].hasnewmsgs) wprintf("</B>");
+               wprintf("</SPAN>");
                if (fold[i].selectable) {
                        wprintf("</A>");
                }
@@ -1923,10 +1928,15 @@ void do_rooms_view(struct folder *fold, int max_folders, int num_floors) {
                        else {
                                wprintf("<i>");
                        }
-                       if (fold[i].hasnewmsgs) wprintf("<B>");
+                       if (fold[i].hasnewmsgs) {
+                               wprintf("<SPAN CLASS=\"roomlist_new\">");
+                       }
+                       else {
+                               wprintf("<SPAN CLASS=\"roomlist_old\">");
+                       }
                        extract(buf, fold[i].name, levels-1);
                        escputs(buf);
-                       if (fold[i].hasnewmsgs) wprintf("</B>");
+                       wprintf("</SPAN>");
                        if (fold[i].selectable) {
                                wprintf("</A>");
                        }
index e5a4a97c32bef538bc8095abf38e2165bb6236fc..31002dfa1d4a21a70dbaa70440b2353b36fefd4a 100644 (file)
@@ -111,6 +111,20 @@ a:active {
        letter-spacing: 1pt;
 }
 
+.roomlist_new {
+       font-family: Bitstream Vera Sans,Arial,Helvetica,sans-serif;
+       font-size: 10pt;
+       color: #880000;
+       font-weight: bold;
+}
+
+.roomlist_old {
+       font-family: Bitstream Vera Sans,Arial,Helvetica,sans-serif;
+       font-size: 10pt;
+       color: #000088;
+}
+
+
 body {
   background: #aaaaaa;
   color: #000000;