「MediaWiki:Common.css」の版間の差分
Kaien-admin (トーク | 投稿記録) 編集の要約なし |
Kaien-admin (トーク | 投稿記録) 編集の要約なし |
||
| 3行目: | 3行目: | ||
body { | body { | ||
font-family: 'Segoe UI', 'Arial', sans-serif; /* ノート風のフォント */ | font-family: 'Segoe UI', 'Arial', sans-serif; /* ノート風のフォント */ | ||
font-size: | font-size: 20px; /* 読みやすい基本の文字サイズ */ | ||
line-height: 1.6; /* 行間も広めに設定 */ | line-height: 1.6; /* 行間も広めに設定 */ | ||
background: #fafafa; /* 背景色をソフトな色に設定 */ | background: #fafafa; /* 背景色をソフトな色に設定 */ | ||
| 13行目: | 13行目: | ||
font-family: 'Georgia', 'Times New Roman', serif; /* 見出しにはセリフフォントを使用 */ | font-family: 'Georgia', 'Times New Roman', serif; /* 見出しにはセリフフォントを使用 */ | ||
color: #2a2a2a; /* 見出しの文字色を少し濃く */ | 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は基本文字サイズと同等 */ | |||
} | } | ||
2024年8月10日 (土) 11:32時点における版
/* ここに記述した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;
}