مدیاویکی:Common.css: تفاوت میان نسخهها
پرش به ناوبری
پرش به جستجو
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
| خط ۲۵: | خط ۲۵: | ||
width:320px; | width:320px; | ||
background:#f8f9fa; | background:#f8f9fa; | ||
border:1px solid # | border:1px solid #a2a9b1; | ||
border-radius:6px; | border-radius:6px; | ||
border-collapse:collapse; | border-collapse:collapse; | ||
margin:0 15px 10px 0; | margin:0 15px 10px 0; | ||
font-size:90%; | font-size:90%; | ||
line-height:1.4; | |||
overflow:hidden; | |||
} | } | ||
/* عنوان اصلی */ | |||
.infobox-universal th{ | .infobox-universal th{ | ||
background:#b0c4de; | background:#b0c4de; | ||
| خط ۳۸: | خط ۴۱: | ||
font-weight:bold; | font-weight:bold; | ||
font-size:110%; | font-size:110%; | ||
border-bottom:1px solid #a2a9b1; | |||
} | } | ||
/* سلولها */ | |||
.infobox-universal td{ | .infobox-universal td{ | ||
padding: | padding:6px 8px; | ||
border-bottom:1px solid # | border-bottom:1px solid #e6e6e6; | ||
vertical-align:top; | |||
} | } | ||
/* ستون عنوان */ | |||
.infobox-label{ | .infobox-label{ | ||
background:#eef3fb; | background:#eef3fb; | ||
font-weight:bold; | font-weight:bold; | ||
width:40%; | width:40%; | ||
color:#202122; | |||
} | } | ||
/* دادهها */ | |||
.infobox-universal td:not(.infobox-label){ | |||
background:#ffffff; | |||
} | |||
/* هدر بخشها */ | |||
.infobox-section td{ | .infobox-section td{ | ||
background:#e8cce8; | background:#e8cce8; | ||
font-weight:bold; | font-weight:bold; | ||
text-align:center; | text-align:center; | ||
padding:7px; | |||
font-size:95%; | |||
border-top:1px solid #d3b5d3; | |||
border-bottom:1px solid #d3b5d3; | |||
} | } | ||
/* تصویر */ | |||
.infobox-image td{ | .infobox-image td{ | ||
text-align:center; | text-align:center; | ||
padding: | padding:10px; | ||
background:#ffffff; | |||
} | |||
.infobox-image img{ | |||
max-width:100%; | |||
height:auto; | |||
border-radius:4px; | |||
} | |||
/* حذف خط آخر */ | |||
.infobox-universal tr:last-child td{ | |||
border-bottom:none; | |||
} | |||
/* ریسپانسیو برای موبایل */ | |||
@media screen and (max-width:720px){ | |||
.infobox-universal{ | |||
float:none; | |||
width:100%; | |||
margin:10px 0; | |||
} | |||
} | } | ||
نسخهٔ ۷ مارس ۲۰۲۶، ساعت ۱۲:۴۷
/* دستورات این بخش همهٔ کاربران را تحت تاثیر قرار میدهند. */
/* وارد کردن فونت وزیرمتن از گوگل فونت */
@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, td, th {
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-universal{
float:left;
width:320px;
background:#f8f9fa;
border:1px solid #a2a9b1;
border-radius:6px;
border-collapse:collapse;
margin:0 15px 10px 0;
font-size:90%;
line-height:1.4;
overflow:hidden;
}
/* عنوان اصلی */
.infobox-universal th{
background:#b0c4de;
padding:8px;
text-align:center;
font-weight:bold;
font-size:110%;
border-bottom:1px solid #a2a9b1;
}
/* سلولها */
.infobox-universal td{
padding:6px 8px;
border-bottom:1px solid #e6e6e6;
vertical-align:top;
}
/* ستون عنوان */
.infobox-label{
background:#eef3fb;
font-weight:bold;
width:40%;
color:#202122;
}
/* دادهها */
.infobox-universal td:not(.infobox-label){
background:#ffffff;
}
/* هدر بخشها */
.infobox-section td{
background:#e8cce8;
font-weight:bold;
text-align:center;
padding:7px;
font-size:95%;
border-top:1px solid #d3b5d3;
border-bottom:1px solid #d3b5d3;
}
/* تصویر */
.infobox-image td{
text-align:center;
padding:10px;
background:#ffffff;
}
.infobox-image img{
max-width:100%;
height:auto;
border-radius:4px;
}
/* حذف خط آخر */
.infobox-universal tr:last-child td{
border-bottom:none;
}
/* ریسپانسیو برای موبایل */
@media screen and (max-width:720px){
.infobox-universal{
float:none;
width:100%;
margin:10px 0;
}
}