「MediaWiki:Mobile.css」の版間の差分
ナビゲーションに移動
検索に移動
Triple-Zeta (トーク | 投稿記録) (ページの作成:「→CSS placed here will affect users of the mobile site: .mobile-float-reset { float: none !important; width: 100% !important; } /* Floating table headers for Wikimedi…」) |
Triple-Zeta (トーク | 投稿記録) 編集の要約なし |
||
1行目: | 1行目: | ||
/* | /* ここに記述したCSSは携帯機器版サイトの利用者に影響します */ | ||
/* | /* [[en:MediaWiki:Mobile.css]] から複製。 */ | ||
@ | /* Style for horizontal lists (separator following item). | ||
@source mediawiki.org/wiki/Snippets/Horizontal_lists | |||
@revision 3.2 (2013-09-25) | |||
@author: [[User:Edokter]] | |||
*/ | |||
.hlist dl, | |||
.hlist ol, | |||
.hlist ul { | |||
margin: 0; | |||
padding: 0; | |||
} | |||
/* Display list items inline and make them nowrap */ | |||
.hlist dd, | |||
.hlist dt, | |||
.hlist li { | |||
margin: 0; | |||
display: inline; | |||
} | |||
/* Allow wrapping for list items (in tight spaces) */ | |||
.hlist.hwrap dd, | |||
.hlist.hwrap dt, | |||
.hlist.hwrap li { | |||
white-space: normal; | |||
} | |||
/* Display nested lists inline and allow them to wrap */ | |||
.hlist dl dl, .hlist dl ol, .hlist dl ul, | |||
.hlist ol dl, .hlist ol ol, .hlist ol ul, | |||
.hlist ul dl, .hlist ul ol, .hlist ul ul { | |||
display: inline; | |||
white-space: normal; | |||
} | |||
/* Generate interpuncts */ | |||
#bodyContent .hlist dt:after { | |||
content: ":"; | |||
} | |||
#bodyContent .hlist dd:after, | |||
#bodyContent .hlist li:after { | |||
content: " ·"; | |||
font-weight: bold; | |||
} | |||
#bodyContent .hlist dd:last-child:after, | |||
#bodyContent .hlist dt:last-child:after, | |||
#bodyContent .hlist li:last-child:after { | |||
content: none; | |||
} | |||
/* Add parentheses around nested lists */ | |||
#bodyContent .hlist dd dd:first-child:before, #bodyContent .hlist dd dt:first-child:before, #bodyContent .hlist dd li:first-child:before, | |||
#bodyContent .hlist dt dd:first-child:before, #bodyContent .hlist dt dt:first-child:before, #bodyContent .hlist dt li:first-child:before, | |||
#bodyContent .hlist li dd:first-child:before, #bodyContent .hlist li dt:first-child:before, #bodyContent .hlist li li:first-child:before { | |||
content: "("; | |||
font-weight: normal; | |||
} | |||
#bodyContent .hlist dd dd:last-child:after, #bodyContent .hlist dd dt:last-child:after, #bodyContent .hlist dd li:last-child:after, | |||
#bodyContent .hlist dt dd:last-child:after, #bodyContent .hlist dt dt:last-child:after, #bodyContent .hlist dt li:last-child:after, | |||
#bodyContent .hlist li dd:last-child:after, #bodyContent .hlist li dt:last-child:after, #bodyContent .hlist li li:last-child:after { | |||
content: ")"; | |||
font-weight: normal; | |||
} | |||
/* Put ordinals in front of ordered list items */ | |||
#bodyContent .hlist ol { | |||
counter-reset: list-item; | |||
} | |||
#bodyContent .hlist ol > li { | |||
counter-increment: list-item; | |||
} | |||
#bodyContent .hlist ol > li:before { | |||
content: counter(list-item) " "; | |||
} | |||
#bodyContent .hlist dd ol > li:first-child:before, | |||
#bodyContent .hlist dt ol > li:first-child:before, | |||
#bodyContent .hlist li ol > li:first-child:before { | |||
content: "(" counter(list-item) " "; | |||
} | |||
/* 日本語版の独自仕様。-pipe と -hyphen */ | |||
#bodyContent .hlist-pipe dd:after, | |||
#bodyContent .hlist-pipe li:after { | |||
content: " |"; | |||
font-weight: normal; | |||
} | |||
#bodyContent .hlist-hyphen dd:after, | |||
#bodyContent .hlist-hyphen li:after { | |||
content: " -"; | |||
font-weight: normal; | |||
} | |||
/* 表が縦に長くなるのを防ぐ */ | |||
.wikitable, .tracklist { | |||
overflow-wrap: break-word; | |||
word-wrap: break-word; | |||
word-break: keep-all; | |||
} | } |
2019年8月21日 (水) 16:25時点における版
/* ここに記述したCSSは携帯機器版サイトの利用者に影響します */
/* [[en:MediaWiki:Mobile.css]] から複製。 */
/* Style for horizontal lists (separator following item).
@source mediawiki.org/wiki/Snippets/Horizontal_lists
@revision 3.2 (2013-09-25)
@author: [[User:Edokter]]
*/
.hlist dl,
.hlist ol,
.hlist ul {
margin: 0;
padding: 0;
}
/* Display list items inline and make them nowrap */
.hlist dd,
.hlist dt,
.hlist li {
margin: 0;
display: inline;
}
/* Allow wrapping for list items (in tight spaces) */
.hlist.hwrap dd,
.hlist.hwrap dt,
.hlist.hwrap li {
white-space: normal;
}
/* Display nested lists inline and allow them to wrap */
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
display: inline;
white-space: normal;
}
/* Generate interpuncts */
#bodyContent .hlist dt:after {
content: ":";
}
#bodyContent .hlist dd:after,
#bodyContent .hlist li:after {
content: " ·";
font-weight: bold;
}
#bodyContent .hlist dd:last-child:after,
#bodyContent .hlist dt:last-child:after,
#bodyContent .hlist li:last-child:after {
content: none;
}
/* Add parentheses around nested lists */
#bodyContent .hlist dd dd:first-child:before, #bodyContent .hlist dd dt:first-child:before, #bodyContent .hlist dd li:first-child:before,
#bodyContent .hlist dt dd:first-child:before, #bodyContent .hlist dt dt:first-child:before, #bodyContent .hlist dt li:first-child:before,
#bodyContent .hlist li dd:first-child:before, #bodyContent .hlist li dt:first-child:before, #bodyContent .hlist li li:first-child:before {
content: "(";
font-weight: normal;
}
#bodyContent .hlist dd dd:last-child:after, #bodyContent .hlist dd dt:last-child:after, #bodyContent .hlist dd li:last-child:after,
#bodyContent .hlist dt dd:last-child:after, #bodyContent .hlist dt dt:last-child:after, #bodyContent .hlist dt li:last-child:after,
#bodyContent .hlist li dd:last-child:after, #bodyContent .hlist li dt:last-child:after, #bodyContent .hlist li li:last-child:after {
content: ")";
font-weight: normal;
}
/* Put ordinals in front of ordered list items */
#bodyContent .hlist ol {
counter-reset: list-item;
}
#bodyContent .hlist ol > li {
counter-increment: list-item;
}
#bodyContent .hlist ol > li:before {
content: counter(list-item) " ";
}
#bodyContent .hlist dd ol > li:first-child:before,
#bodyContent .hlist dt ol > li:first-child:before,
#bodyContent .hlist li ol > li:first-child:before {
content: "(" counter(list-item) " ";
}
/* 日本語版の独自仕様。-pipe と -hyphen */
#bodyContent .hlist-pipe dd:after,
#bodyContent .hlist-pipe li:after {
content: " |";
font-weight: normal;
}
#bodyContent .hlist-hyphen dd:after,
#bodyContent .hlist-hyphen li:after {
content: " -";
font-weight: normal;
}
/* 表が縦に長くなるのを防ぐ */
.wikitable, .tracklist {
overflow-wrap: break-word;
word-wrap: break-word;
word-break: keep-all;
}