2017-08-26 22:47:37 +02:00
|
|
|
.CodeMirror {
|
2018-10-19 23:37:46 +02:00
|
|
|
border-top: none;
|
|
|
|
border-right: 1px solid $lbry-gray-1;
|
|
|
|
border-bottom: 1px solid $lbry-gray-1;
|
|
|
|
border-left: 1px solid $lbry-gray-1;
|
2018-07-28 23:27:28 +02:00
|
|
|
border-radius: 0;
|
2018-10-17 00:29:55 +02:00
|
|
|
background: $lbry-white;
|
|
|
|
color: $lbry-black;
|
2017-08-26 22:47:37 +02:00
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
.CodeMirror-cursor {
|
|
|
|
border-color: $lbry-teal-3;
|
|
|
|
}
|
2018-07-28 23:27:28 +02:00
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
.CodeMirror-placeholder {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2017-08-26 22:47:37 +02:00
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
.cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word) {
|
|
|
|
text-decoration: underline;
|
|
|
|
text-decoration-color: $lbry-red-3;
|
|
|
|
text-decoration-style: dotted;
|
|
|
|
}
|
2019-01-08 00:29:40 +01:00
|
|
|
|
|
|
|
html[data-theme='dark'] & {
|
|
|
|
border-left: 1px solid rgba($lbry-white, 0.2);
|
|
|
|
border-right: 1px solid rgba($lbry-white, 0.2);
|
|
|
|
border-bottom: 1px solid rgba($lbry-white, 0.2);
|
|
|
|
background-color: rgba($lbry-white, 0.1);
|
|
|
|
color: $lbry-white;
|
|
|
|
|
|
|
|
.CodeMirror-selectedtext {
|
|
|
|
color: $lbry-black;
|
|
|
|
}
|
|
|
|
|
|
|
|
.editor-preview.editor-preview-active {
|
|
|
|
background-color: $lbry-gray-5;
|
|
|
|
color: $lbry-black;
|
|
|
|
}
|
|
|
|
}
|
2017-08-26 22:47:37 +02:00
|
|
|
}
|
|
|
|
|
2018-10-17 00:29:55 +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
|
|
|
}
|
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
.editor-toolbar {
|
|
|
|
background-color: $lbry-gray-1;
|
2018-10-17 19:14:24 +02:00
|
|
|
border: none;
|
2018-10-17 00:29:55 +02:00
|
|
|
border-radius: 0;
|
2018-10-17 19:14:24 +02:00
|
|
|
opacity: 1; // ?
|
2017-08-26 22:47:37 +02:00
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
&:hover {
|
|
|
|
opacity: 1; // ?
|
|
|
|
}
|
2017-08-26 22:47:37 +02:00
|
|
|
|
2018-10-17 00:29:55 +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
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
&.fullscreen {
|
|
|
|
background-color: $lbry-gray-1;
|
2017-08-26 22:47:37 +02:00
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2018-07-28 22:17:06 +02:00
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
a {
|
2018-10-31 19:51:48 +01:00
|
|
|
color: $lbry-black;
|
2018-10-17 00:29:55 +02:00
|
|
|
transition: opacity 0.3s ease;
|
|
|
|
|
|
|
|
&:not(.active),
|
|
|
|
&:not(:hover) {
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active,
|
|
|
|
&:hover {
|
|
|
|
border-color: transparent;
|
2018-10-17 21:42:05 +02:00
|
|
|
opacity: 1;
|
2018-10-17 00:29:55 +02:00
|
|
|
}
|
|
|
|
}
|
2018-07-28 22:17:06 +02:00
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
i.separator {
|
2018-10-17 19:14:24 +02:00
|
|
|
border: none;
|
2018-10-17 00:29:55 +02:00
|
|
|
}
|
2019-01-08 00:29:40 +01:00
|
|
|
|
|
|
|
html[data-theme='dark'] & {
|
|
|
|
background-color: rgba($lbry-white, 0.2);
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: $lbry-white !important; // We need to use !important to override the CodeMirror styles
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
background-color: rgba($lbry-black, 0.4);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $lbry-black !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.disabled-for-preview {
|
|
|
|
a:not(.no-disable) {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
// The markdown preview button is highlighted during preview when the other buttons are disabled
|
|
|
|
a.no-disable {
|
|
|
|
background-color: rgba($lbry-white, 0.3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-07-28 22:17:06 +02:00
|
|
|
}
|
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
.editor-statusbar {
|
|
|
|
color: rgba($lbry-black, 0.5);
|
2018-12-19 06:44:53 +01:00
|
|
|
font-size: 1rem;
|
|
|
|
padding: var(--spacing-vertical-medium) 0; // overriding styles from elsewhere
|
|
|
|
|
|
|
|
html[data-theme='dark'] & {
|
|
|
|
color: inherit;
|
|
|
|
}
|
2018-06-24 17:27:34 +02:00
|
|
|
}
|