排版
引用块
将他人的原话单独排版,与自己的文字区分开。
本页内容
引用组件将他人的原话与作者自己的文字区分开来。在正文中,引文使用标题的墨色,起始侧有一条柔和的竖线。竖线两端绘制成圆头,采用独立线条而非边框,因此没有尖角。
引用块
<figure class="quote max-w(420) mx-auto"> <blockquote class="quote-body"> <p class="quote-text">Good tools make the next step clear and leave room for the work.</p> </blockquote> <figcaption class="quote-source"> <span class="avatar avatar-sm"><img class="avatar-image" src="/demo/portrait-1.svg" alt></span> <span><span class="quote-name">Alex Morgan</span>Design lead, Atlas</span> </figcaption></figure><figure className="quote max-w(420) mx-auto"> <blockquote className="quote-body"> <p className="quote-text">Good tools make the next step clear and leave room for the work.</p> </blockquote> <figcaption className="quote-source"> <span className="avatar avatar-sm"> <img className="avatar-image" src="/demo/portrait-1.svg" alt="" /> </span> <span><span className="quote-name">Alex Morgan</span>Design lead, Atlas</span> </figcaption></figure><figure class="quote max-w(420) mx-auto"> <blockquote class="quote-body"> <p class="quote-text">Good tools make the next step clear and leave room for the work.</p> </blockquote> <figcaption class="quote-source"> <span class="avatar avatar-sm"><img class="avatar-image" src="/demo/portrait-1.svg" alt></span> <span><span class="quote-name">Alex Morgan</span>Design lead, Atlas</span> </figcaption></figure><template> <figure class="quote max-w(420) mx-auto"> <blockquote class="quote-body"> <p class="quote-text">Good tools make the next step clear and leave room for the work.</p> </blockquote> <figcaption class="quote-source"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/portrait-1.svg" alt> </span> <span><span class="quote-name">Alex Morgan</span>Design lead, Atlas</span> </figcaption> </figure></template>将引文的每一段分别放入一个 quote-text。出处不属于引文本身,因此带出处的引用要写成 <figure>:引文放在带 quote-body 的 <blockquote> 中,出处紧随其后,放在带 quote-source 的 <figcaption> 里。其中可放入头像(如有)、以墨色显示的 quote-name,以及一行低调的文字标明身份或地点。作品标题放在 <cite> 中。没有出处的引用直接使用 <blockquote> 即可。
#醒目引文
quote-lg 用于醒目引文,突出引文本身。起始侧的竖线换成左引号,各行长度保持均衡。每页使用一处,控制在一两句话内。
醒目引文
<figure class="quote quote-lg max-w(480) mx-auto"> <blockquote class="quote-body"> <p class="quote-text"> We replaced four libraries with a stylesheet, and the interface got quieter. </p> </blockquote> <figcaption class="quote-source"> <span class="avatar"><img class="avatar-image" src="/demo/portrait-3.svg" alt></span> <span><span class="quote-name">Sam Lee</span>Engineering, <cite>Orbit Review</cite></span> </figcaption></figure><figure className="quote quote-lg max-w(480) mx-auto"> <blockquote className="quote-body"> <p className="quote-text"> We replaced four libraries with a stylesheet, and the interface got quieter. </p> </blockquote> <figcaption className="quote-source"> <span className="avatar"> <img className="avatar-image" src="/demo/portrait-3.svg" alt="" /> </span> <span><span className="quote-name">Sam Lee</span>Engineering, <cite>Orbit Review</cite></span> </figcaption></figure><figure class="quote quote-lg max-w(480) mx-auto"> <blockquote class="quote-body"> <p class="quote-text"> We replaced four libraries with a stylesheet, and the interface got quieter. </p> </blockquote> <figcaption class="quote-source"> <span class="avatar"><img class="avatar-image" src="/demo/portrait-3.svg" alt></span> <span><span class="quote-name">Sam Lee</span>Engineering, <cite>Orbit Review</cite></span> </figcaption></figure><template> <figure class="quote quote-lg max-w(480) mx-auto"> <blockquote class="quote-body"> <p class="quote-text"> We replaced four libraries with a stylesheet, and the interface got quieter. </p> </blockquote> <figcaption class="quote-source"> <span class="avatar"><img class="avatar-image" src="/demo/portrait-3.svg" alt></span> <span><span class="quote-name">Sam Lee</span>Engineering, <cite>Orbit Review</cite></span> </figcaption> </figure></template>#多段引文
多段引文
<blockquote class="quote max-w(420) mx-auto"> <p class="quote-text"> The first version shipped with eleven components. We thought that was a start. </p> <p class="quote-text">It turned out to be most of what an interface needs, most of the time.</p></blockquote><blockquote className="quote max-w(420) mx-auto"> <p className="quote-text"> The first version shipped with eleven components. We thought that was a start. </p> <p className="quote-text"> It turned out to be most of what an interface needs, most of the time. </p></blockquote><blockquote class="quote max-w(420) mx-auto"> <p class="quote-text"> The first version shipped with eleven components. We thought that was a start. </p> <p class="quote-text">It turned out to be most of what an interface needs, most of the time.</p></blockquote><template> <blockquote class="quote max-w(420) mx-auto"> <p class="quote-text"> The first version shipped with eleven components. We thought that was a start. </p> <p class="quote-text">It turned out to be most of what an interface needs, most of the time.</p> </blockquote></template>#无障碍
- 独立成块的引文使用
<blockquote>,句内引文使用<q>。可用cite属性记录来源的 URL。 - 醒目引文的左引号是样式表绘制的装饰,屏幕阅读器不会朗读它。请勿在醒目引文的文字中再输入引号。
- 出处中的头像与旁边的姓名指向同一人,因此将头像的
alt留空。
#类名
| 类名 | 说明 |
|---|---|
quote | 引文沿起始侧的 2px 竖线排布 |
quote-lg | 突出显示的引文,使用大字并均衡分行,在上方放置开引号来代替侧边竖线与 quote 一同使用 |
quote-body | 有出处的引言中的 blockquote:此时引言本身是 figure,出处位于此部件之后的 figcaption 中,在引用文字之外。 |
quote-text | 引文中的一个段落 |
quote-source | 发言者姓名和一行弱化显示的出处,姓名旁可加头像 |
quote-name | 发言者姓名独占一行,使用强调墨色。 |