Merge pull request #7852 from mgeier/basic-css-simple-lists

basic CSS: Take "simple" lists into account, resuscitating the "html_compact_lists" config option
This commit is contained in:
Takeshi KOMIYA 2020-07-05 02:11:11 +09:00 committed by GitHub
commit 2cc6264f2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -513,28 +513,31 @@ ol.upperroman {
list-style: upper-roman; list-style: upper-roman;
} }
ol > li:first-child > :first-child, :not(li) > ol > li:first-child > :first-child,
ul > li:first-child > :first-child { :not(li) > ul > li:first-child > :first-child {
margin-top: 0px; margin-top: 0px;
} }
ol ol > li:first-child > :first-child, :not(li) > ol > li:last-child > :last-child,
ol ul > li:first-child > :first-child, :not(li) > ul > li:last-child > :last-child {
ul ol > li:first-child > :first-child,
ul ul > li:first-child > :first-child {
margin-top: revert;
}
ol > li:last-child > :last-child,
ul > li:last-child > :last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
ol ol > li:last-child > :last-child, ol.simple ol p,
ol ul > li:last-child > :last-child, ol.simple ul p,
ul ol > li:last-child > :last-child, ul.simple ol p,
ul ul > li:last-child > :last-child { ul.simple ul p {
margin-bottom: revert; margin-top: 0;
}
ol.simple > li:not(:first-child) > p,
ul.simple > li:not(:first-child) > p {
margin-top: 0;
}
ol.simple p,
ul.simple p {
margin-bottom: 0;
} }
dl.footnote > dt, dl.footnote > dt,