মিডিয়াউইকি:Common.css: সংশোধিত সংস্করণের মধ্যে পার্থক্য
অবয়ব
খাত্তাব হাসান (আলোচনা | অবদান) পরীক্ষার জন্য ট্যাগ: পুনর্বহালকৃত |
খাত্তাব হাসান (আলোচনা | অবদান) সম্পাদনা সারাংশ নেই ট্যাগ: পুনর্বহালকৃত |
||
| ১৬৬ নং লাইন: | ১৬৬ নং লাইন: | ||
/*test*/ | /*test*/ | ||
/* --- Boipedia Main Page Design (Robust & Responsive) --- */ | |||
/* | /* Root Container */ | ||
.main-page-root { | |||
margin-top: 10px; | |||
. | font-family: 'Segoe UI', sans-serif; | ||
font-family: ' | |||
color: #333; | color: #333; | ||
} | } | ||
/* 1. | /* 1. Banner Styling */ | ||
. | .mp-banner { | ||
background: linear-gradient(135deg, # | background: linear-gradient(135deg, #102a43, #243b55); /* Premium Navy Blue */ | ||
color: # | color: #ffffff; | ||
padding: | padding: 40px 20px; | ||
text-align: center; | text-align: center; | ||
border-radius: | border-radius: 4px; | ||
margin-bottom: | margin-bottom: 20px; | ||
box-shadow: 0 2px 5px rgba(0,0,0,0.1); | |||
} | } | ||
. | .mp-welcome-title { | ||
font- | font-size: 2.5em; | ||
font- | font-family: 'Times New Roman', serif; | ||
font-weight: bold; | font-weight: bold; | ||
color: #f0c05a; /* Gold Accent */ | |||
color: # | margin-bottom: 10px; | ||
} | } | ||
. | .mp-welcome-tagline { | ||
font-size: 1.2em; | font-size: 1.2em; | ||
opacity: 0. | opacity: 0.9; | ||
margin-bottom: 15px; | |||
margin | |||
} | } | ||
. | .mp-stats-bar { | ||
background: rgba(255,255,255,0.1); | background: rgba(255,255,255,0.1); | ||
padding: | display: inline-block; | ||
border-radius: | padding: 5px 15px; | ||
border-radius: 20px; | |||
font-size: 0.9em; | |||
} | } | ||
. | /* 2. Grid System (Flexbox) */ | ||
display: | .mp-grid-container { | ||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 20px; | |||
} | } | ||
.mp-column-left { | |||
flex: 2; /* 66% width */ | |||
min-width: 300px; | |||
} | } | ||
. | .mp-column-right { | ||
flex: 1; /* 33% width */ | |||
min-width: 250px; | |||
} | } | ||
. | /* 3. Box Styling (Common) */ | ||
.mp-box { | |||
border: 1px solid #e0e0e0; | |||
background: # | border-radius: 4px; | ||
margin-bottom: 20px; | |||
background: #fff; | |||
padding: 15px; | |||
box-shadow: 0 1px 3px rgba(0,0,0,0.05); | |||
} | } | ||
/* | /* Headers */ | ||
. | .mp-header-gold { | ||
margin: 0 0 15px 0; | |||
padding-bottom: 8px; | |||
border-bottom: 2px solid #f0c05a; | |||
color: #102a43; | |||
font-size: 1.4em; | |||
font-weight: bold; | |||
} | } | ||
. | .mp-header-blue { | ||
margin: 0 0 15px 0; | |||
padding-bottom: 8px; | |||
border-bottom: 2px solid #102a43; | |||
border- | color: #102a43; | ||
font-size: 1.2em; | |||
font-weight: bold; | |||
} | } | ||
. | .mp-header-white { | ||
color: #fff; | color: #fff; | ||
font-size: 1.4em; | |||
margin: 0 0 10px 0; | |||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
. | /* Featured Book Section */ | ||
.mp-content-flex { | |||
display: flex; | display: flex; | ||
gap: 20px; | |||
} | } | ||
. | .mp-book-cover { | ||
flex-shrink: 0; | |||
} | } | ||
.book- | .mp-book-title { | ||
font-size: | font-size: 1.5em; | ||
font-weight: bold; | |||
color: # | color: #8b0000; /* Deep Red for Title */ | ||
} | } | ||
.book- | .mp-book-author { | ||
font-style: italic; | font-style: italic; | ||
color: # | color: #555; | ||
margin-bottom: | margin-bottom: 10px; | ||
} | } | ||
. | .mp-read-more a { | ||
display: inline-block; | |||
background: #f0c05a; | |||
color: #102a43; | |||
padding: 5px 10px; | |||
background: # | |||
color: # | |||
padding: 10px | |||
text-decoration: none; | text-decoration: none; | ||
font-weight: bold; | font-weight: bold; | ||
border-radius: 3px; | |||
margin-top: 5px; | |||
} | } | ||
. | /* Category Grid */ | ||
.mp-category-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); | |||
gap: 10px; | |||
} | } | ||
. | .mp-cat-card { | ||
background: #f8f9fa; | |||
border: 1px solid #ddd; | |||
text-align: center; | |||
padding: 10px; | |||
border-radius: 4px; | border-radius: 4px; | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
. | .mp-cat-card a { | ||
color: #333; | |||
color: # | |||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.mp-cat-card:hover { | |||
background: #e9ecef; | |||
border-color: #aaa; | |||
} | } | ||
/* Action Box (Blue Sidebar) */ | |||
.mp-action-box { | |||
background: #102a43; | |||
color: #fff; | |||
color: # | |||
border: none; | border: none; | ||
text-align: center; | text-align: center; | ||
} | } | ||
. | .mp-action-btn a { | ||
display: block; | display: block; | ||
background: #f0c05a; | |||
color: #102a43; | |||
padding: 10px; | |||
margin-top: 10px; | |||
border-radius: 4px; | |||
text-decoration: none; | |||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
. | .mp-action-btn a:hover { | ||
background: #fff; | |||
background | |||
} | } | ||
/* | /* Mobile Responsiveness */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
. | .mp-grid-container { | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
. | .mp-content-flex { | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | |||
text-align: center; | |||
} | } | ||
} | } | ||
২১:৩৬, ১৭ ফেব্রুয়ারি ২০২৬ তারিখে সংশোধিত সংস্করণ
/* =========================
Global Base
========================= */
body {
background: linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
color: #1e293b;
font-family: "Segoe UI", "Noto Sans Bengali", "Helvetica Neue", sans-serif;
line-height: 1.7;
margin: 0;
}
/* =========================
Main Content
========================= */
#content,
.mw-body {
background: #ffffff;
border: 1px solid #dbeafe;
border-radius: 14px;
padding: 1.5em;
margin: 1.5em auto;
max-width: 1100px;
box-shadow: 0 6px 20px rgba(30,58,138,0.08);
}
/* =========================
Links
========================= */
a {
color: #2563eb;
text-decoration: none;
font-weight: 500;
}
a:hover {
color: #1e40af;
background: #e0e7ff;
padding: 2px 6px;
border-radius: 6px;
}
/* =========================
HEADER LOGO — EXACT SIZE
========================= */
.mw-logo-wordmark,
.mw-wiki-title,
.mw-site-title {
display: none !important;
}
.mw-header .mw-logo img {
width: 128px !important;
height: 40px !important;
object-fit: contain;
}
/* =====================================================
🔥 FIXED SEARCH ALIGNMENT (Vector 2022)
===================================================== */
/* ❌ Remove default floating icons that cause clutter */
.vector-search-toggle,
.vector-search-toggle-button {
display: none !important;
}
/* ✅ Main container: Force row layout */
.vector-search-box,
.vector-search-box form {
display: flex !important;
align-items: center !important;
gap: 0 !important;
margin: 0 !important;
max-width: 100%;
}
/* ✅ Input Field: Fix box-sizing and borders */
.vector-search-box input,
.vector-search-box .cdx-text-input__input,
.vector-search-box .cdx-search-input__input {
box-sizing: border-box !important; /* Critical for matching button height */
height: 36px !important;
padding: 0 10px !important;
border: 1px solid #a2a9b1 !important;
border-right: none !important; /* Merge seamlessly with button */
border-radius: 6px 0 0 6px !important;
font-size: 14px !important;
}
/* ✅ Search Button: Fix box-sizing and alignment */
.vector-search-box button,
.vector-search-box .cdx-button {
box-sizing: border-box !important;
height: 36px !important;
padding: 0 16px !important;
background-color: #f8f9fa !important;
border: 1px solid #a2a9b1 !important;
border-radius: 0 6px 6px 0 !important;
cursor: pointer !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
font-weight: bold !important;
font-size: 14px !important;
}
/* Hover effect for the search button */
.vector-search-box button:hover {
background-color: #e0e7ff !important;
border-color: #2563eb !important;
color: #1e40af !important;
}
/* =========================
Sidebar (unchanged)
========================= */
#mw-panel {
background: #f0f5ff;
border-right: 1px solid #dbeafe;
}
/* =========================
Footer Base
========================= */
.mw-footer {
background: #ffffff;
border-top: 1px solid #a2a9b1;
padding: 1em 1.5em;
font-size: 0.875em;
}
/* Hide default Wikimedia logo if needed */
.mw-footer .mw-wikimedia-logo {
display: none !important;
}
/* =========================
🔥 FOOTER ICONS ALIGNMENT
========================= */
/* Align the "Powered By" logos side-by-side */
#footer-icons {
display: flex !important;
justify-content: flex-end; /* Aligns to the right. Change to 'center' if preferred */
align-items: center !important;
gap: 15px; /* Space between the two logos */
list-style: none !important;
margin: 10px 0 0 0 !important;
padding: 0 !important;
}
/* Ensure individual list items don't force a line break */
#footer-icons li {
display: block !important;
margin: 0 !important;
padding: 0 !important;
float: none !important; /* Overrides default MediaWiki float behavior */
}
/* Force images to be consistent height */
#footer-icons img {
height: 31px !important; /* Standard MediaWiki button height */
width: auto !important;
vertical-align: middle !important;
}
/*test*/
/* --- Boipedia Main Page Design (Robust & Responsive) --- */
/* Root Container */
.main-page-root {
margin-top: 10px;
font-family: 'Segoe UI', sans-serif;
color: #333;
}
/* 1. Banner Styling */
.mp-banner {
background: linear-gradient(135deg, #102a43, #243b55); /* Premium Navy Blue */
color: #ffffff;
padding: 40px 20px;
text-align: center;
border-radius: 4px;
margin-bottom: 20px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.mp-welcome-title {
font-size: 2.5em;
font-family: 'Times New Roman', serif;
font-weight: bold;
color: #f0c05a; /* Gold Accent */
margin-bottom: 10px;
}
.mp-welcome-tagline {
font-size: 1.2em;
opacity: 0.9;
margin-bottom: 15px;
}
.mp-stats-bar {
background: rgba(255,255,255,0.1);
display: inline-block;
padding: 5px 15px;
border-radius: 20px;
font-size: 0.9em;
}
/* 2. Grid System (Flexbox) */
.mp-grid-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
}
.mp-column-left {
flex: 2; /* 66% width */
min-width: 300px;
}
.mp-column-right {
flex: 1; /* 33% width */
min-width: 250px;
}
/* 3. Box Styling (Common) */
.mp-box {
border: 1px solid #e0e0e0;
border-radius: 4px;
margin-bottom: 20px;
background: #fff;
padding: 15px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
/* Headers */
.mp-header-gold {
margin: 0 0 15px 0;
padding-bottom: 8px;
border-bottom: 2px solid #f0c05a;
color: #102a43;
font-size: 1.4em;
font-weight: bold;
}
.mp-header-blue {
margin: 0 0 15px 0;
padding-bottom: 8px;
border-bottom: 2px solid #102a43;
color: #102a43;
font-size: 1.2em;
font-weight: bold;
}
.mp-header-white {
color: #fff;
font-size: 1.4em;
margin: 0 0 10px 0;
font-weight: bold;
}
/* Featured Book Section */
.mp-content-flex {
display: flex;
gap: 20px;
}
.mp-book-cover {
flex-shrink: 0;
}
.mp-book-title {
font-size: 1.5em;
font-weight: bold;
color: #8b0000; /* Deep Red for Title */
}
.mp-book-author {
font-style: italic;
color: #555;
margin-bottom: 10px;
}
.mp-read-more a {
display: inline-block;
background: #f0c05a;
color: #102a43;
padding: 5px 10px;
text-decoration: none;
font-weight: bold;
border-radius: 3px;
margin-top: 5px;
}
/* Category Grid */
.mp-category-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 10px;
}
.mp-cat-card {
background: #f8f9fa;
border: 1px solid #ddd;
text-align: center;
padding: 10px;
border-radius: 4px;
font-weight: bold;
}
.mp-cat-card a {
color: #333;
text-decoration: none;
}
.mp-cat-card:hover {
background: #e9ecef;
border-color: #aaa;
}
/* Action Box (Blue Sidebar) */
.mp-action-box {
background: #102a43;
color: #fff;
border: none;
text-align: center;
}
.mp-action-btn a {
display: block;
background: #f0c05a;
color: #102a43;
padding: 10px;
margin-top: 10px;
border-radius: 4px;
text-decoration: none;
font-weight: bold;
}
.mp-action-btn a:hover {
background: #fff;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
.mp-grid-container {
flex-direction: column;
}
.mp-content-flex {
flex-direction: column;
align-items: center;
text-align: center;
}
}