Debian Codegraph @

tests/extensions/_assets/tasklist_custom.css

raw
1 .markdown-body .task-list-item {
2 list-style-type: none;
3 }
4
5 .markdown-body .task-list-item input[type="checkbox"] {
6 margin: 0 4px 0.25em -20px;
7 vertical-align: middle;
8 }
9
10 .markdown-body .task-list-control {
11 position: relative;
12 display: inline-block;
13 color: #555;
14 cursor: pointer;
15 }
16
17 .markdown-body .task-list-control input[type="checkbox"] {
18 position: absolute;
19 opacity: 0;
20 z-index: -1; /* Put the input behind the label so it doesn't overlay text */
21 }
22
23 .markdown-body .task-list-indicator {
24 position: absolute;
25 top: -8px;
26 left: -18px;
27 display: block;
28 width: 14px;
29 height: 14px;
30 color: #eee;
31 background-color: #eee;
32 border-radius: .25rem;
33 }
34
35 .markdown-body .task-list-control input[type="checkbox"]:checked + .task-list-indicator::before {
36 display: block;
37 margin-top: -4px;
38 margin-left: 2px;
39 font-size: 16px;
40 line-height: 1;
41 border-radius: 2px;
42 content: "✔";
43 color: #1EBB52;
44 }