-
-
Notifications
You must be signed in to change notification settings - Fork 416
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
RISE should provide a mechanism to add custom CSS and custom JS #95
Comments
Another option is start the notebook with
or in case it is just a style for the current notebook, an inline style:
|
Thanks for the suggestion @adl, but I feel that ones are still workaround... we need to provide a mechanism for styling customization... a
|
As an user I'd prefer @damianavila suggestion. That said, @adl is something already ready to use, so why not list it as a valid option? There's also another evolution somehow related to customization. Let's say an user (like me jeje) wants to:
The solution now is to tweak with RISE main js file (unless I'm missing something, which can easily be the case). @damianavila proposal could also apply to load a rise.js file for this kind of things.. More specifically to issue 1, a maybe cleaner solution would be to add some empty divs to the ".reveal" element(s) that user can hook to easily customize slide elements like footers, headers, etc.. (I already have some work done to get this... before opening an issue and a related PR I'd like to know others opinion) |
I am delighted by the idea to have a rise.js too to hack on the js side... it crossed my mind several times in the past.
Not sure about that, maybe it is the path... probably I need a prototype to get a better idea/sense... so open your PR when you are ready to do it... |
+1 as it would help to create a custom configuration for reveal.js (e.g. keyboards shortcuts) |
I'm trying out RISE with the bash kernel and the solutions proposed here don't work (unless I'm missing something) because I can't execute python code to use ConfigManager to configure RISE. |
Yep, that;s reasonable....
In fact RISE, work with any kernel... it is kernel agnostic... only the installation is pythonic... but it can be installed in several ways and with several language, it is just a matter to write the tool to put the files in the correct places... Can you start another issue where we can discuss non-pythonci alternatives installations? Thanks!
A config element in the notebook itself is interesting... the question is what kind of ID we should built on top of that... or maybe just left people configure there using text (which is not much better than configure outside the notebook... |
see for example PR #200 (Add companion .css file) One issue is version control: if you put an .ipynb file into version control, it makes sense to have CSS also put into version control along with it. I will have to try the |
Hello, sorry to bother, but do we have any update here? I see that there are now some instructions for custom code in the repo homepage. I didn't notice that one year ago, am I right? |
Still not a simple way to further customize thing on the css... but you can actually customized a lot of the reveal.js options with the instructions provided in the README that you linked. |
As you see there are some PRs opened but I did not have time to deal with them yet. |
Thanks for the clarification. Is that custom code enough for the keybindings instead? |
If you want to customize keybindings you need to do it in the source for now... we have been discussion about a rise.js or custom.js to customize the js behavior but we don't have that functionality yet... |
Please consider the following use case: You're in front of a lecture room full of students, 5 mins before the start, and find that the resolution of the provided projector is very low. You quickly need to fiddle with the css to adjust font sizes etc. for your presentation, so it works properly (may have been a real scenario ;-) ). Luckily I had CSS in a cell in the notebook which, while considered poor style, is IMHO the best way to bind specific settings to a presentation.
So one solution that is pretty close to what already exists, would be:
|
The current possible solutions for this are:
The last 2 are quite invasive and implies touching things that shouldn't be touched "frequently". The first is OK(ish) in the sense that someone could build ipynb profile "for presentation".
Maybe a rise.css placed in the notebook profile folder that is loaded if found is a more clean solution?
The text was updated successfully, but these errors were encountered: