Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permalink buttons are invisible #121

Open
Yura52 opened this issue Oct 25, 2021 · 1 comment
Open

Permalink buttons are invisible #121

Yura52 opened this issue Oct 25, 2021 · 1 comment

Comments

@Yura52
Copy link

Yura52 commented Oct 25, 2021

For some items (from my observations, those are usually API entries automatically generated by Sphinx), the button for getting the permalink is invisible. It is not the case for sphinx-rtd-theme, for example, so I guess it may be a bug.
Screenshot 2021-10-25 at 21 54 11

@Yura52
Copy link
Author

Yura52 commented Oct 29, 2021

I am not a web developer by any means, but this is my solution

# conf.py
...
html_static_path = ['_static']
html_css_files = ['my_styles.css']
/* _static/my_styles.css */

h1 > a.headerlink,
h2 > a.headerlink,
h3 > a.headerlink,
h4 > a.headerlink,
h5 > a.headerlink,
dl.py > dt.sig.sig-object.py a.headerlink {
    /* Example: color: dimgrey !important; */
    color: <your color here> !important;
    display: initial !important;
    transition: initial !important;
}

h1 > a.headerlink:hover,
h2 > a.headerlink:hover,
h3 > a.headerlink:hover,
h4 > a.headerlink:hover,
h5 > a.headerlink:hover,
dl.py > dt.sig.sig-object.py a.headerlink:hover {
    /* Example: color: black !important; */
    color: <your color here> !important;
}

h1:hover > a.headerlink,
h2:hover > a.headerlink,
h3:hover > a.headerlink,
h4:hover > a.headerlink,
h5:hover > a.headerlink,
dl.py > dt.sig.sig-object.py:hover a.headerlink {
    opacity: initial !important;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant