From cc515e469104b362dd366b2445126cb8179767f5 Mon Sep 17 00:00:00 2001 From: "R. Steve McKown" Date: Sun, 12 Aug 2012 21:43:26 -0600 Subject: [PATCH] Add pull quote macro To use: [[!pquote text="This is the text of the pull quote"]] --- in/style/default.css | 21 +++++++++++++++++++++ in/style/pquote.gif | Bin 0 -> 808 bytes in/webber.conf | 1 + plugins/pquote.py | 8 ++++++++ 4 files changed, 30 insertions(+) create mode 100644 in/style/pquote.gif create mode 100644 plugins/pquote.py diff --git a/in/style/default.css b/in/style/default.css index a143429..204210a 100644 --- a/in/style/default.css +++ b/in/style/default.css @@ -670,3 +670,24 @@ hr { font-style: normal; font-weight: bold; } + +/* ============================================= + Pull Quotes (pquote) +================================================ */ + +.pquote { + float: right; + width: 8em; + background: url(pquote.gif) top left no-repeat; + color: #030; + font-size: 2em; + line-height: 0.9; + font-style: italic; + padding: 0.5em; + margin: 0; +} + +.pquote p:first-letter { + font-size: 1.5em; + font-weight: bold; +} diff --git a/in/style/pquote.gif b/in/style/pquote.gif new file mode 100644 index 0000000000000000000000000000000000000000..1a573e545fa9d132f7d68b7c3ea170bd933b2189 GIT binary patch literal 808 zcmV+@1K0dVNk%w1VOIc50J9GO?(XjW{r&3d>htsS_V)JQ-{0ls<>TYy`}_O(`T61D z;q2_}=;-M1@bKN;-T(jpA^8LW000jFEC2ui09OD^000F4@X1N5wds({yZ4LmjpQ>F zP7##sm^seS&QBn~utD$Bi5Cgp2ywvS0K(bA2s^Bj7Xpe2+dw}70~IE^QU=@K(~BvF zW8??mjMJqliRl^Wy|IsPiSO=kLhXD7GH+mfFbiWlfOiauUWI%LRziz&4S6Pp4vl|? z2SIs|cbA=foOua`bWjb33z!dad$50H) zu$j(et-{j*a$yH#2-{n)(^_l_zdYn;-P5;Qptg4fwXoWwWc6&Mu+8deYvt1(AmB3z z%D_7X^P~&&tkfAdun6#(cjX|PWpARfVc_qMf`AtP&m>F&j*2)~m8g6q(~inJT_u^E zyrS{UN?0wKyi5`@%*;GB!`y_2jUJz$NrHw6n9~SGA+rLeq;hVD#5*Su5CFiHYXbsR zNALnDApn5}UAYdR_~9R$1po}h#BpFi*b6IuWe12Q zcB2PTPI=b^T5{$g3t6P*M+tRamRS;3V)f<)1LWx1pClmg;uZ${SONh8*aw3G0H`Pg m0u7XDL;(UQN<#wX#btm2YDs#}Rsb;YsQ>^Bz-0vy0029X(SPay literal 0 HcmV?d00001 diff --git a/in/webber.conf b/in/webber.conf index c0eba32..d02eaf2 100644 --- a/in/webber.conf +++ b/in/webber.conf @@ -5,6 +5,7 @@ date_format: "%Y-%m-%d %H:%M:%S" input_encoding: "iso-8859-1" output_encoding: "iso-8859-1" plugins: [ + "pquote", "skeleton", "hierarchy", "link", diff --git a/plugins/pquote.py b/plugins/pquote.py new file mode 100644 index 0000000..ffbf978 --- /dev/null +++ b/plugins/pquote.py @@ -0,0 +1,8 @@ +# -*- coding: iso-8859-1 -*- +from webber import * + +@set_macro("pquote") +def pquote_macro(params): + if cfg.test_verbose: + print "in macro skeleton.pull_quote_macro, params:", params + return "

" + params['text'] + "

" -- 2.39.2