Debian Codegraph @

skins/MinervaNeue/skinStyles/mediawiki.hlist/minerva.less

raw
1 @import '../../minerva.less/minerva.variables.less';
2
3 /**
4 * This tweaks the default mediawiki.hlist module to provide performance optimisations
5 * as well as subtle tweaks to the appearance. It's a work in progress.
6 */
7
8 // Horizontal Lists
9 //
10 // Use hlist class when dealing with lists where items should be horizontal.
11 //
12 // Markup:
13 // <ul class="hlist">
14 // <li>item 1</li>
15 // <li>item 2</li>
16 // </ul>
17 // FIXME: `.hlist > *` to support hlists on enwiki projects - this should be deprecated
18 ul.hlist,
19 .hlist > ul,
20 .hlist > dl {
21 li {
22 display: inline-block;
23 margin-right: 8px;
24 }
25 }
26
27 .hlist-separated {
28 li::after {
29 // Make sure we override any site styles
30 content: '•' !important;
31 padding-left: 8px;
32 font-size: 1em;
33 line-height: 1;
34 }
35
36 :last-child::after {
37 content: none !important;
38 }
39 }