「MediaWiki:Mobile.css」の版間の差分
折り畳みボックス・情報ボックスのCSS修正。テンプレート:要出典用のCSSをMediaWiki:Gadget-SiteOrigin.cssへ移動 |
編集の要約なし |
||
| (3人の利用者による、間の7版が非表示) | |||
| 1行目: | 1行目: | ||
/* ここに記述したCSSは携帯機器版サイトの利用者のみに影響します | /* <nowiki> ここに記述したCSSは携帯機器版サイトの利用者のみに影響します | ||
/* 情報ボックス */ | MediaWiki 1.41 以降では、従来の `MediaWiki:Mobile.css` が自動では読み込まれなくなったため、 | ||
.content table.infobox { | 代わりにスキン専用のスタイルページ(例:MediaWiki:Minerva.css)を使用してスタイルを適用しています | ||
*/ | |||
/* デスクトップ版で非表示だがモバイル版では表示 */ | |||
.nodesktop { | |||
display: block; | |||
} | |||
/* [[テンプレート:情報ボックス]] */ | |||
.content table.infobox { /* .content table を上書き */ | |||
display: table; | |||
width: auto; | |||
} | |||
table.infobox table td { /* table.infobox td を上書き */ | |||
border: 0; | |||
} | |||
/* [[テンプレート:折り畳みボックス]] */ | |||
.content table.collapsible { /* .content table を上書き */ | |||
display: table; | |||
margin: 0; | |||
width: 100%; | |||
} | } | ||
. | .navboxLinks { | ||
display: none; | |||
} | |||
div.collapseButton { /* .collapseBotton を上書き */ | |||
width: auto; | |||
} | } | ||
/* | /* [[テンプレート:メッセージボックス]] */ | ||
. | .message-box { | ||
width: 100%; | |||
margin: 0; | |||
padding: 0; | |||
border: 1px solid #aaa; | |||
} | |||
.message-box + .message-box { | |||
margin-top: -1px; | |||
} | |||
.message-box .message-box-image { | |||
display: none; | |||
} | |||
.message-box .message-box-text { | |||
width: 100%; | |||
font-size: smaller; | |||
} | } | ||
/* タブ */ | /* [[テンプレート:タブ]] */ | ||
#content div.tab-list ul { | #content div.tab-list ul { | ||
display: none; | |||
} | } | ||
.tab-content { | .tab-content { | ||
clear: both; | |||
} | } | ||
/*YouTube*/ | /* [[widget:YouTube]] */ | ||
.video-container { | .video-container { | ||
position: relative; | position: relative; | ||
| 36行目: | 67行目: | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.video-container iframe { | .video-container iframe { | ||
position: absolute; | position: absolute; | ||