2021-02-11 23:35:32 +08:00
|
|
|
/* Markdown rendered content */
|
|
|
|
|
|
|
|
.markdown {
|
|
|
|
@apply text-gray-700;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown h1 {
|
2021-03-20 21:10:15 +08:00
|
|
|
@apply text-gray-800 font-semibold text-3xl my-4;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.markdown h2 {
|
2021-03-20 21:10:15 +08:00
|
|
|
@apply text-gray-800 font-semibold text-2xl my-4;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.markdown h3 {
|
2021-03-20 21:10:15 +08:00
|
|
|
@apply text-gray-800 font-semibold text-xl my-4;
|
2021-02-17 01:39:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.markdown h4 {
|
2021-03-20 21:10:15 +08:00
|
|
|
@apply text-gray-800 font-semibold text-lg my-4;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
2021-02-17 01:39:52 +08:00
|
|
|
.markdown h5 {
|
2021-03-20 21:10:15 +08:00
|
|
|
@apply text-gray-800 font-semibold text-base my-4;
|
2021-02-17 01:39:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.markdown h6 {
|
2021-03-20 21:10:15 +08:00
|
|
|
@apply text-gray-800 font-semibold text-base my-4;
|
2021-02-17 01:39:52 +08:00
|
|
|
}
|
|
|
|
|
2021-02-11 23:35:32 +08:00
|
|
|
.markdown p {
|
|
|
|
@apply my-4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown ul {
|
|
|
|
@apply list-disc list-inside my-4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown ol {
|
|
|
|
@apply list-decimal list-inside my-4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown ul > li,
|
|
|
|
.markdown ol > li {
|
|
|
|
@apply my-1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown ul > li ul,
|
|
|
|
.markdown ol > li ol {
|
|
|
|
@apply ml-6;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 {
|
|
|
|
@apply w-full my-4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown table thead tr {
|
|
|
|
@apply border-b border-gray-200;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown table tbody tr:not(:last-child) {
|
|
|
|
@apply border-b border-gray-200;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown table th {
|
2021-02-21 23:54:44 +08:00
|
|
|
@apply p-2 font-bold text-left;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.markdown table td {
|
2021-02-21 23:54:44 +08:00
|
|
|
@apply p-2 text-left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 table th:first-child,
|
|
|
|
.markdown table td:first-child {
|
|
|
|
@apply pl-0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown table th:last-child,
|
|
|
|
.markdown table td:last-child {
|
|
|
|
@apply pr-0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown code {
|
2021-04-09 20:31:34 +08:00
|
|
|
@apply py-[0.2rem] px-2 rounded-lg text-sm align-middle font-mono bg-gray-200;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.markdown pre > code {
|
2021-03-12 18:57:01 +08:00
|
|
|
@apply block p-4 rounded-lg text-sm align-middle font-mono;
|
2021-02-11 23:35:32 +08:00
|
|
|
/* Match the editor colors */
|
|
|
|
background-color: #282c34;
|
|
|
|
color: #abb2bf;
|
|
|
|
}
|
|
|
|
|
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 */
|
|
|
|
|
2021-03-20 21:10:15 +08:00
|
|
|
[data-element="cell"] .markdown h1,
|
|
|
|
[data-element="cell"] .markdown h2 {
|
2021-02-17 01:39:52 +08:00
|
|
|
font-size: 0;
|
|
|
|
}
|
|
|
|
|
2021-03-20 21:10:15 +08:00
|
|
|
[data-element="cell"] .markdown h1:after,
|
|
|
|
[data-element="cell"] .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.";
|
|
|
|
}
|