Skip to content

Commit 4fd33b2

Browse files
authored
Allow paragraph elements to inherit color (#1762)
* Allow paragraph elements to inherit color * Set paragraph color where necessary
1 parent 1b0aec2 commit 4fd33b2

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

src/pydata_sphinx_theme/assets/styles/base/_base.scss

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ body {
2222
p {
2323
margin-bottom: 1.15rem;
2424
font-size: 1em;
25-
color: var(--pst-color-text-base);
2625

2726
/* section header in docstring pages */
2827
&.rubric {

src/pydata_sphinx_theme/assets/styles/components/_prev-next.scss

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
width: 100%;
66

77
p {
8+
color: var(--pst-color-text-muted);
89
margin: 0 0.3em;
910
line-height: 1.3em;
1011
}

src/pydata_sphinx_theme/assets/styles/components/header/_header-logo.scss

+4-10
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

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

@@ -27,16 +28,9 @@
2728
width: auto;
2829
}
2930

30-
// remove underline from brand title on default state
31-
a {
32-
text-decoration: none;
33-
}
34-
&:hover {
31+
&:hover,
32+
&:visited:hover {
3533
@include link-style-hover;
36-
}
37-
&:visited {
38-
&:hover {
39-
@include link-style-hover;
40-
}
34+
color: var(--pst-color-text-base);
4135
}
4236
}

0 commit comments

Comments
 (0)