「MediaWiki:Common.css」の版間の差分
表示
編集の要約なし |
編集の要約なし |
||
| 338行目: | 338行目: | ||
flex: 1 1 auto; | flex: 1 1 auto; | ||
text-align: center; | text-align: center; | ||
} | |||
} | |||
/* RTA Wiki: トップページの掲載実績 */ | |||
.rta-home-stats { | |||
display: grid; | |||
grid-template-columns: repeat(3, minmax(0, 1fr)); | |||
gap: .75rem; | |||
margin: 0 0 2rem; | |||
} | |||
.rta-home-stat { | |||
padding: .9rem .6rem; | |||
border: 1px solid #c8ccd1; | |||
border-radius: 6px; | |||
background: #fff; | |||
text-align: center; | |||
} | |||
.rta-home-stat__value { | |||
color: #36c; | |||
font-size: 1.65rem; | |||
font-weight: 700; | |||
line-height: 1.2; | |||
} | |||
.rta-home-stat__label { | |||
margin-top: .25rem; | |||
color: #54595d; | |||
font-size: .875rem; | |||
} | |||
@media screen and (max-width: 720px) { | |||
.rta-home-stats { | |||
gap: .45rem; | |||
margin-bottom: 1.5rem; | |||
} | |||
.rta-home-stat { | |||
padding: .75rem .35rem; | |||
} | |||
.rta-home-stat__value { | |||
font-size: 1.35rem; | |||
} | |||
.rta-home-stat__label { | |||
font-size: .75rem; | |||
} | } | ||
} | } | ||
2026年9月30日 (水) 19:58時点における版
/* 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;
}
#rta-time-inputs {
display: flex !important;
gap: 10px !important;
align-items: center !important;
flex-wrap: wrap !important;
}
#rta-time-inputs label {
display: inline-flex !important;
align-items: center !important;
gap: 4px !important;
margin: 0 !important;
}
#rta-time-inputs input {
width: 4.5em !important;
box-sizing: border-box !important;
}
#pfForm .formtable #rta-time-inputs input {
width: 4.5em !important;
max-width: none !important;
box-sizing: border-box !important;
}
@media screen and (max-width: 720px) {
.rta-record-table {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin-bottom: 1em;
}
.rta-record-table table {
min-width: 760px;
font-size: 0.875em;
}
}
.rta-record-cards {
display: grid;
gap: .5rem;
margin: .75rem 0;
}
.rta-record-card {
margin: 0;
padding: .55rem .7rem;
border: 1px solid #c8ccd1;
border-left: 4px solid #36c;
background: #fff;
line-height: 1.45;
}
.rta-record-card p {
margin: 0;
}
.rta-record-card__top {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: .75rem;
}
.rta-record-card__top strong {
white-space: nowrap;
font-size: 1.1em;
}
.rta-record-card__conditions,
.rta-record-card__meta {
margin-top: .2rem;
font-size: .875em;
}
.rta-record-card__meta {
color: #54595d;
}
.rta-condition-list > span + span::before {
content: "/";
margin: 0 .15em;
color: #72777d;
}
.rta-record-sort {
display: flex;
align-items: center;
gap: .4rem;
margin: .5rem 0;
font-size: .9em;
}
.rta-record-sort select {
max-width: 100%;
padding: .25rem .4rem;
}
.rta-record-filter {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: .35rem;
margin: .5rem 0;
font-size: .9em;
}
.rta-record-filter select {
padding: .25rem .4rem;
}
.rta-record-filter__result {
margin-left: .25rem;
color: #54595d;
}
/* RTA Wiki: トップページの主要導線 */
.rta-home-actions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
margin: 1.5rem 0 2rem;
}
.rta-home-action {
padding: 1.25rem;
border: 1px solid #c8ccd1;
border-radius: 8px;
background: #f8f9fa;
box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
}
.rta-home-action--primary {
border-color: #36c;
background: #f1f5ff;
}
.rta-home-action__title {
margin-bottom: .45rem;
font-size: 1.2rem;
font-weight: 700;
}
.rta-home-action__text {
color: #54595d;
line-height: 1.65;
}
.rta-home-action__links {
display: flex;
flex-wrap: wrap;
gap: .5rem;
margin-top: 1rem;
}
.rta-home-action__links a {
display: inline-block;
padding: .5rem .8rem;
border: 1px solid #36c;
border-radius: 4px;
background: #36c;
color: #fff !important;
font-weight: 700;
text-decoration: none;
}
.rta-home-action:not(.rta-home-action--primary) .rta-home-action__links a + a {
border-color: #72777d;
background: #fff;
color: #202122 !important;
}
.rta-home-action__links a:hover {
background: #2a4b8d;
text-decoration: none;
}
.rta-home-action:not(.rta-home-action--primary) .rta-home-action__links a + a:hover {
background: #eaecf0;
}
@media screen and (max-width: 720px) {
.rta-home-actions {
grid-template-columns: 1fr;
gap: .75rem;
margin: 1rem 0 1.5rem;
}
.rta-home-action {
padding: 1rem;
}
.rta-home-action__links a {
flex: 1 1 auto;
text-align: center;
}
}
/* RTA Wiki: トップページの掲載実績 */
.rta-home-stats {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: .75rem;
margin: 0 0 2rem;
}
.rta-home-stat {
padding: .9rem .6rem;
border: 1px solid #c8ccd1;
border-radius: 6px;
background: #fff;
text-align: center;
}
.rta-home-stat__value {
color: #36c;
font-size: 1.65rem;
font-weight: 700;
line-height: 1.2;
}
.rta-home-stat__label {
margin-top: .25rem;
color: #54595d;
font-size: .875rem;
}
@media screen and (max-width: 720px) {
.rta-home-stats {
gap: .45rem;
margin-bottom: 1.5rem;
}
.rta-home-stat {
padding: .75rem .35rem;
}
.rta-home-stat__value {
font-size: 1.35rem;
}
.rta-home-stat__label {
font-size: .75rem;
}
}