Source: tasks.css
Default normal checkboxes
Default doodle checkboxes
The checkboxes style can be chosen in the Style Settings plugin, under Fancy-a-story > Editor > Lists > Checkbox style
.
Normal alternative checkboxes
Doodle alternative checkboxes
- [ ] Incomplete `- [ ]`
- [x] Complete / Done `- [x]`
- [/] complete/done `- [/]`
- [-] Canceled `- [-]`
- [<] Scheduled `- [<]`
- [>] Forwarded `- [>]`
- [?] Question `- [?]`
- [!] Important `- [!]`
- [$] Dollar `- [$]`
- [*] Star `- [*]`
- [a] Anchor `- [a]`
- [b] Bookmark `- [b]`
- [B] Blood `- [B]`
- [e] Error `- [e]`
- [f] Fire `- [f]`
- [g] Goal `- [g]`
- [h] Health `- [h]`
- [H] Heart `- [H]`
- [I] Idea `- [I]`
- [l] Location `- [l]`
- [L] Link `- [L]`
- [m] Mail `- [m]`
- [M] Music `- [M]`
- [n] Note `- [n]`
- [t] Trash `- [t]`
- [T] Travel `- [T]`
- [U] User `- [U]`
- [w] Win `- [w]`
- [W] Write `- [W]`
- [z] Zap `- [z]`
**Pro / Con List:**
- [p] Pros `- [p]`
- [c] Cons `- [c]`
**Trend List:**
- [u] Up `- [u]`
- [d] Down `- [d]`
The alternative checkboxes can be disabled/changed in the Style Settings plugin, under Fancy-a-story > Features > Alternative checkbox
.
The code for one task icon is the following:
:is(.HyperMD-task-line, .task-list-item.task-list-item)[data-task=#{$label}] {
--checkbox-color: #{$color};
--checkbox-icon: #{$icon};
}
:is(.HyperMD-task-line, .task-list-item)[data-task=#{$label}] input[type=checkbox],
:is(.HyperMD-task-line, .task-list-item)[data-task=#{$label}] input[type=checkbox]:hover {
background: none;
border: none;
}
:is(.HyperMD-task-line, .task-list-item)[data-task=#{$label}] input[type=checkbox]::after {
-webkit-mask-size: 100% 100%;
-webkit-mask-position: center;
-webkit-mask-image: var(--checkbox-icon);
background-color: var(--checkbox-color);
}
The code for one checkbox icon with a doodle effect, is the following, where #{i}
is between 1 and 6 and #{$label}
is in (' '
, ''
, 'x'
, 'X'
, '-'
, '/'
).
:is(.HyperMD-task-line, .task-list-item)[data-task="#{$label}"]:nth-child(6n+#{i}) {
--checkbox-color-hover: #{$color};
--checkbox-color: #{$color-hover};
--checkbox-icon: #{$icon};
}
:is(.HyperMD-task-line, .task-list-item) input[type=checkbox],
:is(.HyperMD-task-line, .task-list-item) input[type=checkbox]:hover {
background: none;
border: none;
}
:is(.HyperMD-task-line, .task-list-item) input[type=checkbox]::after {
-webkit-mask-size: 100% 100%;
-webkit-mask-position: center;
-webkit-mask-image: var(--checkbox-icon);
}
:is(.HyperMD-task-line, .task-list-item)[data-task="#{$label}"] input[type=checkbox]::after {
background-color: var(--checkbox-color);
}
:is(.HyperMD-task-line, .task-list-item)[data-task="#{$label}"] input[type=checkbox]:hover::after {
background-color: var(--checkbox-color-hover);
}