Add workbench recompile, LaTeX assistance, and selectable preview
This commit is contained in:
1 parent
aaf2550c68
commit
e0d9b3a91f
12 files changed
+1059
-28
No files matched your search
@@ -0,0 +1,83 @@
|
||||
.latex-editor {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
.latex-editor > textarea {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
}
|
||||
.latex-editor-mirror {
|
||||
position: absolute;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
overflow-wrap: break-word;
|
||||
white-space: pre-wrap;
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
color: var(--latex-editor-color, #1f2329);
|
||||
}
|
||||
.latex-editor.latex-highlighted:not(.latex-composing) > .latex-editor-mirror {
|
||||
visibility: visible;
|
||||
}
|
||||
.latex-editor.latex-highlighted:not(.latex-composing) > textarea {
|
||||
color: transparent !important;
|
||||
background-color: transparent !important;
|
||||
caret-color: var(--latex-editor-color, #1f2329);
|
||||
}
|
||||
.latex-editor > textarea::selection {
|
||||
color: var(--latex-editor-color, #1f2329);
|
||||
background: #c9dbfb;
|
||||
}
|
||||
.latex-command { color: #3454a3; }
|
||||
.latex-comment { color: #50704e; }
|
||||
.latex-math { color: #96375d; }
|
||||
.latex-delimiter { color: #704694; }
|
||||
|
||||
.latex-completions {
|
||||
position: fixed;
|
||||
z-index: 52;
|
||||
box-sizing: border-box;
|
||||
min-width: 11rem;
|
||||
max-width: calc(100vw - 16px);
|
||||
padding: 4px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #d7dee8;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
color: #1f2329;
|
||||
box-shadow: 0 5px 20px #17203324;
|
||||
font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
.latex-completions > [role="option"] {
|
||||
padding: 4px 8px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.latex-completions > [aria-selected="true"],
|
||||
.latex-completions > [role="option"]:hover {
|
||||
color: #203c81;
|
||||
background: #e8eefc;
|
||||
}
|
||||
@media (forced-colors: active) {
|
||||
.latex-editor.latex-highlighted:not(.latex-composing) > .latex-editor-mirror {
|
||||
visibility: hidden;
|
||||
}
|
||||
.latex-editor.latex-highlighted:not(.latex-composing) > textarea {
|
||||
color: CanvasText !important;
|
||||
background-color: Canvas !important;
|
||||
caret-color: CanvasText;
|
||||
}
|
||||
.latex-completions > [aria-selected="true"] {
|
||||
forced-color-adjust: none;
|
||||
color: HighlightText;
|
||||
background: Highlight;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user