You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					76 lines
				
				1.4 KiB
			
		
		
			
		
	
	
					76 lines
				
				1.4 KiB
			| 
								 
											3 years ago
										 
									 | 
							
								export const style = `.ProseMirror {
							 | 
						||
| 
								 | 
							
								  position: relative;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								.ProseMirror {
							 | 
						||
| 
								 | 
							
								  word-wrap: break-word;
							 | 
						||
| 
								 | 
							
								  white-space: pre-wrap;
							 | 
						||
| 
								 | 
							
								  white-space: break-spaces;
							 | 
						||
| 
								 | 
							
								  -webkit-font-variant-ligatures: none;
							 | 
						||
| 
								 | 
							
								  font-variant-ligatures: none;
							 | 
						||
| 
								 | 
							
								  font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								.ProseMirror [contenteditable="false"] {
							 | 
						||
| 
								 | 
							
								  white-space: normal;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								.ProseMirror [contenteditable="false"] [contenteditable="true"] {
							 | 
						||
| 
								 | 
							
								  white-space: pre-wrap;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								.ProseMirror pre {
							 | 
						||
| 
								 | 
							
								  white-space: pre-wrap;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								img.ProseMirror-separator {
							 | 
						||
| 
								 | 
							
								  display: inline !important;
							 | 
						||
| 
								 | 
							
								  border: none !important;
							 | 
						||
| 
								 | 
							
								  margin: 0 !important;
							 | 
						||
| 
								 | 
							
								  width: 1px !important;
							 | 
						||
| 
								 | 
							
								  height: 1px !important;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								.ProseMirror-gapcursor {
							 | 
						||
| 
								 | 
							
								  display: none;
							 | 
						||
| 
								 | 
							
								  pointer-events: none;
							 | 
						||
| 
								 | 
							
								  position: absolute;
							 | 
						||
| 
								 | 
							
								  margin: 0;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								.ProseMirror-gapcursor:after {
							 | 
						||
| 
								 | 
							
								  content: "";
							 | 
						||
| 
								 | 
							
								  display: block;
							 | 
						||
| 
								 | 
							
								  position: absolute;
							 | 
						||
| 
								 | 
							
								  top: -2px;
							 | 
						||
| 
								 | 
							
								  width: 20px;
							 | 
						||
| 
								 | 
							
								  border-top: 1px solid black;
							 | 
						||
| 
								 | 
							
								  animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@keyframes ProseMirror-cursor-blink {
							 | 
						||
| 
								 | 
							
								  to {
							 | 
						||
| 
								 | 
							
								    visibility: hidden;
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								.ProseMirror-hideselection *::selection {
							 | 
						||
| 
								 | 
							
								  background: transparent;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								.ProseMirror-hideselection *::-moz-selection {
							 | 
						||
| 
								 | 
							
								  background: transparent;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								.ProseMirror-hideselection * {
							 | 
						||
| 
								 | 
							
								  caret-color: transparent;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								.ProseMirror-focused .ProseMirror-gapcursor {
							 | 
						||
| 
								 | 
							
								  display: block;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								.tippy-box[data-animation=fade][data-state=hidden] {
							 | 
						||
| 
								 | 
							
								  opacity: 0
							 | 
						||
| 
								 | 
							
								}`
							 |