]> BookStack Code Mirror - bookstack/blobdiff - resources/sass/_tinymce.scss
Guest create page: name field autofocus
[bookstack] / resources / sass / _tinymce.scss
index 6add27f453ffbc11d847459b18988f141e46b063..7170f8101db3c8b8594bdab3179a8ef310fdc594 100644 (file)
@@ -35,6 +35,11 @@ body.page-content.mce-content-body  {
   padding-bottom: 5rem;
 }
 
+// Remove svg background line in toolbar items
+.tox .tox-pop__dialog .tox-toolbar {
+  background: transparent !important;
+}
+
 // Center toolbar items
 .tox-toolbar__primary {
   justify-content: center;
@@ -71,7 +76,7 @@ body.page-content.mce-content-body  {
 .dark-mode .tox .tox-dialog__footer,
 .dark-mode .tox .tox-pop__dialog,
 .dark-mode .tox.tox-tinymce-aux .tox-toolbar__overflow {
-    background-color: #333;
+    background-color: #333 !important;
 }
 .dark-mode .tox .tox-tbtn svg,
 .dark-mode .tox .tox-tbtn,
@@ -112,4 +117,36 @@ body.page-content.mce-content-body  {
 }
 .tox-menu .tox-collection__item-label {
   line-height: normal !important;
+}
+
+/**
+ * Fake task list checkboxes
+ */
+.page-content.mce-content-body .task-list-item {
+  margin-left: 0;
+  position: relative;
+}
+.page-content.mce-content-body .task-list-item > input[type="checkbox"] {
+  display: none;
+}
+.page-content.mce-content-body .task-list-item:before {
+  content: '';
+  display: inline-block;
+  border: 2px solid #CCC;
+  width: 12px;
+  height: 12px;
+  border-radius: 2px;
+  margin-right: 8px;
+  vertical-align: text-top;
+  cursor: pointer;
+  position: absolute;
+  left: -24px;
+  top: 4px;
+}
+
+.page-content.mce-content-body .task-list-item[checked]:before {
+  background-color: #CCC;
+  background-image: url('data:image/svg+xml;utf8,<svg fill="%23FFFFFF" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m8.4856 20.274-6.736-6.736 2.9287-2.7823 3.8073 3.8073 10.836-10.836 2.9287 2.9287z" stroke-width="1.4644"/></svg>');
+  background-position: 50% 50%;
+  background-size: 100% 100%;
 }
\ No newline at end of file