「Common.css」の版間の差分
Music765plus (トーク | 投稿記録) |
Music765plus (トーク | 投稿記録) |
||
103行目: | 103行目: | ||
.navbox .collapseButton { | .navbox .collapseButton { | ||
width: 6em; | width: 6em; | ||
+ | } | ||
+ | |||
+ | /* Infobox template style */ | ||
+ | .infobox { | ||
+ | border: 1px solid #a2a9b1; | ||
+ | border-spacing: 3px; | ||
+ | background-color: #f8f9fa; | ||
+ | color: black; | ||
+ | /* @noflip */ | ||
+ | margin: 0.5em 0 0.5em 1em; | ||
+ | padding: 0.2em; | ||
+ | /* @noflip */ | ||
+ | float: right; | ||
+ | /* @noflip */ | ||
+ | clear: right; | ||
+ | font-size: 88%; | ||
+ | line-height: 1.5em; | ||
+ | } | ||
+ | .infobox caption { | ||
+ | font-size: 125%; | ||
+ | font-weight: bold; | ||
+ | padding: 0.2em; | ||
+ | text-align: center; | ||
+ | } | ||
+ | .infobox td, | ||
+ | .infobox th { | ||
+ | vertical-align: top; | ||
+ | /* @noflip */ | ||
+ | text-align: left; | ||
+ | } | ||
+ | .infobox.bordered { | ||
+ | border-collapse: collapse; | ||
+ | } | ||
+ | .infobox.bordered td, | ||
+ | .infobox.bordered th { | ||
+ | border: 1px solid #a2a9b1; | ||
+ | } | ||
+ | .infobox.bordered .borderless td, | ||
+ | .infobox.bordered .borderless th { | ||
+ | border: 0; | ||
+ | } | ||
+ | |||
+ | .infobox.sisterproject { | ||
+ | width: 20em; | ||
+ | font-size: 90%; | ||
+ | } | ||
+ | |||
+ | .infobox.standard-talk { | ||
+ | border: 1px solid #c0c090; | ||
+ | background-color: #f8eaba; | ||
+ | } | ||
+ | .infobox.standard-talk.bordered td, | ||
+ | .infobox.standard-talk.bordered th { | ||
+ | border: 1px solid #c0c090; | ||
+ | } | ||
+ | |||
+ | /* styles for bordered infobox with merged rows */ | ||
+ | .infobox.bordered .mergedtoprow td, | ||
+ | .infobox.bordered .mergedtoprow th { | ||
+ | border: 0; | ||
+ | border-top: 1px solid #a2a9b1; | ||
+ | /* @noflip */ | ||
+ | border-right: 1px solid #a2a9b1; | ||
+ | } | ||
+ | |||
+ | .infobox.bordered .mergedrow td, | ||
+ | .infobox.bordered .mergedrow th { | ||
+ | border: 0; | ||
+ | /* @noflip */ | ||
+ | border-right: 1px solid #a2a9b1; | ||
+ | } | ||
+ | |||
+ | /* Styles for geography infoboxes, eg countries, | ||
+ | country subdivisions, cities, etc. */ | ||
+ | .infobox.geography { | ||
+ | border-collapse: collapse; | ||
+ | line-height: 1.2em; | ||
+ | font-size: 90%; | ||
+ | } | ||
+ | |||
+ | .infobox.geography td, | ||
+ | .infobox.geography th { | ||
+ | border-top: 1px solid #a2a9b1; | ||
+ | padding: 0.4em 0.6em 0.4em 0.6em; | ||
+ | } | ||
+ | .infobox.geography .mergedtoprow td, | ||
+ | .infobox.geography .mergedtoprow th { | ||
+ | border-top: 1px solid #a2a9b1; | ||
+ | padding: 0.4em 0.6em 0.2em 0.6em; | ||
+ | } | ||
+ | |||
+ | .infobox.geography .mergedrow td, | ||
+ | .infobox.geography .mergedrow th { | ||
+ | border: 0; | ||
+ | padding: 0 0.6em 0.2em 0.6em; | ||
+ | } | ||
+ | |||
+ | .infobox.geography .mergedbottomrow td, | ||
+ | .infobox.geography .mergedbottomrow th { | ||
+ | border-top: 0; | ||
+ | border-bottom: 1px solid #a2a9b1; | ||
+ | padding: 0 0.6em 0.4em 0.6em; | ||
+ | } | ||
+ | |||
+ | .infobox.geography .maptable td, | ||
+ | .infobox.geography .maptable th { | ||
+ | border: 0; | ||
+ | padding: 0; | ||
} | } |
2018年3月28日 (水) 07:12時点における版
/* ここに記述したCSSはすべての外装に反映されます #mw-body { } */ /* コンテンツのページ幅を変更 */ #content { max-width: 600px; margin: 1em; } .toc, #toc { display: none; } /* メインページのタイトルを消す */ body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; } /* default skin for navigation boxes */ /* navbox container style */ table.navbox { border: 1px solid #aaa; width: 100%; margin: auto; clear: both; font-size: 70%; text-align: center; padding: 1px; } /* single pixel border between adjacent navboxes (doesn't work for IE6, but that's okay) */ table.navbox + table.navbox { margin-top: -1px; } /* title and above/below styles */ .navbox-title, .navbox-abovebelow, table.navbox th { text-align: center; padding-left: 1em; padding-right: 1em; } /* group style */ .navbox-group { white-space: nowrap; font-size: 80%; text-align: right; font-weight: bold; padding-left: 1em; padding-right: 1em; } /* Background color */ .navbox, .navbox-subgroup { background: #fdfdfd; } /* Must match background color */ .navbox-list { border-color: #fdfdfd; } /* Level 1 color */ .navbox-title, table.navbox th { background: #ccccff; } /* Level 2 color */ .navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title { background: #ddddff; } /* Level 3 color */ .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow { background: #e6e6ff; } /* Even row striping */ .navbox-even { background: #f7f7f7; } /* Odd row striping */ .navbox-odd { background: transparent; } /* [[MediaWiki:Common.js]] にある createCollapseButtons 関数を参照。 */ .collapseButton { float: right; font-weight: normal; text-align: right; width: auto; } /* [[Template:Navbox]] に配置する場合、左に配置されている [[Template:Tnavbar]] とのバランスを取る。 */ .navbox .collapseButton { width: 6em; } /* Infobox template style */ .infobox { border: 1px solid #a2a9b1; border-spacing: 3px; background-color: #f8f9fa; color: black; /* @noflip */ margin: 0.5em 0 0.5em 1em; padding: 0.2em; /* @noflip */ float: right; /* @noflip */ clear: right; font-size: 88%; line-height: 1.5em; } .infobox caption { font-size: 125%; font-weight: bold; padding: 0.2em; text-align: center; } .infobox td, .infobox th { vertical-align: top; /* @noflip */ text-align: left; } .infobox.bordered { border-collapse: collapse; } .infobox.bordered td, .infobox.bordered th { border: 1px solid #a2a9b1; } .infobox.bordered .borderless td, .infobox.bordered .borderless th { border: 0; } .infobox.sisterproject { width: 20em; font-size: 90%; } .infobox.standard-talk { border: 1px solid #c0c090; background-color: #f8eaba; } .infobox.standard-talk.bordered td, .infobox.standard-talk.bordered th { border: 1px solid #c0c090; } /* styles for bordered infobox with merged rows */ .infobox.bordered .mergedtoprow td, .infobox.bordered .mergedtoprow th { border: 0; border-top: 1px solid #a2a9b1; /* @noflip */ border-right: 1px solid #a2a9b1; } .infobox.bordered .mergedrow td, .infobox.bordered .mergedrow th { border: 0; /* @noflip */ border-right: 1px solid #a2a9b1; } /* Styles for geography infoboxes, eg countries, country subdivisions, cities, etc. */ .infobox.geography { border-collapse: collapse; line-height: 1.2em; font-size: 90%; } .infobox.geography td, .infobox.geography th { border-top: 1px solid #a2a9b1; padding: 0.4em 0.6em 0.4em 0.6em; } .infobox.geography .mergedtoprow td, .infobox.geography .mergedtoprow th { border-top: 1px solid #a2a9b1; padding: 0.4em 0.6em 0.2em 0.6em; } .infobox.geography .mergedrow td, .infobox.geography .mergedrow th { border: 0; padding: 0 0.6em 0.2em 0.6em; } .infobox.geography .mergedbottomrow td, .infobox.geography .mergedbottomrow th { border-top: 0; border-bottom: 1px solid #a2a9b1; padding: 0 0.6em 0.4em 0.6em; } .infobox.geography .maptable td, .infobox.geography .maptable th { border: 0; padding: 0; }