Skip to content

Commit 8fea77a

Browse files
committed
Address review comments
1 parent 02664c6 commit 8fea77a

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

python_docs_theme/static/pydoctheme.css

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
--middle-border: rgb(244, 227, 76);
77
--bad-color: rgb(159 49 51);
88
--bad-border: rgb(244, 76, 78);
9+
--sans-serif-font-stack: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
910
}
1011

1112
/* unset some styles from the classic stylesheet */
@@ -211,7 +212,7 @@ div.sphinxsidebar a:hover {
211212
form.inline-search input,
212213
div.sphinxsidebar input,
213214
div.related input {
214-
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
215+
font-family: var(--sans-serif-font-stack);
215216
border: 1px solid #999999;
216217
font-size: smaller;
217218
border-radius: 3px;
@@ -272,23 +273,24 @@ div.body hr {
272273
/* Persian (fa) uses Vazirmatn, since the default system font stack renders
273274
Arabic-script text poorly on many platforms. */
274275
@font-face {
275-
font-family: "Vazirmatn";
276+
font-family: "Vazirmatn NL";
276277
src: url("fonts/Vazirmatn-NL-VF.woff2") format("woff2");
277278
font-weight: 100 900;
278279
font-style: normal;
279280
font-display: swap;
280281
}
281282

282-
:lang(fa) :is(
283-
body,
284-
div.body :is(h1, h2, h3, h4, h5, h6),
285-
div.sphinxsidebar :is(h3, h4),
283+
:lang(fa) {
284+
:is(div.body, div.sphinxsidebar, .menu-wrapper, div.footer),
285+
:is(div.body, div.sphinxsidebar, .menu-wrapper) :is(h1, h2, h3, h4, h5, h6),
286+
a,
286287
input,
287288
select,
288289
textarea,
289-
button:not(.copybutton)
290-
) {
291-
font-family: Vazirmatn, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
290+
button:not(.copybutton),
291+
label {
292+
font-family: "Vazirmatn NL", var(--sans-serif-font-stack);
293+
}
292294
}
293295

294296
body[dir='rtl'] {

0 commit comments

Comments
 (0)