مدیاویکی:Common.css: تفاوت میان نسخهها
Esfandiari (بحث | مشارکتها) بدون خلاصۀ ویرایش |
Esfandiari (بحث | مشارکتها) بدون خلاصۀ ویرایش |
||
| (۲۴ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد) | |||
| خط ۸۲۱: | خط ۸۲۱: | ||
} | } | ||
} | } | ||
/* کانتینر اصلی */ | |||
.grid-wrapper { | |||
margin: 20px 0; | |||
padding: 15px; | |||
border: 1px solid #dbe7ff; | |||
border-radius: 8px; | |||
background-color: #ffffff; | |||
} | |||
/* عنوان */ | |||
.grid-title { | |||
text-align: center; | |||
font-size: 18px; | |||
font-weight: bold; | |||
color: #5a8ab8; | |||
margin-bottom: 20px; | |||
padding-bottom: 10px; | |||
border-bottom: 2px solid #9bbbd9; | |||
} | |||
/* شبکه ۱۰ ستونه */ | |||
.main-grid { | .main-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat( | /* فاصله بین باکسها را افزایش دادیم */ | ||
gap: | grid-template-columns: repeat(10, minmax(60px, 1fr)); | ||
gap: 15px; /* مقدار gap از 8px به 15px افزایش یافت */ | |||
justify-items: center; | |||
} | } | ||
.grid-item { | .grid-item { | ||
background-color: # | background-color: #f4f7fa; | ||
border: 2px solid #9bbbd9; | |||
border-radius: 6px; | |||
width: 100%; | |||
height: 40px; | |||
/* تغییر فونت هوشمند: بین 10px تا 13px بسته به عرض صفحه */ | |||
font-size: clamp(10px, 0.8vw + 8px, 13px); | |||
/* جلوگیری از رفتن به خط بعد */ | |||
white-space: nowrap; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
transition: all 0.2s ease-in-out; | |||
padding: 0 5px; | |||
text-align: center; | |||
box-sizing: border-box; | |||
} | |||
.grid-item:hover { | |||
transform: translateY(-2px); | |||
border-color: #5a8ab8; | |||
background-color: #e8f0f8; | |||
} | |||
/* تنظیم ریسپانسیو */ | |||
@media (max-width: 900px) { | |||
.main-grid { | |||
/* در تبلت و موبایل تعداد ستونها را به ۵ کاهش میدهیم تا فشرده نشود */ | |||
grid-template-columns: repeat(5, 1fr); | |||
} | |||
} | |||
@media (max-width: 500px) { | |||
.main-grid { | |||
/* در موبایل کوچکتر به ۳ ستون تغییر کند */ | |||
grid-template-columns: repeat(3, 1fr); | |||
} | |||
} | |||
.grid-wrapper { | |||
margin: 20px 0; | |||
padding: 15px; | |||
border: 1px solid #dbe7ff; | border: 1px solid #dbe7ff; | ||
border-radius: 8px; | border-radius: 8px; | ||
background-color: #ffffff; | |||
/* این خط باعث میشود فونت دقیقاً مطابق بقیه متون سایت باشد */ | |||
font-family: IRANSansXFaNum; | |||
font-size: 16px; /* یا هر سایزی که برای متنهای سایتتان مناسب است */ | |||
} | |||
.trust-item { | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
padding: 10px; | padding: 10px; | ||
background-color: #fff; | |||
border-radius: 8px; | |||
border: 1px solid #eee; | |||
transition: transform 0.3s; | |||
} | |||
.trust-item:hover { | |||
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; | text-align: center; | ||
} | } | ||
.grid- | /* عنوانهای داخل کادر */ | ||
.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) { | @media (max-width: 900px) { | ||
.main-grid { | .provinces-grid .main-grid { | ||
grid-template-columns: repeat(2, 1fr); /* | 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; | |||
} | } | ||