@docubook/markdown 2.0.0-beta.0 → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/styles.css +69 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docubook/markdown",
3
- "version": "2.0.0-beta.0",
3
+ "version": "2.0.0-beta.1",
4
4
  "description": "Portable MDX components and framework adapters for DocuBook",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/styles.css CHANGED
@@ -33,3 +33,72 @@
33
33
  grid-template-columns: var(--docubook-card-group-template, repeat(2, minmax(220px, 1fr)));
34
34
  }
35
35
  }
36
+
37
+ /* GFM Task Lists */
38
+ .contains-task-list,
39
+ .prose .contains-task-list {
40
+ list-style-type: none !important;
41
+ list-style: none !important;
42
+ padding-left: 0 !important;
43
+ margin-left: 0 !important;
44
+ }
45
+
46
+ .contains-task-list .contains-task-list,
47
+ .prose .contains-task-list .contains-task-list {
48
+ padding-left: 1.5rem !important;
49
+ margin-top: 0.25rem !important;
50
+ margin-bottom: 0.25rem !important;
51
+ }
52
+
53
+ .contains-task-list > .task-list-item,
54
+ .prose .contains-task-list > .task-list-item {
55
+ list-style-type: none !important;
56
+ list-style: none !important;
57
+ padding-left: 0 !important;
58
+ margin-top: 0.35rem;
59
+ margin-bottom: 0.35rem;
60
+ }
61
+
62
+ .contains-task-list > .task-list-item::marker,
63
+ .contains-task-list > .task-list-item::before,
64
+ .prose .contains-task-list > .task-list-item::marker,
65
+ .prose .contains-task-list > .task-list-item::before {
66
+ content: none !important;
67
+ display: none !important;
68
+ }
69
+
70
+ .task-list-item > input[type="checkbox"] {
71
+ appearance: none;
72
+ -webkit-appearance: none;
73
+ width: 1rem;
74
+ height: 1rem;
75
+ margin: 0 0.55rem 0 0;
76
+ border: 1.5px solid hsl(var(--foreground, 220 30% 15%));
77
+ border-radius: 0.25rem;
78
+ background-color: transparent;
79
+ outline: none;
80
+ flex-shrink: 0;
81
+ cursor: default;
82
+ pointer-events: none;
83
+ position: relative;
84
+ display: inline-grid;
85
+ place-content: center;
86
+ vertical-align: -0.15em;
87
+ transition:
88
+ background-color 0.15s,
89
+ border-color 0.15s;
90
+ }
91
+
92
+ .task-list-item > input[type="checkbox"]:checked {
93
+ background-color: hsl(var(--primary, 210 81% 56%));
94
+ border-color: hsl(var(--primary, 210 81% 56%));
95
+ }
96
+
97
+ .task-list-item > input[type="checkbox"]:checked::after {
98
+ content: "";
99
+ width: 0.3rem;
100
+ height: 0.55rem;
101
+ border-right: 2px solid hsl(var(--primary-foreground, 210 40% 98%));
102
+ border-bottom: 2px solid hsl(var(--primary-foreground, 210 40% 98%));
103
+ transform: rotate(45deg) translate(-0.5px, -1px);
104
+ }