MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 155: | Line 155: | ||
/* ========================================================== */ | /* ========================================================== */ | ||
/* WARNING BOX – | /* WARNING BOX – KNOWLEPEDIA STYLE (FINAL VERSION) */ | ||
/* ========================================================== */ | /* ========================================================== */ | ||
.warning-box { | .warning-box { | ||
border-left: 6px solid #f4aa2a | border-left: 6px solid #f4aa2a; | ||
background: # | background: #fff; | ||
padding: 18px | padding: 18px 20px; | ||
margin: | margin: 20px 0 30px 0; | ||
border-radius: | border-radius: 10px; | ||
display: flex | display: flex; | ||
gap: 15px | gap: 15px; | ||
align-items: flex-start | align-items: flex-start; | ||
box-shadow: 0 0 0 | box-shadow: 0 2px 6px rgba(0,0,0,0.05); | ||
} | } | ||
/* Icon */ | |||
.warning-icon { | .warning-icon { | ||
width: 42px; | |||
height: 42px; | |||
margin-top: 4px | flex-shrink: 0; | ||
margin-top: 4px; | |||
} | } | ||
/* Content wrapper */ | |||
.warning-content { | |||
flex: 1; | |||
} | |||
/* Title text */ | |||
.warning-title { | .warning-title { | ||
font-size: | font-size: 18px; | ||
font-weight: | font-weight: 600; | ||
margin-bottom: | margin-bottom: 10px; | ||
} | } | ||
/* Body text — smaller and tighter */ | |||
.warning-text { | .warning-text { | ||
font-size: 14px | font-size: 14px; | ||
line-height: 1.6; | |||
margin-bottom: 10px; | |||
} | } | ||
/* Date formatting */ | |||
.warning-date { | .warning-date { | ||
font-size: 12px; | |||
font-size: 12px | color: #777; | ||
color: #777 | margin-top: 4px; | ||
} | } | ||
/* ========================================================== */ | /* ========================================================== */ | ||
Revision as of 21:30, 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 #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;
}
//* ========================================================== */
/* FORCE VECTOR 2022 TO LET CUSTOM CSS APPLY */
/* ========================================================== */
body.skin-vector-2022 .mw-body {
max-width: 1100px !important;
margin: 0 auto !important;
padding: 0 15px !important;
}
body.skin-vector-2022 .mw-parser-output {
font-size: 15px !important;
line-height: 1.7 !important;
}
/* Force all custom table classes to render */
table.bio-infobox,
.bio-infobox th,
.bio-infobox td {
all: unset;
display: table-cell;
font-size: 14px;
line-height: 1.5;
color: #000;
}
/* ========================================================== */
/* INFOBOX – PERFECT KNOWLEPEDIA STYLE */
/* ========================================================== */
.bio-infobox {
float: right !important;
width: 320px !important;
margin: 0 0 25px 25px !important;
background: #ffffff !important;
border: 1px solid #cbd8e6 !important;
border-radius: 6px !important;
font-size: 14px !important;
line-height: 1.5 !important;
box-shadow: 0 0 0 1px #edf1f7 !important;
overflow: hidden !important;
}
.bio-infobox-title {
background: #e6f0fa !important;
padding: 12px !important;
font-size: 20px !important;
font-weight: bold !important;
text-align: center !important;
border-bottom: 1px solid #cbd8e6 !important;
}
.verified-icon {
background: #1e90ff !important;
color: #fff !important;
padding: 2px 6px !important;
border-radius: 50% !important;
font-size: 13px !important;
margin-left: 6px !important;
}
.bio-infobox-image img {
width: 100% !important;
border-bottom: 1px solid #cbd8e6 !important;
}
.bio-infobox th {
width: 120px !important;
background: #f7fbff !important;
padding: 8px 10px !important;
border-bottom: 1px solid #e2e6ea !important;
text-align: left !important;
}
.bio-infobox td {
padding: 8px 10px !important;
border-bottom: 1px solid #e2e6ea !important;
}
/* Fix Vector overriding table */
.bio-infobox tr {
display: table-row !important;
}
/* ========================================================== */
/* WARNING BOX – KNOWLEPEDIA STYLE (FINAL VERSION) */
/* ========================================================== */
.warning-box {
border-left: 6px solid #f4aa2a;
background: #fff;
padding: 18px 20px;
margin: 20px 0 30px 0;
border-radius: 10px;
display: flex;
gap: 15px;
align-items: flex-start;
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
/* Icon */
.warning-icon {
width: 42px;
height: 42px;
flex-shrink: 0;
margin-top: 4px;
}
/* Content wrapper */
.warning-content {
flex: 1;
}
/* Title text */
.warning-title {
font-size: 18px;
font-weight: 600;
margin-bottom: 10px;
}
/* Body text — smaller and tighter */
.warning-text {
font-size: 14px;
line-height: 1.6;
margin-bottom: 10px;
}
/* Date formatting */
.warning-date {
font-size: 12px;
color: #777;
margin-top: 4px;
}
/* ========================================================== */
/* TABLE OF CONTENTS LEFT SIDEBAR */
/* ========================================================== */
#toc {
float: left !important;
width: 230px !important;
margin: 0 25px 25px 0 !important;
background: #f8f9fa !important;
border: 1px solid #dcdfe3 !important;
border-radius: 4px !important;
padding: 12px !important;
font-size: 14px !important;
}
#toc ul {
padding-left: 18px !important;
}
.mw-parser-output::after {
content: "" !important;
display: block !important;
clear: both !important;
}
/* ========================================================== */
/* HEADINGS / SECTION STYLE */
/* ========================================================== */
h1.firstHeading {
font-size: 32px !important;
margin-bottom: 8px !important;
}
.mw-body-content h2 {
border-bottom: 2px solid #d0d0d0 !important;
padding-bottom: 3px !important;
margin-top: 28px !important;
font-size: 24px !important;
}
.mw-body-content h3 {
font-size: 20px !important;
margin-top: 22px !important;
}
/* Category box spacing */
#catlinks {
margin-top: 30px !important;
}