Skip to content

Commit

Permalink
docs: Adjust CSS to increase font weight across the docs (#5363)
Browse files Browse the repository at this point in the history
A common problem users encounter is that the font weight
in the documentation is too thin/hard to read. 

Fixes GH-4146
  • Loading branch information
s-makin authored Jun 4, 2024
1 parent 072711c commit e843f6a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/rtd/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
/** Should be 100 for all headers, 400 for normal text **/

h1, h2, h3, h4, h5, h6, .sidebar-tree .current-page>.reference, button, input, optgroup, select, textarea, th.head {
font-weight: 300;
font-weight: 500;
}

.toc-title {
font-weight: 400;
}

div.page, li.scroll-current>.reference, dl.glossary dt, dl.simple dt, dl:not([class]) dt {
font-weight: 300;
font-weight: 400;
line-height: 1.5;
font-size: var(--font-size--normal);
}
Expand All @@ -25,13 +25,13 @@ strong.command {

/** Side bars (side-bar tree = left, toc-tree = right) **/
div.sidebar-tree {
font-weight: 200;
font-weight: 400;
line-height: 1.5;
font-size: var(--font-size--normal);
}

div.toc-tree {
font-weight: 200;
font-weight: 400;
font-size: var(--font-size--medium);
line-height: 1.5;
}
Expand Down Expand Up @@ -140,12 +140,12 @@ a.headerlink {
border: 0;
border-bottom: 2px solid var(--color-brand-primary);
background-color: var(--color-sidebar-item-background--current);
font-weight:300;
font-weight:400;
}

.sphinx-tabs-tab{
color: var(--color-brand-primary);
font-weight:300;
font-weight:400;
}

.sphinx-tabs-panel {
Expand Down

0 comments on commit e843f6a

Please sign in to comment.