Template:Hlist/styles.css: Difference between revisions
en>Izno use actual pseudo-element selectors for after and before, all grade C and up support double (correct number) of colons |
m 17 revisions imported |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
/* | /* {{pp-protected|reason=match parent|small=yes}} */ | ||
/* | |||
* hlist styles are defined in core and Minerva and differ in Minerva. The | |||
* current definitions here (2023-01-01) are sufficient to override Minerva | |||
* without use of the hlist-separated class. The most problematic styles were | |||
* related to margin, padding, and the bullet. Check files listed at | |||
* [[MediaWiki talk:Common.css/to do#hlist-separated]] | |||
*/ | */ | ||
/* | /* | ||
Line 8: | Line 11: | ||
* in which grade C support is above the minimum threshold), use :is() | * in which grade C support is above the minimum threshold), use :is() | ||
*/ | */ | ||
.hlist dl, | .hlist dl, | ||
.hlist ol, | .hlist ol, | ||
Line 52: | Line 54: | ||
} | } | ||
/* TODO: | /* TODO: :not() can maybe be used here to remove the later rule. naive test | ||
* like so: | * seems to work. more testing needed. like so: | ||
*.hlist dt:not(:last-child)::after { | *.hlist dt:not(:last-child)::after { | ||
* content: ": "; | * content: ": "; | ||
*} | *} | ||
*.hlist dd:not(:last-child)::after, | *.hlist dd:not(:last-child)::after, | ||
*.hlist | *.hlist li:not(:last-child)::after { | ||
* content: " · "; | * content: " · "; | ||
* font-weight: bold; | * font-weight: bold; |