「MediaWiki:Common.css」の版間の差分
ナビゲーションに移動
検索に移動
細編集の要約なし |
細 (nowiki) |
||
1行目: | 1行目: | ||
/* ここに記述したCSSはすべての外装に反映されます */ | /* <nowiki> ここに記述したCSSはすべての外装に反映されます */ | ||
/* メインページタイトル */ | /* メインページタイトル */ | ||
body.page-メインページ h1.firstHeading | body.page-メインページ h1.firstHeading { | ||
display: none; | |||
} | } | ||
/* [注釈 1]などで改行されないようにする */ | /* [注釈 1]などで改行されないようにする */ | ||
sup.reference a { | sup.reference a { | ||
white-space: nowrap; | |||
font-weight: normal; | |||
} | } | ||
28行目: | 25行目: | ||
/* 引用 */ | /* 引用 */ | ||
blockquote { | blockquote { | ||
/* .toccolours と同じスタイル */ | |||
border: 1px solid #aaa; | |||
background-color: #f9f9f9; | |||
padding: 5px; | |||
font-size: 95%; | |||
} | } | ||
/* メッセージボックス */ | /* [[テンプレート:メッセージボックス]] */ | ||
.message-box { | .message-box { | ||
display: table; | |||
width: 80%; | |||
margin: 0 10%; | |||
padding: 0; | |||
border: 1px solid #aaa; | |||
border-collapse: collapse; | |||
} | } | ||
.message-box + .message-box { | .message-box + .message-box { | ||
margin-top: -1px; | |||
} | } | ||
.message-box .message-box-image { | .message-box .message-box-image { | ||
display: table-cell; | |||
padding: 0; | |||
text-align: center; | |||
vertical-align: middle; | |||
} | } | ||
.message-box .message-box-text { | .message-box .message-box-text { | ||
display: table-cell; | |||
padding: 0.25em 0.5em; | |||
width: 100%; | |||
vertical-align: middle; | |||
} | } | ||
/* タブ */ | /* [[テンプレート:タブ]] */ | ||
.tab-list { | .tab-list { | ||
float: left; | |||
width: 100%; | |||
border-bottom: 1px solid #c0c0c0; | |||
} | } | ||
.tab-list ul { | .tab-list ul { | ||
float: left; | |||
margin-left: 4px; | |||
border-top: 1px solid #c0c0c0; | |||
border-left: 1px solid #c0c0c0; | |||
cursor: pointer; | |||
} | } | ||
.tab-list li { | .tab-list li { | ||
float: left; | |||
position: relative; | |||
list-style: none; | |||
bottom: -1px; | |||
margin: -1px 0 0 0; | |||
padding: 0.15em 0.75em; | |||
background-color: #f3f3f3; | |||
border-right: 1px solid #c0c0c0; | |||
border-bottom-width: 0; | |||
border-bottom: 1px solid #c0c0c0; | |||
} | } | ||
/* .hlistによるcontent指定を無効化 */ | /* .hlistによるcontent指定を無効化 */ | ||
#content .hlist .tab-list li:before { content: none; } | #content .hlist .tab-list li:before { content: none; } | ||
.tab-list li.current-tab { | .tab-list li.current-tab { | ||
background-color: #fff; | |||
border-bottom: 1px solid #fff; | |||
} | } | ||
.tab-list li:hover { | .tab-list li:hover { | ||
text-decoration: underline; | |||
} | } | ||
.tab-list li.current-tab:hover { | .tab-list li.current-tab:hover { | ||
text-decoration: none; | |||
} | } | ||
.tab-content { | .tab-content { | ||
clear: both; | |||
} | } | ||
/* ライブプレビューですべて展開されてしまう折り畳みボックスを非表示 */ | /* ライブプレビューですべて展開されてしまう折り畳みボックスを非表示 */ | ||
.ns-0 .wikiEditor-ui-view-preview .collapsible-navbox[data-collapse="autocollapse"] tr + tr { | .ns-0 .wikiEditor-ui-view-preview .collapsible-navbox[data-collapse="autocollapse"] tr + tr { | ||
display: none; | |||
} | } | ||
/* YouTube */ | /* [[Widget:YouTube]] */ | ||
.video-container { | .video-container { | ||
clear: right; | |||
float: right; | |||
} | } | ||
.video-container iframe { | .video-container iframe { | ||
width: 300px; | |||
height: 200px; | |||
} | } | ||
/* Edittools */ | /* Edittools */ | ||
.mw-editTools a { | .mw-editTools a { | ||
margin-left: 1ex; | |||
white-space: nowrap; | |||
} | } | ||
/* デスクトップ版で非表示 */ | /* デスクトップ版で非表示 */ | ||
.nodesktop { | .nodesktop { | ||
display: none; | |||
} | } |