mediawiki-skins-MinervaNeue/skinStyles/mediawiki.hlist/minerva.less
Volker E f0608db19a build: Update 'stylelint-config-wikimedia' to v0.5.0 and make pass
Updates code comments and whitespacing.

Change-Id: If7665beaa2d342881483fd7a9fc0fc880768d2ef
2018-12-12 23:26:48 +00:00

42 lines
823 B
Plaintext

@import '../../minerva.less/minerva.variables';
/**
* This tweaks the default mediawiki.hlist module to provide performance optimisations
* as well as subtle tweaks to the appearance. It's a work in progress.
*/
// Horizontal Lists
//
// Use hlist class when dealing with lists where items should be horizontal.
//
// Markup:
// <ul class="hlist">
// <li>item 1</li>
// <li>item 2</li>
// </ul>
//
// Styleguide 1.5.
// FIXME: `.hlist > *` to support hlists on enwiki projects - this should be deprecated
ul.hlist,
.hlist > ul,
.hlist > dl {
li {
display: inline-block;
margin-right: 8px;
}
}
.hlist-separated {
li:after {
// Make sure we override any site styles
content: '•' !important;
padding-left: 8px;
font-size: 1em;
line-height: 1;
}
:last-child:after {
content: none !important;
}
}