{{{html-after-content}}} + {{>LanguageSection}} {{#data-logos}}{{/data-logos}} {{#data-info}}{{>footerItemList}}{{/data-info}} {{#data-places}}{{>footerItemList}}{{/data-places}} diff --git a/resources/skins.minerva.base.styles/LanguageSection.less b/resources/skins.minerva.base.styles/LanguageSection.less new file mode 100644 index 000000000..d7651e9eb --- /dev/null +++ b/resources/skins.minerva.base.styles/LanguageSection.less @@ -0,0 +1,27 @@ +@import '../../minerva.less/minerva.variables.less'; + +/* stylelint-disable selector-max-id */ +#p-lang { + display: none; + + h4 { + margin-bottom: 10px; + } + + // If hash fragment requests it. + &:target { + display: block; + } +} + +.minerva-languages { + column-count: 2; + + li { + list-style: none; + } + + @media all and ( min-width: @width-breakpoint-tablet ) { + column-count: 3; + } +} diff --git a/resources/skins.minerva.base.styles/footer.less b/resources/skins.minerva.base.styles/footer.less index d2e1b697e..2adc35806 100644 --- a/resources/skins.minerva.base.styles/footer.less +++ b/resources/skins.minerva.base.styles/footer.less @@ -40,11 +40,19 @@ font-size: 1em; font-weight: bold; + // FIXME: Remove when cache has cleared for I55a25dfb8aba3d1b589a36ba4cba3bba0fe710a1 &:first-child { margin-top: 0; } } + // No margin top on logo needed if it follows the #p-lang element and nothing has been loaded + // above languages e.g. RelatedArticles. + /* stylelint-disable selector-max-id */ + #p-lang:not( :target ):first-child + .minerva-footer-logo { + margin-top: 0; + } + .hlist, .license { font-size: 0.875em; diff --git a/resources/skins.minerva.base.styles/skin.less b/resources/skins.minerva.base.styles/skin.less index 2256745a0..4f3fec5de 100644 --- a/resources/skins.minerva.base.styles/skin.less +++ b/resources/skins.minerva.base.styles/skin.less @@ -5,5 +5,6 @@ @import 'anonTalkMessage.less'; @import 'common.less'; @import 'header.less'; +@import 'LanguageSection.less'; @import 'footer.less'; @import 'print/styles.less'; diff --git a/skin.json b/skin.json index 0ab6e555b..8268266ed 100644 --- a/skin.json +++ b/skin.json @@ -104,6 +104,9 @@ "name": "minerva", "templateDirectory": "includes/Skins", "messages": [ + "variants", + "mobile-frontend-languages-not-available", + "minerva-page-actions-language-switcher", "sitetitle", "mainpage", "searchbutton",