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

96 lines
1.7 KiB
SCSS
Raw Normal View History

2017-08-26 22:47:37 +02:00
.CodeMirror {
border: 0;
border-radius: 0;
background: $lbry-white;
color: $lbry-black;
2017-08-26 22:47:37 +02:00
.CodeMirror-cursor {
border-color: $lbry-teal-3;
}
.CodeMirror-placeholder {
opacity: 0.5;
}
2017-08-26 22:47:37 +02:00
.CodeMirror-selected {
background-color: transparent;
}
.CodeMirror-selectedtext {
background-color: rgba($lbry-teal-3, 0.3);
color: $lbry-white;
}
2017-08-26 22:47:37 +02:00
.cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word) {
background: none;
text-decoration: underline;
text-decoration-color: $lbry-red-3;
text-decoration-style: dotted;
}
2017-08-26 22:47:37 +02:00
}
// Fix selection
.CodeMirror-line::selection,
.CodeMirror-line > span::selection,
.CodeMirror-line > span > span::selection {
background-color: $lbry-teal-1;
2017-08-26 22:47:37 +02:00
}
.editor-toolbar {
opacity: 1; // ?
border: 0;
background-color: $lbry-gray-1;
border-radius: 0;
// box-shadow: var(--box-shadow-layer);
2017-08-26 22:47:37 +02:00
&:hover {
opacity: 1; // ?
}
2017-08-26 22:47:37 +02:00
&.disabled-for-preview a:not(.no-disable) {
background-color: $lbry-gray-1;
border-color: transparent;
opacity: 0.3;
}
2017-08-26 22:47:37 +02:00
&.fullscreen {
background-color: $lbry-gray-1;
2017-08-26 22:47:37 +02:00
&::before,
&::after {
display: none;
}
}
2018-07-28 22:17:06 +02:00
a {
color: $lbry-black !important;
transition: opacity 0.3s ease;
&:not(.active),
&:not(:hover) {
opacity: 0.6;
}
&.active,
&:hover {
opacity: 1;
// background-color: var(--button-bg); // "--button-bg" does not exist
border-color: transparent;
}
}
2018-07-28 22:17:06 +02:00
i.separator {
border: 0;
}
2018-07-28 22:17:06 +02:00
}
.editor-preview {
font-size: calc(var(--font-size-subtext-multiple) * 1em);
background-color: rgba($lbry-gray-1, 0.5);
border: 0;
2018-07-28 22:17:06 +02:00
}
.editor-statusbar {
color: rgba($lbry-black, 0.5);
}