タイポグラフィ
引用
他者の言葉を本文と区別して表示します。
このページの内容
引用は、他者の言葉を本文と区別して表示します。本文中では、引用の開始側に淡い縦線を添え、テキストには見出しと同じ色を使います。縦線はボーダーを使わずに描画し、両端を丸く仕上げています。
引用
<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は、引用文そのものを際立たせる抜き出し引用です。縦線に代えて開き引用符を表示し、各行の長さが釣り合うように折り返します。1ページに1か所、1〜2文にとどめてください。
抜き出し引用
<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>を使います。出典のURLはcite属性で指定できます。 - 抜き出し引用の開き引用符は、スタイルシートで表示する装飾で、読み上げられません。抜き出し引用のテキスト自体には引用符を入力しないでください。
- 出典のアバターの横には同じ名前が表示されるため、アバターの
altは空にします。
#クラス
| クラス | 説明 |
|---|---|
quote | 先頭側に2pxの罫線を添えた引用文。 |
quote-lg | 抜き出し引用。縦線に代えて開始引用符を上に置き、大きな文字をバランスよく改行quote と併用します |
quote-body | 出典のある引用の blockquote です。このとき引用全体は figure になり、出典はこのパーツの後ろの figcaption に、引用文の外側に置きます。 |
quote-text | 引用文の 1 段落 |
quote-source | 発言者と発言の出所。名前と控えめな補足行の横に、任意でアバターを表示 |
quote-name | 名前を強調色で独立した行に表示します。 |