「MediaWiki:Common.css」の版間の差分
Kaien-admin (トーク | 投稿記録) 編集の要約なし |
Kaien-admin (トーク | 投稿記録) 編集の要約なし |
||
| 1行目: | 1行目: | ||
/* ここに記述したCSSはすべての外装に反映されます */ | /* ここに記述したCSSはすべての外装に反映されます */ | ||
/* | /* ベースとなるフォントスタイルと文字サイズの設定 */ | ||
:root { | |||
--ff-body: 'Segoe UI', Arial, sans-serif; /* フォントファミリー */ | |||
--fs-body: 20px; /* 基本の文字サイズ */ | |||
--fw-body: normal; /* フォントの太さ */ | |||
--lh-body: 1.8; /* 行の高さ */ | |||
} | |||
/* body全体のスタイリング */ | |||
body { | body { | ||
font-family: | font-family: var(--ff-body); | ||
font-size: | font-size: var(--fs-body); | ||
line-height: | line-height: var(--lh-body); | ||
background: #fafafa; /* | background-color: #fafafa; /* 背景色を明るく */ | ||
color: #333; /* | color: #333; /* 文字色を少し暗く */ | ||
} | } | ||
/* | /* 見出しのスタイリング */ | ||
h1, h2, h3, h4, h5, h6 { | h1, h2, h3, h4, h5, h6 { | ||
font-family: 'Georgia | font-family: 'Georgia', serif; /* 見出しにはセリフフォントを使用 */ | ||
color: # | } | ||
/* リンクのスタイリング */ | |||
a { | |||
color: #0645ad; /* 青色のリンク */ | |||
text-decoration: none; /* 下線を非表示に */ | |||
} | |||
a:hover { | |||
text-decoration: underline; /* ホバー時に下線を表示 */ | |||
} | } | ||
/* コンテンツエリアのスタイリング */ | |||
.mw-body { | |||
background-color: #fff; /* コンテンツの背景色を白に */ | |||
padding: 20px; /* パディングを設定 */ | |||
border-radius: 8px; /* 角を丸める */ | |||
box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* シャドウを追加 */ | |||
} | |||
/* 見出しのフォントサイズも適宜調整 */ | /* 見出しのフォントサイズも適宜調整 */ | ||
| 34行目: | 60行目: | ||
font-size: 1em; /* h6は基本文字サイズと同等 */ | font-size: 1em; /* h6は基本文字サイズと同等 */ | ||
} | } | ||
.infobox { | .infobox { | ||
2024年8月10日 (土) 14:59時点における版
/* ここに記述したCSSはすべての外装に反映されます */
/* ベースとなるフォントスタイルと文字サイズの設定 */
:root {
--ff-body: 'Segoe UI', Arial, sans-serif; /* フォントファミリー */
--fs-body: 20px; /* 基本の文字サイズ */
--fw-body: normal; /* フォントの太さ */
--lh-body: 1.8; /* 行の高さ */
}
/* body全体のスタイリング */
body {
font-family: var(--ff-body);
font-size: var(--fs-body);
line-height: var(--lh-body);
background-color: #fafafa; /* 背景色を明るく */
color: #333; /* 文字色を少し暗く */
}
/* 見出しのスタイリング */
h1, h2, h3, h4, h5, h6 {
font-family: 'Georgia', serif; /* 見出しにはセリフフォントを使用 */
}
/* リンクのスタイリング */
a {
color: #0645ad; /* 青色のリンク */
text-decoration: none; /* 下線を非表示に */
}
a:hover {
text-decoration: underline; /* ホバー時に下線を表示 */
}
/* コンテンツエリアのスタイリング */
.mw-body {
background-color: #fff; /* コンテンツの背景色を白に */
padding: 20px; /* パディングを設定 */
border-radius: 8px; /* 角を丸める */
box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* シャドウを追加 */
}
/* 見出しのフォントサイズも適宜調整 */
h1 {
font-size: 2.2em; /* h1は基本文字サイズの2.2倍 */
}
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は基本文字サイズと同等 */
}
.infobox {
background-color: #f9f9f9;
border: 1px solid #aaa;
padding: 0.5em;
margin: 1em;
font-size: 1em;
width: 27em;
text-align: left;
}
.infobox th, .infobox td {
padding: 3px;
text-align: left;
}
.infobox th {
width: 7em;
background-color: #f2f2f2;
}