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

Canceled Events: add CSS class #457

Merged
merged 5 commits into from
Feb 19, 2024
Merged

Conversation

felixhahnweilheim
Copy link
Contributor

This PR adds a CSS class 'canceled' to canceled events. This way themes can manipulate the background color of the event or strike through the title.

Related: #320

Please let me know if I also should add CSS to strike through the title.

@felixhahnweilheim
Copy link
Contributor Author

This CSS would work for month, week, day and list view and only strike through the event title, not the time.

.fc-view .canceled .fc-title, .fc-view .canceled .fc-list-item-title {
  text-decoration: line-through;
}

@luke-
Copy link
Contributor

luke- commented Feb 16, 2024

@felixhahnweilheim Thanks for the PR.

Can you please add a screenshot with the strikethrou? Then we can discuss whether to add it.

@felixhahnweilheim
Copy link
Contributor Author

Screenshot 2024-02-17 at 12-15-19 Calendar - Felix Hahn Development
Screenshot 2024-02-17 at 12-15-41 Calendar - Felix Hahn Development
Screenshot 2024-02-17 at 12-15-31 Calendar - Felix Hahn Development

@luke-
Copy link
Contributor

luke- commented Feb 17, 2024

@Eladnarlea What do you think?

@Eladnarlea
Copy link
Contributor

@luke- I like the idea and think it is useful information. Do we need the extra (canceled) info even if the title has already been struck through?

@felixhahnweilheim do you suggest to leave the time as it is, or is it not possible to strike it through as well?

this is how it looks in apple calendar.
Screenshot 2024-02-19 at 10 53 16 AM

@felixhahnweilheim
Copy link
Contributor Author

I have updated the PR to the following:

Screenshot 2024-02-19 at 19-06-29 Calendar - Felix Hahn Development
Screenshot 2024-02-19 at 19-03-07 Calendar - Felix Hahn Development
Screenshot 2024-02-19 at 19-13-20 Calendar - Felix Hahn Development

@luke-
Copy link
Contributor

luke- commented Feb 19, 2024

@felixhahnweilheim @Eladnarlea Thank you!

@luke- luke- merged commit ace8497 into humhub:master Feb 19, 2024
1 check passed
@felixhahnweilheim felixhahnweilheim deleted the enh-canceled branch February 19, 2024 19:44
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

Successfully merging this pull request may close these issues.

3 participants