1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-10-30 23:52:40 +01:00
BookStack/resources/sass/_tinymce.scss

84 lines
1.7 KiB
SCSS
Raw Normal View History

2015-07-15 23:55:49 +02:00
.mce-tinymce.mce-container.mce-fullscreen {
2015-07-15 23:55:49 +02:00
position: fixed;
top: 0;
height: 100%;
width: 100%;
2015-07-21 22:16:26 +02:00
max-width: 100%;
z-index: 100;
2015-07-21 23:11:30 +02:00
}
.mce-tinymce {
.mce-panel {
@include lightDark(background-color, #fff, #333);
}
.mce-btn {
@include lightDark(background-color, #fff, #333);
}
2015-08-31 12:43:28 +02:00
}
2015-10-18 21:06:49 +02:00
.mce-container-body.mce-flow-layout {
text-align: center;
}
2019-04-13 19:30:11 +02:00
@include smaller-than($l) {
.mce-container-body.mce-flow-layout {
overflow-x: scroll;
white-space: nowrap;
}
}
.edit-area.flex > div > .mce-tinymce.mce-container.mce-panel {
flex: 1 1 auto;
2015-08-31 12:43:28 +02:00
display: flex !important;
flex-direction: column;
align-items: stretch;
margin: 0 -1px;
> .mce-container-body {
flex: 1 1 auto;
2015-08-31 12:43:28 +02:00
display: flex !important;
flex-direction: column;
align-items: stretch;
> .mce-toolbar-grp {
flex: 0 1 auto;
}
2015-08-31 12:43:28 +02:00
> .mce-edit-area {
flex: 1 1 auto;
2015-08-31 12:43:28 +02:00
display: flex !important;
flex-direction: column;
align-items: stretch;
-webkit-overflow-scrolling:touch;
overflow:auto;
2015-08-31 12:43:28 +02:00
iframe {
flex: 1;
// Force TinyMCE iframe to render on its own layer
// for much greater performance in Safari
will-change: transform;
2015-08-31 12:43:28 +02:00
}
}
}
}
.page-content.mce-content-body p {
line-height: 1.6;
}
.page-content.mce-content-body {
padding-block-start: 1rem;
padding-block-end: 1rem;
outline: none;
display: block;
}
.page-content.mce-content-body > :last-child {
margin-bottom: 3rem;
}
// Fix to prevent 'No color' option from not being clickable.
.mce-colorbtn-trans {
overflow: hidden;
}
// Fix to prevent CodeMirror focus events throwing TinyMCE cursor position.
.mce-content-body .CodeMirrorContainer > .CodeMirror {
pointer-events: none;
2015-07-15 23:55:49 +02:00
}