lbry-desktop/src/renderer/scss/component/_markdown-editor.scss

88 lines
1.9 KiB
SCSS
Raw Normal View History

2017-08-26 22:47:37 +02:00
.CodeMirror {
2018-07-28 03:42:35 +02:00
background: var(--color-canvas);
border: 0px;
border-radius: 0px;
color: var(--text-color);
box-shadow: var(--box-shadow-layer);
2017-08-26 22:47:37 +02:00
}
.editor-toolbar {
opacity: 1 !important;
border: 0 !important;
background: var(--color-bg-alt);
border-radius: 0 !important;
box-shadow: var(--box-shadow-layer);
2017-08-26 22:47:37 +02:00
}
.editor-toolbar i.separator {
border: 0 !important;
border-right: var(--divider) !important;
2017-08-26 22:47:37 +02:00
}
.editor-toolbar.fullscreen {
background: var(--color-bg) !important;
2017-08-26 22:47:37 +02:00
}
div.editor-toolbar a {
opacity: 0.64;
color: var(--text-color) !important;
2017-08-26 22:47:37 +02:00
}
.editor-toolbar a.active,
.editor-toolbar a:hover {
opacity: 1;
background: var(--button-bg) !important;
border-color: transparent !important;
2017-08-26 22:47:37 +02:00
}
.editor-toolbar.disabled-for-preview a:not(.no-disable) {
background: var(--color-bg-alt) !important;
border-color: transparent !important;
2017-08-26 22:47:37 +02:00
}
.editor-statusbar {
color: var(--form-label-color) !important;
2017-08-26 22:47:37 +02:00
}
.editor-preview {
2018-05-30 20:12:54 +02:00
font-size: calc(var(--font-size-subtext-multiple) * 1em);
background: var(--color-bg) !important;
border: 0;
2017-08-26 22:47:37 +02:00
}
.editor-preview-side {
background: var(--color-bg-alt) !important;
border: 1px solid var(--input-border-color) !important;
2017-08-26 22:47:37 +02:00
}
.CodeMirror .CodeMirror-cursor {
border-color: var(--color-primary) !important;
2017-08-26 22:47:37 +02:00
}
.CodeMirror .CodeMirror-placeholder {
opacity: 0.5;
2017-08-26 22:47:37 +02:00
}
2018-07-28 22:17:06 +02:00
/* Fix selection */
.CodeMirror-line::selection,
.CodeMirror-line > span::selection,
.CodeMirror-line > span > span::selection {
background: var(--text-selection-bg);
}
.CodeMirror .CodeMirror-selected {
background: transparent;
}
.CodeMirror .CodeMirror-selectedtext {
background: var(--editor-text-selection-bg) !important;
color: var(--text-selection-color) !important;
}
.CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word) {
background: none;
text-decoration: underline;
text-decoration-color: #f00;
text-decoration-style: dotted;
}