2017-08-26 22:47:37 +02:00
|
|
|
.CodeMirror {
|
2020-01-18 08:13:11 +01:00
|
|
|
border: 1px solid var(--color-input-border);
|
2019-11-22 22:13:00 +01:00
|
|
|
border-bottom-left-radius: var(--border-radius);
|
|
|
|
border-bottom-right-radius: var(--border-radius);
|
2022-03-31 11:19:32 +02:00
|
|
|
background: rgba(var(--color-header-background-base), 1);
|
2019-11-22 22:13:00 +01:00
|
|
|
color: var(--color-input);
|
2017-08-26 22:47:37 +02:00
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
.CodeMirror-placeholder {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2017-08-26 22:47:37 +02:00
|
|
|
}
|
|
|
|
|
2020-01-18 08:13:11 +01:00
|
|
|
.CodeMirror-wrap {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
.editor-toolbar {
|
2019-11-22 22:13:00 +01:00
|
|
|
background-color: var(--color-header-background);
|
2018-10-17 19:14:24 +02:00
|
|
|
border: none;
|
2019-11-22 22:13:00 +01:00
|
|
|
border-top-left-radius: var(--border-radius);
|
|
|
|
border-top-right-radius: var(--border-radius);
|
|
|
|
border-right: 1px solid var(--color-input-border);
|
|
|
|
border-top: 1px solid var(--color-input-border);
|
|
|
|
border-left: 1px solid var(--color-input-border);
|
|
|
|
|
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) {
|
|
|
|
border-color: transparent;
|
|
|
|
opacity: 0.3;
|
|
|
|
}
|
2017-08-26 22:47:37 +02:00
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
&.fullscreen {
|
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2018-07-28 22:17:06 +02:00
|
|
|
|
2019-03-21 16:22:23 +01:00
|
|
|
button {
|
2019-11-22 22:13:00 +01:00
|
|
|
color: var(--color-header-link);
|
2019-03-21 16:22:23 +01:00
|
|
|
border-color: transparent;
|
2018-10-17 00:29:55 +02:00
|
|
|
transition: opacity 0.3s ease;
|
|
|
|
}
|
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
|
|
|
}
|
2018-06-24 17:27:34 +02:00
|
|
|
}
|
2019-02-13 17:27:20 +01:00
|
|
|
|
2022-03-31 21:55:00 +02:00
|
|
|
.editor-statusbar {
|
|
|
|
.editor-statusbar__upload-hint {
|
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-13 17:27:20 +01:00
|
|
|
.form-field--SimpleMDE {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-top: var(--spacing-l);
|
2020-05-21 09:25:37 +02:00
|
|
|
|
2021-02-26 09:22:03 +01:00
|
|
|
.cm-s-easymde {
|
|
|
|
border-color: var(--color-input-border);
|
|
|
|
}
|
|
|
|
|
2020-06-03 05:01:21 +02:00
|
|
|
.cm-s-easymde .CodeMirror-cursor {
|
|
|
|
border-left: 1px solid var(--color-editor-cursor);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-s-easymde .CodeMirror-selected {
|
|
|
|
background: var(--color-editor-selected);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-s-easymde .cm-hr {
|
|
|
|
color: var(--color-editor-tag);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-s-easymde .cm-tag {
|
|
|
|
color: var(--color-editor-tag);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-s-easymde .cm-attribute {
|
|
|
|
color: var(--color-editor-attr);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-s-easymde .cm-string {
|
|
|
|
color: var(--color-editor-string);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-s-easymde .cm-comment {
|
|
|
|
background: var(--color-editor-inline-code-bg);
|
|
|
|
padding: 3px 0px; // @todo: should fill up line-spacing instead of harcoded.
|
|
|
|
}
|
|
|
|
|
2020-05-07 21:06:21 +02:00
|
|
|
.cm-s-easymde .cm-link {
|
2020-06-03 05:01:21 +02:00
|
|
|
color: var(--color-editor-link);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-s-easymde .cm-url {
|
|
|
|
color: var(--color-editor-url);
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-s-easymde .cm-quote {
|
|
|
|
color: var(--color-editor-quote);
|
|
|
|
font-style: italic;
|
2020-05-07 21:06:21 +02:00
|
|
|
}
|
2020-05-21 09:25:37 +02:00
|
|
|
|
2019-03-21 16:22:23 +01:00
|
|
|
// Overriding the lbry/components form styling
|
|
|
|
.editor-toolbar {
|
|
|
|
button:not(.button) {
|
|
|
|
padding-right: 0;
|
|
|
|
padding-left: 0;
|
|
|
|
background-color: transparent !important;
|
|
|
|
border: transparent;
|
|
|
|
|
|
|
|
&:hover {
|
2019-11-22 22:13:00 +01:00
|
|
|
color: var(--color-header-link-active);
|
2019-03-21 16:22:23 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-02-13 17:27:20 +01:00
|
|
|
}
|