#How to get the logo to display at the top of an wiki page
25 messages · Page 1 of 1 (latest)
pretty much boils down to CSS
I suggest to check that wiki's MediaWiki:Common.css page, although I know styling on wiki.gg tends to get very complicated
It's not on their common.css thought which is interesting
I found they store it in a separate file called "Media wiki:Vector.css"
But when I used the template provided it didn't quite render correctly
Perhaps it is done through the ManageWiki? (If they have that?)
(I'm not familiar with gg)
TIL old vector is laid out like a nightmare
trying to see if i can css a chunk of space up there to put a logo but turns out all the navigation stuff and the content block itself are all hardcoded into position
no, they don't even offer alt skins or mobile mode, it's just old Vector w/ poor adaptation by default and custom CSS/JS
Thanks for the info
@livid totem kinda scuffed but this should work
change the --header-logo-height and width at the top if needed
/*------------------ header logo -------------------*/
:root {
--header-logo-height: 150px;
--header-logo-width: 300px;
--header-displace-height: calc(var(--header-logo-height) + 90px);
}
#mw-page-base {
height:var(--header-displace-height);
}
#mw-head {
height:var(--header-displace-height);
display:flex;
flex-flow:row wrap;
}
#right-navigation, #left-navigation {
margin-top:0;
align-self:flex-end;
margin-bottom:unset;
}
#right-navigation {
margin-left:auto;
}
#mw-panel {
padding-top:40px;
}
#p-logo {
width:100vw;
}
#p-logo a {
background-repeat:no-repeat;
background-size:contain;
background-position:center;
height:var(--header-logo-height);
width:var(--header-logo-width);
margin:auto;
}
/*-------------------------------------*/
I placed this in Common.css right
yea
Alright
or vector
also the default skin on ur wiki isnt old vector so ur gonna wanna change that
yeah
result of placing in common.css
ah
add this
#right-navigation {
margin-left:auto;
}
#left-navigation {
margin-bottom:unset;
}
it worked