پرش به محتوا

Common.css - فراغیب

از فراحوزه
admin>Esfandiari
بدون خلاصۀ ویرایش
جز ۵۶ نسخه واردشده
 
(۴۶ نسخهٔ میانی ویرایش شده توسط ۲ کاربر نشان داده نشد)
خط ۱: خط ۱:
/* global mw, $ */
/* --------------------- Begin Font Style ----------------- */
 
@font-face {
/* اجرای کد بعد از لود صفحه */
     font-family: 'IRANSansXFaNum';
mw.loader.using(['mediawiki.util'], function () {
font-style: normal;
$(function () {
font-weight: 400;
 
font-display: swap;
/* ------------------------------------------------ */
src: url('/w/resources/fonts/IRANSansXFaNum-Regular.woff2') format('woff2'),
/* جداول تاشو (collapsible tables) */
url('/w/resources/fonts/IRANSansXFaNum-Regular.woff') format('woff');
/* ------------------------------------------------ */
 
$('.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");
}
}


});
body {
});
font-family: IRANSansXFaNum, Tahoma, 'Noto Serif', 'Droid Arabic Naskh', 'DejaVu Sans', serif !important;
/* حذف کامل اجزای پوسته */
#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;
}
}


/* حذف محدودیت عرض */
#content.mw-body  h1, #content.mw-body  h2, #content.mw-body  #firstHeading,
.mw-page-container,
#content.mw-body  .mw-editsection, .mw-body .mw-editsection-like,
.mw-page-container-inner{
#content.mw-body  #toc h2, #content.mw-body  .toc h2, .vector-sticky-header-context-bar-primary,
grid-template-columns:1fr !important;
#template-documentation, #documentation-meta-data{
max-width:100% !important;
font-family: Shabnam, Tahoma, 'Noto Serif', 'Droid Arabic Naskh', 'DejaVu Sans', serif !important;
line-height: 1.6;
}
}


/* صفحه کاملاً خالی */
textarea {
#content{
font-family: IRANSansXFaNum, 'Courier New', monospace;
margin:0 !important;
padding:0 !important;
max-width:100% !important;
}
}


.mw-body{
.mw-body-content {
margin:0 !important;
font-kerning: auto;
padding:0 !important;
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 */
.vector-body{
.ace_editor { font-family: 'Courier New', monospace!important; }
padding:0 !important;
}


/* فضای تمیز برای طراحی */
/* force these to use inherited font configuration */
#mw-content-text{
.ui-widget, .ui-widget *, button, input, select, optgroup {
width:100%;
font-family: inherit;
margin:0 auto;
}
#wikiMenuButton{
position:fixed;
top:20px;
right:20px;
background:#111;
color:white;
padding:10px 14px;
font-size:20px;
cursor:pointer;
border-radius:6px;
z-index:9999;
}
}
/* end */


#wikiMenu{
dfn {
display:none;
font-style: inherit; /* Reset default styling for <dfn> */
position:fixed;
top:60px;
right:20px;
background:white;
border-radius:8px;
box-shadow:0 10px 30px rgba(0,0,0,0.2);
overflow:hidden;
z-index:9999;
}
}
 
sup, sub {
#wikiMenu a{
line-height: 1em;     /* Reduce line-height for <sup> and <sub> */
display:block;
padding:12px 20px;
text-decoration:none;
color:#333;
font-size:14px;
}
 
#wikiMenu a:hover{
background:#f3f3f3;
}
}
/* --------------------- 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 ----------------- */