2 // Custom full screen mode
12 // Editor wrapper edits
18 // In editor body overrides
19 .page-content.mce-content-body {
20 padding-block-start: 1rem;
21 padding-block-end: 1rem;
26 // Default styles for our custom root nodes
27 .page-content.mce-content-body doc-root {
30 .page-content.mce-content-body code-block {
34 // In editor line height override
35 .page-content.mce-content-body p {
39 // Pad out bottom of editor
40 body.page-content.mce-content-body {
44 // Remove svg background line in toolbar items
45 .tox .tox-pop__dialog .tox-toolbar {
46 background: transparent !important;
49 // Center toolbar items
50 .tox-toolbar__primary {
51 justify-content: center;
54 // Prevent scroll jumps on codemirror clicks
55 .page-content.mce-content-body code-block > * {
58 .page-content.mce-content-body code-block pre {
62 // Details/summary editor usability
63 .page-content.mce-content-body details summary {
66 .page-content.mce-content-body details doc-root {
68 margin-left: (2px - $-s);
69 margin-right: (2px - $-s);
70 margin-bottom: (2px - $-s);
71 margin-top: (2px - $-s);
75 // Allow alignment to be reflected in media embed wrappers
76 .page-content.mce-content-body .mce-preview-object.align-right {
77 float: right !important;
78 margin: $-xs 0 $-xs $-s;
81 .page-content.mce-content-body .mce-preview-object.align-left {
82 float: left !important;
83 margin: $-xs $-m $-m 0;
86 .page-content.mce-content-body .mce-preview-object.align-center {
92 .page-content.mce-content-body .mce-preview-object iframe,
93 .page-content.mce-content-body .mce-preview-object video {
96 float: none !important;
100 * Dark Mode Overrides
102 .dark-mode .tox .tox-toolbar__primary,
103 .dark-mode .tox .tox-menu,
104 .dark-mode .tox .tox-dialog__header,
105 .dark-mode .tox .tox-dialog,
106 .dark-mode .tox .tox-dialog__footer,
107 .dark-mode .tox .tox-pop__dialog,
108 .dark-mode .tox.tox-tinymce-aux .tox-toolbar__overflow {
109 background-color: #333 !important;
111 .dark-mode .tox .tox-tbtn svg,
112 .dark-mode .tox .tox-tbtn,
113 .dark-mode .tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled)
124 .tox .tox-tbtn--bespoke .tox-tbtn__select-label {
125 width: 6em !important;
127 .tox-menu .tox-collection__item blockquote::before {
130 .tox-menu .tox-collection__item blockquote {
131 border-left: 4px solid var(--color-primary) !important;
132 padding: 4px 6px !important;
134 .tox-menu .tox-collection__item blockquote {
135 border-left: 4px solid var(--color-primary) !important;
136 padding: 4px 6px !important;
138 .tox-menu .tox-collection__item p[style*="background-color"] {
139 padding: 4px 6px !important;
140 border-left: 3px solid currentColor !important;
142 .tox-menu .tox-collection__item[title^="<"] > div > div {
143 font-family: var(--font-code) !important;
144 border: 1px solid #DDD !important;
145 background-color: #EEE !important;
146 padding: 4px 6px !important;
148 .tox-menu .tox-collection__item-label {
149 line-height: normal !important;
153 * Fake task list checkboxes
155 .page-content.mce-content-body .task-list-item {
159 .page-content.mce-content-body .task-list-item > input[type="checkbox"] {
162 .page-content.mce-content-body .task-list-item:before {
164 display: inline-block;
165 border: 2px solid #CCC;
170 vertical-align: text-top;
177 .page-content.mce-content-body .task-list-item[checked]:before {
178 background-color: #CCC;
179 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>');
180 background-position: 50% 50%;
181 background-size: 100% 100%;