مدیاویکی:Common.css: تفاوت میان نسخهها
پرش به ناوبری
پرش به جستجو
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
| خط ۳۲: | خط ۳۲: | ||
} | } | ||
.infobox { | .infobox { | ||
width: 22em; | width: 22em; | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
background-color: #f8f9fa; | background-color: #f8f9fa; | ||
margin: 0 | margin: 0 0 0.5em 1em; /* این خط مهمه: margin-left باعث راستچین شدن میشه */ | ||
padding: 0.2em; | padding: 0.2em; | ||
float: right; | float: right; /* این خط باعث میشه باکس سمت راست بره */ | ||
clear: right; | clear: right; | ||
font-size: 90%; | font-size: 90%; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
line-height: 1.4; | line-height: 1.4; | ||
} | |||
.infobox th, | |||
.infobox td { | |||
border-bottom: 1px solid #a2a9b1; | |||
padding: 0.4em 0.8em; | |||
} | } | ||
| خط ۵۰: | خط ۵۴: | ||
text-align: right; | text-align: right; | ||
background-color: #f0f0ff; | background-color: #f0f0ff; | ||
width: 40%; | width: 40%; | ||
} | } | ||
.infobox .infobox-title { | .infobox .infobox-title { | ||
background-color: #ccf; | background-color: #ccf; | ||
| خط ۷۶: | خط ۶۳: | ||
text-align: center; | text-align: center; | ||
padding: 0.4em; | padding: 0.4em; | ||
} | } | ||
.infobox | .infobox .infobox-header { | ||
background-color: #e0e0ff; | |||
text-align: center; | |||
font-weight: bold; | |||
} | } | ||
نسخهٔ ۲۷ فوریهٔ ۲۰۲۶، ساعت ۱۵:۵۱
/* دستورات این بخش همهٔ کاربران را تحت تاثیر قرار میدهند. */
/* وارد کردن فونت وزیرمتن از گوگل فونت */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;300;400;500;600;700;800;900&display=swap');
/* اعمال فونت روی تمام بخشهای اصلی سایت */
body, h1, h2, h3, h4, h5, h6, p, div, span, a, button, input, textarea, select, .mw-body, .mw-heading, .vector-menu-heading {
font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}
/* تنظیم جهت متن و چینش برای فارسی راستچین بهتر */
body {
direction: rtl;
text-align: right;
}
/* کلاس برای لیست دو ستونه */
.cols-2 {
column-count: 2;
column-gap: 20px;
}
/* کلاس برای لیست سه ستونه */
.cols-3 {
column-count: 3;
column-gap: 20px;
}
/* کلاس برای لیست چهار ستونه */
.cols-4 {
column-count: 4;
column-gap: 20px;
}
.infobox {
width: 22em;
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
margin: 0 0 0.5em 1em; /* این خط مهمه: margin-left باعث راستچین شدن میشه */
padding: 0.2em;
float: right; /* این خط باعث میشه باکس سمت راست بره */
clear: right;
font-size: 90%;
border-collapse: collapse;
line-height: 1.4;
}
.infobox th,
.infobox td {
border-bottom: 1px solid #a2a9b1;
padding: 0.4em 0.8em;
}
.infobox th {
text-align: right;
background-color: #f0f0ff;
width: 40%;
}
.infobox .infobox-title {
background-color: #ccf;
font-size: 125%;
font-weight: bold;
text-align: center;
padding: 0.4em;
}
.infobox .infobox-header {
background-color: #e0e0ff;
text-align: center;
font-weight: bold;
}