mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-12-31 04:02:10 +08:00
0925ec77cd
* Basic filesystem navigation * Add file picker modal * Implement autosave when dirty and show the status * Add hompage link in the session view * Improve file picker and use in both places * Move session list to homepage * Some refactoring * Show import messages if any * Fix and extend tests * Show a message when there are no sessions running * Rename import to fork and make that clear in notebook name * Fix old route * Show info when no file is connected to the given session * Show runtime type next to filename * Show button for joining session when a running path is selected * Move modal components to SessionLive namespace * Add FileGuard to lock files used for notebook persistence * Use radio for specifying persistence type * Don't lock nil path * Simplify FileGuard implementation * Test notebook persistence * Fix typo * Further simplify FileGuard * Improve file listing * Don't show parent dir when there's a basename being typed * Add path component tests
134 lines
2.2 KiB
CSS
134 lines
2.2 KiB
CSS
/* Markdown rendered content */
|
|
|
|
.markdown {
|
|
@apply text-gray-700;
|
|
}
|
|
|
|
.markdown h1 {
|
|
@apply text-gray-900 font-semibold text-4xl my-4;
|
|
}
|
|
|
|
.markdown h2 {
|
|
@apply text-gray-900 font-semibold text-3xl my-4;
|
|
}
|
|
|
|
.markdown h3 {
|
|
@apply text-gray-900 font-semibold text-2xl my-4;
|
|
}
|
|
|
|
.markdown h4 {
|
|
@apply text-gray-900 font-semibold text-xl my-4;
|
|
}
|
|
|
|
.markdown h5 {
|
|
@apply text-gray-900 font-semibold text-lg my-4;
|
|
}
|
|
|
|
.markdown h6 {
|
|
@apply text-gray-900 font-semibold text-base my-4;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.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 {
|
|
@apply p-2 font-bold text-left;
|
|
}
|
|
|
|
.markdown table td {
|
|
@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;
|
|
}
|
|
|
|
.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 {
|
|
@apply py-1 px-2 rounded-md text-sm align-middle;
|
|
/* Match the editor colors */
|
|
background-color: #282c34;
|
|
color: #abb2bf;
|
|
}
|
|
|
|
.markdown pre > code {
|
|
@apply block p-4 rounded-md text-sm align-middle;
|
|
/* Match the editor colors */
|
|
background-color: #282c34;
|
|
color: #abb2bf;
|
|
}
|
|
|
|
.markdown :first-child {
|
|
@apply mt-0;
|
|
}
|
|
|
|
.markdown :last-child {
|
|
@apply mb-0;
|
|
}
|
|
|
|
/* Overrides for user-entered markdown */
|
|
|
|
.cell .markdown h1,
|
|
.cell .markdown h2 {
|
|
font-size: 0;
|
|
}
|
|
|
|
.cell .markdown h1:after,
|
|
.cell .markdown h2:after {
|
|
@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.";
|
|
}
|