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

Per-directory data-* attributes #12

Open
DavidBruant opened this issue Feb 22, 2016 · 1 comment
Open

Per-directory data-* attributes #12

DavidBruant opened this issue Feb 22, 2016 · 1 comment

Comments

@DavidBruant
Copy link

I'm not sure whether this is just a question or a feature request, but here it is:
We've got training material at http://ants.builders/training/#/ that I've been working on converting to prez ( anthill/training#9 ).
Among other things, for each "section", we use a different color. The only way I've been able to implement this was by copy/pasting the color on every slide.

Is there a way to provide data attributes per-(slide-directory)?

@naholyr
Copy link
Member

naholyr commented Mar 2, 2016

Thinking about ways to achieve this with @Delapouite we've come to these options:

  • A file in chapter's directory, dot or no dot, like .prez or attributes.txt
  • A file in project's root → no because it would become a pain to rename a chapter
  • Data-attributes in chapter's first slide → no because it would become a pain to move this slide
  • A way to achieve this with CSS: @Delapouite recently added a class/id to chapter's <section>, and we could easily add a class to <body> reflecting current chapter/slide, so it can be targeted with css

I think we'll go both ways ;) Your opinion on file name?

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

No branches or pull requests

3 participants