「MediaWiki:Common.css」の版間の差分
表示
編集の要約なし |
編集の要約なし |
||
| (同じ利用者による、間の5版が非表示) | |||
| 1行目: | 1行目: | ||
/* RTA Wiki: モバイル表示の改善 */ | /* RTA Wiki: モバイル表示の改善 */ | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
/* | /* 右ツールと目次は隠し、左メニューはハンバーガーから開けるようにする */ | ||
.vector-page-toolbar, | .vector-page-toolbar, | ||
.vector-toc, | .vector-toc, | ||
| 338行目: | 335行目: | ||
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; | |||
} | |||
} | |||
/* RTA Wiki: 登録ページを「既存を探す/新規登録」の選択カードにする */ | |||
.rta-register-choices { | |||
display: grid; | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
gap: 1rem; | |||
margin: 1.25rem 0; | |||
} | |||
.rta-register-choice { | |||
min-width: 0; | |||
padding: 1.15rem; | |||
border: 1px solid #c8ccd1; | |||
border-radius: 8px; | |||
background: #f8f9fa; | |||
box-shadow: 0 1px 3px rgb(0 0 0 / 8%); | |||
line-height: 1.65; | |||
} | |||
.rta-register-choice--existing { | |||
border-top: 4px solid #72777d; | |||
} | |||
.rta-register-choice--new { | |||
border-top: 4px solid #36c; | |||
background: #f1f5ff; | |||
} | |||
.rta-register-choice > b, | |||
.rta-register-choice > strong { | |||
display: block; | |||
margin-bottom: .45rem; | |||
font-size: 1.12rem; | |||
} | |||
.rta-register-choice a:not(.oo-ui-buttonElement-button) { | |||
display: inline-block; | |||
margin-top: .65rem; | |||
padding: .55rem .85rem; | |||
border: 1px solid #54595d; | |||
border-radius: 5px; | |||
background: #fff; | |||
color: #202122; | |||
font-weight: 700; | |||
text-decoration: none; | |||
} | |||
.rta-register-choice a:not(.oo-ui-buttonElement-button):hover { | |||
background: #eaecf0; | |||
text-decoration: none; | |||
} | |||
.rta-register-choice form { | |||
margin-top: .65rem; | |||
} | |||
.rta-register-choice form input[type="text"] { | |||
box-sizing: border-box; | |||
width: 100%; | |||
max-width: 34rem; | |||
min-height: 2.6rem; | |||
padding: .5rem .65rem; | |||
border: 1px solid #72777d; | |||
border-radius: 4px; | |||
} | |||
.rta-register-choice form input[type="submit"] { | |||
min-height: 2.6rem; | |||
margin-top: .5rem; | |||
padding: .5rem 1rem; | |||
border: 1px solid #2a4b8d; | |||
border-radius: 4px; | |||
background: #36c; | |||
color: #fff; | |||
font-weight: 700; | |||
cursor: pointer; | |||
} | |||
.rta-register-safety { | |||
margin: 1rem 0; | |||
padding: .85rem 1rem; | |||
border-left: 4px solid #d33; | |||
border-radius: 4px; | |||
background: #fff4f4; | |||
line-height: 1.6; | |||
} | |||
/* Cargo Drilldown: 絞り込み条件を見渡しやすいカード型グリッドにする */ | |||
body.page-特別_Drilldown_RTARecords #drilldown-header::after { | |||
display: block; | |||
margin: .75rem 0 1rem; | |||
padding: .8rem 1rem; | |||
border-left: 4px solid #36c; | |||
border-radius: 4px; | |||
background: #f1f5ff; | |||
color: #202122; | |||
content: "ゲーム・走者・カテゴリ・年などの項目を選ぶと、その条件で記録を絞り込めます。大会・イベント記録、並走、シングルセグメントは各項目から選べます。複数の条件を組み合わせられます。"; | |||
line-height: 1.6; | |||
} | |||
body.page-特別_Drilldown_RTARecords .drilldown-filters { | |||
display: grid; | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
gap: .65rem; | |||
margin: .75rem 0 1.25rem; | |||
padding: 0; | |||
background: transparent; | |||
} | |||
body.page-特別_Drilldown_RTARecords .drilldown-filter { | |||
min-width: 0; | |||
margin: 0; | |||
padding: .7rem .8rem; | |||
border: 1px solid #c8ccd1; | |||
border-radius: 6px; | |||
background: #fff; | |||
} | |||
body.page-特別_Drilldown_RTARecords .drilldown-filter-label { | |||
margin-bottom: .4rem; | |||
color: #202122; | |||
font-weight: 700; | |||
} | |||
body.page-特別_Drilldown_RTARecords .drilldown-filter-values a { | |||
display: inline-block; | |||
margin: .15rem .2rem .15rem 0; | |||
padding: .22rem .45rem; | |||
border: 1px solid #c8ccd1; | |||
border-radius: 999px; | |||
background: #f8f9fa; | |||
text-decoration: none; | |||
} | |||
body.page-特別_Drilldown_RTARecords .drilldown-filter-values a:hover { | |||
border-color: #36c; | |||
background: #f1f5ff; | |||
text-decoration: none; | |||
} | |||
/* 現行データで壊れたラベルの値を生成している最終フィルターは一時的に隠す */ | |||
body.page-特別_Drilldown_RTARecords .drilldown-filters > .drilldown-filter:nth-child(20) { | |||
display: none; | |||
} | |||
@media screen and (max-width: 720px) { | |||
.rta-register-choices, | |||
body.page-特別_Drilldown_RTARecords .drilldown-filters { | |||
grid-template-columns: 1fr; | |||
gap: .7rem; | |||
} | |||
.rta-register-choice { | |||
padding: 1rem; | |||
} | |||
} | |||
/* 検索結果も記録単位で見分けやすくする */ | |||
body.page-特別_Drilldown_RTARecords .cargo-category-format-results ul { | |||
display: grid; | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
gap: .5rem; | |||
padding: 0; | |||
list-style: none; | |||
} | |||
body.page-特別_Drilldown_RTARecords .cargo-category-format-results li { | |||
min-width: 0; | |||
margin: 0; | |||
padding: .7rem .85rem; | |||
border: 1px solid #c8ccd1; | |||
border-left: 3px solid #36c; | |||
border-radius: 5px; | |||
background: #fff; | |||
line-height: 1.5; | |||
overflow-wrap: anywhere; | |||
} | |||
@media screen and (max-width: 720px) { | |||
body.page-特別_Drilldown_RTARecords .cargo-category-format-results ul { | |||
grid-template-columns: 1fr; | |||
} | |||
} | |||
/* 記録登録フォームのゲーム・走者候補欄 */ | |||
#pfForm .formtable .oo-ui-comboBoxInputWidget { | |||
display: inline-block !important; | |||
width: 34rem !important; | |||
max-width: 100% !important; | |||
box-sizing: border-box !important; | |||
} | |||
#pfForm .formtable .oo-ui-comboBoxInputWidget-field { | |||
width: 100% !important; | |||
box-sizing: border-box !important; | |||
} | |||
#pfForm .formtable .oo-ui-comboBoxInputWidget .oo-ui-inputWidget-input { | |||
flex: 1 1 auto; | |||
width: 100% !important; | |||
min-width: 0; | |||
box-sizing: border-box !important; | |||
} | |||
@media screen and (max-width: 720px) { | |||
#pfForm .formtable .oo-ui-comboBoxInputWidget { | |||
width: 100% !important; | |||
} | } | ||
} | } | ||
2026年10月11日 (日) 11:56時点における最新版
/* RTA Wiki: モバイル表示の改善 */
@media screen and (max-width: 720px) {
/* 右ツールと目次は隠し、左メニューはハンバーガーから開けるようにする */
.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;
}
}
/* RTA Wiki: 登録ページを「既存を探す/新規登録」の選択カードにする */
.rta-register-choices {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
margin: 1.25rem 0;
}
.rta-register-choice {
min-width: 0;
padding: 1.15rem;
border: 1px solid #c8ccd1;
border-radius: 8px;
background: #f8f9fa;
box-shadow: 0 1px 3px rgb(0 0 0 / 8%);
line-height: 1.65;
}
.rta-register-choice--existing {
border-top: 4px solid #72777d;
}
.rta-register-choice--new {
border-top: 4px solid #36c;
background: #f1f5ff;
}
.rta-register-choice > b,
.rta-register-choice > strong {
display: block;
margin-bottom: .45rem;
font-size: 1.12rem;
}
.rta-register-choice a:not(.oo-ui-buttonElement-button) {
display: inline-block;
margin-top: .65rem;
padding: .55rem .85rem;
border: 1px solid #54595d;
border-radius: 5px;
background: #fff;
color: #202122;
font-weight: 700;
text-decoration: none;
}
.rta-register-choice a:not(.oo-ui-buttonElement-button):hover {
background: #eaecf0;
text-decoration: none;
}
.rta-register-choice form {
margin-top: .65rem;
}
.rta-register-choice form input[type="text"] {
box-sizing: border-box;
width: 100%;
max-width: 34rem;
min-height: 2.6rem;
padding: .5rem .65rem;
border: 1px solid #72777d;
border-radius: 4px;
}
.rta-register-choice form input[type="submit"] {
min-height: 2.6rem;
margin-top: .5rem;
padding: .5rem 1rem;
border: 1px solid #2a4b8d;
border-radius: 4px;
background: #36c;
color: #fff;
font-weight: 700;
cursor: pointer;
}
.rta-register-safety {
margin: 1rem 0;
padding: .85rem 1rem;
border-left: 4px solid #d33;
border-radius: 4px;
background: #fff4f4;
line-height: 1.6;
}
/* Cargo Drilldown: 絞り込み条件を見渡しやすいカード型グリッドにする */
body.page-特別_Drilldown_RTARecords #drilldown-header::after {
display: block;
margin: .75rem 0 1rem;
padding: .8rem 1rem;
border-left: 4px solid #36c;
border-radius: 4px;
background: #f1f5ff;
color: #202122;
content: "ゲーム・走者・カテゴリ・年などの項目を選ぶと、その条件で記録を絞り込めます。大会・イベント記録、並走、シングルセグメントは各項目から選べます。複数の条件を組み合わせられます。";
line-height: 1.6;
}
body.page-特別_Drilldown_RTARecords .drilldown-filters {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: .65rem;
margin: .75rem 0 1.25rem;
padding: 0;
background: transparent;
}
body.page-特別_Drilldown_RTARecords .drilldown-filter {
min-width: 0;
margin: 0;
padding: .7rem .8rem;
border: 1px solid #c8ccd1;
border-radius: 6px;
background: #fff;
}
body.page-特別_Drilldown_RTARecords .drilldown-filter-label {
margin-bottom: .4rem;
color: #202122;
font-weight: 700;
}
body.page-特別_Drilldown_RTARecords .drilldown-filter-values a {
display: inline-block;
margin: .15rem .2rem .15rem 0;
padding: .22rem .45rem;
border: 1px solid #c8ccd1;
border-radius: 999px;
background: #f8f9fa;
text-decoration: none;
}
body.page-特別_Drilldown_RTARecords .drilldown-filter-values a:hover {
border-color: #36c;
background: #f1f5ff;
text-decoration: none;
}
/* 現行データで壊れたラベルの値を生成している最終フィルターは一時的に隠す */
body.page-特別_Drilldown_RTARecords .drilldown-filters > .drilldown-filter:nth-child(20) {
display: none;
}
@media screen and (max-width: 720px) {
.rta-register-choices,
body.page-特別_Drilldown_RTARecords .drilldown-filters {
grid-template-columns: 1fr;
gap: .7rem;
}
.rta-register-choice {
padding: 1rem;
}
}
/* 検索結果も記録単位で見分けやすくする */
body.page-特別_Drilldown_RTARecords .cargo-category-format-results ul {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: .5rem;
padding: 0;
list-style: none;
}
body.page-特別_Drilldown_RTARecords .cargo-category-format-results li {
min-width: 0;
margin: 0;
padding: .7rem .85rem;
border: 1px solid #c8ccd1;
border-left: 3px solid #36c;
border-radius: 5px;
background: #fff;
line-height: 1.5;
overflow-wrap: anywhere;
}
@media screen and (max-width: 720px) {
body.page-特別_Drilldown_RTARecords .cargo-category-format-results ul {
grid-template-columns: 1fr;
}
}
/* 記録登録フォームのゲーム・走者候補欄 */
#pfForm .formtable .oo-ui-comboBoxInputWidget {
display: inline-block !important;
width: 34rem !important;
max-width: 100% !important;
box-sizing: border-box !important;
}
#pfForm .formtable .oo-ui-comboBoxInputWidget-field {
width: 100% !important;
box-sizing: border-box !important;
}
#pfForm .formtable .oo-ui-comboBoxInputWidget .oo-ui-inputWidget-input {
flex: 1 1 auto;
width: 100% !important;
min-width: 0;
box-sizing: border-box !important;
}
@media screen and (max-width: 720px) {
#pfForm .formtable .oo-ui-comboBoxInputWidget {
width: 100% !important;
}
}