Common.css | فراغیب
پرش به ناوبری
پرش به جستجو
Esfandiari (بحث | مشارکتها) بدون خلاصۀ ویرایش |
Esfandiari (بحث | مشارکتها) بدون خلاصۀ ویرایش |
||
| خط ۸۶: | خط ۸۶: | ||
padding: 0 !important; | padding: 0 !important; | ||
max-width: 100% !important; | max-width: 100% !important; | ||
} | |||
#customMenuButton{ | |||
position:fixed; | |||
top:20px; | |||
right:20px; | |||
background:#222; | |||
color:white; | |||
padding:10px 14px; | |||
font-size:20px; | |||
cursor:pointer; | |||
border-radius:6px; | |||
z-index:9999; | |||
} | |||
#customMenu{ | |||
display:none; | |||
position:fixed; | |||
top:60px; | |||
right:20px; | |||
background:white; | |||
border:1px solid #ddd; | |||
box-shadow:0 5px 20px rgba(0,0,0,0.2); | |||
z-index:9999; | |||
} | |||
#customMenu a{ | |||
display:block; | |||
padding:10px 20px; | |||
text-decoration:none; | |||
color:#333; | |||
} | |||
#customMenu a:hover{ | |||
background:#f5f5f5; | |||
} | } | ||
نسخهٔ ۲۱ مهٔ ۲۰۲۶، ساعت ۲۱:۴۰
/* 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;
}
#customMenuButton{
position:fixed;
top:20px;
right:20px;
background:#222;
color:white;
padding:10px 14px;
font-size:20px;
cursor:pointer;
border-radius:6px;
z-index:9999;
}
#customMenu{
display:none;
position:fixed;
top:60px;
right:20px;
background:white;
border:1px solid #ddd;
box-shadow:0 5px 20px rgba(0,0,0,0.2);
z-index:9999;
}
#customMenu a{
display:block;
padding:10px 20px;
text-decoration:none;
color:#333;
}
#customMenu a:hover{
background:#f5f5f5;
}