「MediaWiki:Mobile.css」の版間の差分
編集の要約なし タグ: 差し戻し済み |
編集の要約なし タグ: 差し戻し済み |
||
| 900行目: | 900行目: | ||
.ts-chron-more-link { | .ts-chron-more-link { | ||
margin-top: 6px; | margin-top: 6px; | ||
} | |||
/* ========================================================= | |||
転スラ全史 Mobile | |||
========================================================= */ | |||
.ts-fullchron-lead { | |||
font-size: .85rem; | |||
line-height: 1.7; | |||
} | |||
.ts-fullchron-notice { | |||
padding: 9px 10px; | |||
font-size: .78rem; | |||
line-height: 1.6; | |||
} | |||
.ts-fullchron-nav { | |||
display: flex; | |||
flex-wrap: nowrap; | |||
overflow-x: auto; | |||
margin: 16px 0 20px; | |||
border-top: 1px solid var(--chron-border); | |||
border-bottom: 1px solid var(--chron-border); | |||
white-space: nowrap; | |||
} | |||
.ts-fullchron-nav > span, | |||
.ts-fullchron-nav > a { | |||
flex-shrink: 0; | |||
padding: 7px 9px; | |||
font-size: .75rem; | |||
} | |||
.ts-fullchron-section { | |||
margin: 20px 0 26px; | |||
} | |||
.ts-fullchron-section-title { | |||
margin: 0 0 11px !important; | |||
padding: 3px 0 6px 8px !important; | |||
border-left: 3px solid var(--chron-blue) !important; | |||
border-bottom: 1px solid var(--chron-border) !important; | |||
font-size: 1.06rem !important; | |||
} | |||
/* モバイルでは年代→本文の縦型 */ | |||
.ts-fullchron-list::before { | |||
left: 8px; | |||
} | |||
.ts-fullchron-entry { | |||
display: block; | |||
padding: 0 0 19px 27px; | |||
} | |||
.ts-fullchron-entry::before { | |||
top: 7px; | |||
left: 4px; | |||
} | |||
.ts-fullchron-date { | |||
margin-bottom: 4px; | |||
padding: 0; | |||
text-align: left; | |||
font-size: .75rem; | |||
} | |||
.ts-fullchron-main { | |||
padding-bottom: 13px; | |||
} | |||
.ts-fullchron-event { | |||
font-size: .9rem; | |||
} | |||
.ts-fullchron-summary { | |||
font-size: .81rem; | |||
line-height: 1.6; | |||
} | |||
.ts-fullchron-meta { | |||
margin-top: 6px; | |||
font-size: .74rem; | |||
} | |||
.ts-fullchron-meta-row { | |||
grid-template-columns: 38px minmax(0, 1fr); | |||
gap: 6px; | |||
} | |||
.ts-fullchron-detail { | |||
font-size: .74rem; | |||
} | |||
.ts-fullchron-footer { | |||
margin-top: 22px; | |||
padding: 10px 11px; | |||
font-size: .79rem; | |||
} | } | ||
2026年8月26日 (水) 02:39時点における版
/* ここに記述した全てのCSSはモバイル版サイトの利用者に影響します */
/* ここに記述したCSSは携帯機器版サイトの利用者に影響します */
/* The message body cell(s), such as for {{Commonscat}}.
* this is a very small subset of the styles from Common.css
* just to make sure the box isn't squashed without any spacing
* which looks out of place with visuals of other nearby elements
*/
.mbox-text {
/* @noflip */
padding: 0.25em 0.9em;
}
/* Style for horizontal lists (separator following item).
@source mediawiki.org/wiki/Snippets/Horizontal_lists
@revision 9 (2016-08-10)
@author [[User:Edokter]]
*/
.mw-parser-output .hlist dl,
.mw-parser-output .hlist ol,
.mw-parser-output .hlist ul {
margin: 0;
padding: 0;
}
/* Display list items inline */
.mw-parser-output .hlist li {
margin: 0;
display: inline;
}
/* reset hlist margins of Minerva
do not add li here (see T235416) */
.mw-parser-output .hlist dd,
.mw-parser-output .hlist dt {
margin-right: 0 !important;
display: inline;
}
/* Display nested lists inline */
.mw-parser-output .hlist.inline,
.mw-parser-output .hlist.inline dl,
.mw-parser-output .hlist.inline ol,
.mw-parser-output .hlist.inline ul,
.mw-parser-output .hlist dl dl, .mw-parser-output .hlist dl ol, .mw-parser-output .hlist dl ul,
.mw-parser-output .hlist ol dl, .mw-parser-output .hlist ol ol, .mw-parser-output .hlist ol ul,
.mw-parser-output .hlist ul dl, .mw-parser-output .hlist ul ol, .mw-parser-output .hlist ul ul {
display: inline;
}
/* Hide empty list items */
.hlist .mw-empty-li,
.hlist .mw-empty-elt {
display: none;
}
/* Generate interpuncts */
.mw-parser-output .hlist dt:after {
content: ":";
}
.mw-parser-output .hlist dd:after,
.mw-parser-output .hlist li:after {
content: " ·" !important;
font-weight: bold;
padding-left: 0px;
}
.mw-parser-output .hlist dd:last-child:after,
.mw-parser-output .hlist dt:last-child:after,
.mw-parser-output .hlist li:last-child:after {
content: none !important;
}
/* Add parentheses around nested lists */
.mw-parser-output .hlist dd dd:first-child:before, .mw-parser-output .hlist dd dt:first-child:before, .mw-parser-output .hlist dd li:first-child:before,
.mw-parser-output .hlist dt dd:first-child:before, .mw-parser-output .hlist dt dt:first-child:before, .mw-parser-output .hlist dt li:first-child:before,
.mw-parser-output .hlist li dd:first-child:before, .mw-parser-output .hlist li dt:first-child:before, .mw-parser-output .hlist li li:first-child:before {
content: "(" !important;
font-weight: normal;
}
.mw-parser-output .hlist dd dd:last-child:after, .mw-parser-output .hlist dd dt:last-child:after, .mw-parser-output .hlist dd li:last-child:after,
.mw-parser-output .hlist dt dd:last-child:after, .mw-parser-output .hlist dt dt:last-child:after, .mw-parser-output .hlist dt li:last-child:after,
.mw-parser-output .hlist li dd:last-child:after, .mw-parser-output .hlist li dt:last-child:after, .mw-parser-output .hlist li li:last-child:after {
content: ")" !important;
font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.mw-parser-output .hlist ol {
counter-reset: listitem;
}
.mw-parser-output .hlist ol > li {
counter-increment: listitem;
}
.mw-parser-output .hlist ol > li:before {
content: " " counter(listitem) ".\a0";
}
.mw-parser-output .hlist dd ol > li:first-child:before,
.mw-parser-output .hlist dt ol > li:first-child:before,
.mw-parser-output .hlist li ol > li:first-child:before {
content: " (" counter(listitem) "\a0";
}
/* 日本語版の独自仕様。-pipe、-hyphen、-comma、-slash */
.mw-parser-output .hlist-pipe dd:after,
.mw-parser-output .hlist-pipe li:after {
content: " |" !important;
font-weight: normal;
}
.mw-parser-output .hlist-hyphen dd:after,
.mw-parser-output .hlist-hyphen li:after {
content: " -" !important;
font-weight: normal;
}
.mw-parser-output .hlist-comma dd:after,
.mw-parser-output .hlist-comma li:after {
content: "、" !important;
font-weight: normal;
}
.mw-parser-output .hlist-slash dd:after,
.mw-parser-output .hlist-slash li:after {
content: " /" !important;
font-weight: normal;
}
/* Unbulleted lists */
.plainlist ol,
.plainlist ul {
list-style: none none;
padding-left: 0; /* Reset Minerva defaults */
}
.plainlist ol li,
.plainlist ul li {
margin-bottom: 0;
}
/* 表が縦に長くなるのを防ぐ */
.wikitable, .tracklist {
overflow-wrap: break-word;
word-wrap: break-word;
word-break: keep-all;
}
/* [[MediaWiki‐ノート:Common.css#Template:Math関連の更新提案]]
Generic class texhtml class for inline math */
span.texhtml {
font-family: serif;
white-space: nowrap;
}
/* Hide broken download box on [[Special:Book]] pending [[phab:T285400]] */
.mw-special-Book #coll-downloadbox {
display: none;
}
/* =========================================================
転スラWiki メインページ - Mobile
========================================================= */
.ts-main {
--ts-blue: #36c;
--ts-blue-dark: #2a4b8d;
--ts-blue-light: #f4f7fc;
--ts-border: #c8ccd1;
--ts-border-light: #eaecf0;
--ts-text: #202122;
--ts-subtext: #54595d;
--ts-muted: #72777d;
width: 100%;
margin: 0;
color: var(--ts-text);
box-sizing: border-box;
}
/* MediaWikiが自動生成する余計な空白対策 */
.ts-main > p,
.ts-main-section > p,
.ts-portal-grid > p,
.ts-grid-4 > p,
.ts-grid-2 > p,
.ts-main > br,
.ts-main-section > br,
.ts-portal-grid > br,
.ts-grid-4 > br,
.ts-grid-2 > br {
display: none !important;
}
/* =========================================================
Welcome
========================================================= */
.ts-welcome {
display: block;
margin: 0 0 16px;
padding: 14px;
border: 1px solid var(--ts-border);
border-radius: 5px;
background: #fff;
}
.ts-welcome-title {
margin: 0 0 5px;
font-size: 1.2rem;
font-weight: 700;
line-height: 1.4;
}
.ts-welcome-desc {
color: var(--ts-subtext);
font-size: .86rem;
line-height: 1.6;
}
.ts-spoiler-note {
color: var(--ts-muted);
font-size: .78rem;
}
.ts-welcome-count {
margin-top: 10px;
padding-top: 8px;
border-top: 1px solid var(--ts-border-light);
color: var(--ts-muted);
font-size: .82rem;
}
.ts-welcome-count strong {
color: var(--ts-blue-dark);
font-size: 1rem;
}
/* =========================================================
セクション見出し
========================================================= */
.ts-main-section {
margin: 16px 0 !important;
padding: 0 !important;
}
.ts-main-heading {
margin: 0 0 9px !important;
padding: 3px 0 6px 9px !important;
border: 0 !important;
border-left: 4px solid var(--ts-blue) !important;
border-bottom: 1px solid var(--ts-border-light) !important;
font-size: 1.08rem !important;
font-weight: 700 !important;
}
/* =========================================================
探す
スマホでも2列
========================================================= */
.ts-portal-grid {
display: grid !important;
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
overflow: hidden;
border: 1px solid var(--ts-border);
border-radius: 5px;
background: #fff;
}
.ts-portal-card {
display: block !important;
min-width: 0;
min-height: 112px;
margin: 0 !important;
padding: 12px !important;
border-right: 1px solid var(--ts-border-light);
border-bottom: 1px solid var(--ts-border-light);
box-sizing: border-box;
background: #fff;
}
.ts-portal-card:nth-of-type(2n) {
border-right: 0;
}
.ts-portal-card:nth-last-of-type(-n+2) {
border-bottom: 0;
}
.ts-portal-icon {
display: flex;
align-items: center;
justify-content: center;
width: 31px;
height: 31px;
margin-bottom: 7px;
border: 1px solid #a7b9d8;
border-radius: 4px;
background: #f8faff;
color: var(--ts-blue-dark);
font-size: .84rem;
font-weight: 700;
}
.ts-portal-title {
margin: 0 0 4px;
font-size: .91rem;
font-weight: 700;
line-height: 1.4;
}
.ts-portal-title a {
color: var(--ts-blue-dark);
}
.ts-portal-description {
margin: 0;
color: var(--ts-subtext);
font-size: .75rem;
line-height: 1.45;
}
.ts-portal-more {
display: none;
}
/* =========================================================
各パネル
========================================================= */
.ts-grid-4,
.ts-grid-2 {
display: grid !important;
grid-template-columns: 1fr !important;
overflow: hidden;
border: 1px solid var(--ts-border);
border-radius: 5px;
background: #fff;
}
.ts-panel {
min-width: 0;
margin: 0 !important;
padding: 14px !important;
border-right: 0;
border-bottom: 1px solid var(--ts-border-light);
box-sizing: border-box;
}
.ts-grid-4 > .ts-panel:last-of-type,
.ts-grid-2 > .ts-panel:last-of-type {
border-bottom: 0;
}
.ts-panel-heading {
display: flex;
align-items: center;
gap: 6px;
margin: 0 0 9px !important;
padding: 0 0 7px !important;
border-bottom: 1px solid var(--ts-border-light);
color: var(--ts-blue-dark);
font-size: .98rem;
font-weight: 700;
}
.ts-panel-symbol {
color: var(--ts-blue);
}
.ts-panel-content {
margin: 0 !important;
padding: 0 !important;
font-size: .86rem;
line-height: 1.6;
}
.ts-panel-content ul {
margin: 0 0 0 1.2em !important;
padding: 0 !important;
}
.ts-panel-footer {
margin-top: 9px;
text-align: right;
font-size: .79rem;
}
/* =========================================================
ピックアップ・今日のスキル
========================================================= */
.ts-pickup-label {
display: inline-block;
margin: 0 0 6px;
padding: 2px 6px;
border-radius: 3px;
background: #eef3fb;
color: var(--ts-blue-dark);
font-size: .7rem;
font-weight: 700;
}
.ts-pickup-title {
margin: 0 0 5px;
font-size: 1rem;
font-weight: 700;
}
.ts-pickup-text {
margin: 0;
color: var(--ts-subtext);
font-size: .84rem;
line-height: 1.55;
}
/* =========================================================
注目の記事
========================================================= */
.ts-focus-list {
margin: 0 !important;
padding: 0 !important;
list-style: none !important;
}
.ts-focus-list li {
position: relative;
margin: 0 !important;
padding: 6px 0 6px 14px !important;
border-bottom: 1px dotted #d8dfe8;
}
.ts-focus-list li:last-child {
border-bottom: 0;
}
.ts-focus-list li::before {
content: "›";
position: absolute;
left: 1px;
color: var(--ts-blue);
font-weight: 700;
}
/* =========================================================
新着・最近更新
========================================================= */
.ts-update-list {
margin: 0 !important;
padding: 0 !important;
list-style: none !important;
}
.ts-update-list li {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
margin: 0 !important;
padding: 6px 0 !important;
border-bottom: 1px dotted #d8dfe8;
}
.ts-update-list li:last-child {
border-bottom: 0;
}
.ts-update-title {
min-width: 0;
overflow-wrap: anywhere;
}
.ts-update-date {
flex-shrink: 0;
color: var(--ts-muted);
font-size: .73rem;
white-space: nowrap;
}
/* =========================================================
人気記事・急上昇
========================================================= */
.ts-ranking {
display: table;
width: 100%;
margin: 0 !important;
border: 0 !important;
border-collapse: collapse;
background: transparent !important;
}
.ts-ranking tr {
display: grid;
grid-template-columns: 24px minmax(0, 1fr) auto;
align-items: baseline;
width: 100%;
border-bottom: 1px dotted #d8dfe8;
}
.ts-ranking tr:last-child {
border-bottom: 0;
}
.ts-ranking td {
display: block;
min-width: 0;
padding: 6px 2px !important;
border: 0 !important;
background: transparent !important;
font-size: .83rem;
}
.ts-ranking-num {
color: var(--ts-muted);
text-align: center;
}
.ts-ranking-value {
padding-left: 8px !important;
color: var(--ts-muted);
text-align: right;
white-space: nowrap;
font-size: .75rem !important;
}
.ts-ranking-note {
margin: 0 0 7px;
color: var(--ts-muted);
font-size: .74rem;
line-height: 1.5;
}
.ts-up {
color: #14866d !important;
font-weight: 700;
}
/* =========================================================
編集案内
========================================================= */
.ts-edit-list {
margin: 0 !important;
padding-left: 1.2em !important;
}
.ts-edit-list li {
margin: 5px 0;
}
.ts-beginner-box {
margin-top: 11px;
padding: 10px;
border-left: 3px solid var(--ts-blue);
background: #f4f7fc;
font-size: .81rem;
}
.ts-beginner-title {
margin-bottom: 3px;
font-weight: 700;
}
/* =========================================================
作品紹介
========================================================= */
.ts-about {
margin: 0;
padding: 14px;
border: 1px solid var(--ts-border);
border-radius: 5px;
background: #f8f9fa;
font-size: .84rem;
line-height: 1.65;
}
.ts-about-title {
margin-bottom: 6px;
font-size: .98rem;
font-weight: 700;
}
/* =========================================================
下部ナビ
========================================================= */
.ts-subnav {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
margin: 16px 0 0;
padding: 9px 0;
border-top: 1px solid var(--ts-border-light);
border-bottom: 1px solid var(--ts-border-light);
font-size: .76rem;
line-height: 1.8;
}
.ts-subnav a {
margin: 2px 0;
padding: 0 8px;
border-right: 1px solid var(--ts-border);
}
.ts-subnav a:last-child {
border-right: 0;
}
/* =========================================================
かなり狭いスマホ
========================================================= */
@media screen and (max-width: 360px) {
.ts-portal-card {
min-height: 105px;
padding: 10px !important;
}
.ts-portal-title {
font-size: .86rem;
}
.ts-portal-description {
font-size: .71rem;
}
.ts-panel {
padding: 12px !important;
}
.ts-ranking td {
font-size: .8rem;
}
.ts-ranking-value {
font-size: .71rem !important;
}
}
/* =========================================================
転スラWiki 年表 - Mobile
========================================================= */
.ts-chronology {
--chron-blue: #36c;
--chron-blue-dark: #2a4b8d;
--chron-border: #c8ccd1;
--chron-border-light: #eaecf0;
--chron-text: #202122;
--chron-subtext: #54595d;
--chron-muted: #72777d;
}
/* =========================================================
セクション
========================================================= */
.ts-chron-section {
margin: 20px 0 26px;
}
.ts-chron-section-title {
margin: 0 0 12px !important;
padding: 3px 0 6px 8px !important;
border: 0 !important;
border-left: 3px solid var(--chron-blue) !important;
border-bottom: 1px solid var(--chron-border) !important;
font-size: 1.08rem !important;
font-weight: 700 !important;
}
/* =========================================================
年表本体
========================================================= */
.ts-chron-list {
position: relative;
margin: 0;
padding: 0;
}
/*
* スマホ版の縦線
*/
.ts-chron-list::before {
content: "";
position: absolute;
top: 7px;
bottom: 7px;
left: 8px;
width: 1px;
background: #a7b9d8;
}
/* =========================================================
1件の出来事
========================================================= */
.ts-chron-entry {
position: relative;
display: block;
margin: 0;
padding: 0 0 19px 27px;
}
/*
* 年表上の丸
*/
.ts-chron-entry::before {
content: "";
position: absolute;
top: 7px;
left: 4px;
width: 7px;
height: 7px;
border: 2px solid #fff;
border-radius: 50%;
background: var(--chron-blue);
box-shadow: 0 0 0 1px var(--chron-blue);
z-index: 1;
}
/* =========================================================
年代
========================================================= */
.ts-chron-date {
margin: 0 0 4px;
padding: 0;
color: var(--chron-blue-dark);
font-size: .76rem;
font-weight: 600;
line-height: 1.5;
text-align: left;
}
/* =========================================================
出来事本文
========================================================= */
.ts-chron-body {
min-width: 0;
padding: 0 0 13px;
border-bottom: 1px solid var(--chron-border-light);
}
.ts-chron-entry:last-child {
padding-bottom: 0;
}
.ts-chron-entry:last-child .ts-chron-body {
border-bottom: 0;
}
.ts-chron-event {
margin: 0 0 4px;
color: var(--chron-text);
font-size: .93rem;
font-weight: 700;
line-height: 1.45;
}
.ts-chron-event a {
color: var(--chron-blue-dark);
}
.ts-chron-summary {
color: var(--chron-subtext);
font-size: .82rem;
line-height: 1.65;
}
.ts-chron-summary p {
margin: 0;
}
/* =========================================================
詳細リンク
========================================================= */
.ts-chron-detail {
margin-top: 6px;
font-size: .77rem;
}
.ts-chron-detail a {
color: var(--chron-blue);
}
@media screen and (max-width: 360px) {
.ts-chron-entry {
padding-left: 24px;
}
.ts-chron-event {
font-size: .89rem;
}
.ts-chron-summary {
font-size: .79rem;
}
.ts-chron-date {
font-size: .73rem;
}
.ts-chron-list::before {
left: 7px;
}
.ts-chron-entry::before {
left: 3px;
}
}
/* =========================================================
転スラ年表 - ページ上部 Mobile
========================================================= */
.ts-chron-header {
margin-bottom: 15px;
}
.ts-chron-lead {
margin-bottom: 11px;
font-size: .86rem;
line-height: 1.7;
}
.ts-chron-notice {
padding: 10px 11px;
border: 1px solid var(--chron-border);
border-left: 3px solid var(--chron-blue);
background: #f8f9fa;
color: var(--chron-subtext);
font-size: .79rem;
line-height: 1.6;
}
/* 横スクロール式の簡潔なナビ */
.ts-chron-nav {
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
margin: 0 0 20px;
border-top: 1px solid var(--chron-border);
border-bottom: 1px solid var(--chron-border);
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}
.ts-chron-nav > span,
.ts-chron-nav > a {
flex-shrink: 0;
padding: 7px 9px;
font-size: .76rem;
}
.ts-chron-nav > a {
border-left: 1px solid var(--chron-border-light);
}
/* 全史への誘導 */
.ts-chron-more {
margin: 23px 0 8px;
padding: 11px 12px;
border: 1px solid var(--chron-border);
background: #f8f9fa;
color: var(--chron-subtext);
font-size: .8rem;
line-height: 1.65;
}
.ts-chron-more-title {
margin-bottom: 4px;
color: var(--chron-text);
font-size: .9rem;
font-weight: 700;
}
.ts-chron-more-link {
margin-top: 6px;
}
/* =========================================================
転スラ全史 Mobile
========================================================= */
.ts-fullchron-lead {
font-size: .85rem;
line-height: 1.7;
}
.ts-fullchron-notice {
padding: 9px 10px;
font-size: .78rem;
line-height: 1.6;
}
.ts-fullchron-nav {
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
margin: 16px 0 20px;
border-top: 1px solid var(--chron-border);
border-bottom: 1px solid var(--chron-border);
white-space: nowrap;
}
.ts-fullchron-nav > span,
.ts-fullchron-nav > a {
flex-shrink: 0;
padding: 7px 9px;
font-size: .75rem;
}
.ts-fullchron-section {
margin: 20px 0 26px;
}
.ts-fullchron-section-title {
margin: 0 0 11px !important;
padding: 3px 0 6px 8px !important;
border-left: 3px solid var(--chron-blue) !important;
border-bottom: 1px solid var(--chron-border) !important;
font-size: 1.06rem !important;
}
/* モバイルでは年代→本文の縦型 */
.ts-fullchron-list::before {
left: 8px;
}
.ts-fullchron-entry {
display: block;
padding: 0 0 19px 27px;
}
.ts-fullchron-entry::before {
top: 7px;
left: 4px;
}
.ts-fullchron-date {
margin-bottom: 4px;
padding: 0;
text-align: left;
font-size: .75rem;
}
.ts-fullchron-main {
padding-bottom: 13px;
}
.ts-fullchron-event {
font-size: .9rem;
}
.ts-fullchron-summary {
font-size: .81rem;
line-height: 1.6;
}
.ts-fullchron-meta {
margin-top: 6px;
font-size: .74rem;
}
.ts-fullchron-meta-row {
grid-template-columns: 38px minmax(0, 1fr);
gap: 6px;
}
.ts-fullchron-detail {
font-size: .74rem;
}
.ts-fullchron-footer {
margin-top: 22px;
padding: 10px 11px;
font-size: .79rem;
}