Common.css | فراغیب

از فراغیب
پرش به ناوبری پرش به جستجو
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
خط ۶۱: خط ۶۱:
});
});
});
});




خط ۶۹: خط ۶۶:
#mw-panel,
#mw-panel,
.vector-sidebar,
.vector-sidebar,
.vector-sidebar-container {
.vector-sidebar-container,
.vector-main-menu-container {
     display: none !important;
     display: none !important;
}
}


/* تمام عرض شدن صفحه */
/* تمام عرض شدن محتوا */
.mw-page-container,
.mw-page-container,
.mw-page-container-inner {
    grid-template-columns: 1fr !important;
}
#content,
#content,
.mw-body {
.mw-body {
     margin-left: 0 !important;
     margin-left: 0 !important;
     max-width: 100% !important;
     max-width: 1400px;
    width: 95%;
    margin-right: auto;
    margin-left: auto !important;
}
}


/* حذف دکمه سایدبار */
/* مرتب شدن هدر */
.vector-main-menu-container {
.mw-header {
     display: none !important;
    max-width: 1400px;
     margin: auto;
}
}

نسخهٔ ۲۱ مهٔ ۲۰۲۶، ساعت ۲۱:۳۲

/* global mw, $ */

/* اجرای کد بعد از لود صفحه */
mw.loader.using(['mediawiki.util'], function () {
$(function () {

/* ------------------------------------------------ */
/* جداول تاشو (collapsible tables) */
/* ------------------------------------------------ */

$('.mw-collapsible').each(function () {
    $(this).makeCollapsible();
});


/* ------------------------------------------------ */
/* برجسته کردن رفرنس کلیک شده */
/* ------------------------------------------------ */

$('sup.reference').on('click', function () {
    var citeId = $(this).attr('id');
    $('sup > a[href="#' + citeId + '"]')
        .css('color', '#2a4b8d')
        .css('font-weight', 'bold');
});


/* ------------------------------------------------ */
/* اصلاح جهت فرمول‌های ریاضی */
/* ------------------------------------------------ */

$('span.mwe-math-mathml-inline').each(function () {
    var parent = $(this).parent().parent();
    if (parent.text().trim() === $(this).parent().text().trim()) {
        parent.css({
            direction: "ltr",
            padding: "1em 0"
        });
    }
});


/* ------------------------------------------------ */
/* مخفی کردن WikiLove برای کاربران تازه */
/* ------------------------------------------------ */

if ($.inArray("autoconfirmed", mw.config.get("wgUserGroups")) === -1 ||
    mw.config.get("wgUserEditCount") < 100) {
    mw.util.addCSS("#ca-wikilove { display:none; }");
}


/* ------------------------------------------------ */
/* بارگذاری اسکریپت فقط در حالت ویرایش */
/* ------------------------------------------------ */

if (mw.config.get("wgAction") === "edit" || mw.config.get("wgAction") === "submit") {
    mw.loader.load("/wiki/MediaWiki:Edit.js?action=raw&ctype=text/javascript");
}

});
});


/* حذف کامل سایدبار */
#mw-panel,
.vector-sidebar,
.vector-sidebar-container,
.vector-main-menu-container {
    display: none !important;
}

/* تمام عرض شدن محتوا */
.mw-page-container,
.mw-page-container-inner {
    grid-template-columns: 1fr !important;
}

#content,
.mw-body {
    margin-left: 0 !important;
    max-width: 1400px;
    width: 95%;
    margin-right: auto;
    margin-left: auto !important;
}

/* مرتب شدن هدر */
.mw-header {
    max-width: 1400px;
    margin: auto;
}