MediaWiki:Mobile.css: Difference between revisions
Created page with "→Show logo in mobile header: .minerva-header .mw-logo-icon { display: block !important; width: 2rem !important; height: 2rem !important; object-fit: contain; } →Logo in mobile sidebar: .navigation-drawer .mw-logo-icon { display: block !important; width: 3rem !important; height: 3rem !important; object-fit: contain; } →Hide text in mobile too: .mw-wiki-title, .minerva-wordmark { display: none !important; }" |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
/* | /* Hide the text site name */ | ||
. | .branding-box a span { | ||
display: | display: none !important; | ||
} | } | ||
/* | /* Inject logo as pseudo-element */ | ||
. | .branding-box a::before { | ||
display: block | content: url('/images/niewulis-wiki-logo.svg'); | ||
width: | display: block; | ||
height: | width: 2rem; | ||
height: 2rem; | |||
} | } | ||
/* | /* Sidebar logo above nav links */ | ||
. | .menu #p-navigation::before { | ||
. | content: url('/images/niewulis-wiki-logo.svg'); | ||
display: | display: block; | ||
width: 4rem; | |||
height: 4rem; | |||
margin: 1rem auto; | |||
} | } | ||