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: Custom filtering to event (bold, color, append emoji) #240

Closed
Adrianni opened this issue Jan 5, 2025 · 1 comment
Closed

Comments

@Adrianni
Copy link

Adrianni commented Jan 5, 2025

I would like to request a filter to not only exclude matching events but also apply CSS changes (e.g., color changes, bold text) to highlight the matched events. Additionally it would be great if the filter could add a string (like an emoji) to the event title.

@FamousWolf
Copy link
Owner

You can already do this with card-mod. Every event container div has a data-summery attribute. You can use that in CSS selectors. There's an example in the documentation. You can also use CSS like that to add emoji's. To add a party emoji to events with "Birthday" in the title for example you could do this:

card_mod:
  style: |
    .event[data-summary~="Birthday"] .title:after {
      content: '🥳'
    }

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