ds4/scss/components/shared/_editor.scss

53 lines
862 B
SCSS

/*
* SPDX-FileCopyrightText: 2021 Johannes Loher
*
* SPDX-License-Identifier: MIT
*/
.ds4-sheet-form {
.editor {
height: 100%;
.tox {
.tox-toolbar-overlord,
.tox-toolbar__primary {
background: transparent;
}
}
}
}
// General ProseMirror editor styles
prose-mirror {
height: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
// Edit mode with editor container
&.active {
.editor-container {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
.editor-content {
flex: 1;
overflow-y: auto;
min-height: 0;
}
}
}
// View mode - direct editor-content
&.inactive {
.editor-content {
position: relative;
flex: 1;
overflow-y: auto;
min-height: 0;
inset: auto;
}
}
}