Skip to content

Commit ac31b72

Browse files
committed
FIX: Narrow scope of style rule for GitHub & GitLab link shortening
Fixes issue pydata#1156
1 parent 75ee781 commit ac31b72

File tree

1 file changed

+7
-4
lines changed
  • src/pydata_sphinx_theme/assets/styles/base

1 file changed

+7
-4
lines changed

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

+7-4
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,13 @@ a {
6161
}
6262

6363
// set up a icon next to the shorten links from github and gitlab
64-
&::before {
65-
color: var(--pst-color-text-muted);
66-
font-family: "Font Awesome 6 Brands";
67-
margin-right: 0.25rem;
64+
.github,
65+
.gitlab {
66+
&::before {
67+
color: var(--pst-color-text-muted);
68+
font-family: "Font Awesome 6 Brands";
69+
margin-right: 0.25rem;
70+
}
6871
}
6972

7073
&.github::before {

0 commit comments

Comments
 (0)