پرش به محتوا

مدیاویکی:Vector.css: تفاوت میان نسخه‌ها

از ویکی داد
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
خط ۱: خط ۱:
/* =========================================================
/* =========================================================
   WIKIDAD — VECTOR RESPONSIVE
   WIKIDAD — VECTOR RESPONSIVE
   اصلاح ریسپانسیو پوسته Vector
   طراحی واکنش‌گرا برای پوسته Vector
   ========================================================= */
   ========================================================= */




/* =========================================================
/* =========================================================
   1. جلوگیری از بیرون‌زدگی افقی
   1. پایه
   ========================================================= */
   ========================================================= */


خط ۱۲: خط ۱۲:
body {
body {
     max-width: 100%;
     max-width: 100%;
    width: 100%;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
}




/* =========================================================
/* =========================================================
   2. محتوای اصلی
   2. جلوگیری از عریض شدن محتوا
   ========================================================= */
   ========================================================= */


.mw-body {
.mw-body,
    box-sizing: border-box;
.mw-body-content,
.mw-content-ltr,
.mw-content-rtl {
     max-width: 100%;
     max-width: 100%;
}
}
خط ۲۶: خط ۳۵:


/* =========================================================
/* =========================================================
   3. عناصر رسانه‌ای و محتوای عریض
   3. تصاویر و رسانه
   ========================================================= */
   ========================================================= */


خط ۳۸: خط ۴۷:


/* =========================================================
/* =========================================================
   4. جدول‌ها
   4. جدول
   ========================================================= */
   ========================================================= */


خط ۴۷: خط ۵۶:


/* =========================================================
/* =========================================================
   5. تبلت
   5. موبایل
   ========================================================= */
   ========================================================= */


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


     .mw-body {
    /* -----------------------------------------
         box-sizing: border-box;
      حذف کامل پنل کناری Vector
      ----------------------------------------- */
 
    #mw-panel,
    .vector-sidebar,
    .vector-menu-portal {
        display: none !important;
    }
 
 
    /* -----------------------------------------
      حذف فضای اختصاص داده شده به Sidebar
      ----------------------------------------- */
 
    #content,
     .mw-body,
    .mw-body-content {
         margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
     }
     }


}


    /* -----------------------------------------
      ظرف اصلی Vector
      ----------------------------------------- */


/* =========================================================
    .mw-page-container {
  6. موبایل
        width: 100% !important;
  ========================================================= */
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }


@media (max-width: 700px) {


     /* فاصله محتوای اصلی */
     /* -----------------------------------------
      محتوای مقاله
      ----------------------------------------- */


     .mw-body {
     .mw-body {
         box-sizing: border-box;
         min-width: 0 !important;
    }
 
 
    .mw-body-content {
        min-width: 0 !important;
     }
     }




     /* عنوان صفحه */
     /* -----------------------------------------
      عنوان صفحه
      ----------------------------------------- */


     .mw-first-heading {
     .mw-first-heading {
         font-size: 1.65rem;
         font-size: 1.65rem;
         line-height: 1.6;
         line-height: 1.6;
        max-width: 100%;
        overflow-wrap: anywhere;
     }
     }




     /* تصاویر */
     /* -----------------------------------------
      تصاویر
      ----------------------------------------- */


     .mw-body img {
     .mw-body img {
         max-width: 100%;
         max-width: 100% !important;
         height: auto;
         height: auto !important;
     }
     }




     /* فرم‌ها */
     /* -----------------------------------------
      فرم‌ها
      ----------------------------------------- */


     .mw-body input,
     .mw-body input,
خط ۹۹: خط ۱۵۱:




     /* جدول‌های معمولی */
     /* -----------------------------------------
      جدول‌ها
      ----------------------------------------- */


     .mw-body table {
     .mw-body table {
خط ۱۰۵: خط ۱۵۹:
     }
     }


}


    /* -----------------------------------------
      جلوگیری از شکستن عرض صفحات
      ----------------------------------------- */


