پرش به محتوا

Common.css - فراغیب

از فراحوزه
admin>Esfandiari
بدون خلاصۀ ویرایش
جز ۵۶ نسخه واردشده
 
(۵۱ نسخهٔ میانی ویرایش شده توسط ۲ کاربر نشان داده نشد)
خط ۱: خط ۱:
/* global mw, $ */
/* --------------------- Begin Font Style ----------------- */
@font-face {
    font-family: 'IRANSansXFaNum';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('/w/resources/fonts/IRANSansXFaNum-Regular.woff2') format('woff2'),
url('/w/resources/fonts/IRANSansXFaNum-Regular.woff') format('woff');
}


/* اجرای کد بعد از لود صفحه */
body {
mw.loader.using(['mediawiki.util'], function () {
font-family: IRANSansXFaNum, Tahoma, 'Noto Serif', 'Droid Arabic Naskh', 'DejaVu Sans', serif !important;
$(function () {
}


/* ------------------------------------------------ */
#content.mw-body  h1, #content.mw-body  h2, #content.mw-body  #firstHeading,
/* جداول تاشو (collapsible tables) */
#content.mw-body  .mw-editsection, .mw-body .mw-editsection-like,
/* ------------------------------------------------ */
#content.mw-body  #toc h2, #content.mw-body  .toc h2, .vector-sticky-header-context-bar-primary,
 
#template-documentation, #documentation-meta-data{
$('.mw-collapsible').each(function () {
font-family: Shabnam, Tahoma, 'Noto Serif', 'Droid Arabic Naskh', 'DejaVu Sans', serif !important;
    $(this).makeCollapsible();
line-height: 1.6;
});
}
 
 
/* ------------------------------------------------ */
/* برجسته کردن رفرنس کلیک شده */
/* ------------------------------------------------ */


$('sup.reference').on('click', function () {
textarea {
    var citeId = $(this).attr('id');
font-family: IRANSansXFaNum, 'Courier New', monospace;
    $('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; }");
}
}


 
.mw-body-content {
/* ------------------------------------------------ */
font-kerning: auto;
/* بارگذاری اسکریپت فقط در حالت ویرایش */
font-size: 16px;
/* ------------------------------------------------ */
line-height: 2.0;
 
if (mw.config.get("wgAction") === "edit" || mw.config.get("wgAction") === "submit") {
    mw.loader.load("/wiki/MediaWiki:Edit.js?action=raw&ctype=text/javascript");
}
}


});
/* Ace editor now supports RTL editing but a monospace font with Arabic should be set for correct functionality */
});
.ace_editor { font-family: 'Courier New', monospace!important; }


 
/* force these to use inherited font configuration */
 
.ui-widget, .ui-widget *, button, input, select, optgroup {
 
font-family: inherit;
 
/* حذف کامل سایدبار */
#mw-panel,
.vector-sidebar,
.vector-sidebar-container {
    display: none !important;
}
}
/* end */


/* تمام عرض شدن صفحه */
dfn {
.mw-page-container,
font-style: inherit; /* Reset default styling for <dfn> */
#content,
.mw-body {
    margin-left: 0 !important;
    max-width: 100% !important;
}
}
 
sup, sub {
/* حذف دکمه سایدبار */
line-height: 1em;    /* Reduce line-height for <sup> and <sub> */
.vector-main-menu-container {
    display: none !important;
}
}
/* --------------------- End Font Style ----------------- */

نسخهٔ کنونی تا ‏۲۵ ژوئن ۲۰۲۶، ساعت ۰۸:۳۹

/* --------------------- Begin Font Style ----------------- */
@font-face {
    font-family: 'IRANSansXFaNum';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/w/resources/fonts/IRANSansXFaNum-Regular.woff2') format('woff2'),
		 url('/w/resources/fonts/IRANSansXFaNum-Regular.woff') format('woff');
}

body {
	font-family: IRANSansXFaNum, Tahoma, 'Noto Serif', 'Droid Arabic Naskh', 'DejaVu Sans', serif !important;
}

#content.mw-body  h1, #content.mw-body  h2, #content.mw-body  #firstHeading,
#content.mw-body  .mw-editsection, .mw-body .mw-editsection-like,
#content.mw-body  #toc h2, #content.mw-body  .toc h2, .vector-sticky-header-context-bar-primary,
#template-documentation, #documentation-meta-data{
	font-family: Shabnam, Tahoma, 'Noto Serif', 'Droid Arabic Naskh', 'DejaVu Sans', serif !important;
	line-height: 1.6;
}

textarea {
	font-family: IRANSansXFaNum, 'Courier New', monospace;
}

.mw-body-content {
	font-kerning: auto;
	font-size: 16px;
	line-height: 2.0;
}

/* Ace editor now supports RTL editing but a monospace font with Arabic should be set for correct functionality */
.ace_editor { font-family: 'Courier New', monospace!important; }

/* force these to use inherited font configuration */
.ui-widget, .ui-widget *, button, input, select, optgroup {
	font-family: inherit;
}
/* end */

dfn {
	font-style: inherit;  /* Reset default styling for <dfn> */
}
sup, sub {
	line-height: 1em;     /* Reduce line-height for <sup> and <sub> */
}
/* --------------------- End Font Style ----------------- */