پرش به محتوا

الگو:آخرین مطالب: تفاوت میان نسخه‌ها

از صبح نجف
جزبدون خلاصۀ ویرایش
برچسب: ویرایش مبدأ ۲۰۱۷
جزبدون خلاصۀ ویرایش
برچسب: ویرایش مبدأ ۲۰۱۷
خط ۱: خط ۱:
<div style="border: 1px solid #e2e8f0; padding: 1rem; background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%); border-radius: 1rem; min-width: 250px; max-width: 900px; margin: 0 auto; transition: all 0.3s ease; box-shadow: 0 8px 20px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.02); overflow: hidden;">
<div style="border: 1px solid #e0e0e0; padding: 15px; background: linear-gradient(145deg, #fefefe, #f5f7fa); border-radius: 12px; min-width: 250px; max-width: 650px; box-shadow: 0 4px 12px rgba(0,0,0,0.05);">
     <div style="font-size: 1.25rem; font-weight: 700; background: linear-gradient(135deg, #1e293b, #0f172a); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 3px solid #3b82f6; text-align: center; letter-spacing: -0.01em;">📰 آخرین مطالب</div>
     <div style="font-size: 18px; font-weight: bold; color: #2c3e50; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #4a90e2; text-align: center;">📰 آخرین مطالب</div>
     <div style="display: grid; grid-template-columns: 1fr; gap: 0.6rem;">
     <DynamicPageList>
        <div style="display: contents;">
            <DynamicPageList>
namespace = main
namespace = main
count = 16
count = 16
خط ۱۲: خط ۱۰:
addtitlecategory = false
addtitlecategory = false
</DynamicPageList>
</DynamicPageList>
        </div>
    </div>
</div>
</div>
<style>
/* استایل اختصاصی برای آیتم‌های لیست و حالت دوستونه */
@media (min-width: 768px) {
    div[style*="max-width: 900px"] > div:last-child > div {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
    }
}
div[style*="max-width: 900px"] ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
div[style*="max-width: 900px"] li {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 0.75rem;
    padding: 0.5rem 0.8rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
div[style*="max-width: 900px"] li:hover {
    background: #fefce8;
    border-color: #facc15;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -6px rgba(0,0,0,0.1);
}
div[style*="max-width: 900px"] li a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    display: block;
}
div[style*="max-width: 900px"] li a:hover {
    color: #d97706;
    text-decoration: underline;
}
div[style*="max-width: 900px"] li a::before {
    content: "📄 ";
    font-size: 0.8rem;
    opacity: 0.7;
}
</style>

نسخهٔ ‏۱ اردیبهشت ۱۴۰۵، ساعت ۱۱:۳۸