“Twenty Twenty – CSS class list”
再利用が可能な定義済クラス
Twenty Twenty 定義済 クラス 2.
ギャラリーのスタイルを定義済なクラス
適用されるHTMLコードの例
<div class="widget_media_gallery">
<div class="gallery gallery-columns-3">
<figure class="gallery-item">
<div class="gallery-icon">
/* ここにギャラリー用のアイテム(画像)を配置 例: <img src="" /> */
</div>
<figcaption class="gallery-caption">
/* ここはアイテムのキャプションを配置 例: <p></p> */
</figcaption>
</figure>
<figure class="gallery-item">
<div class="gallery-icon">
/* ここにギャラリー用のアイテム(画像)を配置 例: <img src="" /> */
</div>
<figcaption class="gallery-caption">
/* ここはアイテムのキャプションを配置 例: <p></p> */
</figcaption>
</figure>
<figure class="gallery-item">
<div class="gallery-icon">
/* ここにギャラリー用のアイテム(画像)を配置 例: <img src="" /> */
</div>
<figcaption class="gallery-caption">
/* ここはアイテムのキャプションを配置 例: <p></p> */
</figcaption>
</figure>
</div>
</div>
gallery gallery-columns-n
; ギャラリーとして表示する全体のクラス。 ※nはカラムの数 2~9が定義済
gallery-item
; ギャラリー内のアイテムに設定するクラス
gallery-caption
; ギャラリーのキャプション クラス
ただいま制作中のため、今しばらくお待ちください。