Template:Arrowlist/styles.css

From LIMSWiki
Revision as of 16:52, 10 March 2020 by Shawndouglas (talk | contribs) (Protected "Template:Arrowlist/styles.css" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

/* Style for horizontal lists (separator following item).

  @source mediawiki.org/wiki/Snippets/Horizontal_lists
  @revision 8 (2016-05-21)
  @author User:Edokter
*/

.arrowlist dl, .arrowlist ol, .arrowlist ul { margin: 0; padding: 0; } /* Display list items inline */ .arrowlist dd, .arrowlist dt, .arrowlist li { margin: 0; display: inline; } /* Display nested lists inline */ .arrowlist.inline, .arrowlist.inline dl, .arrowlist.inline ol, .arrowlist.inline ul, .arrowlist dl dl, .arrowlist dl ol, .arrowlist dl ul, .arrowlist ol dl, .arrowlist ol ol, .arrowlist ol ul, .arrowlist ul dl, .arrowlist ul ol, .arrowlist ul ul { display: inline; } /* Hide empty list items */ .arrowlist .mw-empty-li { display: none; } /* Generate interpuncts */ .arrowlist dt:after { content: ": "; } .arrowlist dd:after, .arrowlist li:after { content: " → "; font-weight: bold; } .arrowlist dd:last-child:after, .arrowlist dt:last-child:after, .arrowlist li:last-child:after { content: none; } /* Add parentheses around nested lists */ .arrowlist dd dd:first-child:before, .arrowlist dd dt:first-child:before, .arrowlist dd li:first-child:before, .arrowlist dt dd:first-child:before, .arrowlist dt dt:first-child:before, .arrowlist dt li:first-child:before, .arrowlist li dd:first-child:before, .arrowlist li dt:first-child:before, .arrowlist li li:first-child:before { content: " ("; font-weight: normal; } .arrowlist dd dd:last-child:after, .arrowlist dd dt:last-child:after, .arrowlist dd li:last-child:after, .arrowlist dt dd:last-child:after, .arrowlist dt dt:last-child:after, .arrowlist dt li:last-child:after, .arrowlist li dd:last-child:after, .arrowlist li dt:last-child:after, .arrowlist li li:last-child:after { content: ")"; font-weight: normal; } /* Put ordinals in front of ordered list items */ .arrowlist ol { counter-reset: listitem; } .arrowlist ol > li { counter-increment: listitem; } .arrowlist ol > li:before { content: " " counter(listitem) "\a0"; } .arrowlist dd ol > li:first-child:before, .arrowlist dt ol > li:first-child:before, .arrowlist li ol > li:first-child:before { content: " (" counter(listitem) "\a0"; }