Logo scales with font-size
Bug: T291895 Depends-On: Ie86a5b59fbf93a400796a4cac3724207830092b5 Change-Id: I194a11316e8ac68319f41c6a79b2c9cd081a4b66
This commit is contained in:
parent
f9405739ed
commit
e12fe1dbb0
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue