feat: shortcode for Jupyter Notebook

This commit is contained in:
Xin
2024-03-29 22:03:14 +00:00
parent ef536af9e8
commit 24de8cb34e
6 changed files with 115 additions and 1 deletions

View File

@ -0,0 +1,31 @@
.hextra-jupyter-code-cell {
* {
scrollbar-gutter: auto;
}
@apply hx-mt-6;
.hextra-jupyter-code-cell-source {
@apply hx-text-sm;
.chroma,
pre {
@apply hx-m-0;
}
}
.hextra-jupyter-code-cell-outputs-container {
@apply hx-text-xs hx-overflow-hidden hx-border hx-border-t-0 hx-rounded-b-xl dark:hx-border-neutral-800;
.hextra-jupyter-code-cell-outputs {
@apply hx-overflow-auto hx-max-h-[50vh];
pre {
@apply hx-p-4;
}
}
}
}
.hextra-jupyter-code-cell:has(.hextra-jupyter-code-cell-outputs) .hextra-jupyter-code-cell-source .chroma {
@apply hx-rounded-b-none;
}