مدیاویکی:Common.css: تفاوت میان نسخهها
پرش به ناوبری
پرش به جستجو
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
| خط ۳۰: | خط ۳۰: | ||
column-count: 4; | column-count: 4; | ||
column-gap: 20px; | column-gap: 20px; | ||
} | |||
/* استایل کلی باکس اینفو */ | |||
.infobox { | |||
border: 1px solid #a2a9b1; | |||
border-spacing: 3px; | |||
background-color: #f8f9fa; | |||
color: black; | |||
margin: 0.5em 1em 0.5em 0; /* فاصله باکس از اطراف */ | |||
padding: 0.2em; | |||
float: left; /* قرارگیری در سمت چپ برای زبان فارسی */ | |||
clear: left; | |||
font-size: 88%; | |||
line-height: 1.5em; | |||
width: 22em; /* عرض باکس */ | |||
text-align: right; | |||
} | |||
/* استایل عنوان داخل باکس */ | |||
.infobox-title { | |||
text-align: center; | |||
font-size: 125%; | |||
font-weight: bold; | |||
padding: 0.2em; | |||
background-color: #e0e0e0; /* رنگ پسزمینه عنوان */ | |||
} | |||
/* استایل تصویر داخل باکس */ | |||
.infobox-image { | |||
text-align: center; | |||
padding: 10px 0; | |||
} | |||
/* استایل هدرهای داخلی (مثل "زاده"، "وفات") */ | |||
.infobox-header { | |||
background-color: #e0e0e0; | |||
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 {
border: 1px solid #a2a9b1;
border-spacing: 3px;
background-color: #f8f9fa;
color: black;
margin: 0.5em 1em 0.5em 0; /* فاصله باکس از اطراف */
padding: 0.2em;
float: left; /* قرارگیری در سمت چپ برای زبان فارسی */
clear: left;
font-size: 88%;
line-height: 1.5em;
width: 22em; /* عرض باکس */
text-align: right;
}
/* استایل عنوان داخل باکس */
.infobox-title {
text-align: center;
font-size: 125%;
font-weight: bold;
padding: 0.2em;
background-color: #e0e0e0; /* رنگ پسزمینه عنوان */
}
/* استایل تصویر داخل باکس */
.infobox-image {
text-align: center;
padding: 10px 0;
}
/* استایل هدرهای داخلی (مثل "زاده"، "وفات") */
.infobox-header {
background-color: #e0e0e0;
text-align: center;
font-weight: bold;
}