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

119 lines
2.3 KiB
SCSS
Raw Normal View History

2017-08-26 14:47:37 -06:00
.CodeMirror {
2020-01-18 20:13:11 +13:00
border: 1px solid var(--color-input-border);
2019-11-22 16:13:00 -05: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 14:47:37 -06:00
.CodeMirror-placeholder {
opacity: 0.5;
}
2017-08-26 14:47:37 -06:00
}
2020-01-18 20:13:11 +13:00
.CodeMirror-wrap {
overflow: hidden;
}
.editor-toolbar {
2019-11-22 16:13:00 -05:00
background-color: var(--color-header-background);
2018-10-17 12:14:24 -05:00
border: none;
2019-11-22 16:13:00 -05: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 12:14:24 -05:00
opacity: 1; // ?
2017-08-26 14:47:37 -06:00
&:hover {
opacity: 1; // ?
}
2017-08-26 14:47:37 -06:00
&.disabled-for-preview a:not(.no-disable) {
border-color: transparent;
opacity: 0.3;
}
2017-08-26 14:47:37 -06:00
&.fullscreen {
&::before,
&::after {
display: none;
}
}
2018-07-28 14:17:06 -06:00
2019-03-21 11:22:23 -04:00
button {
2019-11-22 16:13:00 -05:00
color: var(--color-header-link);
2019-03-21 11:22:23 -04:00
border-color: transparent;
transition: opacity 0.3s ease;
}
2018-07-28 14:17:06 -06:00
i.separator {
2018-10-17 12:14:24 -05:00
border: none;
}
}
2019-02-13 12:27:20 -04:00
.form-field--SimpleMDE {
2020-06-01 13:03:19 -04: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 14:06:21 -05: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 14:06:21 -05:00
}
2019-03-21 11:22:23 -04: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 16:13:00 -05:00
color: var(--color-header-link-active);
2019-03-21 11:22:23 -04:00
}
}
}
2019-02-13 12:27:20 -04:00
}