-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathblockquote.vtl
81 lines (69 loc) · 1.89 KB
/
blockquote.vtl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#** ===========================================================================
BLOCKQOUTE
This Confluence user macro adds a styled blockquote to your page.
Version: 1.2.0
Updated: 2021-01-08
Author/s: George Lewe
Source: https://github.com/glewe/confluence-user-macros
License: GNU LGPLv3
Macro Body Processing: Rendered
*#
#** ---------------------------------------------------------------------------
PARAMETERS
*#
## @param Source:title=Source|type=string|desc=Enter the source (e.g. name of the person) of the quote.|default=
#** ---------------------------------------------------------------------------
DEFAULTS
*#
#** ---------------------------------------------------------------------------
INPUT
*#
#** ---------------------------------------------------------------------------
OUTPUT
*#
<!-- User Macro: Blockquote START -->
<blockquote class="usermacro">
#if ($body != "")
$body
#end
#if ($paramSource != "")
<cite>$paramSource</cite>
#end
</blockquote>
<style>
blockquote.usermacro {
font-size: 1.2em;
margin:40px 40px 40px 40px;
font-family:Calibri,Arial,sans-serif;
font-style:italic;
color: #333333;
padding:1.2em 30px 1.2em 75px;
border-left:8px solid #428bca ;
line-height:1.6;
position: relative;
background:#f0f0f0;
}
blockquote.usermacro::before{
font-family:Arial;
content: '\201C';
color:#428bca;
font-size:4em;
position: absolute;
left: 10px;
top:-10px;
}
blockquote.usermacro::after{
content: '';
}
blockquote.usermacro cite {
display:block;
color:#999999;
font-style: normal;
font-weight: bold;
margin-top:1em;
}
blockquote.usermacro cite::before{
content: '- ';
}
</style>
<!-- User Macro: Blockquote END -->