پرش به محتوا

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

از صبح نجف
جزبدون خلاصۀ ویرایش
برچسب: ویرایش مبدأ ۲۰۱۷
جزبدون خلاصۀ ویرایش
برچسب: ویرایش مبدأ ۲۰۱۷
 
(۳۰ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۱: خط ۱:
<style>
<div style="display: flex; flex-wrap: wrap; gap: 25px; justify-content: center; margin: 20px auto 0 auto;">
.responsive-dpl-wrapper {
   
    border: 1px solid #e2e8f0;
    <!-- الگوی اول: مطالب وبلاگ نویس -->
    padding: 1rem;
<div style="flex: 1 1 300px; min-width: 250px; max-width: 600px; border: 1px solid #bae6fd; padding: 18px; background: linear-gradient(80deg, #e5ffe4, #ffffff); border-radius: 16px; box-shadow: 0 8px 20px rgba(14,165,233,0.08);">
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    <div style="font-size: 18px; font-weight: bold; color: #0369a1; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #0ea5e9; text-align: center;">
    border-radius: 1rem;
        📰 وبلاگ نویس
    min-width: 250px;
     </div>
    max-width: 900px;
    <div style="color: #075985;">
    margin: 0 auto;
        <DynamicPageList>
    transition: all 0.3s ease;
category            = وبلاگ نویس
    box-shadow: 0 8px 20px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.02);
count                = 10
     overflow: hidden;
order                = descending
}
ordermethod          = categoryadd
addfirstcategorydate = true
shownamespace        = false
mode                = unordered
suppresserrors      = true
</DynamicPageList>
    </div>
</div>


.responsive-dpl-wrapper .dpl-header {
    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;
}


.responsive-dpl-wrapper ul {
<!-- الگوی سوم: مقالات -->
    display: grid;
<div style="flex: 1 1 300px; min-width: 250px; max-width: 600px; border: 1px solid #bae6fd; padding: 18px; background: linear-gradient(80deg, #e5ffe4, #ffffff); border-radius: 16px; box-shadow: 0 8px 20px rgba(14,165,233,0.08);">
    grid-template-columns: 1fr;
     <div style="font-size: 18px; font-weight: bold; color: #0369a1; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #0ea5e9; text-align: center;">
    gap: 0.6rem;
        📰 مقالات
     list-style: none;
    </div>
    margin: 0;
     <div style="color: #075985;">
     padding: 0;
        <DynamicPageList>
}
category            = مقالات
count                = 10
order                = descending
ordermethod          = categoryadd
addfirstcategorydate = true
shownamespace        = false
mode                = unordered
suppresserrors      = true
</DynamicPageList>
    </div>
</div>


/* حالت دسکتاپ (دو ستونه) */
@media (min-width: 768px) {
    .responsive-dpl-wrapper ul {
        grid-template-columns: repeat(2, 1fr);
    }
}
.responsive-dpl-wrapper 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);
}
.responsive-dpl-wrapper li:hover {
    background: #fefce8;
    border-color: #facc15;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -6px rgba(0,0,0,0.1);
}
.responsive-dpl-wrapper li a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    display: block;
}
.responsive-dpl-wrapper li a:hover {
    color: #d97706;
    text-decoration: underline;
}
/* آیکون کوچک کنار لینک‌ها (اختیاری) */
.responsive-dpl-wrapper li a::before {
    content: "📄 ";
    font-size: 0.8rem;
    opacity: 0.7;
}
</style>
<div class="responsive-dpl-wrapper">
<div class="dpl-header">📰 آخرین مطالب</div>
<DynamicPageList>
namespace = main
count = 16
ordermethod = lastedit
order = descending
mode = unordered
suppresserrors = true
addtitlecategory = false
</DynamicPageList>
</div>
</div>

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

       📰 وبلاگ نویس


       📰 مقالات