/* =========================================================
    .mw-body,
  7. موبایل کوچک
    .mw-body-content,
  ========================================================= */
     .mw-content {
 
        overflow-wrap: anywhere;
@media (max-width: 480px) {
         min-width: 0;
 
     .mw-first-heading {
         font-size: 1.45rem;
     }
     }


خط ۱۲۲: خط ۱۷۵:


/* =========================================================
/* =========================================================
   WIKIDAD — مخفی کردن سایدبار Vector در موبایل
   6. موبایل کوچک
   ========================================================= */
   ========================================================= */


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


    /* Vector جدید */
     .mw-first-heading {
     .vector-sidebar {
         font-size: 1.45rem;
         display: none !important;
    }
 
    /* Vector قدیمی */
    #mw-panel {
        display: none !important;
     }
     }


    /* جلوگیری از ایجاد فضای خالی سایدبار */
     .mw-page-container {
     .mw-body {
         padding-left: 8px !important;
         margin-left: 0 !important;
         padding-right: 8px !important;
         margin-right: 0 !important;
     }
     }


}
}

نسخهٔ ۱۷ سپتامبر ۲۰۲۶، ساعت ۱۲:۵۵

/* =========================================================
   WIKIDAD — VECTOR RESPONSIVE
   طراحی واکنش‌گرا برای پوسته Vector
   ========================================================= */


/* =========================================================
   1. پایه
   ========================================================= */

html,
body {
    max-width: 100%;
    width: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =========================================================
   2. جلوگیری از عریض شدن محتوا
   ========================================================= */

.mw-body,
.mw-body-content,
.mw-content-ltr,
.mw-content-rtl {
    max-width: 100%;
}


/* =========================================================
   3. تصاویر و رسانه
   ========================================================= */

.mw-body img,
.mw-body video,
.mw-body iframe {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   4. جدول
   ========================================================= */

.mw-body table {
    max-width: 100%;
}


/* =========================================================
   5. موبایل
   ========================================================= */

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

    /* -----------------------------------------
       حذف کامل پنل کناری Vector
       ----------------------------------------- */

    #mw-panel,
    .vector-sidebar,
    .vector-menu-portal {
        display: none !important;
    }


    /* -----------------------------------------
       حذف فضای اختصاص داده شده به Sidebar
       ----------------------------------------- */

    #content,
    .mw-body,
    .mw-body-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }


    /* -----------------------------------------
       ظرف اصلی Vector
       ----------------------------------------- */

    .mw-page-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }


    /* -----------------------------------------
       محتوای مقاله
       ----------------------------------------- */

    .mw-body {
        min-width: 0 !important;
    }


    .mw-body-content {
        min-width: 0 !important;
    }


    /* -----------------------------------------
       عنوان صفحه
       ----------------------------------------- */

    .mw-first-heading {
        font-size: 1.65rem;
        line-height: 1.6;
        max-width: 100%;
        overflow-wrap: anywhere;
    }


    /* -----------------------------------------
       تصاویر
       ----------------------------------------- */

    .mw-body img {
        max-width: 100% !important;
        height: auto !important;
    }


    /* -----------------------------------------
       فرم‌ها
       ----------------------------------------- */

    .mw-body input,
    .mw-body textarea,
    .mw-body select,
    .mw-body button {
        max-width: 100%;
        box-sizing: border-box;
    }


    /* -----------------------------------------
       جدول‌ها
       ----------------------------------------- */

    .mw-body table {
        max-width: 100%;
    }


    /* -----------------------------------------
       جلوگیری از شکستن عرض صفحات
       ----------------------------------------- */

    .mw-body,
    .mw-body-content,
    .mw-content {
        overflow-wrap: anywhere;
        min-width: 0;
    }

}


/* =========================================================
   6. موبایل کوچک
   ========================================================= */

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

    .mw-first-heading {
        font-size: 1.45rem;
    }

    .mw-page-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

}