[UI] Make buttons inherit Vazirmatn font
Browsers do not inherit font-family on button/input/select/textarea, so all buttons (the contact-reveal box is mostly buttons) rendered in the UA default font instead of Vazirmatn, clashing with the rest of the page. Add a font-family: inherit reset for form controls and on .btn. Verified the CTA and action buttons now compute to Vazirmatn. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -106,8 +106,12 @@ a { color: inherit; text-decoration: none; }
|
||||
.toast-body span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
/* ---------- Buttons ---------- */
|
||||
/* Browsers do NOT inherit font-family on <button>/<input> — without this they render
|
||||
Persian text in the UA default font (Tahoma/Arial), which clashes with Vazirmatn. */
|
||||
button, input, select, textarea, optgroup { font-family: inherit; }
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
font-family: inherit;
|
||||
padding: 9px 18px; border-radius: 10px; font-weight: 700; font-size: 14px;
|
||||
border: 1px solid transparent; cursor: pointer; transition: all .15s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user