mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
* wip * wip * wip3 * chore: utils * feat: add command * wip * fix: key duplicate * fix: move and check * fix: use react-use instead * fix: sidebar * chore: make dynamic * chore: tablet mode * chore: fix padding * chore: link instead of inbox * fix: use dnd kit * feat: add select component * chore: use atom * refactor: remove dnd provider * feat: disabled drag when sort is not manual * search route * . * feat: accessibility * fix: search * . * . * . * fix: sidebar collapsed * ai search layout * . * . * . * . * ai responsible content * . * . * . * . * . * global topic route * global topic correct route * topic buttons * sidebar search navigation * ai * Update jazz * . * . * . * . * . * learning status * . * . * chore: content header * fix: pointer none when dragging. prevent auto click after drag end * fix: confirm * fix: prevent drag when editing * chore: remove unused fn * fix: check propagation * chore: list * chore: tweak sonner * chore: update stuff * feat: add badge * chore: close edit when create * chore: escape on manage form * refactor: remove learn path * css: responsive item * chore: separate pages and topic * reafactor: remove new-schema * feat(types): extend jazz type so it can be nullable * chore: use new types * fix: missing deps * fix: link * fix: sidebar in layout * fix: quotes * css: use medium instead semi * Actual streaming and rendering markdown response * . * . * . * . * . * . * . * . * . * . * . * . * . * . * . * . * . * . * . * . * . * chore: metadata * feat: la-editor * . * fix: editor and page * . * . * . * . * . * . * fix: remove link * chore: page sidebar * fix: remove 'replace with learning status' * fix: link * fix: link * chore: update schema * chore: use new schema * fix: instead of showing error, just do unique slug * feat: create slug * refactor apply * update package json * fix: schema personal page * chore: editor * feat: pages * fix: metadata * fix: jazz provider * feat: handling data * feat: page detail * chore: server page to id * chore: use id instead of slug * chore: update content header * chore: update link header implementation * refactor: global.css * fix: la editor use animation frame * fix: editor export ref * refactor: page detail * chore: tidy up schema * chore: adapt to new schema * fix: wrap using settimeout * fix: wrap using settimeout * . * . --------- Co-authored-by: marshennikovaolga <marshennikova@gmail.com> Co-authored-by: Nikita <github@nikiv.dev> Co-authored-by: Anselm <anselm.eickhoff@gmail.com> Co-authored-by: Damian Tarnawski <gthetarnav@gmail.com>
141 lines
3.4 KiB
CSS
141 lines
3.4 KiB
CSS
:root {
|
|
--la-font-size-regular: 0.9375rem;
|
|
|
|
--la-code-background: rgba(8, 43, 120, 0.047);
|
|
--la-code-color: rgb(212, 212, 212);
|
|
--la-secondary: rgb(157, 157, 159);
|
|
--la-pre-background: rgb(236, 236, 236);
|
|
--la-pre-border: rgb(224, 224, 224);
|
|
--la-pre-color: rgb(47, 47, 49);
|
|
--la-hr: rgb(220, 220, 220);
|
|
--la-drag-handle-hover: rgb(92, 92, 94);
|
|
|
|
--hljs-string: rgb(170, 67, 15);
|
|
--hljs-title: rgb(176, 136, 54);
|
|
--hljs-comment: rgb(153, 153, 153);
|
|
--hljs-keyword: rgb(12, 94, 177);
|
|
--hljs-attr: rgb(58, 146, 188);
|
|
--hljs-literal: rgb(200, 43, 15);
|
|
--hljs-name: rgb(37, 151, 146);
|
|
--hljs-selector-tag: rgb(200, 80, 15);
|
|
--hljs-number: rgb(61, 160, 103);
|
|
}
|
|
|
|
.dark .ProseMirror {
|
|
--la-code-background: rgba(255, 255, 255, 0.075);
|
|
--la-code-color: rgb(44, 46, 51);
|
|
--la-secondary: rgb(89, 90, 92);
|
|
--la-pre-background: rgb(8, 8, 8);
|
|
--la-pre-border: rgb(35, 37, 42);
|
|
--la-pre-color: rgb(227, 228, 230);
|
|
--la-hr: rgb(38, 40, 45);
|
|
--la-drag-handle-hover: rgb(150, 151, 153);
|
|
|
|
--hljs-string: rgb(218, 147, 107);
|
|
--hljs-title: rgb(241, 213, 157);
|
|
--hljs-comment: rgb(170, 170, 170);
|
|
--hljs-keyword: rgb(102, 153, 204);
|
|
--hljs-attr: rgb(144, 202, 232);
|
|
--hljs-literal: rgb(242, 119, 122);
|
|
--hljs-name: rgb(95, 192, 160);
|
|
--hljs-selector-tag: rgb(232, 199, 133);
|
|
--hljs-number: rgb(182, 231, 182);
|
|
}
|
|
|
|
.la-editor .ProseMirror {
|
|
@apply flex max-w-full flex-1 cursor-text flex-col;
|
|
@apply z-0 outline-0;
|
|
}
|
|
|
|
.la-editor .ProseMirror > div.editor {
|
|
@apply block flex-1 whitespace-pre-wrap;
|
|
}
|
|
|
|
.la-editor .ProseMirror .block-node:not(:last-child),
|
|
.la-editor .ProseMirror .list-node:not(:last-child),
|
|
.la-editor .ProseMirror .text-node:not(:last-child) {
|
|
@apply mb-2.5;
|
|
}
|
|
|
|
.la-editor .ProseMirror ol,
|
|
.la-editor .ProseMirror ul {
|
|
@apply pl-6;
|
|
}
|
|
|
|
.la-editor .ProseMirror blockquote,
|
|
.la-editor .ProseMirror dl,
|
|
.la-editor .ProseMirror ol,
|
|
.la-editor .ProseMirror p,
|
|
.la-editor .ProseMirror pre,
|
|
.la-editor .ProseMirror ul {
|
|
@apply m-0;
|
|
}
|
|
|
|
.la-editor .ProseMirror li {
|
|
@apply leading-7;
|
|
}
|
|
|
|
.la-editor .ProseMirror p {
|
|
@apply break-words;
|
|
}
|
|
|
|
.la-editor .ProseMirror li .text-node:has(+ .list-node),
|
|
.la-editor .ProseMirror li > .list-node,
|
|
.la-editor .ProseMirror li > .text-node,
|
|
.la-editor .ProseMirror li p {
|
|
@apply mb-0;
|
|
}
|
|
|
|
.la-editor .ProseMirror blockquote {
|
|
@apply relative pl-3.5;
|
|
}
|
|
|
|
.la-editor .ProseMirror blockquote::before,
|
|
.la-editor .ProseMirror blockquote.is-empty::before {
|
|
@apply bg-accent absolute bottom-0 left-0 top-0 h-full w-1 rounded-sm content-[''];
|
|
}
|
|
|
|
.la-editor .ProseMirror hr {
|
|
@apply my-3 h-0.5 w-full border-none bg-[var(--la-hr)];
|
|
}
|
|
|
|
.la-editor .ProseMirror-focused hr.ProseMirror-selectednode {
|
|
@apply outline-muted-foreground rounded-full outline outline-2 outline-offset-1;
|
|
}
|
|
|
|
.la-editor .ProseMirror .ProseMirror-gapcursor {
|
|
@apply pointer-events-none absolute hidden;
|
|
}
|
|
|
|
.la-editor .ProseMirror .ProseMirror-hideselection {
|
|
@apply caret-transparent;
|
|
}
|
|
|
|
.la-editor .ProseMirror.resize-cursor {
|
|
@apply cursor-col-resize;
|
|
}
|
|
|
|
.la-editor .ProseMirror .selection {
|
|
@apply inline-block;
|
|
}
|
|
|
|
.la-editor .ProseMirror .selection,
|
|
.la-editor .ProseMirror *::selection,
|
|
::selection {
|
|
@apply bg-primary/40;
|
|
}
|
|
|
|
/* Override native selection when custom selection is present */
|
|
.la-editor .ProseMirror .selection::selection {
|
|
background: transparent;
|
|
}
|
|
|
|
[data-theme="slash-command"] {
|
|
width: 1000vw;
|
|
}
|
|
|
|
@import "./partials/code.css";
|
|
@import "./partials/placeholder.css";
|
|
@import "./partials/lists.css";
|
|
@import "./partials/typography.css";
|