Merge "Logo scales with font-size"

This commit is contained in:
jenkins-bot 2021-10-05 19:21:04 +00:00 committed by Gerrit Code Review
commit ba00180eed
2 changed files with 5 additions and 4 deletions

View File

@ -12,7 +12,7 @@
<span class="mw-logo-container">
{{#wordmark}}
<img class="mw-logo-wordmark" alt="{{msg-sitetitle}}"
src="{{src}}" width="{{width}}" height="{{height}}">
src="{{src}}" style="{{style}}">
{{/wordmark}}
{{^wordmark}}
<strong class="mw-logo-wordmark">{{msg-sitetitle}}</strong>
@ -20,7 +20,7 @@
{{#tagline}}
<img class="mw-logo-tagline"
alt="{{msg-sitesubtitle}}"
src="{{src}}" width="{{width}}" height="{{height}}">
src="{{src}}" width="{{width}}" height="{{height}}" style="{{style}}">
{{/tagline}}
</span>
</a>

View File

@ -17,6 +17,9 @@
margin-right: 10px;
// Hide mobile icon at lower resolutions and defer to wordmark
display: none;
@size-mw-logo-icon: unit( 50 / @font-size-browser, em );
width: @size-mw-logo-icon;
height: @size-mw-logo-icon;
@media ( min-width: @width-breakpoint-tablet ) {
display: block;
@ -54,12 +57,10 @@
.mw-logo-wordmark {
display: block;
margin: 0 auto;
font-size: 1.4em;
}
.mw-logo-tagline {
// For browsers which do not support flexbox.
display: block;
margin: 5px auto 0;
font-size: 0.7em;
}