انتقل إلى المحتوى

ميدياويكي:Common.css: الفرق بين النسختين

من موسوعة بصراوي
لا ملخص تعديل
لا ملخص تعديل
سطر ٣٤٥: سطر ٣٤٥:
}
}
/* =========================================
/* =========================================
   Basrawe Home - Mobile optimization
   Basrawe Home - Mobile Final
   ========================================= */
   ========================================= */


سطر ٣٥٢: سطر ٣٥٢:
     /* الغلاف */
     /* الغلاف */
     .basrawe-home-hero {
     .basrawe-home-hero {
         padding: 26px 16px !important;
         padding: 25px 15px !important;
         border-radius: 14px !important;
         border-radius: 14px !important;
        margin-bottom: 18px !important;
     }
     }


     .basrawe-home-hero-title {
     .basrawe-home-hero-title {
         font-size: 28px !important;
         font-size: 27px !important;
        line-height: 1.4 !important;
     }
     }


     .basrawe-home-hero-text {
     .basrawe-home-hero-text {
         font-size: 14px !important;
         font-size: 13.5px !important;
         line-height: 1.8 !important;
         line-height: 1.8 !important;
     }
     }


     /* إحصاءات */
     /* الإحصاءات: 2 × 2 */
     .basrawe-home-stats {
     .basrawe-home-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
         gap: 8px !important;
         gap: 8px !important;
     }
     }


     /* استكشف البصرة */
     /* استكشف البصرة: بطاقة واحدة أفقية */
     .basrawe-home-explore {
     .basrawe-home-explore {
         display: grid !important;
         display: grid !important;
         grid-template-columns: repeat(2, minmax(0,1fr)) !important;
         grid-template-columns: 1fr !important;
         gap: 9px !important;
         gap: 9px !important;
     }
     }
سطر ٣٧٩: سطر ٣٨٣:
     .basrawe-home-explore-card {
     .basrawe-home-explore-card {
         min-width: 0 !important;
         min-width: 0 !important;
         padding: 13px !important;
         padding: 12px 14px !important;
         border-radius: 11px !important;
         border-radius: 11px !important;
        display: grid !important;
        grid-template-columns: 42px minmax(0,1fr) !important;
        grid-template-areas:
            "icon title"
            "icon desc" !important;
        column-gap: 10px !important;
        row-gap: 3px !important;
        text-align: right !important;
        align-items: center !important;
     }
     }


     .basrawe-home-explore-card .basrawe-icon {
     .basrawe-home-explore-card .basrawe-icon {
         font-size: 23px !important;
        grid-area: icon !important;
         font-size: 25px !important;
        margin: 0 !important;
        text-align: center !important;
     }
     }


     .basrawe-home-explore-card .basrawe-title {
     .basrawe-home-explore-card .basrawe-title {
        grid-area: title !important;
         font-size: 15px !important;
         font-size: 15px !important;
         line-height: 1.5 !important;
         line-height: 1.5 !important;
        margin: 0 !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
     }
     }


     .basrawe-home-explore-card .basrawe-desc {
     .basrawe-home-explore-card .basrawe-desc {
        grid-area: desc !important;
         font-size: 11.5px !important;
         font-size: 11.5px !important;
         line-height: 1.65 !important;
         line-height: 1.65 !important;
        margin: 0 !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
     }
     }


     /* مختارات */
     /* المختارات تبقى بطاقتين في الصف لأنها نصوصها قصيرة */
     .basrawe-home-picks {
     .basrawe-home-picks {
         display: grid !important;
         display: grid !important;
         grid-template-columns: repeat(2, minmax(0,1fr)) !important;
         grid-template-columns: repeat(2, minmax(0,1fr)) !important;
         gap: 9px !important;
         gap: 8px !important;
     }
     }
}
}

مراجعة ١٩:٠٩، ٣ سبتمبر ٢٠٢٦

/* الأنماط المتراصة CSS المعروضة هنا ستؤثر على كل الواجهات */
/* إخفاء الأيقونة القديمة والإبقاء على شعار موسوعة بصراوي */
.mw-logo-icon {
    display: none !important;
}

