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:
/* Style for horizontal lists (separator following item).
/* {{pp-protected|reason=match parent|small=yes}} */
  @source mediawiki.org/wiki/Snippets/Horizontal_lists
/*
  @revision 8 (2016-05-21)
* hlist styles are defined in core and Minerva and differ in Minerva. The
  @original-author [[User:Edokter]]
* 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: believe :not() can be used here to remove the later rule. needs testing.
/* 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 dd:not(:last-child)::after {
  *.hlist li:not(:last-child)::after {
  * content: " · ";
  * content: " · ";
  * font-weight: bold;
  * font-weight: bold;