Skip to content

Commit

Permalink
Merge pull request #969 from NickCrews/docs-css
Browse files Browse the repository at this point in the history
Fix docs CSS (weird formatting on docs #968)
  • Loading branch information
fgregg committed Feb 22, 2022
2 parents fa576f9 + 9f0e16b commit 4c2dc7f
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,38 +108,6 @@ h4:before, h4:before, h6:before {
pointer-events: none;
}

/* Padding for method/class permalinks, which require more finesse */
/* (Use fake padding instead of an invisible ::before pseudo-element) */
.rst-content dl:not(.docutils) dt,
.rst-content dl:not(.docutils) dl dt,
.rst-content dl:not(.docutils) dt:first-child {
padding-top: 55px;
margin-top: -55px;
background: none;
border-top: none;
border-left: none;
margin-bottom: 10px;
}

/* Use ::before pseudo-elements to style the method/class permalinks */
.rst-content dl:not(.docutils) dt:before,
.rst-content dl:not(.docutils) dl dt:before {
display: block;
content: " ";
margin-bottom: -23px;
height: 28px;
background: #e7f2fa;
border-top: solid 3px #6ab0de;
}

/* Methods should be grey */
.rst-content dl:not(.docutils) dl dt:before {
background: #f0f0f0;
border-top: none;
border-left: solid 3px #ccc;
margin-left: -5px;
}

/* =================== */
/* RTD theme overrides */
/* =================== */
Expand Down

0 comments on commit 4c2dc7f

Please sign in to comment.