.basrawe-home {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

.basrawe-hero {
    padding: 38px 28px;
    margin-bottom: 28px;
    text-align: center;
    border: 1px solid #eaecf0;
    border-radius: 18px;
    background: linear-gradient(135deg, #fffaf0, #f7f9fc);
}

.basrawe-hero h1 {
    margin: 0 0 8px;
    font-size: 34px;
}

.basrawe-hero p {
    margin: 6px 0;
    color: #555;
    font-size: 17px;
}

.basrawe-section {
    margin: 30px 0;
}

.basrawe-section-title {
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 700;
}

.basrawe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.basrawe-card {
    display: block;
    padding: 22px 18px;
    min-height: 110px;
    border: 1px solid #e1e5ea;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.basrawe-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    text-decoration: none;
}

.basrawe-card-title {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

.basrawe-card-text {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.basrawe-featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.basrawe-box {
    padding: 22px;
    border: 1px solid #e1e5ea;
    border-radius: 14px;
    background: #fff;
}

.basrawe-links {
    line-height: 2;
}

.basrawe-cta {
    margin-top: 32px;
    padding: 26px;
    text-align: center;
    border-radius: 16px;
    background: #f7f9fc;
    border: 1px solid #e1e5ea;
}

@media (max-width: 900px) {
    .basrawe-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .basrawe-featured {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .basrawe-grid {
        grid-template-columns: 1fr;
    }

    .basrawe-hero {
        padding: 28px 18px;
    }

    .basrawe-hero h1 {
        font-size: 28px;
    }
}

/* ==================================================
   Basrawe Wiki - Responsive Mobile UI
   ================================================== */

/* صندوق المعلومات الموحد */
.basrawe-infobox {
    width: 310px;
    max-width: 100%;
    float: left;
    margin: 0 0 18px 20px;
    border: 1px solid #a2a9b1;
    border-collapse: collapse;
    background: #f8f9fa;
    font-size: 95%;
    box-sizing: border-box;
}

.basrawe-infobox th,
.basrawe-infobox td {
    padding: 7px 9px;
    vertical-align: top;
}

.basrawe-infobox th {
    background: #eaecf0;
}

.basrawe-infobox img {
    max-width: 100%;
    height: auto;
}

/* الصور داخل المقالات */
.mw-parser-output img {
    max-width: 100%;
    height: auto;
}

/* الجداول العامة */
.mw-parser-output table.wikitable {
    max-width: 100%;
}

/* تحسين القراءة */
.mw-parser-output p,
.mw-parser-output li {
    line-height: 1.85;
}

/* =========================
   الهواتف والأجهزة الصغيرة
   ========================= */
@media screen and (max-width: 720px) {

    /* صندوق المعلومات يصبح بعرض الصفحة */
    .basrawe-infobox {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 18px 0 !important;
        font-size: 94%;
    }

    .basrawe-infobox th {
        width: 38%;
    }

    /* منع الصور من الخروج عن الشاشة */
    .mw-parser-output img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* تحسين العناوين */
    .mw-parser-output h1 {
        font-size: 1.75em;
    }

    .mw-parser-output h2 {
        font-size: 1.4em;
        line-height: 1.45;
    }

    .mw-parser-output h3 {
        font-size: 1.18em;
    }

    /* تحسين النص */
    .mw-parser-output p {
        line-height: 1.9;
        text-align: right;
    }

    /* الجداول الكبيرة تمرر أفقياً بدلاً من كسر الصفحة */
    .mw-parser-output .wikitable {
        display: block;
        overflow-x: auto;
        white-space: normal;
        -webkit-overflow-scrolling: touch;
    }

    /* القوائم */
    .mw-parser-output ul,
    .mw-parser-output ol {
        padding-right: 22px;
        padding-left: 5px;
    }

    /* المراجع والروابط الطويلة */
    .references li,
    .mw-parser-output a {
        overflow-wrap: anywhere;
        word-break: normal;
    }
}

/* =========================================
   Basrawe Wiki - Main Page V2
   ========================================= */

.basrawe-home {
    max-width: 1250px;
    margin: 0 auto;
    direction: rtl;
}

/* بطاقات أقسام الموسوعة */
/* =========================================
   Basrawe Explore Grid - Final
   ========================================= */

.basrawe-explore-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.basrawe-explore-card {
    background: #fff;
    border: 1px solid #dde5e7;
    border-radius: 14px;
    padding: 16px;
    box-sizing: border-box;
    min-width: 0;
}

/* التابلت */
@media screen and (max-width: 700px) {
    .basrawe-explore-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* الهاتف */
@media screen and (max-width: 480px) {
    .basrawe-explore-grid {
        grid-template-columns: 1fr !important;
    }
}
/* الإحصاءات */
.basrawe-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

/* العمودان الرئيسيان */
.basrawe-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* المختارات */
.basrawe-picks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

/* =========================================
   Basrawe Wiki - Responsive Layout
   ========================================= */

/* الشاشات المتوسطة */
@media (max-width: 800px) {

    .basrawe-explore-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .basrawe-picks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .basrawe-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* الهواتف */
@media (max-width: 600px) {

    .basrawe-home {
        width: 100%;
    }

    .basrawe-explore-grid,
    .basrawe-feature-grid,
    .basrawe-picks-grid {
        grid-template-columns: 1fr;
    }

    .basrawe-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* =========================================
   Basrawe Home - Mobile Final
   ========================================= */

@media screen and (max-width: 600px) {

    /* الغلاف */
    .basrawe-home-hero {
        padding: 25px 15px !important;
        border-radius: 14px !important;
        margin-bottom: 18px !important;
    }

    .basrawe-home-hero-title {
        font-size: 27px !important;
        line-height: 1.4 !important;
    }

    .basrawe-home-hero-text {
        font-size: 13.5px !important;
        line-height: 1.8 !important;
    }

    /* الإحصاءات: 2 × 2 */
    .basrawe-home-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        gap: 8px !important;
    }

    /* استكشف البصرة: بطاقة واحدة أفقية */
    .basrawe-home-explore {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 9px !important;
    }

    .basrawe-home-explore-card {
        min-width: 0 !important;
        padding: 12px 14px !important;
        border-radius: 11px !important;

        display: grid !important;
        grid-template-columns: 42px minmax(0,1fr) !important;
        grid-template-areas:
            "icon title"
            "icon desc" !important;
        column-gap: 10px !important;
        row-gap: 3px !important;

        text-align: right !important;
        align-items: center !important;
    }

    .basrawe-home-explore-card .basrawe-icon {
        grid-area: icon !important;
        font-size: 25px !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .basrawe-home-explore-card .basrawe-title {
        grid-area: title !important;
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin: 0 !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    .basrawe-home-explore-card .basrawe-desc {
        grid-area: desc !important;
        font-size: 11.5px !important;
        line-height: 1.65 !important;
        margin: 0 !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    /* المختارات تبقى بطاقتين في الصف لأنها نصوصها قصيرة */
    .basrawe-home-picks {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        gap: 8px !important;
    }
}