lbry-desktop/ui/scss/component/_markdown-editor.scss

119 lines
2.3 KiB
SCSS
Raw Permalink Normal View History

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);
background: var(--color-input-bg);
color: var(--color-input);
2017-08-26 22:47:37 +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;
}
.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
&:hover {
opacity: 1; // ?
}
2017-08-26 22:47:37 +02:00
&.disabled-for-preview a:not(.no-disable) {
border-color: transparent;
opacity: 0.3;
}
2017-08-26 22:47:37 +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;
transition: opacity 0.3s ease;
}
2018-07-28 22:17:06 +02:00
i.separator {
2018-10-17 19:14:24 +02:00
border: none;
}
}
2019-02-13 17:27:20 +01:00
.form-field--SimpleMDE {
2020-06-01 19:03:19 +02:00
margin-top: var(--spacing-l);
.cm-s-easymde {
border-color: var(--color-input-border);
}
.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 {
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
}
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
}