From 29dc83a8cc10b718f31a92f844086adffcc967fe Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sat, 25 Sep 2010 21:15:06 -0400 Subject: [PATCH] Rounded buttons under IE using CSS3PIE (not working yet) --- libcitadel/lib/mime_parser.c | 2 + webcit/COPYING | 1 + webcit/README.txt | 3 ++ webcit/static/styles/PIE.htc | 77 +++++++++++++++++++++++++++++++++ webcit/static/styles/webcit.css | 11 ++++- 5 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 webcit/static/styles/PIE.htc diff --git a/libcitadel/lib/mime_parser.c b/libcitadel/lib/mime_parser.c index 8f6a0bef9..43f499838 100644 --- a/libcitadel/lib/mime_parser.c +++ b/libcitadel/lib/mime_parser.c @@ -673,6 +673,8 @@ const char* GuessMimeByFilename(const char *what, size_t len) return "text/plain"; else if ((len > 3) && !strncasecmp(&what[len - 4], ".css", 4)) return "text/css"; + else if ((len > 3) && !strncasecmp(&what[len - 4], ".htc", 4)) + return "text/x-component"; else if ((len > 3) && !strncasecmp(&what[len - 4], ".jpg", 4)) return "image/jpeg"; else if ((len > 3) && !strncasecmp(&what[len - 4], ".png", 4)) diff --git a/webcit/COPYING b/webcit/COPYING index d7c4835c6..015d29a12 100644 --- a/webcit/COPYING +++ b/webcit/COPYING @@ -15,6 +15,7 @@ DatePicker: widget using Prototype and Scriptaculous. (c) 2007 Mathieu Jondet + + + + + + + + + + + + + + diff --git a/webcit/static/styles/webcit.css b/webcit/static/styles/webcit.css index 61b2e97fa..651f32b21 100644 --- a/webcit/static/styles/webcit.css +++ b/webcit/static/styles/webcit.css @@ -381,7 +381,10 @@ a:visited { color: purple} .button_link a, .msgbuttons a, input#delbutton,.attachfile, .buttons input, .send_edit_msg input { cursor: pointer; - -moz-border-radius: 8px; /* CSS3 draft and Mozilla */ + -webkit-border-radius: 8px; + -moz-border-radius: 8px; + border-radius: 8px; + behavior: url(/static/styles/PIE.htc); text-align: center; } @@ -935,7 +938,10 @@ td.events_of_the_day { width: 500px } } .event_framed_unread { + -webkit-border-radius: 8px; -moz-border-radius: 8px; + border-radius: 8px; + behavior: url(/static/styles/PIE.htc); border: solid 1px red; background-color: yellow; z-index: 10; @@ -945,7 +951,10 @@ td.events_of_the_day { width: 500px } li.event_framed_unread span, a.event_title { font-size: 100% } .event_framed_read { + -webkit-border-radius: 8px; -moz-border-radius: 8px; + border-radius: 8px; + behavior: url(/static/styles/PIE.htc); border: solid 1px red; background-color: yellow; z-index: 10; -- 2.30.2