MediaWiki:Common.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ---------------------------------------------------------- */
/* 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 #a2a9b1;
border-radius: 4px;
padding: 8px 8px; /* reduced padding so logo stays centered */
box-sizing: border-box;
}
/* Make MediaWiki badge and ConnexAbility badge align perfectly */
#footer-poweredbyico a {
display: inline-flex !important;
align-items: center !important;
height: 45px !important; /* MATCH ConnexAbility box height */
padding: 8px 8px !important;
border: 1px solid #72777d !important;
border-radius: 4px !important;
background-color: #fff !important;
}
/* =============================== */
/* MAIN PAGE SPACING FIX */
/* =============================== */
/* Remove MediaWiki default top space on Main Page */
body.page-Main_Page .mw-body,
body.page-Main_Page #content {
margin-top: 0 !important;
padding-top: 0 !important;
}
/* Add clean spacing below the header */
body.page-Main_Page .mw-body-content {
padding-top: 0 !important;
}
/* =============================== */
/* HERO SECTION */
/* =============================== */
.bw-hero {
width: 100%;
padding: 60px 20px;
background: white;
border-top: 8px solid #ff9933; /* Saffron bar */
border-bottom: 8px solid #138808; /* Green bar */
text-align: center;
margin: 0 auto;
box-sizing: border-box;
}
.bw-hero-inner {
max-width: 900px;
margin: 0 auto;
}
.bw-title {
font-size: 48px;
font-weight: 700;
margin: 0;
}
.bw-subtitle {
font-size: 18px;
margin: 15px 0 30px;
color: #555;
}
/* =============================== */
/* SEARCH BAR */
/* =============================== */
.bw-search-form {
display: flex;
justify-content: center;
gap: 10px;
margin-top: 10px;
flex-wrap: wrap;
}
.bw-search-input {
width: 420px;
padding: 12px 16px;
font-size: 16px;
border: 2px solid #ccc;
border-radius: 10px;
}
.bw-search-btn {
padding: 12px 26px;
font-size: 16px;
background: #0b57d0;
color: white;
border: none;
border-radius: 10px;
cursor: pointer;
}
.bw-search-btn:hover {
background: #0847b0;
}
/* =============================== */
/* SECTIONS */
/* =============================== */
.bw-section {
max-width: 1080px;
margin: 50px auto;
padding: 0 20px;
}
.bw-section h2 {
border-left: 5px solid #0b57d0;
padding-left: 10px;
font-size: 26px;
margin-bottom: 20px;
}
/* =============================== */
/* BOX STYLE (Featured, DYK) */
/* =============================== */
.bw-box {
padding: 20px;
border: 1px solid #ddd;
border-radius: 12px;
background: #fafafa;
}
/* =============================== */
/* CARDS SECTION */
/* =============================== */
.bw-cards .bw-card-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
}
.bw-card {
display: block;
padding: 20px;
text-align: center;
background: white;
border: 1px solid #ddd;
border-radius: 12px;
font-size: 18px;
font-weight: 600;
color: #0b57d0;
transition: 0.2s ease;
}
.bw-card:hover {
background: #eef3ff;
transform: translateY(-2px);
}
/* =============================== */
/* CATEGORY GRID */
/* =============================== */
.bw-category-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
}
.bw-category-grid div {
padding: 15px;
border-radius: 10px;
border: 1px solid #ddd;
background: #fff;
text-align: center;
font-size: 18px;
}
.bw-category-grid div:hover {
background: #eef3ff;
}
/* =============================== */
/* FOOTER STRIP */
/* =============================== */
.bw-footer-strip {
width: 100%;
height: 10px;
background: linear-gradient(to right, #ff9933, white, #138808);
margin-top: 60px;
}