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

feature request: hide title #163

Open
PeterMosmans opened this issue Mar 2, 2024 · 3 comments
Open

feature request: hide title #163

PeterMosmans opened this issue Mar 2, 2024 · 3 comments

Comments

@PeterMosmans
Copy link
Contributor

Hi,

Would it be possible to implement the property :notitle: in the .. revealjs-slide directive? Currently (as far as I can tell) there is no option to easily hide the title from a section.

Thanks for your consideration, great extension 👍

@attakei
Copy link
Owner

attakei commented Mar 3, 2024

Thank you for idea! It would be useful to have it.

I think that it may be possible to implement but less easy than revealjs-break directive.

  • When revealjs-break is found, writer copy previous title if `:notitle: is not set (it is ADDING action)
  • But write need remove title from section if revealjs-slide directive having :notitle: (it is DELETING action)

@attakei
Copy link
Owner

attakei commented Mar 3, 2024

If you want to hide only title text on first section of vertical sections, try approarch using CSS as workaround.

/* Example to hide title of second vertical section */
section:nth-child(2) h2 {
  display: none;
}

@PeterMosmans
Copy link
Contributor Author

Thanks for the hints @attakei : For now I solved it with

.. revealjs-section::
   :data-state: notitle

and then in CSS:

.notitle h2 {
  opacity: 0;
}

It's sub-optimal, as the title is briefly shown when the next slide appears, but for now definitely workable.

If you don't mind I'd like to keep this issue open for potential consideration.

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

No branches or pull requests

2 participants