-
Notifications
You must be signed in to change notification settings - Fork 132
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
Fix css for 'sphinx_copybutton' #349
Fix css for 'sphinx_copybutton' #349
Conversation
Thanks a lot for this PR, and sorry for the late reply! As long as the extension is not properly supported on most themes (or at least on the RTD theme), I hesitate to enable it in the What about just adding the CSS fixes? |
Some remarks after working on this:
Just some ideas 😄 |
Hmmm looks like 'Python 2.7 + latest Sphinx' has some problems with |
I've fixed the Travis-CI failure in #363. |
I'm only open to free-and-unlimited-for-open-source services. I don't like if there is a hard limit. Though admittedly, 5k seems quite a lot. Anyway, I have no clue how much work it would be to set something like this up.
Yes, I agree. I started with everything in one file, when everything was still small. Now I think it is a good idea to make separate files at some point, I just didn't really have the motivation to do so. If you like, you can make a PR! |
and 'Arbitrary JavaScript Output (HTML only)'
c3f8c19
to
57ac71e
Compare
which has a smaller font-size for pre
to be compliment with class naming of nbconvert
Hmmm repology is down atm, which is why the tests fail. $ jupyter lab --version
1.2.4 Is it a |
Repology seems to be up again (repology/repology-webapp#101)!
That's not a problem. JupyterLab and the Classic Notebook don't display anything in this case, but |
Thanks for the updates! Please note my attempted CSS changes there: https://github.com/choldgraf/sphinx-copybutton/pull/45 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates!
Now this PR is nicely compact, I like it.
I think I will wait until sphinx_copybutton
makes a new release and will merge this PR afterwards.
Thanks! There's still a problem with the placement of prompts, see #349 (comment). |
Thanks for the update! Now the only thing that's missing is setting the prompt padding to Here is the current rendered version, using the latest release of |
0224b91
to
c1bb0a6
Compare
'nightly' python to 3.8 since nightly python now is 3.9
c1bb0a6
to
4e935c3
Compare
Thanks a lot for your work! |
Thanks for all the detailed reviews 😄 |
Cool, I'm looking forward to this! BTW, I've re-based all theme branches to see if the copy button works. I've found some issues in a few themes: #376 But all in all it looks great in most themes! |
Changed CSS so 'sphinx_copybutton' will look properly out of the box.
padding: 0.4em;
from.input_area, .output_area
to its childpre
padding: 0.4em;
to other.input_area, .output_area
child elements, to keep the styling consistentsphinx_copybutton
to the docsalabaster
andsphinx_rtd_theme
Before:
After:
After sphinx_rtd_theme:
closes #333