الگو:کانتینر 4تصویر/بخشنده: تفاوت میان نسخهها
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
| خط ۱: | خط ۱: | ||
<html lang="fa" dir="rtl"> | <html lang="fa" dir="rtl"> | ||
<head> | <head> | ||
| خط ۵۳: | خط ۵۲: | ||
background: var(--surface); | background: var(--surface); | ||
color: var(--ink); | color: var(--ink); | ||
font-family: Iransans; | font-family: Iransans; /* Assuming 'Iransans' is a locally available font or correctly linked */ | ||
line-height: 1.8; | line-height: 1.8; | ||
} | } | ||
| خط ۱۰۰: | خط ۹۹: | ||
font-weight: 800; | font-weight: 800; | ||
line-height: 1.45; | line-height: 1.45; | ||
/* Ensure text does not break vertically */ | |||
white-space: normal; | |||
word-break: keep-all; /* Prefer to keep words together */ | |||
overflow-wrap: normal; /* Allow standard breaking */ | |||
hyphens: none; /* No hyphenation */ | |||
writing-mode: horizontal-tb; /* Explicitly set horizontal writing mode */ | |||
text-orientation: mixed; /* Default orientation */ | |||
} | |||
} | |||
.section-heading p { | .section-heading p { | ||
| خط ۳۹۲: | خط ۳۸۶: | ||
} | } | ||
@media (max-width: 480px) { | /* Mobile specific adjustments for text orientation and wrapping */ | ||
@media (max-width: 480px) { | |||
.section-heading h2 { | |||
font-size: 1.45rem; /* Slightly larger on very small screens */ | |||
line-height: 1.8; | |||
white-space: normal; | |||
word-break: break-word; /* Allow words to break if necessary */ | |||
overflow-wrap: break-word; /* Ensure wrapping */ | |||
writing-mode: horizontal-tb; /* Force horizontal */ | |||
text-orientation: mixed; /* Keep mixed for potential vertical context if any */ | |||
text-wrap: balance; /* Balance text across lines */ | |||
} | |||
} | |||
/* General override for headings to ensure no vertical text */ | |||
.section-heading, | |||
.section-heading h2 { | |||
width: 100%; | |||
min-width: 0; | |||
writing-mode: horizontal-tb !important; | |||
text-orientation: mixed !important; | |||
} | |||
/* Ensuring h2 specifically behaves horizontally */ | |||
.section-heading h2 { | .section-heading h2 { | ||
display: block; /* Ensure it's a block element */ | |||
white-space: normal; | white-space: normal; | ||
word-break: | word-break: break-word; /* Allow breaking for long words */ | ||
overflow-wrap: | overflow-wrap: break-word; /* Standard property for wrapping */ | ||
text-wrap: balance; | writing-mode: horizontal-tb; /* Horizontal writing mode */ | ||
text-orientation: mixed; /* Can be mixed, but primarily horizontal */ | |||
text-wrap: balance; /* Text wrap for balance */ | |||
} | } | ||
@media (max-width:768px){ | /* Adjustments for medium-sized screens if needed, ensure horizontal text */ | ||
@media (max-width: 768px) { | |||
.section-heading h2 { | |||
font-size: 1.45rem; | |||
line-height: 1.8; | |||
word-break: break-word; /* Break words if needed */ | |||
overflow-wrap: break-word; | |||
writing-mode: horizontal-tb; /* Explicitly horizontal */ | |||
text-orientation: mixed; | |||
} | |||
} | } | ||
</style> | </style> | ||
| خط ۵۳۲: | خط ۵۲۴: | ||
<img | <img | ||
class="donation-card__image" | class="donation-card__image" | ||
src="https://dl.faraghaib.ir/m/109/ | src="https://dl.faraghaib.ir/m/109/109m08.jpg" | ||
alt="اطلاعات لازم درباره اهدای جنین" | alt="اطلاعات لازم درباره اهدای جنین" | ||
width="auto" /* Changed from padding attribute */ | |||
width= auto | height="auto" /* Changed from width attribute */ | ||
height= auto | |||
loading="lazy" | loading="lazy" | ||
/> | /> | ||