@abreen/tada 1.8.0 → 1.8.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.
- package/package.json +1 -1
- package/src/_layout.scss +2 -2
- package/src/print/style.scss +2 -1
- package/src/search/index.ts +8 -1
- package/templates/_bottom.html +0 -5
- package/templates/_footer.html +5 -0
- package/templates/_theme.scss +1 -1
- package/templates/code.html +1 -0
- package/templates/default.html +1 -0
- package/templates/literate.html +1 -0
package/package.json
CHANGED
package/src/_layout.scss
CHANGED
package/src/print/style.scss
CHANGED
package/src/search/index.ts
CHANGED
|
@@ -181,7 +181,14 @@ function render(
|
|
|
181
181
|
|
|
182
182
|
const subTitle = doc.createElement('div');
|
|
183
183
|
subTitle.className = 'title';
|
|
184
|
-
|
|
184
|
+
if (result.template === 'code') {
|
|
185
|
+
subTitle.classList.add('code-page');
|
|
186
|
+
const code = doc.createElement('code');
|
|
187
|
+
code.textContent = sub.title;
|
|
188
|
+
subTitle.appendChild(code);
|
|
189
|
+
} else {
|
|
190
|
+
subTitle.textContent = sub.title;
|
|
191
|
+
}
|
|
185
192
|
subA.appendChild(subTitle);
|
|
186
193
|
|
|
187
194
|
if (sub.excerpt) {
|
package/templates/_bottom.html
CHANGED
package/templates/_theme.scss
CHANGED
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
--icon-search: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'><circle cx='11' cy='11' r='7' stroke='<%= iconColor %>' stroke-width='2' fill='none'/><line x1='16.5' y1='16.5' x2='22' y2='22' stroke='<%= iconColor %>' stroke-width='2' stroke-linecap='round'/></svg>");
|
|
68
68
|
--icon-chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><polyline points='9 18 15 12 9 6' stroke='<%= iconColor %>' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
|
|
69
69
|
--icon-breadcrumb: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'><path d='M3 7 H17 V22' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/><polyline points='11 16 17 22 23 16' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
|
|
70
|
-
--icon-tada: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='
|
|
70
|
+
--icon-tada: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 -960 960 960'><path d='m121-172 151-426q4-11 13.48-17.5 9.47-6.5 20.3-6.5 7.22 0 13.52 2.5T331-612l277 276q5 5.4 7.5 11.7 2.5 6.3 2.5 13.5 0 10.8-6.5 20.3T594-277L167-126q-11 4-20.53.97-9.54-3.04-16.47-9.97-6.93-6.93-9.97-16.47Q117-161 121-172Zm791-506q-8 8-17 8t-17-8l-17-17q-13.8-14-34.5-14T792-695L589-491q-7.36 7-17.18 7T555-491q-7-7-7-16.82t7-17.18l203-204q28.07-28 67.53-28Q865-757 894-729l18 18q7 7.09 7 16.55 0 9.45-7 16.45ZM418-797q7.36-7 17.18-7t16.82 7l17 17q27 28.53 27 67.77Q496-673 469-644l-17 17q-7.36 7-17.18 7T418-627q-7-7-7-16.82t7-17.18l17-17q14-13.79 14-33.5T435-745l-18-18q-7-7.09-7-16.55 0-9.45 8-17.45Zm119-50q7-7 16.82-7t17.18 7l51 51q29 29 29 68.47 0 39.46-29 67.53L521-559q-7.09 7-16.55 7-9.45 0-17.45-7t-8-17.18q0-10.18 8-17.82l101-101q14-13.6 14-34t-14-34l-51-50q-7-7.36-7-17.18t7-16.82Zm340 407q-7 7-16.82 7T843-440l-51-51q-13.6-14-34-14t-34 14l-68 68q-7.36 7-17.18 7T622-423q-7-7-7-16.82t7-17.18l68-68q29-27 68.5-27.5T826-525l51 51q7 7.36 7 17.18T877-440Z'/></svg>");
|
|
71
71
|
|
|
72
72
|
color-scheme: light dark;
|
|
73
73
|
}
|
package/templates/code.html
CHANGED
package/templates/default.html
CHANGED
package/templates/literate.html
CHANGED