「MediaWiki:Mobile.css」の版間の差分
ナビゲーションに移動
検索に移動
(MediaWiki:Gadget-SiteOrigin.cssに移植したコードを削除) |
細 (Elastic Videos) |
||
35行目: | 35行目: | ||
.tab-content { | .tab-content { | ||
clear: both; | clear: both; | ||
} | |||
/*YouTube*/ | |||
.video-container { | |||
position: relative; | |||
padding-bottom: 56.25%; | |||
padding-top: 30px; | |||
height: 0; | |||
overflow: hidden; | |||
} | |||
.video-container iframe { | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 100%; | |||
} | } |
2014年5月23日 (金) 19:22時点における版
/* ここに記述したCSSは携帯機器版サイトの利用者のみに影響します */
/* 横幅の小さい画面向け */
@media screen and (max-width: 320px) {
/* [[テンプレート:メッセージボックス]]で大きな画像がはみ出さないようにする */
.mw-mf-overlay img {
max-width: 240px;
max-height: 240px;
}
}
/* [[テンプレート:要出典]] */
@media screen {
.fix-domain { border-bottom: dashed 1px; }
}
/* table.infobox td を上書き */
table.infobox table.collapsible td {
/*border: none;*/
}
/* 折り畳みボックス */
table.collapsible {
display: table; /* デフォルトの上書き */
border-spacing: 0 2px !important; /* デフォルトの上書き */
width: 100%;
border-collapse: separate; /* デフォルトの上書き */
}
.navboxLinks div { visibility: hidden; }
/* タブ */
#content div.tab-list ul {
display: none;
}
.tab-content {
clear: both;
}
/*YouTube*/
.video-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}