feat(wordmark): implement wordmark in drawer

Also simplify existing styles for wordmark
This commit is contained in:
alistair3149 2024-06-24 14:05:21 -04:00
parent e0507d489d
commit c47531a28b
No known key found for this signature in database
6 changed files with 23 additions and 29 deletions

View file

@ -64,10 +64,6 @@ em {
}
}
.mw-logo-wordmark {
font-weight: var( --font-weight-semibold );
}
.citizen-body {
font-size: var( --font-size-medium );
line-height: var( --line-height );

View file

@ -26,12 +26,7 @@
&__siteinfo {
display: flex;
flex-direction: column;
gap: var( --space-xxs );
.mw-logo-wordmark {
font-size: 1.5rem;
color: var( --color-base--emphasized );
}
gap: var( --space-xs );
}
&__menu {
@ -57,14 +52,6 @@
// Bigger logo
height: 5rem;
}
&__siteinfo {
.mw-logo-wordmark {
font-size: 2rem;
// Sometimes long wiki name will wrap when the menu is too small
white-space: nowrap;
}
}
}
}

View file

@ -60,16 +60,6 @@
}
#footer {
&-sitetitle {
font-size: 1.25rem;
color: var( --color-base--emphasized );
img.mw-logo-wordmark {
max-height: 54px;
filter: var( --filter-invert );
}
}
&-places {
ul {
flex-direction: column;

View file

@ -0,0 +1,20 @@
.mw-logo-wordmark {
font-size: 1.25rem;
font-weight: var( --font-weight-semibold );
line-height: 1;
color: var( --color-base--emphasized );
@media ( min-width: @min-width-breakpoint-tablet ) {
font-size: 2rem;
white-space: nowrap;
}
img& {
width: 100%;
height: 1.5rem;
margin: 0.25rem 0;
object-fit: contain;
object-position: left center;
filter: var( --filter-invert );
}
}

View file

@ -42,6 +42,7 @@
@import 'components/Sections.less';
@import 'components/OverflowElements.less';
@import 'components/UserInfo.less';
@import 'components/Wordmark.less';
// Mediawiki.skinning
// This get loaded regardless so we don't have to use skinStyles to target them

View file

@ -9,7 +9,7 @@
{{>Drawer__logo}}
<div class="citizen-drawer__siteinfo">
{{#data-site-stats}}{{>SiteStats}}{{/data-site-stats}}
<div class="mw-logo-wordmark">{{msg-sitetitle}}</div>
{{>Wordmark}}
</div>
</header>
{{#data-main-menu}}