پرش به محتوا

مدیاویکی:Common.css

از فراغیب
نسخهٔ تاریخ ‏۱۹ ژوئن ۲۰۲۶، ساعت ۱۷:۲۱ توسط admin>Esfandiari

نکته: پس از انتشار ممکن است برای دیدن تغییرات نیاز باشد که حافظهٔ نهانی مرورگر خود را پاک کنید.

  • فایرفاکس / سافاری: کلید Shift را نگه دارید و روی دکمهٔ Reload کلیک کنید، یا کلید‌های Ctrl-F5 یا Ctrl-R را با هم فشار دهید (در رایانه‌های اپل مکینتاش کلید‌های ⌘-R)
  • گوگل کروم: کلیدهای Ctrl+Shift+R را با هم فشار دهید (در رایانه‌های اپل مکینتاش کلید‌های ⌘-Shift-R)
  • Edge: کلید Ctrl را نگه‌دارید و روی دکمهٔ Refresh کلیک کنید، یا کلید‌های Ctrl-F5 را با هم فشار دهید
/* =====================================================

MediaWiki Common.css

Optimized for Vector 2010 – Persian RTL

Font: IRANSansXFaNum

===================================================== */

/* ---------- Font ---------- */

@font-face{

font-family:IRANSansXFaNum;

src:

url(/w/resources/fonts/IRANSansXFaNum-Regular.woff2) format(woff2),

url(/w/resources/fonts/IRANSansXFaNum-Regular.woff) format(woff);

font-weight:400;

font-style:normal;

font-display:swap;

}

:root{

wiki-font:IRANSansXFaNum,Tahoma,sans-serif;

}

/* ---------- Base ---------- */

body,

.mw-body,

.mw-body-content{

font-family:var(wiki-font);

font-size:16px;

line-height:1.9;

direction:rtl;

}

/* headings */

.mw-body h1,

.mw-body h2,

.mw-body h3,

.mw-body h4,

.mw-body h5,

#firstHeading{

font-family:var(wiki-font);

font-weight:600;

line-height:1.6;

}

/* editor */

textarea,

input,

button{

font-family:var(wiki-font);

}

/* ---------- Links ---------- */

a{

text-decoration:none;

}

a:hover{

text-decoration:underline;

}

/* ---------- Layout ---------- */

.mw-body-content{

font-size:16px;

line-height:2;

}

/* superscript */

sup,

sub{

line-height:1em;

}

/* ---------- Hatnote ---------- */

.hatnote{

padding:6px 8px;

color:#54595d;

font-size:13px;

}

/* ---------- Infobox ---------- */

.infobox{

border:1px solid #a2a9b1;

background:#f8f9fa;

font-size:90%;

line-height:1.7;

float:left;

margin:0.5em 1em 0.5em 0;

width:22em;

}

.infobox th,

.infobox td{

padding:6px;

text-align:right;

}

.infobox caption{

font-weight:700;

font-size:120%;

padding:6px;

}

/* ---------- Wikitable ---------- */

.wikitable{

border:1px solid #a2a9b1;

border-collapse:collapse;

background:#fff;

}

.wikitable th{

background:#eaecf0;

font-weight:700;

}

.wikitable th,

.wikitable td{

border:1px solid #a2a9b1;

padding:6px;

}

/* ---------- Navbox ---------- */

.navbox{

border:1px solid #a2a9b1;

background:#f8f9fa;

width:100%;

font-size:88%;

text-align:center;

}

.navbox-title{

background:#b3ccff;

font-weight:700;

padding:6px;

}

.navbox-group{

background:#dbe7ff;

white-space:nowrap;

text-align:right;

padding:5px;

}

.navbox-list{

padding:5px;

}

/* ---------- Message Boxes ---------- */

.messagebox{

border:1px solid #a2a9b1;

background:#f8f9fa;

padding:10px;

margin:10px auto;

width:80%;

}

/* ---------- References ---------- */

.references-small{

font-size:90%;

}

ol.references li:target{

background:#ecf0fa;

}

/* ---------- Lists ---------- */

.plainlist ul{

list-style:none;

margin:0;

padding:0;

}

/* ---------- Columns ---------- */

.columns-2 .column{

float:right;

width:50%;

}

.columns-3 .column{

float:right;

width:33%;

}

/* ---------- Main Page Layout ---------- */

.mainPage{

display:flex;

flex-direction:row;

}

.mainRight{

flex:75%;

margin:6px 4px;

}

.mainLeft{

flex:25%;

margin:6px 4px;

padding:1.2rem;

box-shadow:0 0 4px #ccc;

border-radius:4px;

background:#fff;

}

/* ---------- Edit Page ---------- */

#wpSave{

font-weight:bold;

}

/* ---------- Hidden Categories ---------- */

#mw-hidden-catlinks{

font-size:87%;

}

/* ---------- Sidebar ---------- */

#mw-panel{

font-family:var(wiki-font);

}

/* ---------- Footer ---------- */

#footer{

font-family:var(wiki-font);

font-size:13px;

}

/* ---------- Site Notice Banner ---------- */

#site-ad-banner{

position:fixed;

bottom:10px;

left:50%;

transform:translateX(-50%);

background:#fff;

border:1px solid #ccc;

padding:6px;

z-index:9999;

box-shadow:0 0 8px rgba(0,0,0,.2);

max-width:90%;

}

#site-ad-banner img{

max-width:100%;

max-height:120px;

height:auto;

}

#site-ad-banner button{

position:absolute;

top:5px;

right:5px;

border:none;

background:transparent;

font-size:18px;

cursor:pointer;

}

/* ---------- Images ---------- */

.thumbinner{

border:1px solid #c8ccd1;

background:#f8f9fa;

}

/* ---------- Responsive ---------- */

@media screen and (max-width:768px){

body{

font-size:15px;

}

.infobox{

width:100%;

float:none;

}

.mainPage{

flex-direction:column;

}

}

:::