مدیاویکی:Common.css
نکته: پس از انتشار ممکن است برای دیدن تغییرات نیاز باشد که حافظهٔ نهانی مرورگر خود را پاک کنید.
- فایرفاکس / سافاری: کلید Shift را نگه دارید و روی دکمهٔ Reload کلیک کنید، یا کلیدهای Ctrl-F5 یا Ctrl-R را با هم فشار دهید (در رایانههای اپل مکینتاش کلیدهای ⌘-R)
- گوگل کروم: کلیدهای Ctrl+Shift+R را با هم فشار دهید (در رایانههای اپل مکینتاش کلیدهای ⌘-Shift-R)
- Edge: کلید Ctrl را نگهدارید و روی دکمهٔ Refresh کلیک کنید، یا کلیدهای Ctrl-F5 را با هم فشار دهید
/* --------------------- 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', sans-serif !important;
}
/* عناوین و بخشهای مهم */
h1, h2, h3, h4, h5, h6,
.mw-body h1, .mw-body h2, .mw-body #firstHeading,
.mw-body .mw-editsection, .mw-body .mw-editsection-like,
.mw-body #toc h2, .mw-body .toc h2,
#template-documentation, #documentation-meta-data,
.vector-sticky-header-context-bar-primary {
font-family: 'Sahel', 'Shabnam', Tahoma, sans-serif !important;
line-height: 1.6;
font-weight: bold;
}
/* ویرایشگرها */
textarea, #wpTextbox1, .ve-ui-mwWikitextSurface .ve-ce-attachedRootNode {
font-family: 'IRANSansXFaNum', 'Vazir', Tahoma, monospace !important;
font-size: 15px;
}
.mw-body-content {
font-kerning: auto;
font-size: 16px;
line-height: 2.0;
}
/* اصلاح نمایش در لایه های رابط کاربری */
.ui-widget, .ui-widget *, button, input, select, optgroup {
font-family: inherit;
}
/* رفع استایل کج برای برخی تگها */
cite, dfn, .rellink, .dablink, .hatnote {
font-style: normal !important;
}
sup, sub {
line-height: 1em;
}
/* --------------------- صفحه اصلی ----------------- */
body.page-صفحهٔ_اصلی #ca-delete,
body.page-صفحهٔ_اصلی #deleteconfirm,
body.page-صفحهٔ_اصلی #t-cite,
body.page-صفحهٔ_اصلی #lastmod,
body.page-صفحهٔ_اصلی #siteSub,
body.page-صفحهٔ_اصلی #contentSub,
body.page-صفحهٔ_اصلی #catlinks,
body.page-صفحهٔ_اصلی h1.firstHeading,
body.page-صفحهٔ_اصلی #ca-history,
body.page-صفحهٔ_اصلی #pagehistory,
.rootpage-صفحهٔ_اصلی .firstHeading {
display: none !important;
}
/* --------------------- جعبهها و جداول ----------------- */
.navbox {
box-sizing: border-box;
border: 1px solid #a2a9b1;
width: auto !important;
margin: auto;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
background: #f8f9fa;
}
.infobox {
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
margin: 0.5em 1em 0.5em 0;
padding: 0.2em;
float: left;
clear: left;
text-align: right;
font-size: 88%;
line-height: 1.5em;
max-width: 25%;
}
/* اصلاح نمایش لیستهای افقی */
.hlist dt:after { content: ": "; }
.hlist dd:after, .hlist li:after { content: " •"; }
.hlist dd:last-child:after, .hlist dt:last-child:after, .hlist li:last-child:after { content: none; }
/* --------------------- اصلاحات موبایل ----------------- */
@media only screen and (max-width: 700px) {
.mainpage-portals { width: 100%; }
.portal-container-2, .portal-container-3, .portal-container-4 {
display: block;
}
.infobox, .sidebar, .quotebox {
max-width: 100% !important;
float: none !important;
width: 100% !important;
}
}
/* --------------------- متفرقه ----------------- */
/* رنگ پیوندهای قرمز (تغییر به سیاه طبق کد شما) */
a.new {
color: black !important;
}
/* اصلاح نمایش تصاویر */
img {
max-width: 100%;
height: auto !important;
}
/* استایل تفاوت ویرایش (Diff) */
td.diff-addedline { border-color: #36c; }
td.diff-deletedline { border-color: #fc3; }
td.diff-addedline .diffchange { background: #e9eef9; }
td.diff-deletedline .diffchange { background: #fff4d6; }
/* دکمه ذخیره */
#wpSave {
font-weight: bold;
}
/* نمایش جهت درست برای ارجاعات لاتین */
LI.mw-cite-dir-ltr {
direction: ltr;
text-align: left;
margin-left: 2.3em;
list-style-type: decimal !important;
}