「MediaWiki:Common.css」の版間の差分
表示
編集の要約なし |
編集の要約なし |
||
| 9行目: | 9行目: | ||
#vector-toc { | #vector-toc { | ||
display: none !important; | display: none !important; | ||
/* | /* 記録登録ページの開始ボタン(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; | display: block !important; | ||
width: 100% !important; | width: 100% !important; | ||
min-height: 48px; | min-height: 48px; | ||
padding: 10px 16px; | padding: 10px 16px; | ||
border: 1px solid #36c; | border: 1px solid #36c !important; | ||
border-radius: 4px; | border-radius: 4px; | ||
background: #36c; | background: #36c !important; | ||
color: #fff; | color: #fff !important; | ||
font-size: 1rem; | font-size: 1rem; | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
} | } | ||
2026年9月24日 (木) 23:39時点における版
/* 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;
/* 記録登録ページの開始ボタン(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-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;
}
#pfForm input[type="submit"],
#mw-content-text form input[type="submit"],
#mw-content-text form button {
width: 100%;
min-height: 44px;
margin-top: 8px;
font-size: 1rem;
}
/* 横に広い表は画面内で横スクロール可能にする */
.mw-parser-output > table.wikitable {
display: block;
overflow-x: auto;
white-space: nowrap;
}
}