Module:Hlist/styles.css: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary Tag: Reverted |
EnWikiAdmin (talk | contribs) No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 30: | Line 30: | ||
display: inline; | display: inline; | ||
} | } | ||
/* Additional specific styles for hlist in navboxMobile */ | |||
.navboxMobile .hlist dd, | |||
.navboxMobile .hlist dt, | |||
.navboxMobile .hlist li { | |||
display: inline-block; /* Override to allow wrapping in navboxMobile */ | |||
white-space: normal; /* Enable wrapping */ | |||
word-wrap: break-word; /* Break long words or links */ | |||
overflow-wrap: anywhere; /* Ensure compatibility */ | |||
} | |||
.navboxMobile .hlist a { | |||
white-space: normal; | |||
word-wrap: break-word; | |||
overflow-wrap: anywhere; | |||
} | |||
/* Display requested top-level lists inline */ | /* Display requested top-level lists inline */ | ||
Line 126: | Line 146: | ||
.hlist li ol > li:first-child::before { | .hlist li ol > li:first-child::before { | ||
content: " (" counter(listitem) "\a0"; | content: " (" counter(listitem) "\a0"; | ||
} | } |