বিষয়বস্তুতে চলুন
🎉 বইপিডিয়ার ১ বছর পূর্তি! · আমাদের ফেসবুক পেজ অনুসরণ করুন.

মিডিয়াউইকি:Common.css: সংশোধিত সংস্করণের মধ্যে পার্থক্য

বইপিডিয়া থেকে
সম্পাদনা সারাংশ নেই
ট্যাগ: পুনর্বহালকৃত
সম্পাদনা সারাংশ নেই
ট্যাগ: পুনর্বহালকৃত
১১১ নং লাইন: ১১১ নং লাইন:


/* =====================================================
/* =====================================================
   SEARCH — STICKY HEADER (SCROLLED) - COLLAPSED STATE
   SEARCH — STICKY HEADER (SCROLLED)
   ===================================================== */
   ===================================================== */


/* When sticky, collapse the search to just show the toggle button */
.vector-header--sticky .vector-search-box,
.vector-header--sticky .vector-search-box {
.vector-sticky-header .vector-search-box {
     position: relative !important;
     position: relative !important;
}
}


/* Hide the search form by default when sticky */
/* Style the toggle button created by JS */
.vector-header--sticky .vector-search-box form {
.vector-header--sticky .search-collapse-toggle,
     display: none !important;
.vector-sticky-header .search-collapse-toggle {
    transition: all 0.2s ease;
}
 
.vector-header--sticky .search-collapse-toggle:hover,
.vector-sticky-header .search-collapse-toggle:hover {
     background-color: #e0e7ff !important;
    border-color: #2563eb !important;
}
 
/* Expanded search form in sticky header */
.vector-header--sticky .vector-search-box form,
.vector-sticky-header .vector-search-box form {
     position: absolute !important;
     position: absolute !important;
     right: 0 !important;
     right: 0 !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: 4px !important;
     padding: 4px !important;
     z-index: 100 !important;
     z-index: 1000 !important;
}
 
/* Show the toggle button when sticky */
.vector-header--sticky .vector-search-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    background-color: #f8f9fa !important;
    border: 1px solid #a2a9b1 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}
 
.vector-header--sticky .vector-search-toggle:hover {
    background-color: #e0e7ff !important;
    border-color: #2563eb !important;
}
 
/* Expanded state - show form when toggle is clicked/focused */
.vector-header--sticky .vector-search-box:focus-within form,
.vector-header--sticky .vector-search-box.search-expanded form {
    display: flex !important;
}
 
/* When expanded, hide the toggle */
.vector-header--sticky .vector-search-box:focus-within .vector-search-toggle,
.vector-header--sticky .vector-search-box.search-expanded .vector-search-toggle {
    display: none !important;
}
}


/* Compact input when expanded in sticky header */
/* Compact input in sticky header */
.vector-header--sticky .vector-search-box input,
.vector-header--sticky .vector-search-box input,
.vector-header--sticky .cdx-search-input__input {
.vector-sticky-header .vector-search-box input,
.vector-header--sticky .cdx-search-input__input,
.vector-sticky-header .cdx-search-input__input {
     height: 32px !important;
     height: 32px !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;
     min-width: 250px !important;
     min-width: 250px !important;
}
}


/* Compact button when expanded in sticky header */
/* Compact button in sticky header */
.vector-header--sticky .vector-search-box button,
.vector-header--sticky .vector-search-box button:not(.search-collapse-toggle),
.vector-header--sticky .cdx-button {
.vector-sticky-header .vector-search-box button:not(.search-collapse-toggle),
.vector-header--sticky .cdx-button,
.vector-sticky-header .cdx-button {
     height: 32px !important;
     height: 32px !important;
     padding: 0 12px !important;
     padding: 0 12px !important;
    border-radius: 0 6px 6px 0 !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)
   ===================================================== */

/* Hide ONLY the extra search toggle button */
.vector-search-toggle,
.vector-search-toggle-button {
    display: none !important;
}

/* Main search container */
.vector-search-box,
.vector-search-box form {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 !important;
    max-width: 100%;
}

/* Search input */
.vector-search-box input,
.vector-search-box .cdx-search-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;
}

/* Search button */
.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;
}

.vector-search-box button:hover {
    background-color: #e0e7ff !important;
    border-color: #2563eb !important;
    color: #1e40af !important;
}

/* =====================================================
   SEARCH — STICKY HEADER (SCROLLED)
   ===================================================== */

.vector-header--sticky .vector-search-box,
.vector-sticky-header .vector-search-box {
    position: relative !important;
}

/* Style the toggle button created by JS */
.vector-header--sticky .search-collapse-toggle,
.vector-sticky-header .search-collapse-toggle {
    transition: all 0.2s ease;
}

.vector-header--sticky .search-collapse-toggle:hover,
.vector-sticky-header .search-collapse-toggle:hover {
    background-color: #e0e7ff !important;
    border-color: #2563eb !important;
}

/* Expanded search form in sticky header */
.vector-header--sticky .vector-search-box form,
.vector-sticky-header .vector-search-box form {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    padding: 4px !important;
    z-index: 1000 !important;
}

/* Compact input in sticky header */
.vector-header--sticky .vector-search-box input,
.vector-sticky-header .vector-search-box input,
.vector-header--sticky .cdx-search-input__input,
.vector-sticky-header .cdx-search-input__input {
    height: 32px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    min-width: 250px !important;
}

/* Compact button in sticky header */
.vector-header--sticky .vector-search-box button:not(.search-collapse-toggle),
.vector-sticky-header .vector-search-box button:not(.search-collapse-toggle),
.vector-header--sticky .cdx-button,
.vector-sticky-header .cdx-button {
    height: 32px !important;
    padding: 0 12px !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;
}