「MediaWiki:Mobile.css」の版間の差分

編集の要約なし
編集の要約なし
編集の要約なし
1行目: 1行目:
/* ここに記述したCSSは携帯機器版サイトの利用者に影響します */
/* ここに記述したCSSは携帯機器版サイトの利用者に影響します */


/* [[en:MediaWiki:Mobile.css]] から複製。 */
/* Style for horizontal lists (separator following item).
/* Style for horizontal lists (separator following item).
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @revision 3.2 (2013-09-25)
   @revision 9 (2016-08-10)
   @author: [[User:Edokter]]
   @author [[User:Edokter]]
*/
*/
.hlist dl,
.hlist dl,
.hlist ol,
.hlist ol,
13行目: 12行目:
     padding: 0;
     padding: 0;
}
}
/* Display list items inline and make them nowrap */
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
.hlist li {
     margin: 0;
     margin: 0;
     display: inline;
     display: inline;
}
}
/* Allow wrapping for list items (in tight spaces) */
/* reset hlist margins of Minerva
.hlist.hwrap dd,
do not add li here (see T235416) */
.hlist.hwrap dt,
.hlist dd,
.hlist.hwrap li {
.hlist dt {
    white-space: normal;
margin-right: 0 !important;
display: inline;
}
}
/* Display nested lists inline and allow them to wrap */
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
.hlist ul dl, .hlist ul ol, .hlist ul ul {
     display: inline;
     display: inline;
     white-space: normal;
}
/* Hide empty list items */
.hlist .mw-empty-li,
.hlist .mw-empty-elt {
     display: none;
}
}
/* Generate interpuncts */
/* Generate interpuncts */
45行目: 51行目:
#bodyContent .hlist dt:last-child:after,
#bodyContent .hlist dt:last-child:after,
#bodyContent .hlist li:last-child:after {
#bodyContent .hlist li:last-child:after {
     content: none;
     content: none !important;
}
}
/* Add parentheses around nested lists */
/* Add parentheses around nested lists */
51行目: 57行目:
#bodyContent .hlist dt dd:first-child:before, #bodyContent .hlist dt dt:first-child:before, #bodyContent .hlist dt 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 {
#bodyContent .hlist li dd:first-child:before, #bodyContent .hlist li dt:first-child:before, #bodyContent .hlist li li:first-child:before {
     content: "(";
     content: "(" !important;
     font-weight: normal;
     font-weight: normal;
}
}
57行目: 63行目:
#bodyContent .hlist dt dd:last-child:after, #bodyContent .hlist dt dt:last-child:after, #bodyContent .hlist dt 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 {
#bodyContent .hlist li dd:last-child:after, #bodyContent .hlist li dt:last-child:after, #bodyContent .hlist li li:last-child:after {
     content: ")";
     content: ")" !important;
     font-weight: normal;
     font-weight: normal;
}
}
/* Put ordinals in front of ordered list items */
/* Put ordinals in front of ordered list items */
#bodyContent .hlist ol {
#bodyContent .hlist ol {
     counter-reset: list-item;
     counter-reset: listitem;
}
}
#bodyContent .hlist ol > li {
#bodyContent .hlist ol > li {
     counter-increment: list-item;
     counter-increment: listitem;
}
}
#bodyContent .hlist ol > li:before {
#bodyContent .hlist ol > li:before {
     content: counter(list-item) " ";
     content: " " counter(listitem) ".\a0";
}
}
#bodyContent .hlist dd ol > li:first-child:before,
#bodyContent .hlist dd ol > li:first-child:before,
#bodyContent .hlist dt ol > li:first-child:before,
#bodyContent .hlist dt ol > li:first-child:before,
#bodyContent .hlist li ol > li:first-child:before {
#bodyContent .hlist li ol > li:first-child:before {
     content: "(" counter(list-item) " ";
     content: " (" counter(listitem) "\a0";
}
}
/* 日本語版の独自仕様。-pipe と -hyphen */
/* 日本語版の独自仕様。-pipe、-hyphen、-comma、-slash */
#bodyContent .hlist-pipe dd:after,
#bodyContent .hlist-pipe dd:after,
#bodyContent .hlist-pipe li:after {
#bodyContent .hlist-pipe li:after {
     content: " |";
     content: " |" !important;
     font-weight: normal;
     font-weight: normal;
}
}
#bodyContent .hlist-hyphen dd:after,
#bodyContent .hlist-hyphen dd:after,
#bodyContent .hlist-hyphen li:after {
#bodyContent .hlist-hyphen li:after {
     content: " -";
     content: " -" !important;
     font-weight: normal;
     font-weight: normal;
}
#bodyContent .hlist-comma dd:after,
#bodyContent .hlist-comma li:after {
    content: "、" !important;
    font-weight: normal;
}
#bodyContent .hlist-slash dd:after,
#bodyContent .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;
}
}