Template:Plainlist/styles.css: Difference between revisions
Appearance
w>Izno add this reset from mobile.css |
source>CalendulaAsteraceae m Protected "Template:Plainlist/styles.css": High traffic page or template/module ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)) |
||
| Line 1: | Line 1: | ||
/* | /** | ||
.plainlist | * Styles for lists in general. | ||
.plainlist ul { | * | ||
* @last revised (2013-04-26) | |||
* | |||
* | |||
* Migrated from https://en.wikisource.org/w/index.php?title=MediaWiki:Gadget-enwp-lists.css&oldid=6080813 | |||
* (https://en.wikisource.org/w/index.php?title=MediaWiki:Gadget-enwp-lists.css&action=history) | |||
**/ | |||
/* Unbulleted lists */ | |||
.plainlist ul, | |||
.wst-plainlist ul { | |||
line-height: inherit; | line-height: inherit; | ||
list-style: none; | list-style: none; | ||
} | |||
/* Don't indent the first level */ | |||
.plainlist > ul, | |||
.wst-plainlist > ul { | |||
margin-left: 0; | |||
} | } | ||
.plainlist | /* Lower levels suppress the top/bottom margins */ | ||
.plainlist ul | .plainlist ul ul, | ||
.wst-plainlist ul ul { | |||
margin-top: 0; | |||
margin-bottom: 0; | margin-bottom: 0; | ||
} | |||
.plainlist ul li, | |||
.wst-plainlist ul li { | |||
margin-bottom: 0; | |||
} | |||
.wst-plainlist_hi1 li { | |||
margin-left: 1em; | |||
text-indent: -1em; | |||
} | |||
.wst-plainlist_hi2 li { | |||
margin-left: 2em; | |||
text-indent: -2em; | |||
} | |||
.wst-plainlist_hi4 li { | |||
margin-left: 4em; | |||
text-indent: -4em; | |||
} | |||
/* first item of "mid" templates has no indent */ | |||
.wst-plainlist_m ul:first-child li:first-child { | |||
text-indent: 0; | |||
} | |||
.wst-plainlist_m.wst-plainlist_hi1 ul:nth-of-type(1) li:nth-of-type(1) { | |||
margin-left: 1em; | |||
text-indent: 0; | |||
} | |||
.wst-plainlist_m.wst-plainlist_hi2 ul:nth-of-type(1) li:nth-of-type(1) { | |||
margin-left: 2em; | |||
text-indent: 0; | |||
} | |||
.wst-plainlist_m.wst-plainlist_hi4 ul:nth-of-type(1) li:nth-of-type(1) { | |||
margin-left: 4em; | |||
text-indent: 0; | |||
} | } | ||
Revision as of 14:42, 5 October 2025
/**
* Styles for lists in general.
*
* @last revised (2013-04-26)
*
*
* Migrated from https://en.wikisource.org/w/index.php?title=MediaWiki:Gadget-enwp-lists.css&oldid=6080813
* (https://en.wikisource.org/w/index.php?title=MediaWiki:Gadget-enwp-lists.css&action=history)
**/
/* Unbulleted lists */
.plainlist ul,
.wst-plainlist ul {
line-height: inherit;
list-style: none;
}
/* Don't indent the first level */
.plainlist > ul,
.wst-plainlist > ul {
margin-left: 0;
}
/* Lower levels suppress the top/bottom margins */
.plainlist ul ul,
.wst-plainlist ul ul {
margin-top: 0;
margin-bottom: 0;
}
.plainlist ul li,
.wst-plainlist ul li {
margin-bottom: 0;
}
.wst-plainlist_hi1 li {
margin-left: 1em;
text-indent: -1em;
}
.wst-plainlist_hi2 li {
margin-left: 2em;
text-indent: -2em;
}
.wst-plainlist_hi4 li {
margin-left: 4em;
text-indent: -4em;
}
/* first item of "mid" templates has no indent */
.wst-plainlist_m ul:first-child li:first-child {
text-indent: 0;
}
.wst-plainlist_m.wst-plainlist_hi1 ul:nth-of-type(1) li:nth-of-type(1) {
margin-left: 1em;
text-indent: 0;
}
.wst-plainlist_m.wst-plainlist_hi2 ul:nth-of-type(1) li:nth-of-type(1) {
margin-left: 2em;
text-indent: 0;
}
.wst-plainlist_m.wst-plainlist_hi4 ul:nth-of-type(1) li:nth-of-type(1) {
margin-left: 4em;
text-indent: 0;
}