Skip to content

Commit

Permalink
docs: Update CSS with mkdocstrings recommended style
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Mar 27, 2020
1 parent 5df2615 commit 7e3d31f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
30 changes: 27 additions & 3 deletions docs/custom.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,38 @@
/* Indentation. */
div.doc-contents:not(.first) {
padding-left: 25px;
border-left: 4px solid rgba(230, 230, 230);
margin-bottom: 80px;
}

h4.doc::before {
/* Don't capitalize names. */
h5.doc-heading {
text-transform: none !important;
}

/* Don't use vertical space on hidden ToC entries. */
h6.hidden-toc {
margin: 0 !important;
position: relative;
top: -70px;
}
h6.hidden-toc::before {
margin-top: 0 !important;
padding-top: 0 !important;
}

h5.doc-heading {
text-transform: none !important;
/* Don't show permalink of hidden ToC entries. */
h6.hidden-toc a.headerlink {
display: none;
}

/* Avoid breaking parameters name, etc. in table cells. */
td code {
word-break: normal !important;
}

/* For pieces of Markdown rendered in table cells. */
td p {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
1 change: 0 additions & 1 deletion docs/reference/api.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
::: aria2p.api

0 comments on commit 7e3d31f

Please sign in to comment.