مدیاویکی:Common.css: تفاوت میان نسخه‌ها

بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
 
(۳ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۹۸۹: خط ۹۸۹:
         grid-template-columns: repeat(2, 1fr); /* موبایل ۲ ستونه */
         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;
}
}