Skip to content

Commit

Permalink
Allow paragraph elements to inherit color (#1762)
Browse files Browse the repository at this point in the history
* Allow paragraph elements to inherit color

* Set paragraph color where necessary
  • Loading branch information
gabalafou authored May 8, 2024
1 parent 1b0aec2 commit 4fd33b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/pydata_sphinx_theme/assets/styles/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ body {
p {
margin-bottom: 1.15rem;
font-size: 1em;
color: var(--pst-color-text-base);

/* section header in docstring pages */
&.rubric {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
width: 100%;

p {
color: var(--pst-color-text-muted);
margin: 0 0.3em;
line-height: 1.3em;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

// If there's no logo image, we use a p element w/ the site title
p {
color: var(--pst-color-text-base);
margin-bottom: 0;
}

Expand All @@ -27,16 +28,9 @@
width: auto;
}

// remove underline from brand title on default state
a {
text-decoration: none;
}
&:hover {
&:hover,
&:visited:hover {
@include link-style-hover;
}
&:visited {
&:hover {
@include link-style-hover;
}
color: var(--pst-color-text-base);
}
}

0 comments on commit 4fd33b2

Please sign in to comment.