@@ -86,44 +86,49 @@ const { title } = Astro.props;
8686 padding-left: 1.5em;
8787 }
8888
89- .prose ul.contains-task-list {
90- padding-left: 0;
91- }
92-
89+ .prose ul.contains-task-list,
9390 .prose li.task-list-item > ul.contains-task-list {
94- padding-left: 1.25em ;
91+ padding-left: 1.5em ;
9592 }
9693
9794 .prose li.task-list-item {
9895 list-style: none;
96+ margin-left: -4px;
97+ }
98+
99+ .prose li.task-list-item > p {
100+ margin: 0;
99101 }
100102
101103 .prose li.task-list-item::marker {
102104 content: "";
103105 }
104106
105- .prose li.task-list-item > input[type="checkbox"] {
107+ .prose li.task-list-item > input[type="checkbox"],
108+ .prose li.task-list-item > p > input[type="checkbox"] {
106109 appearance: none;
107110 -webkit-appearance: none;
108- width: 1.3em ;
109- height: 1.3em ;
110- margin: 0 0.45em 0 0 ;
111- vertical-align: -0.16em ;
111+ width: 1.05em ;
112+ height: 1.05em ;
113+ margin: 0 0.45em 0 -1.5em ;
114+ vertical-align: -0.08em ;
112115 border: 1px solid #a3a3a3;
113- border-radius: 0.2em ;
116+ border-radius: 0.22em ;
114117 background-color: #fff;
115118 background-position: center;
116119 background-repeat: no-repeat;
117- background-size: 70% 70 %;
120+ background-size: 72% 72 %;
118121 }
119122
120- .prose li.task-list-item > input[type="checkbox"]:checked {
121- border-color: #3b82f6;
122- background-color: #3b82f6;
123+ .prose li.task-list-item > input[type="checkbox"]:checked,
124+ .prose li.task-list-item > p > input[type="checkbox"]:checked {
125+ border-color: #1a1a1a;
126+ background-color: #1a1a1a;
123127 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5L6.5 11.5L12.5 4.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
124128 }
125129
126- .prose li.task-list-item > input[type="checkbox"]:disabled {
130+ .prose li.task-list-item > input[type="checkbox"]:disabled,
131+ .prose li.task-list-item > p > input[type="checkbox"]:disabled {
127132 opacity: 1;
128133 }
129134
0 commit comments