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

91 lines
2 KiB
SCSS
Raw Normal View History

2017-08-26 22:47:37 +02:00
.CodeMirror {
2018-10-19 23:37:46 +02:00
border-top: none;
2019-11-22 22:13:00 +01:00
border-right: 1px solid var(--color-input-border);
border-bottom: 1px solid var(--color-input-border);
border-left: 1px solid var(--color-input-border);
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-cursor {
2019-11-22 22:13:00 +01:00
border-color: black; //teal-3;
}
.CodeMirror-placeholder {
opacity: 0.5;
}
2017-08-26 22:47:37 +02:00
.cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word) {
text-decoration: underline;
2019-11-22 22:13:00 +01:00
text-decoration-color: black; //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 {
2019-11-22 22:13:00 +01:00
background-color: black; //teal-1;
2017-08-26 22:47:37 +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
&:hover {
opacity: 1; // ?
}
2017-08-26 22:47:37 +02:00
&.disabled-for-preview a:not(.no-disable) {
2019-11-22 22:13:00 +01:00
background-color: black; //gray-1;
border-color: transparent;
opacity: 0.3;
}
2017-08-26 22:47:37 +02:00
&.fullscreen {
2019-11-22 22:13:00 +01:00
background-color: black; //gray-1;
2017-08-26 22:47:37 +02:00
&::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 {
2019-06-11 20:10:58 +02:00
margin-top: var(--spacing-large);
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
}