MediaWiki:Common.css
注意: 保存後、変更を確認するにはブラウザーのキャッシュを消去する必要がある場合があります。
- Firefox / Safari: Shift を押しながら 再読み込み をクリックするか、Ctrl-F5 または Ctrl-R を押してください (Mac では ⌘-R)
- Google Chrome: Ctrl-Shift-R を押してください (Mac では ⌘-Shift-R)
- Internet Explorer / Microsoft Edge: Ctrl を押しながら 最新の情報に更新 をクリックするか、Ctrl-F5 を押してください
- Opera: Ctrl-F5を押してください
/* ここに記述したCSSはすべての外装に反映されます */
/* 全体のフォントと基本の文字サイズを設定 */
body {
font-family: 'Segoe UI', 'Arial', sans-serif; /* ノート風のフォント */
font-size: 20px; /* 読みやすい基本の文字サイズ */
line-height: 1.6; /* 行間も広めに設定 */
background: #fafafa; /* 背景色をソフトな色に設定 */
color: #333; /* 文字色を柔らかい黒に設定 */
}
/* 見出しのスタイル */
h1, h2, h3, h4, h5, h6 {
font-family: 'Georgia', 'Times New Roman', serif; /* 見出しにはセリフフォントを使用 */
color: #2a2a2a; /* 見出しの文字色を少し濃く */
}
/* 見出しのフォントサイズも適宜調整 */
h1 {
font-size: 2.5em; /* h1は基本文字サイズの2.5倍 */
}
h2 {
font-size: 2em; /* h2は基本文字サイズの2倍 */
}
h3 {
font-size: 1.75em; /* h3は基本文字サイズの1.75倍 */
}
h4 {
font-size: 1.5em; /* h4は基本文字サイズの1.5倍 */
}
h5 {
font-size: 1.25em; /* h5は基本文字サイズの1.25倍 */
}
h6 {
font-size: 1em; /* h6は基本文字サイズと同等 */
}
/* リンクのスタイル */
a {
color: #0645ad; /* リンク色 */
}
a:hover {
text-decoration: underline; /* ホバー時に下線を表示 */
}
/* ナビゲーションパネルのスタイル調整 */
#mw-panel {
background: #e9e9e9; /* ナビゲーションパネルの背景色 */
font-family: 'Arial', sans-serif; /* ナビゲーションのフォント */
}
/* コンテンツエリアのスタイル */
#content {
background: white; /* コンテンツエリアの背景色を白に */
padding: 20px; /* コンテンツエリアのパディング */
border-radius: 8px; /* 角を丸める */
box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* シャドウを追加 */
}
.infobox {
background-color: #f9f9f9;
border: 1px solid #aaa;
padding: 5px;
font-size: 90%;
width: 27em;
text-align: left;
}
.infobox th, .infobox td {
padding: 3px;
text-align: left;
}
.infobox th {
width: 7em;
background-color: #f2f2f2;
}