Common.css | فراغیب
پرش به ناوبری
پرش به جستجو
Esfandiari (بحث | مشارکتها) بدون خلاصۀ ویرایش |
Esfandiari (بحث | مشارکتها) بدون خلاصۀ ویرایش |
||
| خط ۶۱: | خط ۶۱: | ||
}); | }); | ||
}); | }); | ||
/* حذف کامل اجزای پوسته */ | |||
/* حذف کامل | |||
#mw-panel, | #mw-panel, | ||
.vector-sidebar, | .vector-sidebar, | ||
.vector-header-container, | |||
.vector-header, | .vector-header, | ||
.vector-sticky-header, | |||
.vector-page-toolbar, | |||
.vector-page-tools, | |||
.mw-header, | .mw-header, | ||
#footer, | #footer, | ||
.mw-footer, | .mw-footer, | ||
#catlinks { | |||
display:none !important; | |||
} | } | ||
/* | /* حذف محدودیت عرض */ | ||
.mw-page-container, | .mw-page-container, | ||
.mw-page-container-inner { | .mw-page-container-inner{ | ||
grid-template-columns:1fr !important; | |||
max-width:100% !important; | |||
} | } | ||
#content | /* صفحه کاملاً خالی */ | ||
#content{ | |||
margin:0 !important; | |||
padding:0 !important; | |||
max-width:100% !important; | |||
} | } | ||
.mw-body{ | |||
margin:0 !important; | |||
padding:0 !important; | |||
} | } | ||
/* حذف حاشیهها */ | |||
.vector-body{ | |||
padding: | padding:0 !important; | ||
} | } | ||
# | /* فضای تمیز برای طراحی */ | ||
#mw-content-text{ | |||
width:100%; | |||
margin:0 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-header-container,
.vector-header,
.vector-sticky-header,
.vector-page-toolbar,
.vector-page-tools,
.mw-header,
#footer,
.mw-footer,
#catlinks {
display:none !important;
}
/* حذف محدودیت عرض */
.mw-page-container,
.mw-page-container-inner{
grid-template-columns:1fr !important;
max-width:100% !important;
}
/* صفحه کاملاً خالی */
#content{
margin:0 !important;
padding:0 !important;
max-width:100% !important;
}
.mw-body{
margin:0 !important;
padding:0 !important;
}
/* حذف حاشیهها */
.vector-body{
padding:0 !important;
}
/* فضای تمیز برای طراحی */
#mw-content-text{
width:100%;
margin:0 auto;
}