diff --git a/includes/skins/SkinMinerva.php b/includes/skins/SkinMinerva.php index 55b070f94..85ed2de75 100644 --- a/includes/skins/SkinMinerva.php +++ b/includes/skins/SkinMinerva.php @@ -1352,6 +1352,7 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin { 'skins.minerva.base.reset', 'skins.minerva.base.styles', 'skins.minerva.content.styles', + 'mediawiki.hlist', 'skins.minerva.tablet.styles', 'mediawiki.ui.icon', 'mediawiki.ui.button', diff --git a/resources/skins.minerva.content.styles/lists.less b/resources/skins.minerva.content.styles/lists.less index c44176a5c..31aff1398 100644 --- a/resources/skins.minerva.content.styles/lists.less +++ b/resources/skins.minerva.content.styles/lists.less @@ -2,25 +2,8 @@ @import 'minerva.variables.less'; @import 'minerva.mixins.less'; -// FIXME: to support hlists on enwiki projects - this should be deprecated -.hlist > ul, -// Horizontal Lists -// -// Use hlist class when dealing with lists where items should be horizontal. -// -// Markup: -// -// -// Styleguide 1.5. -ul.hlist { - li { - display: inline-block; - margin-right: 8px; - } -} +// FIXME: Delete this in 7 days time (T42062) +@import '../../skinStyles/mediawiki.hlist/minerva.less'; .content { ul { @@ -80,15 +63,3 @@ body.mw-hide-empty-elt .mw-empty-elt { display: none; } -.hlist-separated { - li:after { - content: '•'; - padding-left: 8px; - color: @linkColor; - font-size: 16px; - line-height: 1; - } - :last-child:after { - content: ''; - } -} diff --git a/skin.json b/skin.json index dbf880297..5bb2f25cc 100644 --- a/skin.json +++ b/skin.json @@ -36,6 +36,9 @@ }, "ResourceModuleSkinStyles": { "minerva": { + "mediawiki.hlist": [ + "skinStyles/mediawiki.hlist/minerva.less" + ], "mobile.languages.structured": [ "skinStyles/mobile.languages.structured/LanguageOverlay.less" ], diff --git a/skinStyles/mediawiki.hlist/minerva.less b/skinStyles/mediawiki.hlist/minerva.less new file mode 100644 index 000000000..80e646a64 --- /dev/null +++ b/skinStyles/mediawiki.hlist/minerva.less @@ -0,0 +1,40 @@ + @import 'minerva.variables.less'; + +/** + * 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. + */ + +// FIXME: to support hlists on enwiki projects - this should be deprecated +.hlist > ul, +.hlist > dl,.hlist > ul, +// Horizontal Lists +// +// Use hlist class when dealing with lists where items should be horizontal. +// +// Markup: +// +// +// Styleguide 1.5. +ul.hlist { + li { + display: inline-block; + margin-right: 8px; + } +} + +.hlist-separated { + li:after { + content: '•'; + padding-left: 8px; + color: @linkColor; + font-size: 16px; + line-height: 1; + } + :last-child:after { + content: ''; + } +}