How to apply custom tasklist design? #1256
-
I would like to add the custom tasklist item design that is showcased on the Tasklist page but adding it as a CSS doesn't actually apply the change it seems. I use MkDocs and have the I would appreciate help with this. Here's the actual file used. A preview of the checkbox is here: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
If you are using MkDocs Material (which it seems you are) you don't really need to do anything except set The example CSS provided in the documents is only for environments that aren't already doing special styling on the tasklist. If you combine the example CSS on top of Material's custom CSS, you will end up with something not quite like you expect. |
Beta Was this translation helpful? Give feedback.
If you are using MkDocs Material (which it seems you are) you don't really need to do anything except set
custom_checkbox
. The only additional styling we do in our docs is coloring: https://github.com/facelessuser/pymdown-extensions/blob/main/docs/src/scss/extensions/_tasklist.scss.The example CSS provided in the documents is only for environments that aren't already doing special styling on the tasklist. If you combine the example CSS on top of Material's custom CSS, you will end up with something not quite like you expect.