summaryrefslogtreecommitdiff
path: root/docs/modules/theme/pages/quote.adoc
blob: 2ae1f161c238678079931ae045afeba945982351 (plain) (blame)
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
= Quote Category Keys
:description: Reference list of the available quote block category keys and their value types.
:navtitle: Quote
:source-language: yaml

[#quote]
== quote

The keys in the `quote` category control the arrangement and style of quote blocks.

[cols="3,4,6a"]
|===
|Key |Value Type |Example

|background-color
|xref:color.adoc[Color] +
(default: _not set_)
|[source]
quote:
  background-color: #757575

|border-color
|xref:blocks.adoc#border-color[Color] +
(default: `'EEEEEE'`)
|[source]
quote:
  border-color: #E6E8FA

|<<border-width,border-left-width>>
|xref:blocks.adoc#border-width[Measurement] +
(default: `4`)
|[source]
quote:
  border-left-width: 5

|border-radius
|xref:blocks.adoc#radius[Measurement] +
(default: _not set_)
|[source]
code:
  border-radius: 4

|border-style
|xref:blocks.adoc#border-style[Border style] +
(default: `solid`)
|[source]
quote:
  border-style: dotted

|<<border-width,border-width>>
|xref:blocks.adoc#border-width[Measurement] {vbar} xref:blocks.adoc#border-width[Measurement[\]] +
(default: `0`)
|[source]
quote:
  border-width: 0.5

|font-color
|xref:color.adoc[Color] +
(default: _inherit_)
|[source]
quote:
  font-color: #333333

|font-family
|xref:font-support.adoc[Font family name] +
(default: _inherit_)
|[source]
quote:
  font-family: Noto Serif

|font-kerning
|`none` {vbar} `normal` +
(default: _inherit_)
|[source]
quote:
  font-kerning: none

|font-size
|xref:language.adoc#values[Number] +
(default: _inherit_)
|[source]
quote:
  font-size: 13

|font-style
|xref:text.adoc#font-style[Font style] +
(default: _inherit_)
|[source]
quote:
  font-style: bold

|padding
|xref:blocks.adoc#padding[Measurement] {vbar} xref:blocks.adoc#padding[Measurement[\]] +
(default: `[3, 12, 3, 14]`)
|[source]
quote:
  padding: [3, 0, 3, 20]

|text-transform
|xref:text.adoc#transform[Text transform] +
(default: _inherit_)
|[source]
quote:
  text-transform: uppercase
|===

[#border-width]
=== border-width and border-left-width

If the value assigned to the `border-left-width` key is non-zero, the border is only applied to the left side of the quote block.
Otherwise, if the value assigned to the `border-width` key is non-zero, the border is drawn around the whole quote block.

[#quote-cite]
== quote-cite

The keys in the `quote-cite` category control the arrangement and style of the citation in quote blocks.

[cols="3,4,6a"]
|===
|Key |Value Type |Example

|font-size
|xref:language.adoc#values[Number] +
(default: _inherit_)
|[source]
quote:
  cite:
    font-size: 9

|font-color
|xref:color.adoc[Color] +
(default: _inherit_)
|[source]
quote:
  cite:
    font-color: #999999

|font-family
|xref:font-support.adoc[Font family name] +
(default: _inherit_)
|[source]
quote:
  cite:
    font-family: Noto Serif

|font-kerning
|`none` {vbar} `normal` +
(default: _inherit_)
|[source]
quote:
  cite:
    font-kerning: none

|font-style
|xref:text.adoc#font-style[Font style] +
(default: _inherit_)
|[source]
quote:
  cite:
    font-style: bold

|text-transform
|xref:text.adoc#transform[Text transform] +
(default: _inherit_)
|[source]
quote:
  cite:
    text-transform: smallcaps
|===