lbry-desktop/ui/scss/component/_markdown-editor.scss
2019-12-10 10:08:14 -05:00

70 lines
1.5 KiB
SCSS

.CodeMirror {
border-top: none;
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);
.CodeMirror-placeholder {
opacity: 0.5;
}
}
.editor-toolbar {
background-color: var(--color-header-background);
border: none;
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);
opacity: 1; // ?
&:hover {
opacity: 1; // ?
}
&.disabled-for-preview a:not(.no-disable) {
border-color: transparent;
opacity: 0.3;
}
&.fullscreen {
&::before,
&::after {
display: none;
}
}
button {
color: var(--color-header-link);
border-color: transparent;
transition: opacity 0.3s ease;
}
i.separator {
border: none;
}
}
.form-field--SimpleMDE {
margin-top: var(--spacing-large);
// Overriding the lbry/components form styling
.editor-toolbar {
button:not(.button) {
padding-right: 0;
padding-left: 0;
background-color: transparent !important;
border: transparent;
&:hover {
color: var(--color-header-link-active);
}
}
}
}