Add class to overdue/future tasks #258
Replies: 4 comments 3 replies
-
Splendid idea, thank you! Some other states could also get custom classes. It's not a high priority right now, but it should also not be too much effort 🤔 |
Beta Was this translation helpful? Give feedback.
-
The optional class parameter should add a custom string as class-name to the highest container element like ‚block-language-tasks‘. The user can then write a custom css snippet containing this class-name in front of the css rules to append custom styles to the whole output.
Tasks Query:
```
not done
due before today
class overdue
```
CSS snippet:
```
.overdue h4.tasks-group-heading {
color: red !important;
}
```
|
Beta Was this translation helpful? Give feedback.
-
A major new CSS styling capability for Tasks has now been released in Tasks 3.0.0. Huge thanks to There is an example in the documentation showing how to style by due date. But also, I've just written up how I am using this new feature specifically to style overdue, due-today and future tasks: Find out more in the comprehensive user docs. |
Beta Was this translation helpful? Give feedback.
-
Great, thank you so much! Really happy with this :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd love to be able to apply some custom CSS to task items that have a due date that is in the past or the future, so I can style these differently. In order to easily accomplish this, it might be nice if those items have an additional class.
Alternatively, the plugin could offer custom styling for such items, but that's a lot more effort.
Beta Was this translation helpful? Give feedback.
All reactions