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