2025-06-07 01:30:17 +00:00
|
|
|
/* Variant Editor Plugin Styles */
|
2025-06-05 02:50:55 +00:00
|
|
|
|
2025-06-07 01:30:17 +00:00
|
|
|
/* Dimmed lines */
|
2025-06-07 05:07:59 +00:00
|
|
|
.markdown-source-view .cm-line.fh-dim,
|
|
|
|
|
.cm-line.fh-dim {
|
2025-06-07 01:30:17 +00:00
|
|
|
opacity: 0.25;
|
|
|
|
|
}
|
2025-06-05 02:50:55 +00:00
|
|
|
|
2025-06-07 01:30:17 +00:00
|
|
|
/* Active line (contains the selected text) */
|
|
|
|
|
.markdown-source-view .cm-line.fh-active {
|
|
|
|
|
opacity: 1 !important;
|
|
|
|
|
position: relative;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
background-color: var(--background-primary);
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
box-shadow: 0 0 0 1px var(--background-modifier-border);
|
|
|
|
|
}
|
2025-06-05 02:50:55 +00:00
|
|
|
|
2025-06-07 01:30:17 +00:00
|
|
|
/* When in sentence mode, make the active line more subtle */
|
|
|
|
|
.markdown-source-view .cm-line.fh-active:not(.fh-dim) {
|
|
|
|
|
background-color: var(--background-primary);
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Highlighted text */
|
|
|
|
|
.fh-highlight {
|
|
|
|
|
background-color: var(--text-highlight-bg);
|
|
|
|
|
color: var(--text-normal) !important;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
padding: 0 2px;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
|
|
|
}
|
2025-06-07 02:03:15 +00:00
|
|
|
|
|
|
|
|
/* Modal styles */
|
|
|
|
|
.variant-editor-textarea {
|
|
|
|
|
width: 100%;
|
|
|
|
|
min-height: 150px;
|
|
|
|
|
border: 1px solid var(--background-modifier-border);
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
background-color: var(--background-primary);
|
|
|
|
|
color: var(--text-normal);
|
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
font-family: var(--font-text);
|
|
|
|
|
resize: vertical;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.variant-editor-textarea:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
border-color: var(--interactive-accent);
|
|
|
|
|
box-shadow: 0 0 0 2px rgba(var(--interactive-accent-rgb), 0.2);
|
|
|
|
|
}
|