scinote-web/app/assets/stylesheets/protocols/tinymce_editor.scss

77 lines
1.3 KiB
SCSS
Raw Normal View History

2023-08-31 21:50:35 +08:00
.protocol-content,
.my-modules-results {
.tinymce-wrapper {
width: 100%;
.tox-tinymce {
flex-grow: 1;
}
}
.tinymce-container {
align-items: center;
border-radius: 4px;
display: flex;
min-height: 36px;
width: 100%;
2023-08-31 21:50:35 +08:00
.tiny-mce-editor {
flex-basis: 100%;
max-width: 100%;
}
form > .form-group {
margin-bottom: 0;
> .mce-tinymce {
border: 1px solid $color-silver-chalice;
box-shadow: none;
}
}
&.error {
.form-group > .mce-tinymce {
border-color: $brand-danger;
}
.tinymce-save-button {
opacity: .5;
pointer-events: none;
}
}
.mce-tinymce.mce-container.mce-panel {
border-radius: 4px;
}
.mce-menubar.mce-toolbar.mce-first {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.mce-statusbar {
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
.tinymce-status-badge {
display: none;
}
.tinymce-view {
border-color: transparent;
padding: .1em 0;
&:hover {
2023-08-10 21:38:49 +08:00
border: 1px solid transparent;
}
}
}
.tinymce-error {
color: $brand-danger;
font-size: 12px;
margin-top: 2px;
}
}