2021-02-11 23:35:32 +08:00
|
|
|
/* Markdown rendered content */
|
|
|
|
|
|
|
|
.markdown {
|
|
|
|
@apply text-gray-700;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown h1 {
|
2021-06-07 17:35:25 +08:00
|
|
|
@apply text-gray-800 font-semibold text-3xl mt-8 mb-4;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.markdown h2 {
|
2021-06-07 17:35:25 +08:00
|
|
|
@apply text-gray-800 font-semibold text-2xl mt-8 mb-4;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.markdown h3 {
|
2021-06-07 17:35:25 +08:00
|
|
|
@apply text-gray-800 font-semibold text-xl mt-8 mb-4;
|
2021-02-17 01:39:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.markdown h4 {
|
2021-06-07 17:35:25 +08:00
|
|
|
@apply text-gray-800 font-semibold text-lg mt-8 mb-4;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
2021-02-17 01:39:52 +08:00
|
|
|
.markdown h5 {
|
2021-06-07 17:35:25 +08:00
|
|
|
@apply text-gray-800 font-semibold text-base mt-8 mb-4;
|
2021-02-17 01:39:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.markdown h6 {
|
2021-06-07 17:35:25 +08:00
|
|
|
@apply text-gray-800 font-semibold text-base mt-8 mb-4;
|
2021-02-17 01:39:52 +08:00
|
|
|
}
|
|
|
|
|
2021-02-11 23:35:32 +08:00
|
|
|
.markdown p {
|
|
|
|
@apply my-4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown ul {
|
2021-06-07 17:35:25 +08:00
|
|
|
@apply list-disc list-outside my-5 ml-8;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.markdown ol {
|
2021-06-07 17:35:25 +08:00
|
|
|
@apply list-decimal list-outside my-5 ml-8;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown ul ul {
|
|
|
|
list-style-type: circle;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown ul ul ul {
|
|
|
|
list-style-type: square;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
2021-10-20 20:09:50 +08:00
|
|
|
.markdown .task-list-item {
|
|
|
|
list-style-type: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown .task-list-item input[type="checkbox"] {
|
|
|
|
margin-left: -1.1rem;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2021-02-11 23:35:32 +08:00
|
|
|
.markdown ul > li,
|
|
|
|
.markdown ol > li {
|
|
|
|
@apply my-1;
|
|
|
|
}
|
|
|
|
|
2021-10-22 18:01:19 +08:00
|
|
|
.markdown li > ul,
|
|
|
|
.markdown li > ol {
|
|
|
|
@apply my-0;
|
|
|
|
}
|
|
|
|
|
2021-02-11 23:35:32 +08:00
|
|
|
.markdown blockquote {
|
|
|
|
@apply border-l-4 border-gray-200 pl-4 py-2 my-4 text-gray-500;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown a {
|
|
|
|
@apply font-medium underline text-gray-900 hover:no-underline;
|
|
|
|
}
|
|
|
|
|
2021-04-05 00:55:51 +08:00
|
|
|
.markdown img {
|
|
|
|
@apply mx-auto my-4;
|
|
|
|
}
|
|
|
|
|
2021-02-11 23:35:32 +08:00
|
|
|
.markdown table {
|
2021-06-26 22:47:52 +08:00
|
|
|
@apply w-full my-4 shadow-xl-center rounded-lg tiny-scrollbar;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
2021-06-26 23:02:16 +08:00
|
|
|
.markdown table thead {
|
|
|
|
@apply text-left;
|
|
|
|
}
|
|
|
|
|
2021-02-11 23:35:32 +08:00
|
|
|
.markdown table thead tr {
|
|
|
|
@apply border-b border-gray-200;
|
|
|
|
}
|
|
|
|
|
2021-06-26 22:47:52 +08:00
|
|
|
.markdown table tbody tr {
|
|
|
|
@apply border-b border-gray-200 last:border-b-0 hover:bg-gray-50;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.markdown table th {
|
2021-06-26 22:47:52 +08:00
|
|
|
@apply py-3 px-6 text-gray-700 font-semibold;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.markdown table td {
|
2021-06-26 22:47:52 +08:00
|
|
|
@apply py-3 px-6 text-gray-500;
|
2021-02-21 23:54:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.markdown table th[align="center"],
|
|
|
|
.markdown table td[align="center"] {
|
|
|
|
@apply text-center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown table th[align="right"],
|
|
|
|
.markdown table td[align="right"] {
|
|
|
|
@apply text-right;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.markdown code {
|
2021-06-08 20:53:41 +08:00
|
|
|
@apply py-[0.1rem] px-2 rounded-lg text-sm align-middle font-mono bg-gray-200;
|
2022-12-17 06:15:26 +08:00
|
|
|
font-variant-ligatures: none;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
2021-06-09 17:02:47 +08:00
|
|
|
.markdown pre {
|
2024-01-24 23:01:47 +08:00
|
|
|
@apply my-4 flex overflow-hidden;
|
2021-06-09 17:02:47 +08:00
|
|
|
}
|
|
|
|
|
2021-02-11 23:35:32 +08:00
|
|
|
.markdown pre > code {
|
|
|
|
/* Match the editor colors */
|
2022-01-16 20:50:44 +08:00
|
|
|
@apply p-4 rounded-lg align-middle flex-1 overflow-auto bg-editor text-editor font-editor;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
2021-05-13 20:23:52 +08:00
|
|
|
.markdown kbd {
|
|
|
|
@apply py-[0.2rem] px-2 rounded-lg text-xs align-middle font-mono border border-gray-300;
|
|
|
|
box-shadow: #cad5e0 0px -2px 0px 0px inset;
|
|
|
|
}
|
|
|
|
|
2021-04-05 00:55:51 +08:00
|
|
|
.markdown > :first-child {
|
2021-02-11 23:35:32 +08:00
|
|
|
@apply mt-0;
|
|
|
|
}
|
|
|
|
|
2021-04-05 00:55:51 +08:00
|
|
|
.markdown > :last-child {
|
2021-02-11 23:35:32 +08:00
|
|
|
@apply mb-0;
|
|
|
|
}
|
2021-02-17 01:39:52 +08:00
|
|
|
|
2021-04-08 21:31:46 +08:00
|
|
|
.markdown .katex-display {
|
|
|
|
@apply my-8;
|
|
|
|
}
|
|
|
|
|
2021-02-17 01:39:52 +08:00
|
|
|
/* Overrides for user-entered markdown */
|
|
|
|
|
2022-04-04 18:19:11 +08:00
|
|
|
[data-el-cell][data-type="markdown"] .markdown h1,
|
|
|
|
[data-el-cell][data-type="markdown"] .markdown h2 {
|
2021-02-17 01:39:52 +08:00
|
|
|
font-size: 0;
|
|
|
|
}
|
|
|
|
|
2022-04-04 18:19:11 +08:00
|
|
|
[data-el-cell][data-type="markdown"] .markdown h1:after,
|
|
|
|
[data-el-cell][data-type="markdown"] .markdown h2:after {
|
2021-02-17 01:39:52 +08:00
|
|
|
@apply text-red-400 text-base font-medium;
|
|
|
|
content: "warning: heading levels 1 and 2 are reserved for notebook and section names, please use heading 3 and above.";
|
|
|
|
}
|