Logo scales with font-size

Bug: T291895
Depends-On: Ie86a5b59fbf93a400796a4cac3724207830092b5
Change-Id: I194a11316e8ac68319f41c6a79b2c9cd081a4b66
This commit is contained in:
jdlrobson 2021-09-08 11:43:50 -07:00 committed by Jdlrobson
parent f9405739ed
commit e12fe1dbb0
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;
}