MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 58: | Line 58: | ||
} | } | ||
/* ---------------------------------------------------------- */ | /* ---------------------------------------------------------- */ | ||
/* ---------------------------------------------------------- */ | /* ---------------------------------------------------------- */ | ||
/* Fix: Show custom logo on MOBILE for Vector 2022 */ | |||
/* ---------------------------------------------------------- */ | |||
/* Hide mobile site title */ | |||
.vector-page-titlebar h1, | |||
#p-logo-text, | |||
.mw-logo-wordmark { | |||
display: none !important; | |||
} | |||
.mw-logo-icon { | /* Force mobile header to show custom logo */ | ||
.vector-header-container .mw-logo-icon { | |||
background-image: url("https://bharatwikipedia.org/images/BharatWikipedia.svg") !important; | background-image: url("https://bharatwikipedia.org/images/BharatWikipedia.svg") !important; | ||
background-size: contain !important; | background-size: contain !important; | ||
background-repeat: no-repeat !important; | background-repeat: no-repeat !important; | ||
width: | width: 140px !important; /* size of your mobile logo */ | ||
height: | height: 40px !important; | ||
display: block !important; | display: block !important; | ||
opacity: 1 !important; | opacity: 1 !important; | ||
} | } | ||
/* Remove default | /* Remove default mobile icon image */ | ||
. | .vector-header-container .mw-logo-icon img { | ||
display: none !important; | display: none !important; | ||
} | } | ||
Revision as of 20:44, 7 December 2025
/* ---------------------------------------------------------- */
/* CUSTOM HEADER LOGO */
/* ---------------------------------------------------------- */
.mw-wiki-title,
.mw-logo-wordmark,
#p-logo-text {
display: none !important;
}
.mw-logo-wordmark {
display: block !important;
width: 220px;
height: 40px;
margin-top: 15px;
background-image: url("https://bharatwikipedia.org/images/BharatWikipedia.svg");
background-repeat: no-repeat;
background-size: contain;
text-indent: -9999px;
overflow: hidden;
white-space: nowrap;
}
/* ---------------------------------------------------------- */
/* FOOTER BADGES (ConnexAbility + Powered by MediaWiki) */
/* ---------------------------------------------------------- */
/* Ensure footer icons sit in one row, aligned right */
#footer-icons {
display: flex !important;
justify-content: flex-end !important;
align-items: center !important;
flex-direction: row !important; /* NORMAL left→right order */
gap: 5px;
}
/* ConnexAbility Badge — placed BEFORE MediaWiki badge */
#footer-icons::before {
content: "";
display: inline-flex;
justify-content: center;
align-items: center;
width: 135px;
height: 45px; /* INCREASED HEIGHT */
background-image: url("/images/AConnexAbilityProject.svg");
background-size: 78% auto;
background-position: center;
background-repeat: no-repeat;
background-color: #fff;
border: 1px solid #72777d;
border-radius: 2px;
padding: 8px 8px; /* reduced padding so logo stays centered */
box-sizing: border-box;
}
/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */
/* Fix: Show custom logo on MOBILE for Vector 2022 */
/* ---------------------------------------------------------- */
/* Hide mobile site title */
.vector-page-titlebar h1,
#p-logo-text,
.mw-logo-wordmark {
display: none !important;
}
/* Force mobile header to show custom logo */
.vector-header-container .mw-logo-icon {
background-image: url("https://bharatwikipedia.org/images/BharatWikipedia.svg") !important;
background-size: contain !important;
background-repeat: no-repeat !important;
width: 140px !important; /* size of your mobile logo */
height: 40px !important;
display: block !important;
opacity: 1 !important;
}
/* Remove default mobile icon image */
.vector-header-container .mw-logo-icon img {
display: none !important;
}