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

Add class when alertify-logs is empty #78

Closed
johnsardine opened this issue Dec 27, 2012 · 3 comments
Closed

Add class when alertify-logs is empty #78

johnsardine opened this issue Dec 27, 2012 · 3 comments

Comments

@johnsardine
Copy link

The design I applied to the log list, contains paddings and it appears even when the log list is empty, I think i would be usefull to add a class for when the list is empty so that people can hide the log list and show when needed. Thank you

@fabien-d
Copy link
Owner

Never considered that use case. An extra class would be a viable option.

A quick workaround, until a solution for all targeted browsers is available, is to use the :empty CSS selector (browser support).

.alertify-logs:empty {
    display: none;
}

fabien-d added a commit that referenced this issue Dec 31, 2012
fabien-d added a commit that referenced this issue Dec 31, 2012
hide logs holder when empty, issue #78
@fabien-d
Copy link
Owner

Fixed with ^ pull request. Will be part of release 0.4.0

@fabien-d
Copy link
Owner

Moved to 0.3.5 release

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