| 1 |
.mw-logo { |
| 2 |
.flex-display(); |
| 3 |
// If icon is not configured, ensure that the logo still takes up available |
| 4 |
// space allocated by layout. |
| 5 |
height: 100%; |
| 6 |
// Center vertically. |
| 7 |
align-items: center; |
| 8 |
// Hamburger menu icon with padding (22px + 12px = 46px) + right margin (12px) + logo (222px @ 16) + space between |
| 9 |
// logo and searchbox (28px) = 296px which equals the sum of widths of sidebar elements (i.e. TOC) when toggled. |
| 10 |
// 226px @ 16 provides correct spacing between the right edge of logo container + left edge of searchbox input. |
| 11 |
min-width: 13.875em; // 222px @ 16 |
| 12 |
|
| 13 |
.vector-feature-main-menu-pinned-disabled & { |
| 14 |
// The logo is 40px from the page container. |
| 15 |
// Main menu button width (20px) + 20px = 40px |
| 16 |
margin-left: 20px; |
| 17 |
} |
| 18 |
} |
| 19 |
|
| 20 |
.mw-logo-icon { |
| 21 |
// For browsers which do not support flexbox we float left. |
| 22 |
// This will be ignored in flexbox browsers. |
| 23 |
float: left; |
| 24 |
margin-right: 10px; |
| 25 |
@size-mw-logo-icon: unit( 50 / @font-size-browser, em ); |
| 26 |
width: @size-mw-logo-icon; |
| 27 |
height: @size-mw-logo-icon; |
| 28 |
} |
| 29 |
|
| 30 |
.mw-logo-container { |
| 31 |
// For browsers which do not support flexbox we float left. |
| 32 |
// This will be ignored in flexbox browsers. |
| 33 |
// The two children `div`s will lay out in a row. |
| 34 |
float: left; |
| 35 |
// At mobile resolutions restrict logo to 120px to optimize for a 340px display (@min-width-supported) |
| 36 |
// (based on https://gs.statcounter.com/screen-resolution-stats/mobile/worldwide) |
| 37 |
// This accounts for up to 5 icons |
| 38 |
// (Echo notifications x 2, search, hamburger and personal menu) |
| 39 |
// where the icons have 44px each (44x5 = 220px) |
| 40 |
max-width: 120px; |
| 41 |
|
| 42 |
img { |
| 43 |
width: 100%; |
| 44 |
} |
| 45 |
|
| 46 |
@media ( min-width: @min-width-breakpoint-tablet ) { |
| 47 |
max-width: none; |
| 48 |
|
| 49 |
img { |
| 50 |
width: auto; |
| 51 |
} |
| 52 |
} |
| 53 |
} |
| 54 |
|
| 55 |
// Note for 3rd parties where no wgLogos['wordmark'] is defined |
| 56 |
// the site title is not clipped. We may need to revisit this later |
| 57 |
// for projects with long site titles. |
| 58 |
.mw-logo-wordmark { |
| 59 |
display: block; |
| 60 |
margin: 0 auto; |
| 61 |
} |
| 62 |
|
| 63 |
.mw-logo-tagline { |
| 64 |
// For browsers which do not support flexbox. |
| 65 |
display: block; |
| 66 |
margin: 5px auto 0; |
| 67 |
} |