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

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

বইপিডিয়া থেকে
সম্পাদনা সারাংশ নেই
ট্যাগ: পুনর্বহালকৃত
সম্পাদনা সারাংশ নেই
 
(৩ জন ব্যবহারকারী দ্বারা সম্পাদিত ১৫টি মধ্যবর্তী সংশোধন দেখানো হচ্ছে না)
২৭ নং লাইন: ২৭ নং লাইন:
   Links
   Links
   ========================= */
   ========================= */
a {
/*a {*/
    color: #2563eb;
/*    color: #2563eb;*/
    text-decoration: none;
/*    text-decoration: none;*/
    font-weight: 500;
/*    font-weight: 500;*/
}
/*}*/


a:hover {
/*a:hover {*/
    color: #1e40af;
/*    color: #1e40af;*/
    background: #e0e7ff;
/*    background: #e0e7ff;*/
    padding: 2px 6px;
/*}*/
    border-radius: 6px;
}


/* =========================
/* =========================
   HEADER LOGO  
   HEADER LOGO — EXACT SIZE
   ========================= */
   ========================= */
.mw-logo-wordmark,
.mw-logo-wordmark,
৫৬ নং লাইন: ৫৪ নং লাইন:


/* =====================================================
/* =====================================================
   SEARCH — NORMAL (TOP OF PAGE - NOT STICKY)
   🔥 FIXED SEARCH ALIGNMENT (Vector 2022)
  ===================================================== */
 
/* 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 */
/* ❌ Remove default floating icons that cause clutter */
.vector-sticky-header-visible .vector-search-box {
/*.vector-search-toggle,*/
    position: relative !important;
/*.vector-search-toggle-button {*/
}
/*    display: none !important;*/
/*}*/


/* Show ONLY the search icon button when sticky */
/* ✅ Main container: Force row layout */
.vector-sticky-header-visible .search-toggle {
/*.vector-search-box,*/
    display: inline-flex !important;
/*.vector-search-box form {*/
    width: 32px !important;
/*    display: flex !important;*/
    height: 32px !important;
/*    align-items: center !important;*/
    min-width: 32px !important;
/*    gap: 0 !important;*/
    padding: 0 !important;
/*    margin: 0 !important;*/
    background-color: #f8f9fa !important;
/*    max-width: 100%;*/
    border: 1px solid #a2a9b1 !important;
/*}*/
    border-radius: 6px !important;
    cursor: pointer !important;
}


.vector-sticky-header-visible .search-toggle:hover {
/* ✅ Input Field: Fix box-sizing and borders */
    background-color: #e0e7ff !important;
/*.vector-search-box input,*/
    border-color: #2563eb !important;
/*.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;*/
/*}*/


/* Hide the search form container by default when sticky */
/* ✅ Search Button: Fix box-sizing and alignment */
.vector-sticky-header-visible .vector-typeahead-search-container {
/*.vector-search-box button,*/
    display: none;
/*.vector-search-box .cdx-button {*/
    position: absolute;
/*    box-sizing: border-box !important;*/
    right: 0;
/*   height: 36px !important;*/
    top: 100%;
/*    padding: 0 16px !important;*/
    margin-top: 5px;
/*    background-color: #f8f9fa !important;*/
    background: #ffffff;
/*    border: 1px solid #a2a9b1 !important;*/
    border: 1px solid #dbeafe;
/*    border-radius: 0 6px 6px 0 !important;*/
    border-radius: 8px;
/*    cursor: pointer !important;*/
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
/*   display: inline-flex !important;*/
    padding: 8px;
/*    align-items: center !important;*/
    z-index: 1000;
/*    justify-content: center !important;*/
    min-width: 300px;
/*    font-weight: bold !important;*/
}
/*    font-size: 14px !important;*/
 
/*}*/
/* When search box has 'search-expanded' class, show form and hide toggle */
.vector-sticky-header-visible #p-search.search-expanded .vector-typeahead-search-container {
    display: block !important;
}
 
