Skip to content

Commit 52ea00b

Browse files
committed
Add Vazirmatn support to pydoctheme.css
1 parent 77e605d commit 52ea00b

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

python_docs_theme/static/pydoctheme.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Common colours */
1+
/* Common colours and farsi font */
22
:root {
33
--good-color: rgb(41 100 51);
44
--good-border: rgb(79 196 100);
@@ -8,6 +8,24 @@
88
--bad-border: rgb(244, 76, 78);
99
}
1010

11+
@font-face {
12+
font-family: "Vazirmatn";
13+
src: url("fonts/Vazirmatn-VF.woff2") format("woff2");
14+
font-weight: 100 900;
15+
font-style: normal;
16+
font-display: swap;
17+
}
18+
19+
:lang(fa) :is(
20+
body,
21+
div.body :is(h1, h2, h3, h4, h5, h6),
22+
form.inline-search input,
23+
div.sphinxsidebar input,
24+
div.related input
25+
) {
26+
font-family: Vazirmatn, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
27+
}
28+
1129
/* unset some styles from the classic stylesheet */
1230
div.document,
1331
div.body,

0 commit comments

Comments
 (0)