8000 refactor: Keep headings style consistent (CSS) · AntoineD/mkdocstrings-python@92032e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 92032e5

Browse files
committed
refactor: Keep headings style consistent (CSS)
1 parent 1a3580a commit 92032e5

File tree

1 file changed

+38
-6
lines changed
  • src/mkdocstrings_handlers/python/templates/material

1 file changed

+38
-6
lines changed

src/mkdocstrings_handlers/python/templates/material/style.css

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
/* Don't capitalize names. */
2-
h5.doc-heading {
3-
text-transform: none !important;
4-
}
5-
6-
/* Avoid breaking parameters name, etc. in table cells. */
1+
/* Avoid breaking parameter names, etc. in table cells. */
72
.doc-contents td code {
83
word-break: normal !important;
94
}
@@ -28,4 +23,41 @@ h5.doc-heading {
2823
/* Defaults in Spacy table style. */
2924
.doc-param-default {
3025
float: right;
26+
}
27+
28+
/* Keep headings consistent. */
29+
h1.doc-heading,
30+
h2.doc-heading,
31+
h3.doc-heading,
32+
h4.doc-heading,
33+
h5.doc-heading,
34+
h6.doc-heading {
35+
font-weight: 400;
36+
line-height: 1.5;
37+
color: inherit;
38+
text-transform: none;
39+
}
40+
41+
h1.doc-heading {
42+
font-size: 1.6rem;
43+
}
44+
45+
h2.doc-heading {
46+
font-size: 1.2rem;
47+
}
48+
49+
h3.doc-heading {
50+
font-size: 1.15rem;
51+
}
52+
53+
h4.doc-heading {
54+
font-size: 1.10rem;
55+
}
56+
57+
h5.doc-heading {
58+
font-size: 1.05rem;
59+
}
60+
61+
h6.doc-heading {
62+
font-size: 1rem;
3163
}

0 commit comments

Comments
 (0)
0