مدیاویکی:Common.css: تفاوت میان نسخهها
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
| خط ۲۱: | خط ۲۱: | ||
.infobox-universal{ | /* تنظیمات کلی باکس */ | ||
float:left; | .infobox-universal { | ||
width: | /* گزینه 1: افزودن سایه برای عمق دادن */ | ||
background:#f8f9fa; | box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); | ||
border:1px solid #a2a9b1; | |||
border- | /* گزینه 2: گرد کردن گوشهها (مقدار بیشتر از قبل) */ | ||
border- | border-radius: 12px; | ||
margin:0 15px 10px 0; | |||
font-size:90%; | float: left; | ||
line-height:1. | width: 300px; | ||
overflow:hidden; | background: #f8f9fa; | ||
border: 1px solid #a2a9b1; /* حاشیه نازک دور کل باکس */ | |||
border-collapse: separate; /* برای نمایش درست گوشههای گرد */ | |||
border-spacing: 0; | |||
margin: 0 15px 10px 0; | |||
font-size: 90%; | |||
line-height: 1.5; | |||
overflow: hidden; | |||
} | } | ||
/* عنوان اصلی */ | /* عنوان اصلی */ | ||
.infobox-universal th{ | .infobox-universal th { | ||
background:#b0c4de; | /* گزینه 3: گرادینت رنگی برای عنوان اصلی */ | ||
padding: | background: linear-gradient(to bottom, #b0c4de, #8ecae6); | ||
text-align:center; | |||
font-weight:bold; | padding: 12px; | ||
font-size:110%; | text-align: center; | ||
border-bottom: | font-weight: bold; | ||
font-size: 110%; | |||
color: #1e3a5f; /* رنگ متن تیرهتر برای خوانایی روی گرادینت */ | |||
/* گزینه 6: خط ضخیمتر زیر عنوان اصلی */ | |||
border-bottom: 3px solid #5a8eb5; | |||
} | } | ||
/* | /* هدر بخشها */ | ||
.infobox- | .infobox-section td { | ||
padding: | /* گزینه 3: گرادینت ملایم برای هدر بخشها */ | ||
border- | background: linear-gradient(to bottom, #e8cce8, #f3d6f3); | ||
font-weight: bold; | |||
text-align: center; | |||
padding: 8px; | |||
font-size: 95%; | |||
/* گزینه 6: حاشیههای مشخص برای هدر بخشها */ | |||
border-top: 1px solid #d3b5d3; | |||
border-bottom: 2px solid #d3b5d3; | |||
} | } | ||
/* | /* سلولهای داده و لیبل */ | ||
.infobox- | .infobox-universal td { | ||
padding: 8px 10px; | |||
vertical-align: top; | |||
/* گزینه 6: حذف حاشیههای بین سطرها برای ظاهر تمیز */ | |||
border-bottom: none !important; | |||
} | } | ||
/* | /* گزینه 4: افکت هاور (رفتن موس روی سطرها) */ | ||
.infobox-universal td | .infobox-universal tr:hover td { | ||
background:# | background-color: #eef6fc !important; /* رنگ آبی بسیار کمرنگ */ | ||
transition: background-color 0.3s ease; /* انیمیشن نرم */ | |||
} | } | ||
/* | /* ستون عنوانها (لیبلها) */ | ||
.infobox- | .infobox-label { | ||
background:# | background: #eef3fb; | ||
font-weight:bold; | font-weight: bold; | ||
width: 40%; | |||
color: #202122; | |||
} | } | ||
/* تصویر */ | /* تصویر */ | ||
.infobox-image td{ | .infobox-image td { | ||
text-align:center; | text-align: center; | ||
padding:10px; | padding: 10px; | ||
background:#ffffff; | background: #ffffff; | ||
border-bottom: 1px solid #e6e6e6; /* نگه داشتن خط زیر عکس */ | |||
border- | |||
/* | |||
} | } | ||
.infobox-image img { | |||
max-width: 100%; | |||
height: auto; | |||
border-radius: 4px; | |||
} | } | ||