2013年11月25日月曜日

MediaWikiのCSS編集

以下のページで上書き用のCSSを追記する。

/wiki/index.php/MediaWiki:Common.css

"/wiki"はLocalSettings.phpの$wgScriptPath部分、"index.php"は隠すように設定しているなら抜く。


自分としては、標準のCSSで見出しの区切り目がわかりにくく、特にh3とh4の差がわからないのでh4が親のh3の節の中の小見出しなのに次の節のように見えてしまうのが気に入らない。

ので、

こんな風にしている。

body {
 font-family:'Lucida Grande','Hiragino Kaku Gothic ProN',Meiryo, sans-serif;
}
#bodyContent {
 line-height:175%;
}

h1, h2 {
 margin-top:1.5em;
}
h3, h4 {
 margin-top:1em;
}

h4 span.mw-headline {
 font-size:100%;
 font-weight:normal;
 color:#333;
 border-bottom:1px solid #999;
}

0 件のコメント:

コメントを投稿