مدیاویکی:Common.css: تفاوت میان نسخهها
پرش به ناوبری
پرش به جستجو
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
| خط ۲۰: | خط ۲۰: | ||
.infobox-universal { | |||
float: left; | |||
clear: left; | |||
width: 320px; | |||
background-color: #f8f9fa; | |||
border: 1px solid #a2a9b1; | |||
box-shadow: 0 2px 6px rgba(0,0,0,0.08); | |||
border-radius: 6px; | |||
margin: 0.5em 1em 0.5em 0; | |||
font-size: 90%; | |||
line-height: 1.6; | |||
border-collapse: collapse; | |||
direction: rtl; | |||
text-align: right; | |||
overflow: hidden; | |||
} | |||
.infobox-universal { | .infobox-universal { | ||
float: left; | float: left; | ||
clear: left; | clear: left; | ||
width: | width: 320px; | ||
background-color: #f8f9fa; | background-color: #f8f9fa; | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
box-shadow: 0 2px 6px rgba(0,0,0,0.08); | |||
border-radius: 6px; | |||
margin: 0.5em 1em 0.5em 0; | margin: 0.5em 1em 0.5em 0; | ||
font-size: 90%; | font-size: 90%; | ||
| خط ۳۶: | خط ۵۱: | ||
direction: rtl; | direction: rtl; | ||
text-align: right; | text-align: right; | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.infobox-universal th { | .infobox-universal th { | ||
background-color: #b0c4de; | background-color: #b0c4de; | ||
| خط ۴۶: | خط ۵۹: | ||
font-weight: bold; | font-weight: bold; | ||
font-size: 1.1em; | font-size: 1.1em; | ||
text-align: center; | text-align: center; | ||
} | } | ||
.infobox-universal td { | .infobox-universal td { | ||
padding: 8px; | padding: 8px; | ||
| خط ۵۷: | خط ۶۸: | ||
} | } | ||
.infobox-label { | .infobox-label { | ||
background-color: #eef3fb; | background-color: #eef3fb; | ||
| خط ۶۴: | خط ۷۴: | ||
} | } | ||
.infobox-image td { | .infobox-image td { | ||
text-align: center; | text-align: center; | ||
| خط ۷۱: | خط ۸۰: | ||
} | } | ||
.infobox-universal td img { | .infobox-universal td img { | ||
display: block; | display: block; | ||
| خط ۷۸: | خط ۸۶: | ||
height: auto; | height: auto; | ||
} | } | ||
.infobox-section td { | .infobox-section td { | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
padding: 10px; | padding: 10px 0; | ||
font-size: 1em; | font-size: 1em; | ||
border-top: 2px solid #a2a9b1; | border-top: 2px solid #a2a9b1; | ||
border-bottom: 2px solid #a2a9b1; | border-bottom: 2px solid #a2a9b1; | ||
background: transparent; | |||
} | } | ||
.infobox-universal tr:last-child td { | .infobox-universal tr:last-child td { | ||
border-bottom: none; | border-bottom: none; | ||
} | } | ||
نسخهٔ ۲۷ فوریهٔ ۲۰۲۶، ساعت ۲۳:۴۹
/* دستورات این بخش همهٔ کاربران را تحت تاثیر قرار میدهند. */
/* وارد کردن فونت وزیرمتن از گوگل فونت */
@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;
clear: left;
width: 320px;
background-color: #f8f9fa;
border: 1px solid #a2a9b1;
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
border-radius: 6px;
margin: 0.5em 1em 0.5em 0;
font-size: 90%;
line-height: 1.6;
border-collapse: collapse;
direction: rtl;
text-align: right;
overflow: hidden;
}
.infobox-universal {
float: left;
clear: left;
width: 320px;
background-color: #f8f9fa;
border: 1px solid #a2a9b1;
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
border-radius: 6px;
margin: 0.5em 1em 0.5em 0;
font-size: 90%;
line-height: 1.6;
border-collapse: collapse;
direction: rtl;
text-align: right;
overflow: hidden;
}
.infobox-universal th {
background-color: #b0c4de;
padding: 10px;
font-weight: bold;
font-size: 1.1em;
text-align: center;
}
.infobox-universal td {
padding: 8px;
border-bottom: 1px solid #e0e0e0;
vertical-align: middle;
}
.infobox-label {
background-color: #eef3fb;
font-weight: bold;
width: 35%;
}
.infobox-image td {
text-align: center;
background: #ffffff;
padding: 12px;
}
.infobox-universal td img {
display: block;
margin: auto;
max-width: 100%;
height: auto;
}
.infobox-section td {
font-weight: bold;
text-align: center;
padding: 10px 0;
font-size: 1em;
border-top: 2px solid #a2a9b1;
border-bottom: 2px solid #a2a9b1;
background: transparent;
}
.infobox-universal tr:last-child td {
border-bottom: none;
}