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

collapsible fragments #1744

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

collapsible fragments #1744

wants to merge 1 commit into from

Conversation

kenegozi
Copy link

see README update for usage

@hakimel
Copy link
Owner

hakimel commented Feb 1, 2017

Thanks. We already have something similar to this in the current-visible fragment style. A current-visible fragment will appear when it is the current fragment, and disappear again as soon as you move to a another fragment.

What you are proposing seems like the same thing, but instead of just fading in and out it would collapse via display none. That said, what do you think about implementing this as "fragment current-display" (As in "only display when it is the current fragment")?

All the CSS this would take is:

.fragment.current-display:not(.current-fragment) {
	display: none;
}

@hakimel hakimel added the feature label Feb 1, 2017
@kenegozi
Copy link
Author

A simpler CSS for sure! would it support various containers (p, div, pre, etc.?)

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

Successfully merging this pull request may close these issues.

2 participants