مدیاویکی:Common.css: تفاوت میان نسخهها
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
| خط ۲۶۰: | خط ۲۶۰: | ||
.nw-grid { | .nw-grid { | ||
display: | display: grid !important; | ||
gap: 22px; | grid-template-columns: minmax(0, 1fr) 280px !important; | ||
align-items: | gap: 22px !important; | ||
align-items: start !important; | |||
direction: ltr !important; | |||
} | } | ||
.nw- | .nw-main { | ||
width: | grid-column: 1 !important; | ||
width: 100% !important; | |||
display: flex; | min-width: 0 !important; | ||
flex-direction: column; | display: flex !important; | ||
gap: | flex-direction: column !important; | ||
gap: 22px !important; | |||
direction: rtl !important; | |||
} | } | ||
.nw- | .nw-side { | ||
grid-column: 2 !important; | |||
min-width: | width: 280px !important; | ||
display: flex; | min-width: 280px !important; | ||
flex-direction: column; | max-width: 280px !important; | ||
gap: | display: flex !important; | ||
flex-direction: column !important; | |||
gap: 18px !important; | |||
direction: rtl !important; | |||
} | } | ||
.nw-card { | .nw-card { | ||
width: 100%; | display: block !important; | ||
box-sizing: border-box; | width: 100% !important; | ||
max-width: none !important; | |||
box-sizing: border-box !important; | |||
background: #fff; | background: #fff; | ||
border: 1px solid #e5e7eb; | border: 1px solid #e5e7eb; | ||
| خط ۲۸۹: | خط ۲۹۸: | ||
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); | box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); | ||
overflow: hidden; | overflow: hidden; | ||
float: none !important; | |||
clear: both !important; | |||
} | } | ||
| خط ۲۹۶: | خط ۳۰۷: | ||
.nw-card-title { | .nw-card-title { | ||
display: block !important; | |||
font-size: 1.25rem; | font-size: 1.25rem; | ||
font-weight: 800; | font-weight: 800; | ||
color: #111827; | color: #111827; | ||
white-space: normal !important; | |||
} | } | ||
.nw-card-body { | .nw-card-body { | ||
display: block !important; | |||
padding: 14px 20px 22px; | padding: 14px 20px 22px; | ||
line-height: 2; | line-height: 2; | ||
font-size: 0.98rem; | font-size: 0.98rem; | ||
white-space: normal !important; | |||
white-space: | |||
} | } | ||
| خط ۳۵۴: | خط ۳۴۰: | ||
padding: 12px 14px; | padding: 12px 14px; | ||
text-align: center; | text-align: center; | ||
color: #6b7280; | color: #6b7280; | ||
border-top: 1px solid #e5e7eb; | border-top: 1px solid #e5e7eb; | ||
| خط ۳۶۱: | خط ۳۴۶: | ||
.nw-meta { | .nw-meta { | ||
display: grid; | display: grid; | ||
grid-template-columns: 130px 1fr; | grid-template-columns: 130px minmax(0, 1fr); | ||
gap: 10px 18px; | gap: 10px 18px; | ||
} | } | ||
| خط ۳۷۱: | خط ۳۵۶: | ||
.nw-meta-value { | .nw-meta-value { | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
| خط ۴۰۶: | خط ۳۶۹: | ||
.nw-gallery { | .nw-gallery { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(4, 1fr); | grid-template-columns: repeat(4, minmax(0, 1fr)); | ||
gap: 14px; | gap: 14px; | ||
} | } | ||
| خط ۴۲۲: | خط ۳۸۵: | ||
justify-content: space-between; | justify-content: space-between; | ||
align-items: center; | align-items: center; | ||
} | } | ||
@media screen and (max-width: 850px) { | @media screen and (max-width: 850px) { | ||
.nw-grid { | .nw-grid { | ||
flex-direction: column; | display: flex !important; | ||
flex-direction: column !important; | |||
direction: rtl !important; | |||
} | } | ||
.nw-main { | .nw-main { | ||
order: 1; | order: 1 !important; | ||
width: 100%; | width: 100% !important; | ||
} | } | ||
.nw-side { | .nw-side { | ||
order: 2; | order: 2 !important; | ||
width: 100%; | width: 100% !important; | ||
min-width: 0 !important; | |||
max-width: none !important; | |||
} | } | ||
| خط ۴۵۱: | خط ۴۱۲: | ||
.nw-gallery { | .nw-gallery { | ||
grid-template-columns: repeat(2, 1fr); | grid-template-columns: repeat(2, 1fr); | ||
} | } | ||
} | } | ||