-
Notifications
You must be signed in to change notification settings - Fork 7
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
Some slides don't show at the top #26
Comments
Reveal.js automatically centers everything in both the x- and y-direction, if that's what you are referring to? So if the content isn't tall enough to take up the entire slide, it will be centered. Is this the problem? |
Found this question on their Github: hakimel/reveal.js#3069 |
Ok , so is that with the slideOption? Do I need to add center=false to every slide? I want the slides (words) to start at the top no the center. I need the slides to start at the top because of more words I can put on it. |
Yes exactly. |
It is not implemented in nimiSlides yet, but it should be easy to add a global switch that makes all slides non-centered. You don't get more space by this though, because as it is now, things will move the more content you add. |
I can add it to my current PR later today or tomorrow if you would like to try it locally. |
perfect thanks |
@nixfreak It should be ready for a spin now. Clone this repo and switch to the |
Error: type mismatch: got
|
You should just run it once at the start. Then use normal |
disableVerticalCentering()
slide:
nbText: "Bla bla" |
Oh .. ok ill try it. thanks again. I can't believe I can use just plain html to customize everything , this is too much fun. I have already had comments from co-workers telling me it looks "so professional" lol. |
So I put the disableVerticalCentering() then slide but now I have issues `╭─nixfreak@Cha0sX in repo: nimiSlides on writeDocs [?] is v0.2.2 via v1.6.12 took 5ms ╭─nixfreak@Cha0sX in repo: nimiSlides on writeDocs [?] is v0.2.2 via v1.6.12 took 3ms`
|
Hmm I have no idea what is happening tbh. Where have you placed your sample.nim? Is it in the nimiSlides repo? Then you might have to manually create a |
Fantastic , created a docs directory and moved the sample.nim file and my images directory and everything is at the top now per slide. This is awesome. question: does it make more sense to customize the font size via tags or css? Is there a way to use css for customizing ? |
That's awesome to hear! :D
I would say it depends. If you want to change the font-size globally, you should do it using CSS. But if there is just a few places where you want to change it, it could make sense to add a way to pass in the font size for that specific nb.addStyle: """
:root {
--r-main-font-size: 42px;
}
""" See a list of all the CSS variables here.
This is something for nimib to implement and not something that will be implemented here. But I don't think this is something that will be done in the foreseeable future. To have a |
How can I make sure every slide starts at the top?
The text was updated successfully, but these errors were encountered: