Skip to content

Commit

Permalink
Task lists: Show label of done tasks as crossed out text
Browse files Browse the repository at this point in the history
As recommended in #886 this changes the styling of
checked task list items to `line-through` and changes
the color to `--color-text-maxcontrast`.

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
  • Loading branch information
susnux authored and nextcloud-command committed Jul 18, 2022
1 parent 48cb0d4 commit 8b2fba4
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 19 deletions.
14 changes: 10 additions & 4 deletions css/prosemirror.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@ div.ProseMirror {
background-position: center;
cursor: pointer;
}
&.checked:before {
background-image: url('../../img/checkbox-mark.svg');
background-color: var(--color-primary-element);
border-color: var(--color-primary-element);
&.checked{
&:before {
background-image: url('../../img/checkbox-mark.svg');
background-color: var(--color-primary-element);
border-color: var(--color-primary-element);
}
label {
color: var(--color-text-maxcontrast);
text-decoration: line-through;
}
}
label {
display: block;
Expand Down
4 changes: 2 additions & 2 deletions js/editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/editor.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-files.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-files.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-public.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-text.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-text.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-viewer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-viewer.js.map

Large diffs are not rendered by default.

0 comments on commit 8b2fba4

Please sign in to comment.