[evolution/wip/webkit-composer: 150/262] EEditorWidget: Add styles for blockquote[type=cite].
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 150/262] EEditorWidget: Add styles for blockquote[type=cite].
- Date: Thu, 16 Jan 2014 10:00:29 +0000 (UTC)
commit a57102c6c14e0830d2518a40141e9668cb9f0656
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Feb 7 10:28:43 2013 -0500
EEditorWidget: Add styles for blockquote[type=cite].
Adds solid colored left and right borders. The border colors vary
for up to 5 levels of nesting, and are borrowed from Thunderbird.
e-util/e-editor-widget.c | 54 ++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 52 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index ad7a2b7..4712f68 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/e-editor-widget.c
@@ -1775,11 +1775,61 @@ e_editor_widget_update_fonts (EEditorWidget *widget)
" margin-bottom: 0.2em;\n"
"}\n");
- /* Do not indent citations. */
g_string_append_printf (
stylesheet,
"blockquote[type=cite] {\n"
- " margin: 0;\n"
+ " padding: 0.4ex 1ex;\n"
+ " margin: 1ex;\n"
+ " border-width: 0px 2px 0px 2px;\n"
+ " border-style: none solid none solid;\n"
+ " border-radius: 2px;\n"
+ "}\n");
+
+ /* Block quote border colors are borrowed from Thunderbird. */
+
+ g_string_append_printf (
+ stylesheet,
+ "blockquote[type=cite] "
+ "{\n"
+ " border-color: rgb(114,159,207);\n" /* Sky Blue 1 */
+ "}\n");
+
+ g_string_append_printf (
+ stylesheet,
+ "blockquote[type=cite] "
+ "blockquote[type=cite] "
+ "{\n"
+ " border-color: rgb(173,127,168);\n" /* Plum 1 */
+ "}\n");
+
+ g_string_append_printf (
+ stylesheet,
+ "blockquote[type=cite] "
+ "blockquote[type=cite] "
+ "blockquote[type=cite] "
+ "{\n"
+ " border-color: rgb(138,226,52);\n" /* Chameleon 1 */
+ "}\n");
+
+ g_string_append_printf (
+ stylesheet,
+ "blockquote[type=cite] "
+ "blockquote[type=cite] "
+ "blockquote[type=cite] "
+ "blockquote[type=cite] "
+ "{\n"
+ " border-color: rgb(252,175,62);\n" /* Orange 1 */
+ "}\n");
+
+ g_string_append_printf (
+ stylesheet,
+ "blockquote[type=cite] "
+ "blockquote[type=cite] "
+ "blockquote[type=cite] "
+ "blockquote[type=cite] "
+ "blockquote[type=cite] "
+ "{\n"
+ " border-color: rgb(233,185,110);\n" /* Chocolate 1 */
"}\n");
gdk_color_free (link);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]