settings
文字色変更
code:style.css
.deco-\! {
}
.deco-\% {
}
.deco-\# {
}
.deco-\~ {
}
* で画像サイズ変更
code:style.css
/* 幅は変わるけど高さが変わらない 一旦保留
/* .level-1 img { width: 100%; }
/* .level-2 img { width: 33.3%; max-height: none; }
/* .level-3 img { width: 50%; max-height: none; }
/* .level-4 img { width: 66.7%; max-height: none; }
/* .level-5 img { width: 83.3%; max-height: none; }
/* .level-6 img { width: 100%; max-height: none; }
画像を並べて表示
以下サイトから
code:style.css
/* マトリクス記法 */
.line:not(.cursor-line) .deco-\| { display: inline-flex }
.line .deco-\| img.image { object-fit: contain; margin: 0 }
/* 太字記法と組み合わせて列数を変える */
.line .level-1 .deco-\| > span { width: calc(100%/1) }
.line .level-2 .deco-\| > span { width: calc(100%/2) }
.line .level-3 .deco-\| > span { width: calc(100%/3) }
.line .level-4 .deco-\| > span { width: calc(100%/4) }
.line .level-5 .deco-\| > span { width: calc(100%/5) }
.line class^="level" .deco-\| img.image { object-fit: cover; width: 100%; height: 100% } /* 並べた画像の間にスキマが欲しい場合はこの2行を追加・ぴっちり敷き詰めたい場合はこの2行は不要 */
.line .deco-\| > span, .line class^="level" .deco-\| > span { overflow: hidden } .line .deco-\| img.image, .line class^="level" .deco-\| img.image { margin: .2em }