মিডিয়াউইকি:Common.css: সংশোধিত সংস্করণের মধ্যে পার্থক্য
অবয়ব
সম্পাদনা সারাংশ নেই ট্যাগ: পুনর্বহালকৃত |
সম্পাদনা সারাংশ নেই ট্যাগ: পুনর্বহালকৃত |
||
| ৫৬ নং লাইন: | ৫৬ নং লাইন: | ||
/* ===================================================== | /* ===================================================== | ||
SEARCH — NORMAL (TOP OF PAGE) | SEARCH — NORMAL (TOP OF PAGE - NOT STICKY) | ||
===================================================== */ | ===================================================== */ | ||
/* | /* Normal search at top of page */ | ||
.vector- | .vector-header:not(.vector-sticky-header-visible) .vector-search-box, | ||
.vector- | .vector-header:not(.vector-sticky-header-visible) .vector-search-box form { | ||
.vector-search-box, | |||
.vector-search-box form { | |||
display: flex !important; | display: flex !important; | ||
align-items: center !important; | align-items: center !important; | ||
| ৭৫ নং লাইন: | ৬৯ নং লাইন: | ||
} | } | ||
.vector-header:not(.vector-sticky-header-visible) .vector-search-box input, | |||
.vector-search-box input, | .vector-header:not(.vector-sticky-header-visible) .vector-search-box .cdx-text-input__input { | ||
.vector-search-box .cdx- | |||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
height: 36px !important; | height: 36px !important; | ||
| ৮৭ নং লাইন: | ৮০ নং লাইন: | ||
} | } | ||
.vector-header:not(.vector-sticky-header-visible) .vector-search-box button.cdx-search-input__end-button, | |||
.vector-search-box button, | .vector-header:not(.vector-sticky-header-visible) .cdx-search-input__end-button { | ||
.vector- | |||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
height: 36px !important; | height: 36px !important; | ||
| ১০৪ নং লাইন: | ৯৬ নং লাইন: | ||
} | } | ||
.vector-search-box button:hover { | .vector-header:not(.vector-sticky-header-visible) .vector-search-box button:hover { | ||
background-color: #e0e7ff !important; | background-color: #e0e7ff !important; | ||
border-color: #2563eb !important; | border-color: #2563eb !important; | ||
color: #1e40af !important; | color: #1e40af !important; | ||
} | |||
/* Hide toggle button when not sticky */ | |||
.vector-header:not(.vector-sticky-header-visible) .search-toggle { | |||
display: none !important; | |||
} | } | ||
/* ===================================================== | /* ===================================================== | ||
SEARCH — STICKY HEADER (SCROLLED) | SEARCH — STICKY HEADER (SCROLLED DOWN) | ||
===================================================== */ | ===================================================== */ | ||
/* When sticky header is visible */ | |||
.vector-sticky-header .vector-search-box { | .vector-sticky-header-visible .vector-search-box { | ||
position: relative !important; | position: relative !important; | ||
} | } | ||
/* | /* Show ONLY the search icon button when sticky */ | ||
.vector-header- | .vector-sticky-header-visible .search-toggle { | ||
display: inline-flex !important; | |||
width: 32px !important; | |||
height: 32px !important; | |||
min-width: 32px !important; | |||
padding: 0 !important; | |||
background-color: #f8f9fa !important; | |||
border: 1px solid #a2a9b1 !important; | |||
border-radius: 6px !important; | |||
cursor: pointer !important; | |||
} | } | ||
.vector | .vector-sticky-header-visible .search-toggle:hover { | ||
background-color: #e0e7ff !important; | background-color: #e0e7ff !important; | ||
border-color: #2563eb !important; | border-color: #2563eb !important; | ||
} | } | ||
/* | /* Hide the search form container by default when sticky */ | ||
.vector | .vector-sticky-header-visible .vector-typeahead-search-container { | ||
.vector- | display: none !important; | ||
position: absolute !important; | position: absolute !important; | ||
right: 0 !important; | right: 0 !important; | ||
top: | top: 100% !important; | ||
margin-top: 5px !important; | |||
background: #ffffff !important; | background: #ffffff !important; | ||
border-radius: | border: 1px solid #dbeafe !important; | ||
border-radius: 8px !important; | |||
box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; | box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; | ||
padding: | padding: 8px !important; | ||
z-index: 1000 !important; | z-index: 1000 !important; | ||
min-width: 300px !important; | |||
} | } | ||
/* | /* Show search form when it has the 'active' class (added by JavaScript) */ | ||
.vector-header- | .vector-sticky-header-visible .vector-typeahead-search-container.search-active { | ||
.vector-sticky-header . | display: block !important; | ||
.vector-header-- | } | ||
.vector-sticky-header .cdx- | |||
height: | /* Hide toggle when search is expanded */ | ||
.vector-sticky-header-visible .search-toggle.search-hidden { | |||
display: none !important; | |||
} | |||
/* Style the expanded search input */ | |||
.vector-sticky-header-visible .vector-typeahead-search-container input, | |||
.vector-sticky-header-visible .vector-typeahead-search-container .cdx-text-input__input { | |||
height: 36px !important; | |||
padding: 0 10px !important; | padding: 0 10px !important; | ||
font-size: 14px !important; | font-size: 14px !important; | ||
border: 1px solid #a2a9b1 !important; | |||
border-right: none !important; | |||
border-radius: 6px 0 0 6px !important; | |||
width: 100% !important; | |||
} | } | ||
/* | /* Style the expanded search button */ | ||
.vector-header-- | .vector-sticky-header-visible .vector-typeahead-search-container .cdx-search-input__end-button { | ||
.vector-sticky-header .vector- | height: 36px !important; | ||
. | padding: 0 16px !important; | ||
border-radius: 0 6px 6px 0 !important; | |||
background-color: #f8f9fa !important; | |||
border: 1px solid #a2a9b1 !important; | |||
} | |||
.vector-sticky-header-visible .vector-typeahead-search-container .cdx-search-input__end-button:hover { | |||
background-color: #e0e7ff !important; | |||
border-color: #2563eb !important; | |||
color: #1e40af !important; | |||
} | } | ||
২২:২২, ৪ জানুয়ারি ২০২৬ তারিখে সংশোধিত সংস্করণ
/* =========================
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
========================= */
.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;
}
/* =====================================================
SEARCH — NORMAL (TOP OF PAGE - NOT STICKY)
===================================================== */
/* Normal search at top of page */
.vector-header:not(.vector-sticky-header-visible) .vector-search-box,
.vector-header:not(.vector-sticky-header-visible) .vector-search-box form {
display: flex !important;
align-items: center !important;
gap: 0 !important;
margin: 0 !important;
max-width: 100%;
}
.vector-header:not(.vector-sticky-header-visible) .vector-search-box input,
.vector-header:not(.vector-sticky-header-visible) .vector-search-box .cdx-text-input__input {
box-sizing: border-box !important;
height: 36px !important;
padding: 0 10px !important;
border: 1px solid #a2a9b1 !important;
border-right: none !important;
border-radius: 6px 0 0 6px !important;
font-size: 14px !important;
}
.vector-header:not(.vector-sticky-header-visible) .vector-search-box button.cdx-search-input__end-button,
.vector-header:not(.vector-sticky-header-visible) .cdx-search-input__end-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;
}
.vector-header:not(.vector-sticky-header-visible) .vector-search-box button:hover {
background-color: #e0e7ff !important;
border-color: #2563eb !important;
color: #1e40af !important;
}
/* Hide toggle button when not sticky */
.vector-header:not(.vector-sticky-header-visible) .search-toggle {
display: none !important;
}
/* =====================================================
SEARCH — STICKY HEADER (SCROLLED DOWN)
===================================================== */
/* When sticky header is visible */
.vector-sticky-header-visible .vector-search-box {
position: relative !important;
}
/* Show ONLY the search icon button when sticky */
.vector-sticky-header-visible .search-toggle {
display: inline-flex !important;
width: 32px !important;
height: 32px !important;
min-width: 32px !important;
padding: 0 !important;
background-color: #f8f9fa !important;
border: 1px solid #a2a9b1 !important;
border-radius: 6px !important;
cursor: pointer !important;
}
.vector-sticky-header-visible .search-toggle:hover {
background-color: #e0e7ff !important;
border-color: #2563eb !important;
}
/* Hide the search form container by default when sticky */
.vector-sticky-header-visible .vector-typeahead-search-container {
display: none !important;
position: absolute !important;
right: 0 !important;
top: 100% !important;
margin-top: 5px !important;
background: #ffffff !important;
border: 1px solid #dbeafe !important;
border-radius: 8px !important;
box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
padding: 8px !important;
z-index: 1000 !important;
min-width: 300px !important;
}
/* Show search form when it has the 'active' class (added by JavaScript) */
.vector-sticky-header-visible .vector-typeahead-search-container.search-active {
display: block !important;
}
/* Hide toggle when search is expanded */
.vector-sticky-header-visible .search-toggle.search-hidden {
display: none !important;
}
/* Style the expanded search input */
.vector-sticky-header-visible .vector-typeahead-search-container input,
.vector-sticky-header-visible .vector-typeahead-search-container .cdx-text-input__input {
height: 36px !important;
padding: 0 10px !important;
font-size: 14px !important;
border: 1px solid #a2a9b1 !important;
border-right: none !important;
border-radius: 6px 0 0 6px !important;
width: 100% !important;
}
/* Style the expanded search button */
.vector-sticky-header-visible .vector-typeahead-search-container .cdx-search-input__end-button {
height: 36px !important;
padding: 0 16px !important;
border-radius: 0 6px 6px 0 !important;
background-color: #f8f9fa !important;
border: 1px solid #a2a9b1 !important;
}
.vector-sticky-header-visible .vector-typeahead-search-container .cdx-search-input__end-button:hover {
background-color: #e0e7ff !important;
border-color: #2563eb !important;
color: #1e40af !important;
}
/* =====================================================
SAFETY — NEVER HIDE CORE ICON BUTTONS
(menu, user, notifications)
===================================================== */
.vector-header-start .cdx-button--icon-only {
display: inline-flex !important;
}
/* =========================
Sidebar
========================= */
#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;
}
.mw-footer .mw-wikimedia-logo {
display: none !important;
}
/* =========================
Footer Icons Alignment
========================= */
#footer-icons {
display: flex !important;
justify-content: flex-end;
align-items: center !important;
gap: 15px;
list-style: none !important;
margin: 10px 0 0 0 !important;
padding: 0 !important;
}
#footer-icons li {
display: block !important;
margin: 0 !important;
padding: 0 !important;
float: none !important;
}
#footer-icons img {
height: 31px !important;
width: auto !important;
vertical-align: middle !important;
}