diff --git a/styles.css b/styles.css index b2ebe00..ef42efc 100644 --- a/styles.css +++ b/styles.css @@ -1,6 +1,11 @@ - -.cm-line:not(:hover):not(.cm-active) span.cm-comment { - display: none; +/* + * Hide the todoist_id start and end comment delimiters (%%) + * except when we hover over the line or edit the task + */ +.cm-line:not(:hover):not(.cm-active) > .cm-comment.cm-comment-start:has(~ .dataview.inline-field > .dataview.inline-field-key[data-dv-key="todoist_id"]), +.cm-line:not(:hover):not(.cm-active) > .cm-comment.cm-comment-start:has(~ .dataview.inline-field > .dataview.inline-field-key[data-dv-key="todoist_id"]) ~ .cm-comment.cm-comment-end +{ + display: none; } @@ -8,7 +13,6 @@ - /* .cm-line span.cm-comment { display: none;