MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 90: | Line 90: | ||
body.page-Main_Page .mw-body-content { | body.page-Main_Page .mw-body-content { | ||
padding-top: 0 !important; | padding-top: 0 !important; | ||
} | |||
.infobox { | |||
width: 300px; | |||
font-size: 90%; | |||
line-height: 1.5em; | |||
border: 1px solid #aaa; | |||
background: #f9f9f9; | |||
float: right; | |||
margin: 0 0 1em 1em; | |||
} | |||
.infobox caption { | |||
background: #e1f5fe; | |||
color: black; | |||
font-weight: bold; | |||
text-align: center; | |||
padding: 5px; | |||
} | |||
.infobox th { | |||
background: #e0e0e0; | |||
padding: 4px; | |||
text-align: left; | |||
} | |||
.infobox td { | |||
padding: 4px; | |||
} | } | ||
Revision as of 22:04, 8 December 2025
/* ---------------------------------------------------------- */
/* CUSTOM HEADER LOGO */
/* ---------------------------------------------------------- */
/* Hide MediaWiki's built-in title and logo */
.mw-wiki-title,
.mw-logo-wordmark,
#p-logo-text {
display: none !important;
}
/* Replace with your custom BharatWikipedia SVG logo */
.mw-logo-wordmark {
display: block !important;
width: 220px; /* Logo width */
height: 40px; /* Logo height */
margin-top: 15px; /* Space above logo */
background-image: url("https://bharatwikipedia.org/images/BharatWikipedia.svg");
background-repeat: no-repeat;
background-size: contain; /* Scale SVG without distortion */
text-indent: -9999px; /* Hide any text inside the element */
overflow: hidden;
white-space: nowrap;
}
/* ---------------------------------------------------------- */
/* FOOTER BADGES (ConnexAbility + Powered by MediaWiki) */
/* ---------------------------------------------------------- */
/* Places footer icons in a row, aligned to the right */
#footer-icons {
display: flex !important;
justify-content: flex-end !important;
align-items: center !important;
flex-direction: row !important;
gap: 5px; /* Space between icons */
}
/* Add your ConnexAbility badge BEFORE MediaWiki badge */
#footer-icons::before {
content: ""; /* Required for pseudo-element */
display: inline-flex;
justify-content: center;
align-items: center;
/* Badge size */
width: 135px;
height: 45px;
/* Badge image */
background-image: url("/images/AConnexAbilityProject.svg");
background-size: 78% auto;
background-position: center;
background-repeat: no-repeat;
/* Border + styling */
background-color: #fff;
border: 1px solid #a2a9b1;
border-radius: 4px;
padding: 8px 8px;
box-sizing: border-box;
}
/* Style the default "Powered by MediaWiki" icon */
#footer-poweredbyico a {
display: inline-flex !important;
align-items: center !important;
height: 45px !important;
padding: 8px 8px !important;
/* Border + background to match ConnexAbility badge */
border: 1px solid #72777d !important;
border-radius: 4px !important;
background-color: #fff !important;
}
/* ---------------------------------------------------------- */
/* MAIN PAGE SPACING FIX */
/* ---------------------------------------------------------- */
/* Remove unwanted top spacing on the main page */
body.page-Main_Page .mw-body,
body.page-Main_Page #content {
margin-top: 0 !important;
padding-top: 0 !important;
}
/* Ensure consistent spacing on main page content */
body.page-Main_Page .mw-body-content {
padding-top: 0 !important;
}
.infobox {
width: 300px;
font-size: 90%;
line-height: 1.5em;
border: 1px solid #aaa;
background: #f9f9f9;
float: right;
margin: 0 0 1em 1em;
}
.infobox caption {
background: #e1f5fe;
color: black;
font-weight: bold;
text-align: center;
padding: 5px;
}
.infobox th {
background: #e0e0e0;
padding: 4px;
text-align: left;
}
.infobox td {
padding: 4px;
}