مدیاویکی:Common.css: تفاوت میان نسخه‌ها

بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
خط ۱: خط ۱:
/* --------------------- Begin Font Style ----------------- */
@font-face {
@font-face {
     font-family: 'IRANSansXFaNum';
     font-family: 'IRANSansXFaNum';
خط ۱۲: خط ۱۳:
_:-ms-lang(x), _:-webkit-full-screen, body {  
_:-ms-lang(x), _:-webkit-full-screen, body {  
     font-family: 'IRANSansXFaNum', Tahoma, 'Segoe UI', 'DejaVu Sans', sans-serif !important;  
     font-family: 'IRANSansXFaNum', Tahoma, 'Segoe UI', 'DejaVu Sans', sans-serif !important;  
}
/* Logo */
/* هنگامی که لوگوی مناسبتی را بارگذاری کردید این کد را فعال کنید */
/*
#p-logo a {
  background-image: url(//upload.wikimedia.org/wikipedia/commons/thumb/3/39/Persian_Wikipedia%27s_600%2C000_article_green_logo.svg/135px-Persian_Wikipedia%27s_600%2C000_article_green_logo.svg.png?21231511779) !important;
}
*/
/* Persian Wikipedia UI fonts configurations, see also MediaWiki:Print.css
  These are written over the time on Monobook.css and Vector.css and shouldn't
  be changed radically without users consensus */
body {
  /* generally a sans-serif font should be here */
  font-family:  vazir, Tahoma, 'Iranian Sans', 'DejaVu Sans', 'Noto Sans Arabic', 'Noto Kufi Arabic', 'Droid Arabic Kufi', sans-serif;
}
}


/* اصلاح تداخل و تجمیع فونت عناوین */
h1, h2, h3, h4, h5, h6,
.mw-body h1, .mw-body h2, .mw-body #firstHeading,
.mw-body h1, .mw-body h2, .mw-body #firstHeading,
.mw-body .mw-editsection, .mw-body .mw-editsection-like,
.mw-body .mw-editsection, .mw-body .mw-editsection-like,
.mw-body #toc h2, .mw-body .toc h2,
.mw-body #toc h2, .mw-body .toc h2,  
#documentation-meta-data, .vector-sticky-header-context-bar-primary {
.vector-sticky-header-context-bar-primary,
  /* generally a serif font should be here but Arial is not acceptable for Persian */
#template-documentation, #documentation-meta-data {
  font-family: sahel, Tahoma, 'Iranian Serif', 'Noto Naskh Arabic', 'Iranian Sans', 'DejaVu Sans', serif;
    font-family: 'Sahel', 'Shabnam', Tahoma, sans-serif !important;
  font-weight: bold;
    line-height: 1.6;
}
}


/* 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; }
textarea, #wpTextbox1, .ace_editor, .ve-ui-mwWikitextSurface .ve-ce-attachedRootNode {
    font-family: 'IRANSansXFaNum', 'Vazir', 'Courier New', monospace !important;
    font-size: 15px;
}


/* If is IE Edge/Windows 10, Arabic diacritics are broken so use Segoe UI as default font instead */
.mw-body-content {
_:-ms-lang(x), _:-webkit-full-screen, body { font-family: 'Segoe UI', Tahoma, 'Iranian Sans', 'DejaVu Sans', 'Noto Kufi Arabic', 'Droid Arabic Kufi', sans-serif; }
font-kerning: auto;
font-size: 16px;
line-height: 2.0;
}


/* force these to use inherited font configuration */
/* force these to use inherited font configuration */
.ui-widget, .ui-widget *, button, input, select, optgroup {
.ui-widget, .ui-widget *, button, input, select, optgroup {
  font-family: inherit;
font-family: inherit !important;
}
 
dfn {
font-style: inherit;  /* Reset default styling for <dfn> */
}
sup, sub {
line-height: 1em;    /* Reduce line-height for <sup> and <sub> */
}
}
/* --------------------- End Font Style ----------------- */
/* end */
/* end */