]> BookStack Code Mirror - bookstack/blobdiff - resources/sass/_tinymce.scss
ExportFormatter: Add book description and check for empty book and chapter descriptio...
[bookstack] / resources / sass / _tinymce.scss
index 8e036fc462069c95834b4f095fa8824694a38fd2..129e478212b3b9b00849e109d3fca329b2258818 100644 (file)
   padding-block-end: 1rem;
   outline: 0;
   display: block;
+  max-width: 870px;
+}
+
+.wysiwyg-input.mce-content-body {
+  padding-block-start: 1rem;
+  padding-block-end: 1rem;
+  outline: 0;
+  display: block;
+}
+
+.wysiwyg-input.mce-content-body:before {
+  padding: 1rem;
+  top: 4px;
+  font-style: italic;
+  @include lightDark(color, rgba(34,47,62,.5), rgba(155,155,155,.5))
 }
 
 // Default styles for our custom root nodes
   display: block;
 }
 
-// In editor line height override
-.page-content.mce-content-body p {
-  line-height: 1.6;
-}
-
 // Pad out bottom of editor
 body.page-content.mce-content-body  {
   padding-bottom: 5rem;
@@ -96,6 +106,16 @@ body.page-content.mce-content-body  {
   float: none !important;
 }
 
+.page-content.mce-content-body td[data-mce-selected]::after,
+.page-content.mce-content-body th[data-mce-selected]::after {
+  top: 1px;
+  left: 1px;
+  bottom: 1px;
+  right: 1px;
+  outline: 1px dashed #1a85ff;
+  outline-offset: 0;
+}
+
 /**
  * Dark Mode Overrides
  */
@@ -153,7 +173,7 @@ body.page-content.mce-content-body  {
  * Fake task list checkboxes
  */
 .page-content.mce-content-body .task-list-item {
-  margin-left: 0;
+  margin-inline-start: 0;
   position: relative;
 }
 .page-content.mce-content-body .task-list-item > input[type="checkbox"] {
@@ -166,11 +186,11 @@ body.page-content.mce-content-body  {
   width: 12px;
   height: 12px;
   border-radius: 2px;
-  margin-right: 8px;
+  margin-inline-end: 8px;
   vertical-align: text-top;
   cursor: pointer;
   position: absolute;
-  left: -24px;
+  inset-inline-start: -24px;
   top: 4px;
 }