پرش به محتوا

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

از صبح نجف
جزبدون خلاصۀ ویرایش
برچسب: ویرایش مبدأ ۲۰۱۷
جزبدون خلاصۀ ویرایش
برچسب: ویرایش مبدأ ۲۰۱۷
خط ۱: خط ۱:
<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="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="display: grid; grid-template-columns: 1fr; gap: 0.6rem;">
        <div style="display: contents;">
            <DynamicPageList>
namespace = main
count = 16
ordermethod = lastedit
order = descending
mode = unordered
suppresserrors = true
addtitlecategory = false
</DynamicPageList>
        </div>
    </div>
</div>
<style>
<style>
.responsive-dpl-wrapper {
/* استایل اختصاصی برای آیتم‌های لیست و حالت دوستونه */
    border: 1px solid #e2e8f0;
@media (min-width: 768px) {
    padding: 1rem;
     div[style*="max-width: 900px"] > div:last-child > div {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
        display: grid !important;
    border-radius: 1rem;
        grid-template-columns: repeat(2, 1fr) !important;
    min-width: 250px;
        gap: 0.6rem !important;
     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*="max-width: 900px"] ul {
.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;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    list-style: none;
     margin: 0;
     margin: 0;
     padding: 0;
     padding: 0;
    list-style: none;
}
}
 
div[style*="max-width: 900px"] li {
/* حالت دسکتاپ (دو ستونه) */
@media (min-width: 768px) {
    .responsive-dpl-wrapper ul {
        grid-template-columns: repeat(2, 1fr);
    }
}
 
.responsive-dpl-wrapper li {
     background: #ffffff;
     background: #ffffff;
     border: 1px solid #eef2f6;
     border: 1px solid #eef2f6;
خط ۵۲: خط ۳۹:
     box-shadow: 0 1px 2px rgba(0,0,0,0.02);
     box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
}
 
div[style*="max-width: 900px"] li:hover {
.responsive-dpl-wrapper li:hover {
     background: #fefce8;
     background: #fefce8;
     border-color: #facc15;
     border-color: #facc15;
خط ۵۹: خط ۴۵:
     box-shadow: 0 6px 12px -6px rgba(0,0,0,0.1);
     box-shadow: 0 6px 12px -6px rgba(0,0,0,0.1);
}
}
 
div[style*="max-width: 900px"] li a {
.responsive-dpl-wrapper li a {
     color: #1e40af;
     color: #1e40af;
     text-decoration: none;
     text-decoration: none;
خط ۶۶: خط ۵۱:
     display: block;
     display: block;
}
}
 
div[style*="max-width: 900px"] li a:hover {
.responsive-dpl-wrapper li a:hover {
     color: #d97706;
     color: #d97706;
     text-decoration: underline;
     text-decoration: underline;
}
}
 
div[style*="max-width: 900px"] li a::before {
/* آیکون کوچک کنار لینک‌ها (اختیاری) */
.responsive-dpl-wrapper li a::before {
     content: "📄 ";
     content: "📄 ";
     font-size: 0.8rem;
     font-size: 0.8rem;
خط ۷۹: خط ۶۱:
}
}
</style>
</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>

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

📰 آخرین مطالب

<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>