「MediaWiki:Common.css」の版間の差分
削除された内容 追加された内容
MediaWiki‐ノート:Common.css#MboxとAsboxのCSS書式整理に基づき編集、en:MediaWiki:Common.css oldid=1038352369 を参考 |
|||
261行目:
.messagebox {
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
width: 80%;
margin: 0 auto 1em auto;
271行目:
border: 2px solid #033;
width: 55%;
background-color: #eff;
padding: 1em;
margin: 1em auto 1em auto;
278行目:
.messagebox.cleanup {
border: 1px solid #9f9fff;
background-color: #efefff;
text-align: center;
}
284行目:
.messagebox.standard-talk {
border: 1px solid #c0c090;
background-color: #f8eaba;
}
440行目:
.client-js div.NavFrame.mw-collapsed::before {
content: '';
}▼
/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */▼
th.mbox-text, td.mbox-text { /* The message body cell(s) */▼
border: none;▼
/* @noflip */
padding: 0.25em 0.9em; /* 0.9em left/right */▼
width: 100%; /* Make all mboxes the same width regardless of text length */▼
font-size: 90%;▼
}▼
td.mbox-image { /* The left image cell */▼
border: none;▼
/* @noflip */
padding: 2px 0 2px 0.9em; /* 0.9em left, 0px right */▼
text-align: center;▼
}▼
td.mbox-imageright { /* The right image cell */▼
border: none;▼
/* @noflip */
padding: 2px 0.9em 2px 0; /* 0px left, 0.9em right */▼
text-align: center;▼
}▼
td.mbox-empty-cell { /* An empty narrow cell */▼
border: none;▼
padding: 0px;▼
width: 1px;▼
}
/* Article message box styles */
table.ambox {
margin: 0px 10%; /* 10% = 他の要素にはみ出るのを防ぐ */
border: 1px solid #a2a9b1;
/* @noflip */
border-left: 10px solid #1e90ff; background-color: #fbfbfb;
}
table.ambox + table.ambox { /* 重なったボックスの間を単一の罫線に */
margin-top: -1px;
}
456 ⟶ 486行目:
.ambox th.mbox-text,
.ambox td.mbox-text { /* メッセージ本体のセル */
padding: 0.25em 0.5em; /* 左右に
}
.ambox td.mbox-image { /* 左の画像セル */
/* @noflip */
padding: 2px 0 2px 0.5em; /* 左に
}
.ambox td.mbox-imageright { /* 右の画像セル */
/* @noflip */
padding: 2px 0.5em 2px 0; /* 左に
}
table.ambox-notice {
/* @noflip */
border-left: 10px solid #1e90ff; /* 青 */
}
table.ambox-speedy {
/* @noflip */
border-left: 10px solid #b22222; /* 赤 */
background-color: #fee;
}
table.ambox-delete {
/* @noflip */
border-left: 10px solid #b22222; /* 赤 */
}
table.ambox-content {
/* @noflip */
border-left: 10px solid #f28500; /* 橙 */
}
table.ambox-style {
/* @noflip */
border-left: 10px solid #f4c430; /* 黄 */
}
table.ambox-move {
/* @noflip */
border-left: 10px solid #9932cc; /* 紫 */
}
table.ambox-protection {
/* @noflip */
border-left: 10px solid #bba; /* 灰色・金色 */
▲}
▲/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
▲th.mbox-text, td.mbox-text { /* The message body cell(s) */
▲ border: none;
▲ padding: 0.25em 0.9em; /* 0.9em left/right */
▲ width: 100%; /* Make all mboxes the same width regardless of text length */
▲ font-size: 90%;
▲}
▲td.mbox-image { /* The left image cell */
▲ border: none;
▲ padding: 2px 0 2px 0.9em; /* 0.9em left, 0px right */
▲ text-align: center;
▲}
▲td.mbox-imageright { /* The right image cell */
▲ border: none;
▲ padding: 2px 0.9em 2px 0; /* 0px left, 0.9em right */
▲ text-align: center;
▲}
▲td.mbox-empty-cell { /* An empty narrow cell */
▲ border: none;
▲ padding: 0px;
▲ width: 1px;
}
544 ⟶ 557行目:
margin: 4px 10%;
border-collapse: collapse;
border: 3px solid #1e90ff;
background-color: #fbfbfb;
}
.imbox .mbox-text .imbox { /* For imboxes inside imbox-text cells. */
margin: 0 -0.5em; /* 0.9 - 0.5 = 0.4em left/right. */
}
.mbox-inside .imbox { /* For imboxes inside other templates. */
margin: 4px;
}
562 ⟶ 575行目:
table.imbox-speedy {
border: 3px solid #b22222; /* Red */
background-color: #fee;
}
587 ⟶ 600行目:
table.imbox-license {
border: 3px solid #88a; /* Dark gray */
background-color: #f7f8ff;
}
599 ⟶ 612行目:
border-collapse: collapse;
border: 1px solid #a2a9b1;
background-color: #
}
table.cmbox-notice {
background-color: #
}
610 ⟶ 623行目:
margin-bottom: 4px;
border: 4px solid #b22222; /* Red */
background-color: #
}
table.cmbox-delete {
background-color: #
}
table.cmbox-content {
background-color: #
}
table.cmbox-style {
background-color: #
}
table.cmbox-move {
background-color: #
}
table.cmbox-protection {
background-color: #
}
637 ⟶ 650行目:
margin: 4px 10%;
border-collapse: collapse;
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
}
table.ombox-notice {
border: 1px solid #a2a9b1;
}
table.ombox-speedy {
border: 2px solid #b22222; /* Red */
background-color: #fee;
}
675 ⟶ 688行目:
border-collapse: collapse;
border: 1px solid #c0c090; /* Default "notice" gray-brown */
background-color: #f8eaba;
}
.mediawiki .mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" class ensures that */
margin: 2px 0; /*
width: 100%;
}
690 ⟶ 703行目:
table.tmbox-speedy {
border: 2px solid #b22222; /* Red */
background-color: #fee;
}
720 ⟶ 733行目:
width: 100%;
border: 1px solid #a2a9b1;
background-color: #f8f9fa; /* Default "system" gray */
}
table.fmbox-system {
background-color: #f8f9fa;
}
table.fmbox-warning {
border: 1px solid #bb7070; /* Dark pink */
background-color: #ffdbdb;
}
table.fmbox-editnotice {
background-color: transparent;
}
744 ⟶ 757行目:
margin: 0.2em 0;
border: 1px solid #bb7070;
background-color: #ffdbdb;
padding: 0.25em 0.9em;
}
756 ⟶ 769行目:
margin: 0.2em 0;
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
padding: 0.25em 0.9em;
}
764 ⟶ 777行目:
they override "table.ambox + table.ambox" above. */
body.mediawiki table.mbox-small { /* For the "small=yes" option. */
/* @noflip */
clear: right;
/* @noflip */
float: right;
/* @noflip */
margin: 4px 0 4px 1em;
width: 238px;
773 ⟶ 789行目:
body.mediawiki table.mbox-small-left { /* For the "small=left" option. */
/* @noflip */
margin: 4px 1em 4px 0;
width: 238px;
806 ⟶ 823行目:
/* 脚注ジャンプ先強調 */
.citation:target {
background-color: #
}
857 ⟶ 874行目:
.asbox {
border: solid #999 1px;
background-color: #
margin: 0.5em 10%;
clear: both;
|