| 
									
										
										
										
											2015-07-16 05:55:49 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-08 18:09:17 +08:00
										 |  |  | // Custom full screen mode
 | 
					
						
							| 
									
										
										
										
											2022-02-06 00:55:53 +08:00
										 |  |  | .tox.tox-fullscreen { | 
					
						
							| 
									
										
										
										
											2015-07-16 05:55:49 +08:00
										 |  |  |   position: fixed; | 
					
						
							|  |  |  |   top: 0; | 
					
						
							|  |  |  |   height: 100%; | 
					
						
							| 
									
										
										
										
											2017-12-09 20:37:44 +08:00
										 |  |  |   width: 100%; | 
					
						
							| 
									
										
										
										
											2015-07-22 04:16:26 +08:00
										 |  |  |   max-width: 100%; | 
					
						
							| 
									
										
										
										
											2017-12-09 20:37:44 +08:00
										 |  |  |   z-index: 100; | 
					
						
							| 
									
										
										
										
											2015-07-22 05:11:30 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-08 18:09:17 +08:00
										 |  |  | // In editor body overrides
 | 
					
						
							| 
									
										
										
										
											2022-02-06 00:55:53 +08:00
										 |  |  | .page-content.mce-content-body { | 
					
						
							|  |  |  |   padding-block-start: 1rem; | 
					
						
							|  |  |  |   padding-block-end: 1rem; | 
					
						
							|  |  |  |   outline: 0; | 
					
						
							|  |  |  |   display: block; | 
					
						
							| 
									
										
										
										
											2015-08-31 18:43:28 +08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2015-10-19 03:06:49 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-09 19:25:22 +08:00
										 |  |  | // Default styles for our custom root nodes
 | 
					
						
							|  |  |  | .page-content.mce-content-body doc-root { | 
					
						
							|  |  |  |   display: block; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2022-02-10 03:24:27 +08:00
										 |  |  | .page-content.mce-content-body code-block { | 
					
						
							|  |  |  |   display: block; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2022-02-09 19:25:22 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-08 18:09:17 +08:00
										 |  |  | // In editor line height override
 | 
					
						
							| 
									
										
										
										
											2022-02-06 00:55:53 +08:00
										 |  |  | .page-content.mce-content-body p { | 
					
						
							|  |  |  |   line-height: 1.6; | 
					
						
							| 
									
										
										
										
											2015-10-19 03:06:49 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-08 18:09:17 +08:00
										 |  |  | // Pad out bottom of editor
 | 
					
						
							| 
									
										
										
										
											2022-02-09 01:05:38 +08:00
										 |  |  | body.page-content.mce-content-body  { | 
					
						
							|  |  |  |   padding-bottom: 5rem; | 
					
						
							| 
									
										
										
										
											2022-02-06 05:20:20 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-07-23 17:43:47 +08:00
										 |  |  | // Remove svg background line in toolbar items
 | 
					
						
							|  |  |  | .tox .tox-pop__dialog .tox-toolbar { | 
					
						
							|  |  |  |   background: transparent !important; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-08 18:09:17 +08:00
										 |  |  | // Center toolbar items
 | 
					
						
							| 
									
										
										
										
											2022-02-06 00:55:53 +08:00
										 |  |  | .tox-toolbar__primary { | 
					
						
							|  |  |  |   justify-content: center; | 
					
						
							| 
									
										
										
										
											2019-04-14 01:30:11 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-08 19:10:01 +08:00
										 |  |  | // Prevent scroll jumps on codemirror clicks
 | 
					
						
							| 
									
										
										
										
											2022-02-10 03:24:27 +08:00
										 |  |  | .page-content.mce-content-body code-block > * { | 
					
						
							| 
									
										
										
										
											2022-02-08 19:10:01 +08:00
										 |  |  |   pointer-events: none; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2022-02-10 03:24:27 +08:00
										 |  |  | .page-content.mce-content-body code-block pre { | 
					
						
							|  |  |  |   display: none; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2022-02-08 18:09:17 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-09 18:40:46 +08:00
										 |  |  | // Details/summary editor usability
 | 
					
						
							| 
									
										
										
										
											2022-02-09 07:08:00 +08:00
										 |  |  | .page-content.mce-content-body details summary { | 
					
						
							|  |  |  |   pointer-events: none; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2022-02-09 19:25:22 +08:00
										 |  |  | .page-content.mce-content-body details doc-root { | 
					
						
							| 
									
										
										
										
											2022-02-09 18:40:46 +08:00
										 |  |  |   padding: $-s; | 
					
						
							|  |  |  |   margin-left: (2px - $-s); | 
					
						
							|  |  |  |   margin-right: (2px - $-s); | 
					
						
							|  |  |  |   margin-bottom: (2px - $-s); | 
					
						
							| 
									
										
										
										
											2022-02-10 03:24:27 +08:00
										 |  |  |   margin-top: (2px - $-s); | 
					
						
							|  |  |  |   overflow: hidden; | 
					
						
							| 
									
										
										
										
											2022-02-09 18:40:46 +08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2022-02-09 07:08:00 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-08 18:09:17 +08:00
										 |  |  | /** | 
					
						
							|  |  |  |  * Dark Mode Overrides | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | .dark-mode .tox .tox-toolbar__primary, | 
					
						
							|  |  |  | .dark-mode .tox .tox-menu, | 
					
						
							|  |  |  | .dark-mode .tox .tox-dialog__header, | 
					
						
							|  |  |  | .dark-mode .tox .tox-dialog, | 
					
						
							|  |  |  | .dark-mode .tox .tox-dialog__footer, | 
					
						
							|  |  |  | .dark-mode .tox .tox-pop__dialog, | 
					
						
							|  |  |  | .dark-mode .tox.tox-tinymce-aux .tox-toolbar__overflow { | 
					
						
							| 
									
										
										
										
											2022-07-23 18:22:34 +08:00
										 |  |  |     background-color: #333 !important; | 
					
						
							| 
									
										
										
										
											2022-02-08 18:09:17 +08:00
										 |  |  | } | 
					
						
							|  |  |  | .dark-mode .tox .tox-tbtn svg, | 
					
						
							|  |  |  | .dark-mode .tox .tox-tbtn, | 
					
						
							|  |  |  | .dark-mode .tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   color: #dbdbdb; | 
					
						
							|  |  |  |   fill: #dbdbdb; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-06 00:55:53 +08:00
										 |  |  | /** | 
					
						
							|  |  |  |  * Format Menu Hacks | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2022-02-08 07:56:39 +08:00
										 |  |  | .tox .tox-tbtn--bespoke .tox-tbtn__select-label { | 
					
						
							|  |  |  |   width: 6em !important; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2022-02-06 00:55:53 +08:00
										 |  |  | .tox-menu .tox-collection__item blockquote::before { | 
					
						
							|  |  |  |   content: none; | 
					
						
							| 
									
										
										
										
											2017-09-10 20:08:12 +08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2022-02-06 00:55:53 +08:00
										 |  |  | .tox-menu .tox-collection__item blockquote { | 
					
						
							|  |  |  |   border-left: 4px solid var(--color-primary) !important; | 
					
						
							|  |  |  |   padding: 4px 6px !important; | 
					
						
							| 
									
										
										
										
											2018-09-23 06:12:39 +08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2022-02-06 00:55:53 +08:00
										 |  |  | .tox-menu .tox-collection__item blockquote { | 
					
						
							|  |  |  |   border-left: 4px solid var(--color-primary) !important; | 
					
						
							|  |  |  |   padding: 4px 6px !important; | 
					
						
							| 
									
										
										
										
											2021-02-13 07:35:02 +08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2022-02-06 00:55:53 +08:00
										 |  |  | .tox-menu .tox-collection__item p[style*="background-color"] { | 
					
						
							|  |  |  |   padding: 4px 6px !important; | 
					
						
							|  |  |  |   border-left: 3px solid currentColor !important; | 
					
						
							| 
									
										
										
										
											2019-05-06 07:15:03 +08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2022-02-06 00:55:53 +08:00
										 |  |  | .tox-menu .tox-collection__item[title^="<"] > div > div { | 
					
						
							|  |  |  |   font-family: $mono !important; | 
					
						
							|  |  |  |   border: 1px solid #DDD !important; | 
					
						
							|  |  |  |   background-color: #EEE !important; | 
					
						
							|  |  |  |   padding: 4px 6px !important; | 
					
						
							| 
									
										
										
										
											2019-01-13 03:23:18 +08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2022-02-06 00:55:53 +08:00
										 |  |  | .tox-menu .tox-collection__item-label { | 
					
						
							|  |  |  |   line-height: normal !important; | 
					
						
							| 
									
										
										
										
											2022-03-20 01:12:56 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * Fake task list checkboxes | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2022-03-20 19:59:46 +08:00
										 |  |  | .page-content.mce-content-body .task-list-item { | 
					
						
							|  |  |  |   margin-left: 0; | 
					
						
							|  |  |  |   position: relative; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2022-03-20 01:12:56 +08:00
										 |  |  | .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; | 
					
						
							| 
									
										
										
										
											2022-03-20 19:59:46 +08:00
										 |  |  |   position: absolute; | 
					
						
							|  |  |  |   left: -24px; | 
					
						
							|  |  |  |   top: 4px; | 
					
						
							| 
									
										
										
										
											2022-03-20 01:12:56 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .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%; | 
					
						
							| 
									
										
										
										
											2015-07-16 05:55:49 +08:00
										 |  |  | } |