Madethe service.css look better, added a navbar to the banner and put the "chat with...
authorthe_mgt <themgt@ueberserver.de>
Tue, 5 Jul 2011 00:24:36 +0000 (02:24 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 21:30:36 +0000 (21:30 +0000)
webcit/static/styles/service.css
webcit/userlist.c

index 8456e68a76497a3f216caf0177d5862a3e1d3ec9..ceeaa5bd59fae59cc1290ae092905670a7544f14 100644 (file)
@@ -1,11 +1,11 @@
-.service {
-       padding 0.5em;
-}
+.service {}
 
 .bio table {
+       margin-top: 0.5em;
+       padding: 0 0.5em;
+       width: 95%;
        font-family: mono;
-       background-color: #deded0;
-       margin: 0.5em 1em;
+       background-color: #ffff;
        border: 1px solid #5C646B;
        -webkit-box-shadow: #666 0px 1px 2px;
        -moz-box-shadow: #666 0px 2px 3px;
        behavior: url(/static/styles/PIE.htc);
 }
 
-.bio img {
-        max-width: 200px;
-        padding: 0.5em;
-        background-color: #fff;
-        border: 1px solid #5C646B;
-        box-shadow: #666 0px 2px 3px;
-        -webkit-box-shadow: #666 0px 1px 2px;
-        -moz-box-shadow: #666 0px 2px 3px;
+.bio table table {
+       border: 0;
+       padding: 0;
+       margin: 0.5em 0;
+       box-shadow: none;
+       -moz-box-shadow: none;
+       -webkit-box-shadow: none;
+}
+
+.bio table table img {
+        max-width: 250px;
+       padding: 0.2em;
+       background-color: #f0feff;
+       border: 1px solid #5C646B;
+       box-shadow: none;
+       -moz-box-shadow: none;
+       -webkit-box-shadow: none;
 }
 
 .bio h1 { float: right; }
index d5b33238be46ad093b40fb837da1a7be987e3355..b0cd130434a0fe2389743a4911c954edc2e415e1 100644 (file)
@@ -117,6 +117,17 @@ void showuser(void)
         wc_printf("<h1>");
        wc_printf(_("User profile"));
         wc_printf("</h1>");
+       wc_printf("<div id=\"navbar\">\n");
+       wc_printf("<ul><li><a href=\"display_page?recp=");
+       urlescputs(who);
+        wc_printf("\">"
+                "<img src=\"static/webcit_icons/essen/16x16/chat.png\" "
+                "align=middle border=0>"
+                "<span class="navbar_link">");
+        snprintf(buf, sizeof buf, _("Click here to send an instant message to %s"), who);
+        escputs(buf);
+        wc_printf("</span></li></a>\n");
+       wc_printf("</div>");
         wc_printf("</div>");
 
         wc_printf("<div id=\"content\" class=\"service bio\">\n");
@@ -147,20 +158,11 @@ void showuser(void)
        if (buf[0] == '1') {
                fmout("JUSTIFY");
        }
-       wc_printf("<br><a href=\"display_page?recp=");
-       urlescputs(who);
-       wc_printf("\">"
-               "<img src=\"static/webcit_icons/essen/16x16/chat.png\" "
-               "align=middle border=0>&nbsp;&nbsp;");
-       snprintf(buf, sizeof buf, _("Click here to send an instant message to %s"), who);
-       escputs(buf);
-       wc_printf("</a>\n");
-
        wc_printf("</td></tr></table>\n");
        wDumpContent(1);
 }
 
-void 
+void
 InitModule_USERLIST
 (void)
 {