文字排版
引文
將他人的話與自己的文字區隔開來。
本頁內容
引文將他人的話與你的文字區隔開來。置於正文時,引文以低調的直線標出起始側,文字則沿用標題的文字色。直線採獨立繪製,無須使用邊框,兩端因此能保持圓弧。
引文
<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屬性記錄來源網址。 - 醒目引文的開引號由樣式表繪製,僅供裝飾,螢幕閱讀器不會朗讀。請勿在引文文字中再輸入引號。
- 頭像旁已顯示引文來源的姓名,因此頭像的
alt請留空。
#類別
| 類別 | 說明 |
|---|---|
quote | 引文的起始側加上 2px 的側邊線。 |
quote-lg | 醒目引文使用較大的文字,各行長度均衡,並以上方的起始引號取代側邊線。搭配 quote 使用 |
quote-body | 有出處的引言中的 blockquote:此時引言本身是 figure,出處接在這個部件之後,放在 figcaption 中,位於引用文字之外。 |
quote-text | 引文中的一個段落。 |
quote-source | 顯示發言者姓名和一行色調較淡的出處文字,旁邊可加上頭像。 |
quote-name | 名稱獨立成行,採用醒目的文字色。 |