چیدمان تصاویر - فراغیب
Esfandiari (بحث | مشارکتها) بدون خلاصۀ ویرایش |
Esfandiari (بحث | مشارکتها) بدون خلاصۀ ویرایش |
||
| (۵۸ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد) | |||
| خط ۱: | خط ۱: | ||
<div style="display: flex; justify-content: center;"> | <!-- شروع کانتینر اصلی گالری با پسزمینه آبی آسمانی ابر و بادی و چیدمان وسطچین --> | ||
<div style="max-width: 1000px; margin: 0px auto; padding: 10px; direction: rtl; text-align: center; | |||
background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); /* ایجاد رنگ پسزمینه ابر و بادی */ | |||
border-radius: 16px; /* منحنی کردن گوشههای کل باکس گالری */ | |||
box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* ایجاد سایه ملایم دور کادر */ | |||
|- | box-sizing: border-box;{{{style|}}};"> | ||
| style=" | |||
<!-- ردیف اول: دو عکس بزرگ (همواره کنار هم در موبایل و دسکتاپ بدون شکستن خط) --> | |||
| style=" | <div style="display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; width: 100%;"> | ||
<!-- عکس بزرگ اول --> | |||
<div style="flex: 1 1 calc(50% - 5px); max-width: 485px; min-width: 0; display: flex; flex-direction: column; align-items: center; border: 5px solid #3b82f6; background-color: #ffffff; padding: 1px; box-sizing: border-box; | |||
border-radius: 15px; /* منحنی کردن گوشههای کادر تصویر بزرگ اول */ | |||
{{{first big border style|}}};"> | |||
<!-- نگهدارنده تصویر بزرگ جهت برش و همترازی با نسبت ۴:۳ --> | |||
<div style="width: 100%; aspect-ratio: 4/3; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 9px;{{{first big picture style|}}};"> | |||
[[File:{{{تصویر1}}}|thumb|link=|class=not-resized|center]] | |||
</div> | |||
<!-- کپشن تکخطی تصویر بزرگ اول: فونت کوچکشده به 75% برای سازگاری کامل موبایل --> | |||
<div style="margin-top: 3px; margin-bottom: 3px; font-size: 75%; color: #000000; font-weight: bold; text-align: center; width: 95%; | |||
line-height: 1.1; border: none; background: transparent; box-shadow: none; outline: none; | |||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;{{{first caption big style|}}};"> | |||
توضیحات تصویر 1 | |||
</div> | |||
</div> | |||
<!-- عکس بزرگ دوم --> | |||
<div style="flex: 1 1 calc(50% - 5px); max-width: 485px; min-width: 0; display: flex; flex-direction: column; align-items: center; border: 5px solid #3b82f6; background-color: #ffffff; padding: 1px; box-sizing: border-box; | |||
border-radius: 15px; /* منحنی کردن گوشههای کادر تصویر بزرگ دوم */ | |||
{{{second big border style|}}};"> | |||
<!-- نگهدارنده تصویر بزرگ جهت برش و همترازی با نسبت ۴:۳ --> | |||
<div style="width: 100%; aspect-ratio: 4/3; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 9px;{{{second big picture style|}}};"> | |||
[[File:{{{تصویر2}}}|thumb|link=|class=not-resized|center]] | |||
</div> | |||
<!-- کپشن تکخطی تصویر بزرگ دوم: فونت کوچکشده به 75% برای سازگاری کامل موبایل --> | |||
<div style="margin-top: 3px; margin-bottom: 3px; font-size: 75%; color: #000000; font-weight: bold; text-align: center; width: 95%; | |||
line-height: 1.1; border: none; background: transparent; box-shadow: none; outline: none; | |||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;{{{second caption big style|}}};"> | |||
توضیحات تصویر2 | |||
</div> | |||
</div> | |||
</div> | |||
<!-- ردیف دوم: چهار عکس کوچک (همواره در یک ردیف در موبایل و دسکتاپ بدون شکستن خط) --> | |||
<div style="display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; justify-content: center; width: 100%;{{{second row style|}}}"> | |||
<!-- عکس کوچک ۱ --> | |||
<div style="display: flex; flex-direction: column; align-items: center; border: 5px solid #3b82f6; background-color: #ffffff; padding: 4px; box-sizing: border-box; | |||
border-radius: 15px; min-width: 0; /* منحنی کردن گوشههای کادر تصویر کوچک اول */ | |||
{{{first small border style|}}};"> | |||
<!-- نگهدارنده تصویر کوچک جهت برش مربعی ۱:۱ --> | |||
<div style="width: 100%; aspect-ratio: 1/1; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 8px;{{{first small picture style|}}};"> | |||
[[File:{{{تصویر کوچک1}}}|thumb|link=|class=not-resized|center]] | |||
</div> | |||
<!-- کپشن تکخطی تصویر کوچک اول: فونت بسیار کوچکشده به 65% برای جلوگیری از تداخل متن --> | |||
<div style="margin-top: 3px; margin-bottom: 1px; font-size: 65%; color: #000000; font-weight: bold; text-align: center; width: 95%; | |||
line-height: 1; border: none; background: transparent; box-shadow: none; outline: none; | |||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;{{{first small caption style|}}};"> | |||
<!-- توضیحات تصویر کوچک1--> | |||
</div> | |||
</div> | |||
<!-- عکس کوچک ۲ --> | |||
<div style="display: flex; flex-direction: column; align-items: center; border: 5px solid #3b82f6; background-color: #ffffff; padding: 4px; box-sizing: border-box; | |||
border-radius: 15px; min-width: 0; /* منحنی کردن گوشههای کادر تصویر کوچک دوم */ | |||
{{{second small border style|}}};"> | |||
<!-- نگهدارنده تصویر کوچک جهت برش مربعی ۱:۱ --> | |||
<div style="width: 100%; aspect-ratio: 1/1; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 8px;{{{second small picture style|}}};"> | |||
[[File:{{{تصویر کوچک2}}}|thumb|link=|class=not-resized|center]] | |||
</div> | |||
<!-- کپشن تکخطی تصویر کوچک دوم: فونت بسیار کوچکشده به 65% برای جلوگیری از تداخل متن --> | |||
<div style="margin-top: 3px; margin-bottom: 1px; font-size: 65%; color: #000000; font-weight: bold; text-align: center; width: 95%; | |||
line-height: 1; border: none; background: transparent; box-shadow: none; outline: none; | |||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;{{{second small caption style|}}};"> | |||
<!--توضیحات تصویر کوچک2--> | |||
</div> | |||
</div> | |||
<!-- عکس کوچک ۳ --> | |||
<div style="display: flex; flex-direction: column; align-items: center; border: 5px solid #3b82f6; background-color: #ffffff; padding: 4px; box-sizing: border-box; | |||
border-radius: 15px; min-width: 0; /* منحنی کردن گوشههای کادر تصویر کوچک سوم */"> | |||
<!-- نگهدارنده تصویر کوچک جهت برش مربعی ۱:۱ --> | |||
<div style="width: 100%; aspect-ratio: 1/1; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 8px;"> | |||
[[File:{{{تصویر کوچک3}}}|thumb|link=|class=not-resized|center]] | |||
</div> | |||
<!-- کپشن تکخطی تصویر کوچک سوم: فونت بسیار کوچکشده به 65% برای جلوگیری از تداخل متن --> | |||
<div style="margin-top: 3px; margin-bottom: 1px; font-size: 65%; color: #000000; font-weight: bold; text-align: center; width: 95%; | |||
line-height: 1; border: none; background: transparent; box-shadow: none; outline: none; | |||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"> | |||
<!--توضیحات تصویر کوچک3--> | |||
</div> | |||
</div> | |||
<!-- عکس کوچک ۴ --> | |||
<div style="display: flex; flex-direction: column; align-items: center; border: 5px solid #3b82f6; background-color: #ffffff; padding: 4px; box-sizing: border-box; | |||
border-radius: 15px; min-width: 0; /* منحنی کردن گوشههای کادر تصویر کوچک چهارم */"> | |||
<!-- نگهدارنده تصویر کوچک جهت برش مربعی ۱:۱ --> | |||
<div style="width: 100%; aspect-ratio: 1/1; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 8px;"> | |||
[[File:{{{تصویر کوچک4}}}|thumb|link=|class=not-resized|center]] | |||
</div> | |||
<!-- کپشن تکخطی تصویر کوچک چهارم: فونت بسیار کوچکشده به 65% برای جلوگیری از تداخل متن --> | |||
<div style="margin-top: 3px; margin-bottom: 1px; font-size: 65%; color: #000000; font-weight: bold; text-align: center; width: 95%; | |||
line-height: 1; border: none; background: transparent; box-shadow: none; outline: none; | |||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"> | |||
<!--توضیحات تصویر کوچک4--> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | </div> | ||