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

reuse template with slide specific highlighting? #659

Open
ratnanil opened this issue Sep 22, 2021 · 1 comment
Open

reuse template with slide specific highlighting? #659

ratnanil opened this issue Sep 22, 2021 · 1 comment
Labels

Comments

@ratnanil
Copy link

I'm using remark to solve a problem that couldn't solve with any other software till now. I've specified a template slide that I reuse throughout my slides (e.g. "the points we will cover today"), but every time I reuse the slide I want to highlight a specific point.

Since I'm a css / html newb, the way I'm doing this now is as follows:

(see also http://jsfiddle.net/zjb5a92g/)

my question: is there a more elegant approach to this (especially concerning the css part)

html

<textarea id="source">
name: points
layout: true

<ul>
  <li id = "first">first</li>
  <li id = "second">second</li>
  <li id = "third">third</li>
  <li id = "fourth">fourth</li>
</ul>

---
template: points
class: first

</textarea>

css

.first #first, 
.second #second, 
.third #third,
.fourth #fourth,
.fifth #fifth{
  color: hotpink;
}
@tripu tripu added the question label Sep 23, 2021
@ratnanil
Copy link
Author

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

No branches or pull requests

2 participants