پرش به محتوا

Common.css - فراغیب

از فراغیب
admin>Esfandiari
صفحه‌ای تازه حاوی «--------------------- 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;...» ایجاد کرد
admin>Esfandiari
بدون خلاصۀ ویرایش
خط ۱: خط ۱:
/* --------------------- Begin Font Style ----------------- */
/* =====================================================
@font-face {
 
    font-family: 'IRANSansXFaNum';
MediaWiki Common.css
font-style: normal;
 
font-weight: 400;
Optimized for Vector 2010 – Persian RTL
font-display: swap;
 
src: url('/w/resources/fonts/IRANSansXFaNum-Regular.woff2') format('woff2'),
Font: IRANSansXFaNum
url('/w/resources/fonts/IRANSansXFaNum-Regular.woff') format('woff');
 
===================================================== */
 
/* ---------- Font ---------- */
 
@font-face{
 
font-family:“IRANSansX”;
 
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:“IRANSansX”,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;
 
}
}


body {
.navbox-title{
font-family: IRANSansXFaNum, Tahoma, 'Noto Serif', 'Droid Arabic Naskh', 'DejaVu Sans', serif !important;
 
background:#b3ccff;
 
font-weight:700;
 
padding:6px;
 
}
}


#content.mw-body  h1, #content.mw-body  h2, #content.mw-body  #firstHeading,
.navbox-group{
#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,
background:#dbe7ff;
#template-documentation, #documentation-meta-data{
 
font-family: Shabnam, Tahoma, 'Noto Serif', 'Droid Arabic Naskh', 'DejaVu Sans', serif !important;
white-space:nowrap;
line-height: 1.6;
 
text-align:right;
 
padding:5px;
 
}
}


textarea {
.navbox-list{
font-family: IRANSansXFaNum, 'Courier New', monospace;
 
padding:5px;
 
}
}


.mw-body-content {
/* ---------- Message Boxes ---------- */
font-kerning: auto;
 
font-size: 16px;
.messagebox{
line-height: 2.0;
 
border:1px solid #a2a9b1;
 
background:#f8f9fa;
 
padding:10px;
 
margin:10px auto;
 
width:80%;
 
}
}


/* Ace editor now supports RTL editing but a monospace font with Arabic should be set for correct functionality */
/* ---------- References ---------- */
.ace_editor { font-family: 'Courier New', monospace!important; }
 
.references-small{
 
font-size:90%;
 
}
 
ol.references li:target{
 
background:#ecf0fa;
 
}
 
/* ---------- Lists ---------- */
 
.plainlist ul{
 
list-style:none;
 
margin:0;
 
padding:0;


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


dfn {
/* ---------- Columns ---------- */
font-style: inherit; /* Reset default styling for <dfn> */
 
.columns-2 .column{
 
float:right;
 
width:50%;
 
}
}
sup, sub {
 
line-height: 1em;     /* Reduce line-height for <sup> and <sub> */
.columns-3 .column{
 
float:right;
 
width:33%;
 
}
}
/* --------------------- End Font Style ----------------- */


/* --------------------- Begin Custom Style ----------------- */
/* ---------- Main Page Layout ---------- */
#siteSub {
 
    display: block;
.mainPage{
    font-size: 0.8125rem;
 
display:flex;
 
flex-direction:row;
 
}
}


.mw-redirectedfrom {
.mainRight{
    display: none;
 
flex:75%;
 
margin:6px 4px;
 
}
}


.hatnote {
.mainLeft{
padding: 5px 7px;
 
color: #54595d;
flex:25%;
font-size: 0.8125rem;
 
overflow: hidden;
margin:6px 4px;
 
padding:1.2rem;
 
box-shadow:0 0 4px #ccc;
 
border-radius:4px;
 
background:#fff;
 
}
}


.mw-parser-output .hatnote {
/* ---------- Edit Page ---------- */
font-style: normal;
 
#wpSave{
 
font-weight:bold;
 
}
}


/* Min dist for h2 header with Samim font أ */
/* ---------- Hidden Categories ---------- */
.mw-body-content h2 {
 
padding: 0.2em 0 0 0;
#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;
 
}
}


.vector-menu-portal .vector-menu-heading, .vector-menu-portal .vector-menu-content li {
  line-height: 1.3;
  font-size: 0.85em;
}
}


/* --------------------- End Custom Style ----------------- */
:::

نسخهٔ ‏۱۹ ژوئن ۲۰۲۶، ساعت ۱۷:۱۵

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

MediaWiki Common.css

Optimized for Vector 2010 – Persian RTL

Font: IRANSansXFaNum

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

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

@font-face{

font-family:IRANSansX;

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:IRANSansX,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;

}

}

:::