MediaWiki:Common.css
表示
注意: 保存した後、ブラウザのキャッシュをクリアする必要があります。Mozilla / Firefox / Safari: [Shift] を押しながら [再読み込み] をクリック、または [Shift]-[Ctrl]-[R] (Macでは [Cmd]-[Shift]-[R]); IE: [Ctrl] を押しながら [更新] をクリック、または [Ctrl]-[F5]; Konqueror: [再読み込み] をクリック、または [F5]; Opera: 「ツール」→「設定」からキャッシュをクリア。
/* Common CSS for all skins */
/*<source lang="css">*/
/* wikitable/prettytable class for skinning normal tables */
table.wikitable,
table.prettytable {
margin: 1em 1em 1em 0;
background: #f9f9f9;
border: 1px #aaa solid;
border-collapse: collapse;
}
table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
border: 1px #aaa solid;
padding: 0.2em;
}
table.wikitable th,
table.prettytable th {
background: #f2f2f2;
text-align: center;
}
table.wikitable caption,
table.prettytable caption {
margin-left: inherit;
margin-right: inherit;
}
/* Style for "notices" */
.notice {
text-align: justify;
margin: 1em;
padding: 0.2em;
}
#disambig {
border-top: 3px double #ccc;
border-bottom: 3px double #ccc;
}
#spoiler {
border-top: 2px solid #ddd;
border-bottom: 2px solid #ddd;
}
/* Standard talk template style */
.Talk-Notice {
border: 1px solid #c0c090;
background-color: #f8eaba;
margin-bottom: 3px;
width: 85%;
border-spacing: 3px;
margin-left: auto;
margin-right: auto;
}
.Talk-Notice:after {
content: "The CSS for this template should be changed. See [[Wikipedia:Template Standardisation]]."
}
/* Make template background appear correctly on all browsers */
.Talk-Notice td {
background: inherit;
}
/* Metadata */
table.metadata {
border: 1px solid #aaa;
display: none;
}
.metadata-label {
color: #aaa;
}
/*Add formatting to make sure that "external references" from [[Template:Ref]] do
not get URL expansion, not even when printed. The mechanism up to MediaWiki 1.4 was
that the HTML code contained a SPAN following the anchor A; this SPAN had the class
"urlexpansion", which was not displayed on screen, but was shown when the medium was
"print". The rules below ensure (a) that there is no extra padding to the right of
the anchor (displayed as "[<number>]"), (b) that there is no "external link arrow" for
the link, and (c) that this SPAN of class "urlexpansion" is never shown.
~~~~
*/
.plainlinksneverexpand {
background: none !important;
padding: 0 !important;
}
.plainlinksneverexpand .urlexpansion {
display : none !important;
}
/* Make sure that ext links displayed within "plainlinksneverexpand" don't get
the arrow...
*/
.plainlinksneverexpand a {
background: none !important;
padding: 0 !important
}
/* With MediaWiki 1.5, the mechanism has changed: instead of a SPAN of class "urlexpansion"
following the anchor A, the anchor itself now has class "external autonumber" and the
expansion is inserted when printing (see the common printing style sheet at
http: //en.wikipedia.org/w/skins/common/commonPrint.css) using the ":after" pseudo-
element of CSS. We have to switch this off for links due to Template: Ref!
~~~~
*/
.plainlinksneverexpand a.external.text:after {
display: none !important;
}
.plainlinksneverexpand a.external.autonumber:after {
display: none !important;
}
/* Merge template style */
.messagebox {
border: 1px solid #aaa;
background: #f9f9f9;
width: 80%;
margin: 0 auto 1em auto;
padding: .2em;
text-align: justify;
}
.messagebox.merge {
border: solid #033 2px;
width: 55%;
background: #eff;
padding: 1em;
margin: 1em auto 1em auto;
}
.messagebox.cleanup {
border: 1px solid #9f9fff;
background: #efefff;
text-align: center;
}
.messagebox.standard-talk {
border: 1px solid #c0c090;
background: #f8eaba;
}
.infobox {
border: 1px solid #aaa;
background: #f9f9f9;
color: black;
margin-bottom: 0.5em;
margin-left: 1em;
padding: .2em;
float: right;
clear: right;
}
.infobox tr {
vertical-align: top;
}
.infobox caption {
margin-left: inherit;
}
.infobox.bordered {
border-collapse: collapse;
}
.infobox.bordered td, .infobox.bordered th {
border: 1px solid #aaa;
}
.infobox.sisterproject {
width: 20em;
font-size: 90%;
}
/* Put a checker background at the image description page only visible if the image has transparent background */
#file img { background: url("//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png") repeat }
/* Support for Template:IPA, Template:Unicode and Template:Polytonic. The inherit declaration resets the font for all browsers except MSIE6. The empty comment must remain. */
.IPA {
font-family: 'Chrysanthi Unicode', 'Doulos SIL', 'Gentium', 'GentiumAlt', 'Code2000', 'TITUS Cyberbit Basic', 'DejaVu Sans', 'Bitstream Vera Sans', 'Bitstream Cyberbit', 'Arial Unicode MS', 'Lucida Sans Unicode', 'Hiragino Kaku Gothic Pro', 'Matrix Unicode', sans-serif;
}
.Unicode {
font-family: 'TITUS Cyberbit Basic', 'Code2000', 'Doulos SIL', 'Chrysanthi Unicode', 'Bitstream Cyberbit', 'Bitstream CyberBase', 'Bitstream Vera', 'Thryomanes', 'Gentium', 'GentiumAlt', 'Visual Geez Unicode', 'Lucida Grande', 'Arial Unicode MS', 'Microsoft Sans Serif', 'Lucida Sans Unicode', sans-serif;
}
.polytonic {
font-family: 'Athena', 'Gentium', 'Palatino Linotype', 'Arial Unicode MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Code2000', sans-serif;
}
.SAMPA {
font-family: 'Courier',monospace
}
#wpSave {
font-weight: bold;
}
/* hiddenStructure from Monobook - allows selective hiding of markup in templates */
.hiddenStructure {
display: none;
speak: none;
}
/************************/
/* CommonsTicker styles */
/************************/
/* links */
.tickerDiffLink { } /* diff links in ticker */
.tickerMiscLink { } /* misc links in ticker */
/* remove list bullets */
.tickerList ul, .tickerList ul li { list-style: none; text-indent:-2em; margin-left:2em; text-align:left; }
.tickerList ul ul, .tickerList ul ul li { list-style: none; text-indent:0; margin-left:1.5em; text-align:left; }
/* per-type styles */
.tickerEntry_deleted { } /* entry for image deletion */
.tickerEntry_replaced { } /* entry for image replacement */
.tickerEntry_tagged { } /* entry for adding/removing problem tags */
.tickerEntry_redir { } /* entry for critical redirection (fot tag redirects) */
.tickerEntry_recat { } /* entry for critical re-categorization (for tag categories) */
.tickerEntry_notify { } /* entry for global notifications */
.tickerEntry_changed { } /* entry for generic change */
/* per-action styles */
.tickerAction_deleted:before { content:" GONE "; color: #FF0000; font-family:monospace; font-weight:bold; font-size:100%; }
.tickerAction_deletedRev:before { content:" -OLD "; color: #DDAAAA; font-family:monospace; font-weight:bold; font-size:100%; }
.tickerAction_replaced:before { content:" REPL "; color: #CC88FF; font-family:monospace; font-weight:bold; font-size:100%; }
.tickerAction_replacedOwn:before { content:" UPDT "; color: #EEAAFF; font-family:monospace; font-weight:bold; font-size:100%; }
.tickerAction_addedBad:before { content:" +VfD "; color: #FF8800; font-family:monospace; font-weight:bold; font-size:100%; }
.tickerAction_removedBad:before { content:" -VfD "; color: #00BB00; font-family:monospace; font-weight:bold; font-size:100%; }
.tickerAction_addedGood:before { content:" +OK "; color: #00BB00; font-family:monospace; font-weight:bold; font-size:100%; }
.tickerAction_removedGood:before { content:" -OK "; color: #FF8800; font-family:monospace; font-weight:bold; font-size:100%; }
/* ticker usage list */
.tickerUsage { font-size:80%; }
/* entry applies to a template used by multiple images */
.tickerTemplateEntry { font-weight: bold; }
/* entry applies to sub-entries, i.e. images that use a specific template */
.tickerSubEntry { }
/* minor entry styles */
.tickerMinorEntry { color:#666; } /* minor entry */
.tickerMinorEntry a,
.tickerMinorEntry a:link,
.tickerMinorEntry a:visited { color:#669; }
#bodyContent .tickerMinorEntry a.extiw,
#bodyContent .tickerMinorEntry a.extiw:link,
#bodyContent .tickerMinorEntry a.extiw:visited { color:#669; }
/* リダイレクトの表示 */
/* [[特別:Allpages]]・[[特別:Prefixindex]] */
.allpagesredirect a:link,
.allpagesredirect a:visited,
/* カテゴリ内 */
.redirect-in-category a:link,
.redirect-in-category a:visited,
/* ウォッチリスト */
.watchlistredir a:link,
.watchlistredir a:visited {
color: #666;
}
/* [[Template:Pathnav]] */
.pathnavbox {
clear: both;
border: 1px outset #eef;
padding: 0.3em 0.6em;
margin: 0 0 0.5em 0;
background-color: #eef;
font-size: 90%;
}
.pathnavbox ul {
list-style: none none;
margin-top: 0;
margin-bottom: 0;
}
.pathnavbox > ul {
margin: 0;
}
.pathnavbox ul li {
margin: 0;
}
/* どの見出しレベルまで目次に表示するかを制限します。例えば、<div class="toclimit-3"> とすると
==headings== と ===headings=== が目次に反映され、これより下の見出しレベルは無視されます。*/
.toclimit-2 .toclevel-2 { display: none; }
.toclimit-3 .toclevel-3 { display: none; }
.toclimit-4 .toclevel-4 { display: none; }
.toclimit-5 .toclevel-5 { display: none; }
.toclimit-6 .toclevel-6 { display: none; }
.toclimit-7 .toclevel-7 { display: none; }
/* pre タグ使用時の横の広がりを押さえる */
.preoverflow pre { overflow: auto; }
/* お知らせテンプレート (Article message box, ambox) */
table.ambox {
margin: -1px 10% 0px; /* -1px = Single border between stacked boxes in all browsers */
border-collapse: collapse;
background: #fbfbfb;
border: 1px solid #aaa;
border-left: 10px solid #1e90ff; /* 初期値: 「お知らせ」の青 */
font-size: 90%;
}
table.ambox th.ambox-text,
table.ambox td.ambox-text { /* メッセージ本体のセル */
padding: 0.25em 0.5em; /* 左右に 0.5em ずつのパディング */
width: 100%; /* 全テンプレートでテキスト量にかかわらず同サイズに */
}
table.ambox td.ambox-image { /* 左側の画像セル */
padding: 2px 0px 2px 0.5em; /* 左に 0.5em, 右に 0px のパディング */
text-align: center;
}
table.ambox td.ambox-imageright { /* 右側の画像セル */
padding: 2px 4px 2px 0px; /* 左に 0px , 右に 4px のパディング */
text-align: center;
}
table.ambox-notice {
border-left: 10px solid #1e90ff; /* 青 */
/* border-right: 10px solid #1e90ff; */ /* If you want two blue bars */
}
table.ambox-speedy {
border-left: 10px solid #b22222; /* Red */
background: #fee; /* Pink */
}
table.ambox-delete,
table.ambox-serious {
border-left: 10px solid #b22222; /* 赤 */
}
table.ambox-content {
border-left: 10px solid #f28500; /* 橙 */
}
table.ambox-style {
border-left: 10px solid #f4c430; /* 黄 */
}
table.ambox-merge {
border-left: 10px solid #9932cc; /* 紫 */
}
table.ambox-protection {
border-left: 10px solid #bba; /* 灰色 */
}
table.ambox.ambox-mini { /* small floating box variant */
float: right;
clear: right;
margin: 0 0 0 1em;
width: 272px;
border-left: 1px solid #aaa;
line-height: 1.2;
font-size: smaller;
}
/* ambox - 以下、日本語版の独自拡張 */
table.ambox div.ambox-imagecontainer { /* 画像セル内の画像表示領域 */
width: 52px;
}
table.ambox.ambox-section { /* 節用メッセージボックス */
margin: 0; /* マージンを取らない */
font-size: 80%;
}
table.ambox.ambox-section div.ambox-imagecontainer {
width: 30px;
}
table.ambox.ambox-section th.ambox-text,
table.ambox.ambox-section td.ambox-text {
padding: 0.1em 0.3em;
}
/* T156351: Support for Parsoid's Cite implementation */
span[ rel="mw:referencedBy" ]::before {
content: "^ ";
}
a[ rel="mw:referencedBy" ]::before {
content: "^";
}
/*</source>[[en:MediaWiki:Common.css]]*/