.vector-sticky-header-visible #p-search.search-expanded .search-toggle {
    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
   Sidebar (unchanged)
   ========================= */
   ========================= */
#mw-panel {
#mw-panel {
২১৩ নং লাইন: ১২১ নং লাইন:
}
}


/* Hide default Wikimedia logo if needed */
.mw-footer .mw-wikimedia-logo {
.mw-footer .mw-wikimedia-logo {
     display: none !important;
     display: none !important;
২১৮ নং লাইন: ১২৭ নং লাইন:


/* =========================
/* =========================
   Footer Icons Alignment
   🔥 FOOTER ICONS ALIGNMENT
   ========================= */
   ========================= */
/* Align the "Powered By" logos side-by-side */
#footer-icons {
#footer-icons {
     display: flex !important;
     display: flex !important;
     justify-content: flex-end;
     justify-content: flex-end; /* Aligns to the right. Change to 'center' if preferred
     align-items: center !important;
     align-items: center !important;
     gap: 15px;
     gap: 15px; /* Space between the two logos
     list-style: none !important;
     list-style: none !important;
     margin: 10px 0 0 0 !important;
     margin: 10px 0 0 0 !important;
২৩০ নং লাইন: ১৪১ নং লাইন:
}
}


/* Ensure individual list items don't force a line break */
#footer-icons li {
#footer-icons li {
     display: block !important;
     display: block !important;
     margin: 0 !important;
     margin: 0 !important;
     padding: 0 !important;
     padding: 0 !important;
    float: none !important;
  float: none !important; /* Overrides default MediaWiki float behavior
}
}


/* Force images to be consistent height */
#footer-icons img {
#footer-icons img {
     height: 31px !important;
     height: 31px !important; /* Standard MediaWiki button height
     width: auto !important;
     width: auto !important;
     vertical-align: middle !important;
     vertical-align: middle !important;
}
/*Main Page Banner */
.boipedia-hero-banner {
    background-image: linear-gradient(135deg, rgba(26, 42, 108, 0.93), rgba(178, 31, 31, 0.93), rgba(253, 187, 45, 0.93)), url('https://boipedia.org/images/7/79/Open_Book_B%26W.jpg');
    background-size: cover, 150px;
    background-repeat: no-repeat, repeat;
    background-position: center, center;
    color: white;
    padding: 50px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
}
/* Boipedia Anniversary Banner */
#boipedia-anniversary-banner {
    margin: 10px 0;
    padding: 12px 16px;
    border: 1px solid #a2a9b1;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 15px;
    position: relative;
}
#boipedia-banner-close {
    float: right;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #54595d;
    margin-left: 10px;
}
#boipedia-banner-close:hover {
    color: #d73333;
}
}

০৯:৫৫, ২০ জুন ২০২৬ তারিখে সম্পাদিত সর্বশেষ সংস্করণ

/* =========================
   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;*/
/*}*/

/* =========================
   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;*/
/*}*/

/* =========================
   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;
}


 /*Main Page Banner */
.boipedia-hero-banner {
    background-image: linear-gradient(135deg, rgba(26, 42, 108, 0.93), rgba(178, 31, 31, 0.93), rgba(253, 187, 45, 0.93)), url('https://boipedia.org/images/7/79/Open_Book_B%26W.jpg');
    background-size: cover, 150px;
    background-repeat: no-repeat, repeat;
    background-position: center, center;
    color: white;
    padding: 50px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
}
/* Boipedia Anniversary Banner */

#boipedia-anniversary-banner {
    margin: 10px 0;
    padding: 12px 16px;
    border: 1px solid #a2a9b1;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 15px;
    position: relative;
}

#boipedia-banner-close {
    float: right;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #54595d;
    margin-left: 10px;
}

#boipedia-banner-close:hover {
    color: #d73333;
}