MediaWiki:Common.css: Difference between revisions
Appearance
Knowlepedia (talk | contribs) No edit summary |
Knowlepedia (talk | contribs) No edit summary |
||
Line 19: | Line 19: | ||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
} | |||
} | |||
@media screen and (max-width:768px) { | |||
.nomobile { | |||
display: none !important; | |||
} | |||
#mp-topbanner { | |||
min-width: auto; | |||
white-space: normal; | |||
text-align: center; | |||
} | } | ||
} | } |
Revision as of 11:16, 21 June 2025
/* CSS placed here will be applied to all skins */
.mw-parser-output > :first-child {
margin-top: 0 !important;
}
/* Ensure custom infobox floats right on desktop but centers on mobile */
.custom-infobox-wrapper {
float: right;
margin: 1 0 1em 1em;
max-width: 100%;
}
@media screen and (max-width: 600px) {
.custom-infobox-wrapper {
float: none !important;
margin: 0 auto 1em auto !important;
display: flex;
justify-content: center;
}
}
@media screen and (max-width:768px) {
.nomobile {
display: none !important;
}
#mp-topbanner {
min-width: auto;
white-space: normal;
text-align: center;
}
}