mirror of
https://github.com/vadimmelnicuk/meo.git
synced 2026-05-04 21:20:34 +00:00
1315 lines
27 KiB
CSS
1315 lines
27 KiB
CSS
:root {
|
|
color-scheme: light dark;
|
|
--meo-active-line-bg: color-mix(in srgb, var(--vscode-editor-selectionBackground) 25%, transparent 75%);
|
|
--meo-code-block-active-line-bg-live: color-mix(in srgb, var(--vscode-textCodeBlock-background) 50%, transparent 50%);
|
|
--meo-font-live: var(--vscode-editor-font-family);
|
|
--meo-font-source: var(--vscode-editor-font-family);
|
|
--meo-active-editor-font: var(--vscode-editor-font-family);
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--vscode-font-family);
|
|
color: var(--vscode-editor-foreground);
|
|
background: var(--vscode-editor-background);
|
|
line-height: 1.5em;
|
|
}
|
|
|
|
#app,
|
|
.editor-root,
|
|
.cm-editor {
|
|
height: 100%;
|
|
}
|
|
|
|
.editor-root {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.editor-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.editor-wrapper[data-outline-position='left'] {
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
.editor-host {
|
|
min-height: 0;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.selection-inline-menu {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 4px;
|
|
border: 1px solid var(--vscode-panel-border);
|
|
border-radius: 8px;
|
|
background: var(--vscode-editorWidget-background, var(--vscode-sideBar-background));
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transform: translate(-8px, -100%);
|
|
z-index: 400;
|
|
}
|
|
|
|
.selection-inline-menu.is-visible {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.selection-inline-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: 6px;
|
|
color: var(--vscode-editor-foreground);
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.selection-inline-button:hover {
|
|
background-color: var(--vscode-toolbar-hoverBackground);
|
|
}
|
|
|
|
.mode-toolbar {
|
|
position: relative;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 8px 14px 8px 72px;
|
|
background-color: var(--vscode-sideBar-background);
|
|
}
|
|
|
|
.find-panel {
|
|
display: none;
|
|
position: absolute;
|
|
top: 100%;
|
|
right: -14px;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
--find-input-width: 200px;
|
|
max-width: calc(100vw - 24px);
|
|
padding: 8px;
|
|
background-color: var(--vscode-sideBar-background);
|
|
z-index: 250;
|
|
}
|
|
|
|
.find-panel.is-visible {
|
|
display: flex;
|
|
}
|
|
|
|
.find-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
flex-wrap: nowrap;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.find-input-wrap {
|
|
position: relative;
|
|
flex: 0 0 var(--find-input-width);
|
|
width: var(--find-input-width);
|
|
}
|
|
|
|
.find-input {
|
|
height: 24px;
|
|
width: auto;
|
|
box-sizing: border-box;
|
|
padding: 0 7px;
|
|
border: none;
|
|
color: var(--vscode-input-foreground);
|
|
background: var(--vscode-input-background);
|
|
}
|
|
|
|
.find-input-wrap .find-input {
|
|
width: 100%;
|
|
padding-right: 76px;
|
|
}
|
|
|
|
.find-row > .find-input {
|
|
flex: 0 0 var(--find-input-width);
|
|
width: var(--find-input-width);
|
|
}
|
|
|
|
.find-row .format-button {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.find-input:focus {
|
|
outline: 1px solid var(--vscode-focusBorder);
|
|
outline-offset: 0;
|
|
}
|
|
|
|
.find-status {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 8px;
|
|
transform: translateY(-50%);
|
|
font-size: 11px;
|
|
line-height: 1;
|
|
color: var(--vscode-descriptionForeground);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.find-status.is-error {
|
|
color: var(--vscode-errorForeground, #f48771);
|
|
}
|
|
|
|
.format-group,
|
|
.right-group {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.right-group {
|
|
margin-left: auto;
|
|
margin-right: 12px;
|
|
}
|
|
|
|
.format-separator {
|
|
width: 1px;
|
|
height: 18px;
|
|
margin: 3px 4px;
|
|
align-self: center;
|
|
background-color: var(--vscode-panel-border);
|
|
}
|
|
|
|
.heading-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.heading-dropdown-wrapper {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: calc(50% + 1px);
|
|
transform: translateX(-50%);
|
|
padding: 5px 25px;
|
|
z-index: 100;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.15s ease;
|
|
}
|
|
|
|
.heading-dropdown {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
padding: 4px;
|
|
background-color: var(--vscode-sideBar-background);
|
|
border: 1px solid var(--vscode-panel-border);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.heading-wrapper:hover .heading-dropdown-wrapper {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.table-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.table-dropdown-wrapper {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: calc(50% + 1px);
|
|
transform: translateX(-50%);
|
|
padding: 5px 25px;
|
|
z-index: 100;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.15s ease;
|
|
}
|
|
|
|
.table-dropdown {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px;
|
|
background-color: var(--vscode-sideBar-background);
|
|
border: 1px solid var(--vscode-panel-border);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.table-wrapper:hover .table-dropdown-wrapper {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.table-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
gap: 2px;
|
|
}
|
|
|
|
.table-grid-cell {
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 1px solid var(--vscode-panel-border);
|
|
border-radius: 2px;
|
|
background-color: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.table-grid-cell.is-highlighted {
|
|
background-color: var(--vscode-toolbar-hoverBackground);
|
|
}
|
|
|
|
.table-size-label {
|
|
font-size: 11px;
|
|
color: var(--vscode-editor-foreground);
|
|
text-align: center;
|
|
}
|
|
|
|
.format-button,
|
|
.heading-dropdown-option,
|
|
.meo-mermaid-zoom-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.format-button,
|
|
.heading-dropdown-option {
|
|
color: var(--vscode-editor-foreground);
|
|
background-color: transparent;
|
|
}
|
|
|
|
.format-button svg,
|
|
.heading-dropdown-option svg {
|
|
display: block;
|
|
}
|
|
|
|
.format-button:hover,
|
|
.heading-dropdown-option:hover,
|
|
.mode-button.is-active,
|
|
.meo-copy-code-btn:hover {
|
|
background-color: var(--vscode-toolbar-hoverBackground);
|
|
}
|
|
|
|
.format-button.toggle-button:not(.is-active) {
|
|
color: var(--meo-color-base03);
|
|
}
|
|
|
|
.heading-dropdown-option {
|
|
transition: background-color 0.12s ease;
|
|
}
|
|
|
|
.mode-group {
|
|
display: inline-flex;
|
|
border: 1px solid var(--vscode-panel-border);
|
|
border-radius: 8px;
|
|
padding: 2px;
|
|
background: transparent;
|
|
}
|
|
|
|
@media (max-width: 920px) {
|
|
.mode-toolbar {
|
|
padding-left: 14px;
|
|
}
|
|
|
|
.find-panel {
|
|
right: -10px;
|
|
}
|
|
}
|
|
|
|
.mode-button,
|
|
.meo-code-block-pill {
|
|
padding: 4px 8px;
|
|
font-size: 12px;
|
|
border: 0;
|
|
border-radius: 6px;
|
|
user-select: none;
|
|
line-height: 1em;
|
|
transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
|
|
}
|
|
|
|
.mode-button {
|
|
min-width: 52px;
|
|
cursor: pointer;
|
|
color: var(--vscode-foreground);
|
|
background: transparent;
|
|
}
|
|
|
|
.meo-copy-code-btn {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 5px;
|
|
z-index: 10;
|
|
cursor: pointer;
|
|
padding: 2px 8px;
|
|
color: var(--meo-color-base02);
|
|
background-color: transparent;
|
|
}
|
|
|
|
.meo-copy-code-btn:hover {
|
|
color: var(--vscode-editor-foreground);
|
|
}
|
|
|
|
.meo-code-language-label {
|
|
position: absolute;
|
|
top: 4px;
|
|
left: calc(2ch);
|
|
z-index: 10;
|
|
padding: 2px 5px;
|
|
color: var(--meo-color-base02);
|
|
background-color: transparent;
|
|
pointer-events: none;
|
|
cursor: default;
|
|
}
|
|
|
|
.cm-editor {
|
|
font-family: var(--meo-active-editor-font);
|
|
font-size: var(--vscode-editor-font-size);
|
|
min-width: 0;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live {
|
|
--meo-active-editor-font: var(--meo-font-live);
|
|
}
|
|
|
|
.cm-editor.meo-mode-source {
|
|
--meo-active-editor-font: var(--meo-font-source);
|
|
}
|
|
|
|
.cm-editor .cm-scroller,
|
|
.cm-editor .cm-content,
|
|
.cm-editor .cm-line {
|
|
font-family: var(--meo-active-editor-font);
|
|
min-width: 0;
|
|
min-height: 1.2em;
|
|
}
|
|
|
|
.cm-editor .cm-scroller {
|
|
scrollbar-gutter: stable;
|
|
/* padding-right: 14px; */
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.cm-editor .cm-gutters {
|
|
width: 55px;
|
|
margin-right: 24px;
|
|
background: var(--vscode-editor-background);
|
|
border-right: 0;
|
|
}
|
|
|
|
.cm-editor .cm-gutter.cm-lineNumbers {
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
.cm-lineNumbers {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
color: var(--vscode-editorLineNumber-foreground);
|
|
}
|
|
|
|
.cm-editor .cm-lineNumbers .cm-gutterElement {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: flex-end;
|
|
text-align: right;
|
|
}
|
|
|
|
.cm-editor .cm-gutterElement.cm-activeLineGutter {
|
|
background: transparent !important;
|
|
color: var(--vscode-editor-foreground);
|
|
}
|
|
|
|
.cm-editor.meo-line-numbers-hidden .cm-lineNumbers .cm-gutterElement,
|
|
.cm-editor.meo-line-numbers-hidden .cm-gutterElement.cm-activeLineGutter {
|
|
color: transparent !important;
|
|
}
|
|
|
|
.cm-editor.meo-table-interaction-active .cm-gutterElement.cm-activeLineGutter {
|
|
color: var(--vscode-editorLineNumber-foreground);
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .cm-lineNumbers .cm-gutterElement.meo-md-hide-line-number {
|
|
color: transparent !important;
|
|
}
|
|
|
|
.cm-editor .cm-line {
|
|
padding-left: 0;
|
|
line-height: 1.5em;
|
|
}
|
|
|
|
.cm-editor .cm-content {
|
|
padding-top: 0;
|
|
caret-color: var(--vscode-editorCursor-foreground, #ffffff);
|
|
}
|
|
|
|
.cm-editor,
|
|
.cm-editor .cm-scroller,
|
|
.cm-editor .cm-content,
|
|
.cm-editor .cm-line {
|
|
tab-size: 4 !important;
|
|
-moz-tab-size: 4 !important;
|
|
}
|
|
|
|
.cm-editor .cm-content ::selection,
|
|
.cm-editor .cm-content *::selection {
|
|
background-color: var(--vscode-editor-selectionBackground);
|
|
}
|
|
|
|
.cm-editor .meo-search-match {
|
|
background: color-mix(in srgb, var(--vscode-editor-findMatchBackground, #515c6a) 75%, transparent);
|
|
outline: 1px solid var(--vscode-editor-findMatchBorder, transparent);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.cm-editor.cm-focused .cm-activeLine {
|
|
background-color: var(--meo-active-line-bg);
|
|
}
|
|
|
|
.cm-editor:not(.cm-focused) .cm-activeLine {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.cm-editor.has-selection .cm-activeLine {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.cm-editor.meo-table-interaction-active .cm-activeLine {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.cm-editor.cm-focused .cm-activeLine.meo-md-code-block {
|
|
background-color: var(--vscode-textCodeBlock-background);
|
|
}
|
|
|
|
.cm-editor.cm-focused.meo-mode-live .cm-activeLine.meo-md-code-block {
|
|
background-color: var(--meo-code-block-active-line-bg-live);
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .cm-content {
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .meo-md-marker {
|
|
display: none;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .meo-md-marker-active {
|
|
display: inline !important;
|
|
line-height: inherit;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live.meo-table-interaction-active .meo-md-marker-active {
|
|
display: none !important;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .meo-md-code-block .meo-md-fence-marker,
|
|
.cm-editor.meo-mode-live .meo-md-code-block .meo-md-fence-marker * {
|
|
color: transparent !important;
|
|
}
|
|
|
|
.cm-editor .meo-md-h1 {
|
|
font-size: 1.6em;
|
|
}
|
|
|
|
.cm-editor .meo-md-h2 {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.cm-editor .meo-md-h3 {
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
.cm-editor .meo-md-h4 {
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
.cm-editor .meo-md-h5 {
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.cm-editor .meo-md-h6 {
|
|
font-size: 1em;
|
|
}
|
|
|
|
.cm-editor .meo-md-em {
|
|
font-style: italic;
|
|
}
|
|
|
|
.cm-editor .meo-md-strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.cm-editor .meo-md-strike {
|
|
text-decoration: line-through !important;
|
|
}
|
|
|
|
.cm-editor .meo-md-strike-marker,
|
|
.cm-editor .meo-md-strike-marker-active {
|
|
color: var(--meo-color-base02) !important;
|
|
}
|
|
|
|
.cm-editor .meo-md-link {
|
|
text-decoration: underline;
|
|
text-decoration-color: var(--meo-color-base05);
|
|
text-underline-offset: 4px;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .meo-md-link[data-meo-link-href] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .meo-md-link-url-hidden {
|
|
display: none;
|
|
}
|
|
|
|
.cm-editor .meo-md-link-marker,
|
|
.cm-editor .meo-md-link-marker-active {
|
|
color: var(--meo-color-base02) !important;
|
|
}
|
|
|
|
.cm-editor .meo-md-wiki-marker,
|
|
.cm-editor .meo-md-wiki-marker * {
|
|
color: var(--meo-color-base02) !important;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .meo-md-wiki-empty-marker {
|
|
display: inline !important;
|
|
}
|
|
|
|
.cm-editor .meo-md-link-clear-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-top: 4px;
|
|
margin-left: 4px;
|
|
width: 14px;
|
|
height: 14px;
|
|
padding: 0;
|
|
border: 0;
|
|
line-height: 0;
|
|
color: var(--meo-color-base02);
|
|
background: transparent;
|
|
cursor: pointer;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.cm-editor .meo-md-link-clear-btn svg {
|
|
display: block;
|
|
width: 14px;
|
|
height: 14px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.cm-editor .meo-md-link-clear-btn:hover {
|
|
color: var(--vscode-editor-foreground);
|
|
}
|
|
|
|
.cm-editor .meo-md-wiki-missing-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 12px;
|
|
height: 12px;
|
|
margin-right: 4px;
|
|
line-height: 1;
|
|
color: var(--vscode-editorWarning-foreground, #d7ba7d);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.cm-editor .meo-md-wiki-missing-icon svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
display: block;
|
|
}
|
|
|
|
.cm-editor .meo-md-quote {
|
|
border-left: 3px solid var(--meo-color-base09);
|
|
padding-left: 3ch;
|
|
text-indent: -1ch;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .cm-activeLine.meo-md-quote {
|
|
padding-left: 3ch;
|
|
text-indent: -2ch;
|
|
}
|
|
|
|
.cm-editor .meo-md-hr {
|
|
position: relative;
|
|
min-height: 1.5em;
|
|
line-height: 1.5em;
|
|
}
|
|
|
|
.cm-editor .meo-md-hr::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: var(--meo-color-base03);
|
|
transform: translateY(-50%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .meo-md-hr.meo-md-hr-active::after,
|
|
.cm-editor.meo-mode-live .meo-md-hr.cm-activeLine::after {
|
|
display: none;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .meo-md-frontmatter-boundary::after {
|
|
display: none;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .meo-md-hr .meo-md-hr-marker {
|
|
color: transparent !important;
|
|
opacity: 0;
|
|
}
|
|
|
|
.cm-editor .meo-md-inline-code {
|
|
background: transparent;
|
|
}
|
|
|
|
.cm-editor .meo-md-code-block,
|
|
.cm-editor .meo-mermaid-block {
|
|
position: relative;
|
|
background: var(--vscode-textCodeBlock-background);
|
|
}
|
|
|
|
.cm-editor .meo-md-code-block {
|
|
padding-left: 2ch;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .cm-line.meo-md-list-line {
|
|
--meo-list-hanging-indent: 0ch;
|
|
--meo-list-indent-columns: 0ch;
|
|
--meo-list-guide-step: 2ch;
|
|
padding-left: var(--meo-list-hanging-indent);
|
|
text-indent: calc(var(--meo-list-hanging-indent) * -1);
|
|
background-image: repeating-linear-gradient(
|
|
to right,
|
|
var(--meo-color-base03) 0,
|
|
var(--meo-color-base03) 1px,
|
|
transparent 1px,
|
|
transparent var(--meo-list-guide-step)
|
|
);
|
|
background-size: var(--meo-list-indent-columns) 100%;
|
|
background-position: left top;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .cm-line.meo-md-list-line.meo-md-list-line-selected {
|
|
background-image: repeating-linear-gradient(
|
|
to right,
|
|
var(--meo-color-base03) 0,
|
|
var(--meo-color-base03) 1px,
|
|
transparent 1px,
|
|
transparent var(--meo-list-guide-step)
|
|
),
|
|
linear-gradient(
|
|
to right,
|
|
var(--vscode-editor-selectionBackground),
|
|
var(--vscode-editor-selectionBackground)
|
|
);
|
|
background-size: var(--meo-list-indent-columns) 100%, var(--meo-list-hanging-indent) 100%;
|
|
background-position: left top, left top;
|
|
background-repeat: no-repeat, no-repeat;
|
|
}
|
|
|
|
.cm-editor .meo-md-list-marker {
|
|
display: inline;
|
|
}
|
|
|
|
.cm-editor .meo-md-list-indent-spacer {
|
|
display: inline-block;
|
|
min-width: 0;
|
|
}
|
|
|
|
.cm-editor .meo-md-list-prefix {
|
|
color: var(--meo-color-base02) !important;
|
|
}
|
|
|
|
.cm-editor .meo-md-list-marker-ordered,
|
|
.cm-editor .meo-md-list-marker-task {
|
|
min-width: 3ch;
|
|
}
|
|
|
|
.cm-editor .meo-md-list-marker-task {
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.cm-editor .meo-task-checkbox {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
width: 17px;
|
|
height: 17px;
|
|
border: 1px solid var(--meo-color-base03);
|
|
border-radius: 4px;
|
|
background: var(--vscode-sideBar-background);
|
|
cursor: pointer;
|
|
vertical-align: middle;
|
|
position: relative;
|
|
top: -1px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.cm-editor .meo-task-checkbox:hover {
|
|
border: 1px solid var(--vscode-editor-foreground);
|
|
}
|
|
|
|
.cm-editor .meo-task-checkbox:checked::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 4px;
|
|
top: 2px;
|
|
width: 4px;
|
|
height: 7px;
|
|
border: solid var(--vscode-editor-foreground);
|
|
border-width: 0 2px 2px 0;
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
.cm-editor .meo-task-checkbox:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.cm-editor .meo-task-complete {
|
|
color: var(--meo-color-base02);
|
|
}
|
|
|
|
.cm-editor .meo-md-list-border {
|
|
--meo-list-border-width: 1ch;
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
width: var(--meo-list-border-width);
|
|
min-width: var(--meo-list-border-width);
|
|
height: 100%;
|
|
border-left: 1px solid var(--meo-color-base03);
|
|
}
|
|
|
|
.cm-editor .meo-mermaid-block {
|
|
padding: 12px;
|
|
overflow: hidden;
|
|
user-select: none;
|
|
text-align: center;
|
|
cursor: grab;
|
|
}
|
|
|
|
.cm-editor .meo-mermaid-block.meo-mermaid-math-block {
|
|
padding: 0;
|
|
background: var(--vscode-textCodeBlock-background);
|
|
cursor: default;
|
|
}
|
|
|
|
.cm-editor .meo-mermaid-block.meo-mermaid-math-block .katex-display,
|
|
.meo-mermaid-fullscreen .katex-display {
|
|
margin: 0 !important;
|
|
}
|
|
|
|
.cm-editor .meo-mermaid-block.meo-mermaid-math-block .nodeLabel > div,
|
|
.meo-mermaid-fullscreen .nodeLabel > div {
|
|
line-height: 1 !important;
|
|
}
|
|
|
|
.cm-editor .meo-mermaid-svg-wrapper,
|
|
.meo-mermaid-fullscreen .meo-mermaid-svg-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.cm-editor .meo-mermaid-svg-wrapper {
|
|
transform-origin: center center;
|
|
}
|
|
|
|
.meo-mermaid-fullscreen .meo-mermaid-svg-wrapper {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.cm-editor .meo-mermaid-svg-wrapper svg {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
/* Hide duplicate unformatted KaTeX HTML layer in inline and fullscreen Mermaid views. */
|
|
.cm-editor .meo-mermaid-block .katex-html,
|
|
.meo-mermaid-fullscreen .katex-html {
|
|
display: none;
|
|
}
|
|
|
|
.meo-mermaid-fullscreen .meo-mermaid-svg-wrapper svg {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
}
|
|
|
|
.cm-editor .meo-mermaid-zoom-controls,
|
|
.meo-mermaid-fullscreen-controls {
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 5px;
|
|
display: flex;
|
|
gap: 4px;
|
|
z-index: 10;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.cm-editor .meo-mermaid-zoom-controls {
|
|
opacity: 0;
|
|
transition: opacity 0.15s ease;
|
|
}
|
|
|
|
.meo-mermaid-fullscreen-controls {
|
|
opacity: 1;
|
|
}
|
|
|
|
.cm-editor .meo-mermaid-block:hover .meo-mermaid-zoom-controls,
|
|
.cm-editor .meo-mermaid-dragging .meo-mermaid-zoom-controls {
|
|
opacity: 1;
|
|
}
|
|
|
|
.meo-mermaid-zoom-btn {
|
|
font-size: 16px;
|
|
line-height: 1;
|
|
color: var(--vscode-foreground);
|
|
background-color: var(--vscode-editor-background);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.meo-mermaid-zoom-btn:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.meo-mermaid-zoom-btn:hover {
|
|
background: var(--vscode-button-secondaryHoverBackground, #505050);
|
|
}
|
|
|
|
.meo-mermaid-exit-btn {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.cm-editor .meo-mermaid-loading {
|
|
padding: 12px;
|
|
color: var(--vscode-descriptionForeground);
|
|
font-style: italic;
|
|
}
|
|
|
|
.cm-editor .meo-mermaid-fallback {
|
|
margin: 0;
|
|
padding: 8px;
|
|
background: var(--vscode-textCodeBlock-background);
|
|
border-radius: 4px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.cm-editor .meo-mermaid-fallback code {
|
|
font-family: var(--meo-active-editor-font);
|
|
font-size: var(--vscode-editor-font-size);
|
|
}
|
|
|
|
.cm-editor .meo-mermaid-error-badge {
|
|
margin-top: 8px;
|
|
padding: 6px 10px;
|
|
border-radius: 4px;
|
|
border: 1px solid var(--vscode-inputValidation-errorBorder, #be1100);
|
|
color: var(--vscode-inputValidation-errorForeground, #ffffff);
|
|
background: var(--vscode-inputValidation-errorBackground, #5a1d1d);
|
|
font-size: 12px;
|
|
font-family: var(--meo-active-editor-font);
|
|
}
|
|
|
|
.cm-editor .meo-md-image {
|
|
display: inline-block;
|
|
vertical-align: baseline;
|
|
text-align: left;
|
|
line-height: normal;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.cm-editor .meo-md-image-img {
|
|
max-width: 100%;
|
|
max-height: none;
|
|
height: auto;
|
|
opacity: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
vertical-align: bottom;
|
|
}
|
|
|
|
.cm-editor .meo-md-image-img.meo-md-image-loaded {
|
|
opacity: 1;
|
|
}
|
|
|
|
.cm-editor .meo-md-image-loading {
|
|
color: var(--vscode-descriptionForeground);
|
|
font-style: italic;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.cm-editor .meo-md-image-fallback {
|
|
display: inline;
|
|
background: var(--vscode-textCodeBlock-background);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.cm-editor .meo-md-image-fallback-text {
|
|
font-family: var(--meo-active-editor-font);
|
|
font-size: var(--vscode-editor-font-size);
|
|
color: var(--vscode-descriptionForeground);
|
|
}
|
|
|
|
.cm-editor .meo-md-image-linked {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cm-editor .meo-md-image-linked .meo-md-image-img {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.meo-mermaid-fullscreen-scrim {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 9999;
|
|
background-color: var(--vscode-editor-background);
|
|
}
|
|
|
|
.meo-mermaid-fullscreen {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
cursor: grab;
|
|
background-color: var(--vscode-textCodeBlock-background);
|
|
}
|
|
|
|
.outline-sidebar {
|
|
width: 240px;
|
|
height: 100%;
|
|
display: none;
|
|
flex-shrink: 0;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
background-color: var(--vscode-textCodeBlock-background);
|
|
}
|
|
|
|
.editor-root.outline-visible .outline-sidebar {
|
|
display: flex;
|
|
}
|
|
|
|
.outline-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding-bottom: 30px;
|
|
}
|
|
|
|
.outline-empty {
|
|
padding: 12px 14px;
|
|
font-size: 12px;
|
|
color: var(--vscode-descriptionForeground);
|
|
font-style: italic;
|
|
}
|
|
|
|
.outline-item {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 6px 14px;
|
|
border: none;
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
text-align: left;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
color: var(--vscode-sideBar-foreground);
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.outline-item:hover {
|
|
background-color: var(--vscode-list-hoverBackground);
|
|
}
|
|
|
|
.outline-item:active {
|
|
color: var(--vscode-list-activeSelectionForeground);
|
|
background-color: var(--vscode-list-activeSelectionBackground);
|
|
}
|
|
|
|
.outline-item.outline-level-1 {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.outline-item.outline-level-2 {
|
|
padding-left: 24px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.outline-item.outline-level-3 {
|
|
padding-left: 34px;
|
|
}
|
|
|
|
.outline-item.outline-level-4 {
|
|
padding-left: 44px;
|
|
}
|
|
|
|
.outline-item.outline-level-5 {
|
|
padding-left: 54px;
|
|
}
|
|
|
|
.outline-item.outline-level-6 {
|
|
padding-left: 64px;
|
|
}
|
|
|
|
.outline-item.outline-level-4,
|
|
.outline-item.outline-level-5,
|
|
.outline-item.outline-level-6 {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.cm-editor .meo-md-table-line {
|
|
font-family: var(--meo-active-editor-font);
|
|
}
|
|
|
|
.cm-editor .meo-md-html-table-wrap {
|
|
padding: 18px 0;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
min-width: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
.cm-editor .meo-md-html-table {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
border-collapse: collapse;
|
|
table-layout: fixed;
|
|
}
|
|
|
|
.cm-editor .meo-md-html-table th,
|
|
.cm-editor .meo-md-html-table td {
|
|
position: relative;
|
|
padding: 0;
|
|
border: 1px solid var(--meo-color-base03);
|
|
}
|
|
|
|
.cm-editor .meo-md-html-table th.meo-md-html-table-cell-selected,
|
|
.cm-editor .meo-md-html-table td.meo-md-html-table-cell-selected {
|
|
background: color-mix(in srgb, var(--vscode-editor-selectionBackground) 35%, transparent);
|
|
}
|
|
|
|
.cm-editor .meo-md-html-table th {
|
|
position: relative;
|
|
background-color: var(--vscode-sideBar-background);
|
|
}
|
|
|
|
.cm-editor .meo-md-html-table textarea {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 100%;
|
|
margin: 0;
|
|
box-sizing: border-box;
|
|
border: 0;
|
|
outline: none;
|
|
background: transparent;
|
|
color: var(--vscode-editor-foreground);
|
|
font: inherit;
|
|
padding: 0.25em 0.5em;
|
|
resize: none;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cm-editor .meo-md-html-table textarea:focus {
|
|
background: var(--meo-active-line-bg);
|
|
}
|
|
|
|
.cm-editor .meo-md-html-col-controls {
|
|
position: absolute;
|
|
top: -23px;
|
|
left: calc(100% - 26px);
|
|
width: 32px;
|
|
height: 15px;
|
|
padding: 5px 10px 10px 10px;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
gap: 2px;
|
|
opacity: 0;
|
|
pointer-events: auto;
|
|
z-index: 6;
|
|
}
|
|
|
|
.cm-editor .meo-md-html-col-controls-left-insert {
|
|
left: -10px;
|
|
width: 15px;
|
|
}
|
|
|
|
.cm-editor .meo-md-html-col-controls:hover,
|
|
.cm-editor .meo-md-html-col-controls:focus-within {
|
|
opacity: 1;
|
|
}
|
|
|
|
.cm-editor .meo-md-html-table thead th:last-child .meo-md-html-col-controls {
|
|
transform: translateX(-16px);
|
|
padding-right: 0;
|
|
}
|
|
|
|
.cm-editor .meo-md-html-col-btn,
|
|
.cm-editor .meo-md-html-row-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 15px;
|
|
height: 15px;
|
|
padding: 0;
|
|
border: 1px solid var(--meo-color-base03);
|
|
border-radius: 5px;
|
|
background: var(--vscode-sideBar-background);
|
|
color: var(--vscode-editor-foreground);
|
|
font-size: 11px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cm-editor .meo-md-html-col-btn:hover {
|
|
background: var(--vscode-toolbar-hoverBackground);
|
|
}
|
|
|
|
.cm-editor .meo-md-html-row-controls {
|
|
position: absolute;
|
|
bottom: -16px;
|
|
left: -18px;
|
|
width: 15px;
|
|
height: 32px;
|
|
padding-right: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 2px;
|
|
opacity: 0;
|
|
pointer-events: auto;
|
|
z-index: 6;
|
|
}
|
|
|
|
.cm-editor .meo-md-html-row-controls-top-insert {
|
|
top: -10px;
|
|
bottom: auto;
|
|
}
|
|
|
|
.cm-editor .meo-md-html-row-controls:hover,
|
|
.cm-editor .meo-md-html-row-controls:focus-within {
|
|
opacity: 1;
|
|
}
|
|
|
|
.cm-editor .meo-md-html-row-btn:hover {
|
|
background: var(--vscode-toolbar-hoverBackground);
|
|
}
|
|
|
|
.cm-editor .meo-md-table-header-line {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.cm-editor .cm-line.meo-md-table-delim-line {
|
|
color: var(--vscode-panel-border);
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .cm-line.meo-md-table-delim-line {
|
|
display: none;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .meo-md-table-cell {
|
|
display: block;
|
|
white-space: normal;
|
|
overflow-wrap: anywhere;
|
|
word-break: break-word;
|
|
box-sizing: border-box;
|
|
border-left: 1px solid var(--vscode-panel-border);
|
|
border-bottom: 1px solid var(--vscode-panel-border);
|
|
min-height: 1lh;
|
|
line-height: inherit;
|
|
padding: 0.25em 1ch;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .cm-line.meo-md-table-line:not(.meo-md-table-delim-line) .meo-md-table-cell.meo-md-table-cell-last {
|
|
border-right: 1px solid var(--vscode-panel-border);
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .cm-line.meo-md-table-header-line .meo-md-table-cell {
|
|
border-top: 1px solid var(--vscode-panel-border);
|
|
background-color: var(--vscode-sideBar-background);
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .cm-line.meo-md-table-line:not(.meo-md-table-delim-line) {
|
|
display: flex;
|
|
align-items: stretch;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
white-space: nowrap;
|
|
min-height: 1lh;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .cm-cursorLayer {
|
|
z-index: 4;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .cm-cursor {
|
|
border-left-color: var(--vscode-editorCursor-foreground, #ffffff) !important;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .cm-line.meo-md-table-header-line .meo-md-table-cell,
|
|
.cm-editor.meo-mode-live .cm-line.meo-md-table-header-line .meo-md-table-cell *,
|
|
.cm-editor.meo-mode-source .meo-md-source-table-header-cell,
|
|
.cm-editor.meo-mode-source .meo-md-source-table-header-cell * {
|
|
color: var(--vscode-editor-foreground) !important;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .meo-md-table-line .meo-md-marker-active,
|
|
.cm-editor.meo-mode-live .meo-md-table-line .meo-md-strike-marker-active {
|
|
display: none;
|
|
}
|
|
|
|
.cm-editor .meo-md-table-line:hover .meo-table-add-row-btn,
|
|
.cm-editor .meo-md-table-line.cm-activeLine .meo-table-add-row-btn {
|
|
opacity: 1;
|
|
}
|
|
|
|
.cm-editor .meo-md-table-header-line:hover .meo-table-add-col-btn,
|
|
.cm-editor .meo-md-table-header-line.cm-activeLine .meo-table-add-col-btn {
|
|
opacity: 1;
|
|
}
|
|
|
|
.cm-editor.meo-mode-live .cm-line.meo-md-frontmatter-content,
|
|
.cm-editor.meo-mode-source .cm-line.meo-md-frontmatter-content {
|
|
color: var(--meo-color-base07) !important;
|
|
}
|