বিষয়বস্তুতে চলুন

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

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


/*test*/
/*test*/
/* --- Boipedia Main Page Design (Robust & Responsive) --- */


/* --- Premium Boipedia Theme --- */
/* Root Container */
 
.main-page-root {
/* Main Wrapper */
    margin-top: 10px;
.premium-container {
     font-family: 'Segoe UI', sans-serif;
     font-family: 'Georgia', 'Times New Roman', serif; /* Serif font for bookish feel */
     color: #333;
     color: #333;
    max-width: 1100px;
    margin: 0 auto;
    background: #fdfdfd;
}
}


/* 1. Hero Section */
/* 1. Banner Styling */
.premium-hero {
.mp-banner {
     background: linear-gradient(135deg, #1a1a2e, #16213e); /* Deep Royal Blue/Black */
     background: linear-gradient(135deg, #102a43, #243b55); /* Premium Navy Blue */
     color: #fff;
     color: #ffffff;
     padding: 80px 40px;
     padding: 40px 20px;
     text-align: center;
     text-align: center;
     border-radius: 8px;
     border-radius: 4px;
     margin-bottom: 40px;
     margin-bottom: 20px;
     position: relative;
     box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}
}


.hero-title {
.mp-welcome-title {
     font-family: 'Trebuchet MS', sans-serif;
     font-size: 2.5em;
     font-size: 3.5em;
     font-family: 'Times New Roman', serif;
     font-weight: bold;
     font-weight: bold;
    margin: 0;
     color: #f0c05a; /* Gold Accent */
     color: #e0c097; /* Gold Color */
     margin-bottom: 10px;
     letter-spacing: 2px;
    border: none;
}
}


.hero-subtitle {
.mp-welcome-tagline {
     font-size: 1.2em;
     font-size: 1.2em;
     opacity: 0.8;
     opacity: 0.9;
    max-width: 600px;
     margin-bottom: 15px;
     margin: 10px auto 30px auto;
    font-weight: 300;
}
}


.hero-search-box {
.mp-stats-bar {
     background: rgba(255,255,255,0.1);
     background: rgba(255,255,255,0.1);
     padding: 20px;
    display: inline-block;
     border-radius: 50px;
     padding: 5px 15px;
     max-width: 500px;
     border-radius: 20px;
    margin: 0 auto;
     font-size: 0.9em;
    border: 1px solid rgba(255,255,255,0.2);
}
}


.search-placeholder {
/* 2. Grid System (Flexbox) */
     display: block;
.mp-grid-container {
     background: #fff;
     display: flex;
    color: #777;
     flex-wrap: wrap;
     padding: 10px 20px;
     gap: 20px;
    border-radius: 30px;
    text-align: left;
    font-family: sans-serif;
    cursor: pointer;
}
}


/* 2. Section Headers */
.mp-column-left {
.section-header {
     flex: 2; /* 66% width */
     text-align: center;
     min-width: 300px;
     margin-bottom: 30px;
}
}


.section-header h2 {
.mp-column-right {
     font-size: 2em;
     flex: 1; /* 33% width */
    color: #2c3e50;
     min-width: 250px;
    border: none;
     margin-bottom: 10px;
}
}


.divider {
/* 3. Box Styling (Common) */
     height: 3px;
.mp-box {
     width: 60px;
     border: 1px solid #e0e0e0;
     background: #e0c097; /* Gold divider */
    border-radius: 4px;
     margin: 0 auto;
     margin-bottom: 20px;
     background: #fff;
    padding: 15px;
     box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
}


/* 3. Featured Book Card */
/* Headers */
.featured-grid {
.mp-header-gold {
     display: flex;
     margin: 0 0 15px 0;
     justify-content: center;
     padding-bottom: 8px;
     margin-bottom: 60px;
     border-bottom: 2px solid #f0c05a;
    color: #102a43;
    font-size: 1.4em;
    font-weight: bold;
}
}


.featured-book-card {
.mp-header-blue {
     display: flex;
     margin: 0 0 15px 0;
    background: #fff;
     padding-bottom: 8px;
     box-shadow: 0 15px 30px rgba(0,0,0,0.08);
     border-bottom: 2px solid #102a43;
     border-radius: 12px;
     color: #102a43;
     overflow: hidden;
     font-size: 1.2em;
     max-width: 900px;
     font-weight: bold;
     width: 100%;
    border: 1px solid #eee;
}
}


.book-cover-placeholder {
.mp-header-white {
    background: #2c3e50;
     color: #fff;
     color: #fff;
     flex: 1;
     font-size: 1.4em;
     min-height: 300px;
     margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
     font-weight: bold;
     font-weight: bold;
}
}


.book-details {
/* Featured Book Section */
    flex: 2;
.mp-content-flex {
    padding: 40px;
     display: flex;
     display: flex;
     flex-direction: column;
     gap: 20px;
    justify-content: center;
}
}


.tag {
.mp-book-cover {
     text-transform: uppercase;
     flex-shrink: 0;
    font-size: 0.8em;
    letter-spacing: 1px;
    color: #e0c097;
    font-weight: bold;
    margin-bottom: 10px;
}
}


.book-details h3 {
.mp-book-title {
     font-size: 2.2em;
     font-size: 1.5em;
     margin: 0 0 10px 0;
     font-weight: bold;
     color: #222;
     color: #8b0000; /* Deep Red for Title */
    border: none;
}
}


.book-details .author {
.mp-book-author {
     font-style: italic;
     font-style: italic;
     color: #666;
     color: #555;
     margin-bottom: 20px;
     margin-bottom: 10px;
}
}


.book-details .excerpt {
.mp-read-more a {
     line-height: 1.8;
     display: inline-block;
    color: #444;
     background: #f0c05a;
    margin-bottom: 25px;
     color: #102a43;
}
     padding: 5px 10px;
 
/* Buttons */
.btn-gold {
     background: #e0c097;
     color: #1a1a2e;
     padding: 10px 25px;
     text-decoration: none;
     text-decoration: none;
    border-radius: 4px;
     font-weight: bold;
     font-weight: bold;
     margin-right: 10px;
     border-radius: 3px;
     transition: 0.3s;
     margin-top: 5px;
}
}


.btn-gold:hover {
/* Category Grid */
     background: #d4b080;
.mp-category-grid {
     text-decoration: none;
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
}


.btn-outline {
.mp-cat-card {
     border: 2px solid #e0c097;
     background: #f8f9fa;
     color: #b58b4c;
     border: 1px solid #ddd;
     padding: 8px 23px;
     text-align: center;
     text-decoration: none;
     padding: 10px;
     border-radius: 4px;
     border-radius: 4px;
     font-weight: bold;
     font-weight: bold;
    transition: 0.3s;
}
}


.btn-outline:hover {
.mp-cat-card a {
    background: #e0c097;
     color: #333;
     color: #fff;
     text-decoration: none;
     text-decoration: none;
}
}


/* 4. Collections Grid */
.mp-cat-card:hover {
.collections-grid {
     background: #e9ecef;
    display: grid;
     border-color: #aaa;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
     gap: 30px;
     margin-bottom: 60px;
}
}


.collection-card {
/* Action Box (Blue Sidebar) */
    background: #fff;
.mp-action-box {
    padding: 30px;
     background: #102a43;
    text-align: center;
     color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}
 
.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #e0c097;
}
 
.icon-box {
     font-size: 2.5em;
    margin-bottom: 15px;
}
 
.collection-card h3 {
    font-family: sans-serif;
    font-size: 1.2em;
    margin-bottom: 10px;
     color: #2c3e50;
     border: none;
     border: none;
}
/* 5. Stats & Footer */
.premium-footer-stats {
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    border-top: 1px solid #eee;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 40px;
}
.stat-box {
     text-align: center;
     text-align: center;
}
}


.big-number {
.mp-action-btn a {
     display: block;
     display: block;
     font-size: 2.5em;
     background: #f0c05a;
    color: #102a43;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    text-decoration: none;
     font-weight: bold;
     font-weight: bold;
    color: #1a1a2e;
}
}


.stat-label {
.mp-action-btn a:hover {
    text-transform: uppercase;
     background: #fff;
    font-size: 0.8em;
    color: #777;
    letter-spacing: 1px;
}
 
.join-banner {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px;
    border-radius: 8px;
}
 
.join-banner h3 {
    color: white;
    border: none;
    margin-bottom: 10px;
}
 
.btn-white {
     background: white;
    color: #2c3e50;
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
}
}


/* Responsive */
/* Mobile Responsiveness */
@media (max-width: 768px) {
@media (max-width: 768px) {
     .featured-book-card {
     .mp-grid-container {
         flex-direction: column;
         flex-direction: column;
     }
     }
     .book-cover-placeholder {
     .mp-content-flex {
        min-height: 200px;
    }
    .premium-footer-stats {
         flex-direction: column;
         flex-direction: column;
         gap: 20px;
         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;
    }
}