見た目カスタマイズ - custom.css
どこで設定?
src/css/custom.css
を編集custom.css
はdinosaurus.config.ts
のcustomCss
に設定してある
TODO
!important
とやっている箇所は無理やり反映させているもの。たぶん、それぞれ別の正しいやり方がある。
たとえば --ifm-..
系の変数は Infima CSS framework に詳しくなると適切な設定方法があったりするかも、、等。
テーブルの調整
セルの余白を狭める
css
:root {
..
--ifm-table-cell-padding: 0.05rem 0.75rem;
}
ヘッダ中央寄せ
css
th {
text-align: center !important;
font-weight: normal !important;
}
交互に行背景つけない
css
tr {
--ifm-table-stripe-background: transparent;
}
自動で改行させない (br は有効)
css
table td,
table th {
white-space: nowrap;
}