]> BookStack Code Mirror - bookstack/blobdiff - resources/sass/_tinymce.scss
Updated attachment links to have dropdown for open type
[bookstack] / resources / sass / _tinymce.scss
index 6add27f453ffbc11d847459b18988f141e46b063..0ee3fa40b235298e3ceaf0bf64ab4bb6456b050d 100644 (file)
@@ -112,4 +112,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