From: Thierry Pasqualier Date: Fri, 20 Jul 2007 18:31:19 +0000 (+0000) Subject: HTML/CSS of text/calendar display in message X-Git-Tag: v7.86~3221 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=9d55eebd21f995d889191152183c2b6ddbd3029c HTML/CSS of text/calendar display in message --- diff --git a/webcit/calendar.c b/webcit/calendar.c index 6db5de728..59cfe2715 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -103,7 +103,9 @@ void cal_process_object(icalcomponent *cal, the_method = icalproperty_get_method(method); char *title; - wprintf("

"); + wprintf("
", divname); + wprintf(""); + wprintf(""); switch(the_method) { case ICAL_METHOD_REQUEST: title = _("Meeting invitation"); @@ -120,12 +122,8 @@ void cal_process_object(icalcomponent *cal, } wprintf(""); - wprintf("
", divname); - wprintf("" - "  %s", - title - ); - wprintf("

"); + wprintf("  %s",title); + wprintf(""); } wprintf("
"); @@ -265,14 +263,14 @@ void cal_process_object(icalcomponent *cal, wprintf("
"); /** Display the Accept/Decline buttons */ - wprintf("
" + wprintf("

" "%s " "%s" - " | " + " | " "%s" - " | " + " | " "%s" - "

\n", + "

\n", divname, _("How would you like to respond to this invitation?"), divname, divname, msgnum, cal_partnum, _("Accept"), @@ -293,12 +291,12 @@ void cal_process_object(icalcomponent *cal, ***********/ /** Display the update buttons */ - wprintf("
" + wprintf("
" "%s" "%s" - " | " + " | " "%s" - "
\n", + "

\n", divname, _("Click Update to accept this reply and update your calendar."), divname, divname, msgnum, cal_partnum, _("Update"), diff --git a/webcit/static/webcit.css b/webcit/static/webcit.css index 060b37f46..10529331d 100644 --- a/webcit/static/webcit.css +++ b/webcit/static/webcit.css @@ -445,7 +445,32 @@ a:hover { .message_header .message_subject { font-style: italic; } +.mimepart { + margin-top: 0; + margin-left: 15%; + width: 55%; + padding: 10px; + background-color: #FFFFDD; +} + +.mimepart div { + font-weight: bold; +} +.mimepart div span { + font-style: italic; +} + +.mimepart dl, .mimepart dl dt, .mimepart dl dd { + font-size: 10pt; + color: black; + text-align: left; +} +.mimepart dl dt { + display: compact; + font-weight: bold; +} + .msgbuttons { float: right; visibility: hidden; @@ -454,8 +479,8 @@ a:hover { padding: 0; } -#delbutton, .msgbuttons a { - font-size: 7pt; +#delbutton, .buttons a, .msgbuttons a { + font-size: 8pt; margin-left: 5px; margin-right: 5px; padding: 2px; @@ -469,11 +494,11 @@ a:hover { text-align: center; } -.msgbuttons a span { +.msgbuttons a span, .buttons span { display: none; } -.msgbuttons a:hover { +.buttons a:hover, .msgbuttons a:hover { background-color: #AAAAAA; text-decoration: none; }