「MediaWiki:Common.css」の版間の差分
表示
編集の要約なし |
編集の要約なし |
||
| 134行目: | 134行目: | ||
max-width: 100%; | max-width: 100%; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | |||
/* 通常の入力欄に設定された既定幅を上書き */ | |||
#pfForm .formtable input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]) { | |||
width: 34rem !important; | |||
max-width: 100% !important; | |||
box-sizing: border-box !important; | |||
} | } | ||
2026年9月25日 (金) 01:15時点における版
/* RTA Wiki: モバイル表示の改善 */
@media screen and (max-width: 720px) {
/* 左メニュー・右ツール・目次をモバイルでは隠す */
#vector-main-menu,
.vector-main-menu,
#mw-panel,
.vector-page-toolbar,
.vector-toc,
#vector-toc {
display: none !important;
}
/* 本文を画面幅いっぱいに使う */
.mw-page-container,
.mw-content-container,
.mw-body {
width: 100% !important;
max-width: none !important;
margin-left: 0 !important;
margin-right: 0 !important;
box-sizing: border-box;
}
.mw-body {
padding: 0 16px 24px !important;
}
/* フォームを縦並び・入力しやすい幅にする */
#pfForm .formtable,
#pfForm .formtable tbody,
#pfForm .formtable tr,
#pfForm .formtable th,
#pfForm .formtable td {
display: block;
width: 100%;
box-sizing: border-box;
}
#pfForm .formtable th {
padding: 12px 0 4px;
text-align: left;
}
#pfForm input,
#pfForm select,
#pfForm textarea,
#mw-content-text form input[type="text"],
#mw-content-text form select {
width: 100%;
max-width: none;
box-sizing: border-box;
}
#pfForm textarea {
min-height: 7em;
}
/* 記録登録ページの開始ボタン(OOUI) */
#mw-content-text .oo-ui-buttonElement {
display: block !important;
width: 100% !important;
margin-top: 12px;
}
#mw-content-text .oo-ui-buttonElement-button {
display: block !important;
width: 100% !important;
min-height: 48px;
padding: 10px 16px;
border: 1px solid #36c !important;
border-radius: 4px;
background: #36c !important;
color: #fff !important;
font-size: 1rem;
font-weight: 700;
}
/* 横に広い表は横スクロール可能にする */
.mw-parser-output > table.wikitable {
display: block;
overflow-x: auto;
white-space: nowrap;
}
}
/* RTA記録登録フォーム(PC表示) */
#pfForm .formtable {
width: 100%;
max-width: 760px;
}
#pfForm .formtable th {
width: 9rem;
white-space: nowrap;
vertical-align: top;
padding-top: 0.55em;
}
#pfForm .formtable td {
width: auto;
}
#pfForm .formtable input[type="text"],
#pfForm .formtable input[type="number"],
#pfForm .formtable input[type="url"],
#pfForm .formtable select,
#pfForm .formtable textarea {
width: 100%;
max-width: 34rem;
box-sizing: border-box;
}
.rta-required {
color: #d33;
font-size: 0.875em;
font-weight: 700;
}
/* PageFormsが使うOOUI入力欄の横幅を広げる */
#pfForm .formtable .oo-ui-inputWidget {
width: 34rem;
max-width: 100%;
box-sizing: border-box;
}
#pfForm .formtable .oo-ui-inputWidget input,
#pfForm .formtable .oo-ui-inputWidget textarea {
width: 100%;
box-sizing: border-box;
}
#pfForm .formtable textarea {
width: 34rem;
max-width: 100%;
box-sizing: border-box;
}
/* 通常の入力欄に設定された既定幅を上書き */
#pfForm .formtable input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]) {
width: 34rem !important;
max-width: 100% !important;
box-sizing: border-box !important;
}