shower / shower

Shower HTML presentation engine
https://shwr.me
Other
4.8k stars 855 forks source link

Auto font-size adjust or splitting by parts #29

Open kizu opened 13 years ago

kizu commented 13 years ago

When there is a lot of content on a slide there is no way to see it right now.

We can detect by js if the content don't fit in a slide and then there can be at least two solutions:

  1. Adjust font-size of content so you could always see the whole slide.
  2. Create sub-slides automagically, so there would be some sigh that the slide is not fully showed like ellipsis and when you press «next slide» it would scroll/show the next part of it.
miripiruni commented 11 years ago

I think this is issue about theme, not shower engine itself. @kizu if you want, you can create theme with that feature ;)

miripiruni commented 11 years ago

Or option two: in ribbon theme create CSS class:

.text-adjust {
  ...
  }

@pepelsbey what do you think? :thumbsdown: or :thumbsup: ?

pepelsbey commented 11 years ago

This is something not related to Shower as engine. There should be some kind of theme plugins for such cases, probably attached to Shower via some public API or something.

Voting :thumbsdown: for text-adjust support in engine itself.

kizu commented 11 years ago

Well, it could be both in a theme or as a plugin. I tend to think of it as a plugin, 'cause such behavior could be helpful for any theme and could be used in a lot of situations.

Are there any thoughts on this “public API”? How would it look like?

miripiruni commented 11 years ago

The last version of Shower already have API. In JS console try to start writing:

shower.

You'll see suggest with list of public methods like shower.next(), shower.go(slideNum), shower.toggleMode(), etc...