مدیاویکی:Common.css: تفاوت میان نسخهها
Esfandiari (بحث | مشارکتها) بدون خلاصۀ ویرایش |
Esfandiari (بحث | مشارکتها) بدون خلاصۀ ویرایش |
||
| (۷ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد) | |||
| خط ۹۲۰: | خط ۹۲۰: | ||
.trust-item:hover { | .trust-item:hover { | ||
transform: scale(1.05); /* افکت کوچک هنگام بردن موس روی لوگو */ | transform: scale(1.05); /* افکت کوچک هنگام بردن موس روی لوگو */ | ||
} | |||
/* کادر اصلی مستطیلی */ | |||
.footer-container { | |||
display: flex; | |||
flex-wrap: wrap; /* برای ریسپانسیو شدن در موبایل */ | |||
background: #ffffff; | |||
border: 2px solid #e1e1e1; | |||
border-radius: 12px; | |||
padding: 20px; | |||
margin-top: 30px; | |||
gap: 20px; | |||
} | |||
/* هر ستون */ | |||
.footer-col { | |||
flex: 1; /* تقسیم مساوی فضا */ | |||
min-width: 250px; /* حداقل عرض برای اینکه در موبایل خوششکل باشد */ | |||
text-align: center; | |||
} | |||
/* عنوانهای داخل کادر */ | |||
.footer-heading { | |||
font-weight: bold; | |||
margin-bottom: 15px; | |||
padding-bottom: 10px; | |||
border-bottom: 1px solid #eee; | |||
color: #444; | |||
} | |||
/* تنظیم کانتینر برای کنار هم قرار دادن نمادها */ | |||
.trust-icons { | |||
display: flex; | |||
justify-content: center; /* وسطچین کردن هر دو در کادر */ | |||
align-items: center; /* تراز عمودی */ | |||
gap: 15px; /* فاصله بین دو نماد */ | |||
flex-wrap: wrap; /* اگر صفحه کوچک شد، به خط بعد بروند */ | |||
} | |||
/* مجبور کردن خروجیهای اینماد و زرینپال به نمایش در یک خط */ | |||
.trust-icons > div, | |||
.trust-icons > a { | |||
display: inline-block !important; | |||
vertical-align: middle; | |||
} | |||
/* استایل اختصاصی برای شبکه استانها */ | |||
.provinces-grid .main-grid { | |||
display: grid; | |||
grid-template-columns: repeat(5, 1fr); /* ۵ ستون */ | |||
gap: 15px; | |||
justify-items: center; | |||
} | |||
/* ریسپانسیو اختصاصی برای استانها */ | |||
@media (max-width: 900px) { | |||
.provinces-grid .main-grid { | |||
grid-template-columns: repeat(3, 1fr); /* تبلت ۳ ستونه */ | |||
} | |||
} | |||
@media (max-width: 500px) { | |||
.provinces-grid .main-grid { | |||
grid-template-columns: repeat(2, 1fr); /* موبایل ۲ ستونه */ | |||
} | |||
} | |||
/* برای نمایش ۱۰ ستونه */ | |||
.cities-grid .main-grid { | |||
display: grid; | |||
grid-template-columns: repeat(10, 1fr); /* ۱۰ ستون */ | |||
gap: 10px; | |||
justify-items: center; | |||
} | |||
/* ریسپانسیو برای تبلت */ | |||
@media (max-width: 1024px) { | |||
.cities-grid .main-grid { | |||
grid-template-columns: repeat(5, 1fr); /* ۵ ستون */ | |||
} | |||
} | |||
/* ریسپانسیو برای موبایل */ | |||
@media (max-width: 600px) { | |||
.cities-grid .main-grid { | |||
grid-template-columns: repeat(3, 1fr); /* ۳ ستون */ | |||
} | |||
} | |||
/* ایجاد فضای کلیکپذیر برای تمام باکس */ | |||
.grid-item { | |||
position: relative; | |||
padding: 0; /* پدینگ را از آیتم بردارید */ | |||
} | |||
.grid-item a { | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
width: 100%; | |||
height: 100%; | |||
padding: 10px; /* پدینگ را به داخل تگ لینک منتقل کردیم */ | |||
text-decoration: none; | |||
color: inherit; | |||
box-sizing: border-box; | |||
} | |||
/* افکت زیبا هنگام هاور (اختیاری) */ | |||
.grid-item:hover { | |||
background-color: #f0f0f0; | |||
border-radius: 5px; | |||
cursor: pointer; | |||
} | |||
.modern-city-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); | |||
gap: 15px; | |||
padding: 20px; | |||
background: #f8fafc; | |||
border-radius: 20px; | |||
} | |||
.city-link { | |||
background: #ffffff; | |||
padding: 15px; | |||
border-radius: 12px; | |||
text-align: center; | |||
text-decoration: none !important; | |||
color: #334155 !important; | |||
font-weight: 500; | |||
border: 1px solid #e2e8f0; | |||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |||
box-shadow: 0 2px 4px rgba(0,0,0,0.02); | |||
} | |||
.city-link:hover { | |||
background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); | |||
color: #ffffff !important; | |||
transform: translateY(-3px); | |||
box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3); | |||
border-color: transparent; | |||
} | } | ||