مدیاویکی:Common.css: تفاوت میان نسخهها
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
خط ۳۳: | خط ۳۳: | ||
#personal h2 { | #personal h2 { | ||
font-family: var(--defaultFont); | font-family: var(--defaultFont); | ||
} | |||
/* CSS placed here will be applied to all skins */ | |||
@font-face { | |||
font-family: 'vazir'; | |||
src: url('./custom-fonts/vazir-regular/Vazir-Regular.ttf') format('truetype'), | |||
url('./custom-fonts/vazir-regular/Vazir-Regular.woff') format('woff'); | |||
font-weight: normal; | |||
font-style: normal; | |||
font-display: swap; | |||
} | |||
:root { | |||
--defaultFont: vazir, "Roboto", sans-serif; | |||
} | |||
html, | |||
body { | |||
font-family: var(--defaultFont) !important; | |||
font-weight: 400; | |||
} | |||
h1 { | |||
font-weight: 900; | |||
} | |||
main#content, | |||
.mw-body, | |||
.mw-body h1, | |||
.mw-body-content h1, | |||
.mw-body-content h2, | |||
h1[class^=mw-], | |||
button, | |||
#personal h2 { | |||
font-family: var(--defaultFont); | |||
} | |||
span[class^=mw-]{ | |||
font-family: var(--defaultFont); | |||
} | } |
نسخهٔ ۲۷ آوریل ۲۰۲۴، ساعت ۰۸:۲۸
/* CSS placed here will be applied to all skins */ @font-face { font-family: 'vazir'; src: url('./custom-fonts/vazir-regular/Vazir-Regular.ttf') format('truetype'), url('./custom-fonts/vazir-regular/Vazir-Regular.woff') format('woff'); font-weight: normal; font-style: normal; font-display: swap; } :root { --defaultFont: vazir, "Roboto", sans-serif; } html, body { font-family: var(--defaultFont) !important; font-weight: 400; } h1 { font-weight: 900; } main#content, span[class^="mw-"], .mw-*, button, #personal h2 { font-family: var(--defaultFont); } /* CSS placed here will be applied to all skins */ @font-face { font-family: 'vazir'; src: url('./custom-fonts/vazir-regular/Vazir-Regular.ttf') format('truetype'), url('./custom-fonts/vazir-regular/Vazir-Regular.woff') format('woff'); font-weight: normal; font-style: normal; font-display: swap; } :root { --defaultFont: vazir, "Roboto", sans-serif; } html, body { font-family: var(--defaultFont) !important; font-weight: 400; } h1 { font-weight: 900; } main#content, .mw-body, .mw-body h1, .mw-body-content h1, .mw-body-content h2, h1[class^=mw-], button, #personal h2 { font-family: var(--defaultFont); } span[class^=mw-]{ font-family: var(--defaultFont); }