| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | /********************************************************************** | 
					
						
							|  |  |  | *  | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | **********************************************************************/ | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | :root { | 
					
						
							| 
									
										
										
										
											2023-10-06 17:53:28 +03:00
										 |  |  | 	--font-size: 5mm; | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	--outline-padding: 5rem; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	--item-indent: 2rem; | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	--item-padding-ratio: 0.2; | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	--checkbox-size: 1.5rem; | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | 	--checkbox-margin: 0.5em; | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-04 15:33:07 +03:00
										 |  |  | 	--button-size: 2em; | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*********************************************************************/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | :root { | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | 	font-family: sans-serif; | 
					
						
							| 
									
										
										
										
											2023-10-06 17:53:28 +03:00
										 |  |  | 	font-size: var(--font-size); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/*text-size-adjust: none;*/ | 
					
						
							|  |  |  | 	text-size-adjust: 150%; | 
					
						
							| 
									
										
										
										
											2023-10-08 17:42:44 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	/*scroll-behavior: smooth;*/ | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-11 03:29:20 +03:00
										 |  |  | .editor { | 
					
						
							|  |  |  | 	--item-padding: calc(1em * var(--item-padding-ratio)); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*********************************************************************/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | .editor { | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | 	position: relative; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-07 17:06:54 +03:00
										 |  |  | .editor .code { | 
					
						
							|  |  |  | 	display: none; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | .editor .outline { | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | 	position: relative; | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-04 21:54:34 +03:00
										 |  |  | 	/* XXX do a better calculation... */ | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 	width: calc(100% - var(--button-size) - var(--outline-padding) * 2); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	padding-left: var(--outline-padding); | 
					
						
							|  |  |  | 	padding-right: var(--outline-padding); | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .editor .outline [tabindex] { | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | 	position: relative; | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	outline: none; | 
					
						
							|  |  |  | 	border: none; | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | .editor .outline [tabindex] [tabindex] { | 
					
						
							|  |  |  | 	margin-left: var(--item-indent); | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | .editor .outline [tabindex]>span, | 
					
						
							|  |  |  | .editor .outline [tabindex]>textarea { | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | 	display: block; | 
					
						
							| 
									
										
										
										
											2023-10-03 16:32:29 +03:00
										 |  |  | 	width: 100%; | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | 	/* XXX this is a tiny bit off and using textarea's height here is off too... */ | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 	min-height: calc(1em + var(--item-padding) * 2); | 
					
						
							| 
									
										
										
										
											2023-10-09 01:32:46 +03:00
										 |  |  | 	padding-top: var(--item-padding); | 
					
						
							|  |  |  | 	padding-bottom: var(--item-padding); | 
					
						
							|  |  |  | 	padding-left: 0; | 
					
						
							|  |  |  | 	padding-right: 0; | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | 	margin: 0; | 
					
						
							| 
									
										
										
										
											2023-10-09 01:32:46 +03:00
										 |  |  | 	box-sizing: border-box; | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	font-family: sans-serif; | 
					
						
							| 
									
										
										
										
											2023-10-06 17:53:28 +03:00
										 |  |  | 	font-size: var(--font-size); | 
					
						
							| 
									
										
										
										
											2023-10-08 17:42:44 +03:00
										 |  |  | 	white-space: pre-wrap; | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	outline: none; | 
					
						
							|  |  |  | 	border: none; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | /* show/hide node's view/code... */ | 
					
						
							|  |  |  | .editor .outline [tabindex]>textarea:focus+span, | 
					
						
							|  |  |  | .editor .outline [tabindex]>textarea:not(:focus) { | 
					
						
							|  |  |  | 	position: absolute; | 
					
						
							|  |  |  | 	opacity: 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | /* click through the span text to the textarea */ | 
					
						
							|  |  |  | .editor .outline [tabindex]>span { | 
					
						
							|  |  |  | 	position: relative; | 
					
						
							|  |  |  | 	pointer-events: none; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | /* block hover... */ | 
					
						
							|  |  |  | .editor .outline [tabindex]:hover>span { | 
					
						
							|  |  |  | 	background: linear-gradient( | 
					
						
							|  |  |  | 		90deg,  | 
					
						
							|  |  |  | 			rgba(0,0,0,0.01) 0%,  | 
					
						
							|  |  |  | 			rgba(0,0,0,0.01) 80%,  | 
					
						
							|  |  |  | 			rgba(0,0,0,0.03) 100%); | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | .editor .outline [tabindex]>span:blank { | 
					
						
							|  |  |  | 	content: " "; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | .editor .outline [tabindex]>textarea { | 
					
						
							| 
									
										
										
										
											2023-10-09 01:32:46 +03:00
										 |  |  | 	height: calc(2 * var(--item-padding) + 1em); | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | 	overflow: hidden; | 
					
						
							|  |  |  | 	resize: none; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-10 23:18:50 +03:00
										 |  |  | /* clickable things in view */ | 
					
						
							|  |  |  | .editor .outline [tabindex]>span a, | 
					
						
							|  |  |  | .editor .outline [tabindex]>span input { | 
					
						
							|  |  |  | 	pointer-events: auto; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | /* focus... */ | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | editor .outline [tabindex]:focus { | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | 	/*outline: solid 0.2em silver;*/ | 
					
						
							|  |  |  | 	outline: none; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .outline [tabindex]:focus>span, | 
					
						
							|  |  |  | .editor .outline [tabindex]:focus>textarea { | 
					
						
							|  |  |  | 	background: rgba(0,0,0,0.1); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .outline [tabindex].focused:not(:focus)>span, | 
					
						
							|  |  |  | .editor .outline [tabindex].focused:not(:focus)>textarea { | 
					
						
							| 
									
										
										
										
											2023-10-11 03:29:20 +03:00
										 |  |  | 	background: rgba(0,0,0,0.01); | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .editor .outline div[collapsed] { | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | 	border-bottom: solid 1px silver; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | /* click/tap zones for expand button... */ | 
					
						
							|  |  |  | .editor .outline [tabindex]>span:before, | 
					
						
							|  |  |  | .editor .outline [tabindex]>span:after { | 
					
						
							|  |  |  | 	--size: 3rem; | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	content: ""; | 
					
						
							|  |  |  | 	position: absolute; | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	display: flex; | 
					
						
							|  |  |  | 	top: 0; | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 	right: calc(-1 * var(--size)); | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	width: var(--size); | 
					
						
							|  |  |  | 	height: 100%; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	align-items: top; | 
					
						
							|  |  |  | 	justify-content: center; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 	box-sizing: border-box; | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	border-left: solid 0.5em transparent; | 
					
						
							|  |  |  | 	border-right: solid 0.5em transparent; | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	/* make the text align to the center of the first line... */ | 
					
						
							|  |  |  | 	font-size: 1rem; | 
					
						
							|  |  |  | 	/* XXX the 1.1 coeficient here is a hack... */ | 
					
						
							|  |  |  | 	line-height: calc( | 
					
						
							|  |  |  | 		var(--font-size) | 
					
						
							|  |  |  | 			* 1.1 | 
					
						
							|  |  |  | 		+ var(--font-size)  | 
					
						
							|  |  |  | 			* var(--item-padding-ratio)  | 
					
						
							|  |  |  | 			* 2); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	pointer-events: auto; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	background: transparent; | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | /* left indicator */ | 
					
						
							|  |  |  | .editor .outline [tabindex]>span:before { | 
					
						
							|  |  |  | 	justify-content: right; | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 	left: calc(-1 * var(--size)); | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | /* right indicator (collapse/expand) */ | 
					
						
							|  |  |  | .editor .outline [tabindex]>span:after { | 
					
						
							|  |  |  | 	color: silver; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .outline [tabindex]:has([tabindex])>span:after { | 
					
						
							|  |  |  | 	content: "○"; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .outline [tabindex][collapsed]>span:after { | 
					
						
							|  |  |  | 	content: "●"; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* collapse -- hide children... */ | 
					
						
							|  |  |  | .editor .outline [tabindex][collapsed] [tabindex] { | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | 	display: none; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-30 17:27:28 +03:00
										 |  |  | /* XXX are we selecting subtrees or blocks??? */ | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | .editor .outline [selected] { | 
					
						
							| 
									
										
										
										
											2023-09-30 17:27:28 +03:00
										 |  |  | 	background: silver; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | .editor .toolbar { | 
					
						
							|  |  |  | 	display: inline-block; | 
					
						
							|  |  |  | 	position: absolute;  | 
					
						
							|  |  |  | 	top: 1em; | 
					
						
							|  |  |  | 	right: 1em; | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | .editor .toolbar button { | 
					
						
							| 
									
										
										
										
											2023-10-04 21:54:34 +03:00
										 |  |  | 	--margin: 0.1em; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | 	display: block; | 
					
						
							| 
									
										
										
										
											2023-10-04 15:33:07 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-04 21:54:34 +03:00
										 |  |  | 	width: calc(var(--button-size) + var(--margin) * 2); | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | 	height: var(--button-size); | 
					
						
							| 
									
										
										
										
											2023-10-04 21:54:34 +03:00
										 |  |  | 	margin: var(--margin); | 
					
						
							| 
									
										
										
										
											2023-10-04 15:33:07 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	font-size: var(--button-size); | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-01 02:58:55 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | /********************************************************** Styles ***/ | 
					
						
							| 
									
										
										
										
											2023-10-08 02:59:06 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | /* Headings... */ | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | .editor .outline .heading-1>span, | 
					
						
							|  |  |  | .editor .outline .heading-1>textarea, | 
					
						
							|  |  |  | .editor .outline .heading-2>span, | 
					
						
							|  |  |  | .editor .outline .heading-2>textarea, | 
					
						
							|  |  |  | .editor .outline .heading-3>span, | 
					
						
							|  |  |  | .editor .outline .heading-3>textarea, | 
					
						
							|  |  |  | .editor .outline .heading-4>span, | 
					
						
							|  |  |  | .editor .outline .heading-4>textarea, | 
					
						
							|  |  |  | .editor .outline .heading-5>span, | 
					
						
							|  |  |  | .editor .outline .heading-5>textarea, | 
					
						
							|  |  |  | .editor .outline .heading-6>span, | 
					
						
							|  |  |  | .editor .outline .heading-6>textarea { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	margin-top: 1rem; | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | 	font-weight: bold; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-09 01:32:46 +03:00
										 |  |  | .editor .outline .heading-1>span, | 
					
						
							|  |  |  | .editor .outline .heading-1>textarea, | 
					
						
							|  |  |  | .editor .outline .heading-2>span, | 
					
						
							|  |  |  | .editor .outline .heading-2>textarea, | 
					
						
							|  |  |  | .editor .outline .heading-3>span, | 
					
						
							|  |  |  | .editor .outline .heading-3>textarea { | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 	border-bottom: solid 1px rgba(0,0,0,0.1); | 
					
						
							| 
									
										
										
										
											2023-10-09 01:32:46 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | .editor .outline .heading-1>span, | 
					
						
							|  |  |  | .editor .outline .heading-1>textarea { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	--font-size: 2.5em; | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | } | 
					
						
							|  |  |  | .editor .outline .heading-2>span, | 
					
						
							|  |  |  | .editor .outline .heading-2>textarea { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	--font-size: 1.9em; | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | } | 
					
						
							|  |  |  | .editor .outline .heading-3>span, | 
					
						
							|  |  |  | .editor .outline .heading-3>textarea { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	--font-size: 1.5em; | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | } | 
					
						
							|  |  |  | .editor .outline .heading-4>span, | 
					
						
							|  |  |  | .editor .outline .heading-4>textarea { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	--font-size: 1.3em; | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | } | 
					
						
							|  |  |  | .editor .outline .heading-5>span, | 
					
						
							|  |  |  | .editor .outline .heading-5>textarea { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	--font-size: 1.1em; | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | } | 
					
						
							|  |  |  | .editor .outline .heading-6>span, | 
					
						
							|  |  |  | .editor .outline .heading-6>textarea { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	--font-size: 1em; | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-08 02:59:06 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-11 03:29:20 +03:00
										 |  |  | /* Quote... */ | 
					
						
							|  |  |  | .editor .outline .quote>span, | 
					
						
							|  |  |  | .editor .outline .quote>textarea { | 
					
						
							|  |  |  | 	--item-padding-ratio: 0.7; | 
					
						
							|  |  |  | 	--indent: 1rem; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/* XXX for some reason if this is not set here it will not see the new --item-padding-ratio */ | 
					
						
							|  |  |  | 	--item-padding: calc(1rem * var(--item-padding-ratio)); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	padding: var(--item-padding) 1.5rem; | 
					
						
							|  |  |  | 	color: rgba(0,0,0,0.8); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/* XXX border messes up bullet alignment... */ | 
					
						
							|  |  |  | 	/*border-left: solid 0.2em silver;*/ | 
					
						
							|  |  |  | 	box-shadow: inset 0.2em 0 0 0 silver; | 
					
						
							|  |  |  | 	background: rgba(0,0,0,0.05); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-09 23:58:32 +03:00
										 |  |  | /* Lists... */ | 
					
						
							| 
									
										
										
										
											2023-10-09 01:32:46 +03:00
										 |  |  | /* XXX needs to be in the middle of the first span but with universal size... */ | 
					
						
							| 
									
										
										
										
											2023-10-11 03:29:20 +03:00
										 |  |  | .editor .outline .list-item>span:before, | 
					
						
							| 
									
										
										
										
											2023-10-09 23:58:32 +03:00
										 |  |  | .editor .outline .list>[tabindex]>span:not(:empty):before { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	content: "◼"; | 
					
						
							|  |  |  | 	color: gray; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .outline .list>.list>[tabindex]>span:not(:empty):before { | 
					
						
							|  |  |  | 	content: "●"; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .outline .list>.list>.list>[tabindex]>span:not(:empty):before { | 
					
						
							|  |  |  | 	content: "○"; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .outline .list>.list>.list>.list>[tabindex]>span:not(:empty):before { | 
					
						
							|  |  |  | 	content: "▪"; | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | /* Notes... */ | 
					
						
							|  |  |  | .editor .outline .NOTE { | 
					
						
							|  |  |  | 	--margin: 1rem; | 
					
						
							|  |  |  | 	--padding-h: 2rem; | 
					
						
							|  |  |  | 	--padding-v: 1.2em; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	margin: var(--margin) 0; | 
					
						
							|  |  |  | 	padding: var(--padding-v) var(--padding-h); | 
					
						
							|  |  |  | 	border: solid 2px silver; | 
					
						
							|  |  |  | 	background: rgba(0,0,0,0.05); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | /* XXX this prevents it from being accesible via click/tap... */ | 
					
						
							|  |  |  | .editor .outline .NOTE>span:empty { | 
					
						
							|  |  |  | 	display: none; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .outline .NOTE>span:empty ~ [tabindex] { | 
					
						
							|  |  |  | 	/* XXX calculate this... */ | 
					
						
							|  |  |  | 	margin-left: 1em; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .outline .NOTE>span:before { | 
					
						
							|  |  |  | 	content: "" !important; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | /* correct the right click zone... */ | 
					
						
							|  |  |  | .editor .outline [tabindex].NOTE>span:after, | 
					
						
							|  |  |  | .editor .outline [tabindex].NOTE [tabindex]>span:after { | 
					
						
							|  |  |  | 	margin-right: calc(-1 * var(--padding-h)); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-09 23:58:32 +03:00
										 |  |  | /* Highlightes... */ | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | .editor .outline .highlight { | 
					
						
							| 
									
										
										
										
											2023-10-09 23:58:32 +03:00
										 |  |  | 	font-weight: bold; | 
					
						
							|  |  |  | 	background: yellow; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-08 17:42:44 +03:00
										 |  |  | .editor .outline .XXX>span { | 
					
						
							|  |  |  | 	background: yellow; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-09 23:58:32 +03:00
										 |  |  | /* Comments... */ | 
					
						
							| 
									
										
										
										
											2023-10-09 01:32:46 +03:00
										 |  |  | .editor.hide-comments .outline .comment { | 
					
						
							|  |  |  | 	display: none; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-08 17:42:44 +03:00
										 |  |  | .editor .outline .comment>span { | 
					
						
							|  |  |  | 	color: silver; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-09 01:32:46 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-09 23:58:32 +03:00
										 |  |  | /* Checkboxes... */ | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | .editor .outline [tabindex].todo>span { | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | 	width: calc( | 
					
						
							|  |  |  | 		100%  | 
					
						
							|  |  |  | 		- var(--checkbox-size) | 
					
						
							|  |  |  | 		- var(--checkbox-margin)); | 
					
						
							|  |  |  | 	margin-left: calc( | 
					
						
							|  |  |  | 		var(--checkbox-size) | 
					
						
							|  |  |  | 		+ var(--checkbox-margin)); | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | } | 
					
						
							|  |  |  | .editor .outline [tabindex].check>span>input[type=checkbox], | 
					
						
							|  |  |  | .editor .outline [tabindex].todo>span>input[type=checkbox] { | 
					
						
							|  |  |  | 	height: var(--checkbox-size); | 
					
						
							|  |  |  | 	width: var(--checkbox-size); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	margin-top: calc(var(--checkbox-size) / -2); | 
					
						
							|  |  |  | 	margin-left: var(--checkbox-margin); | 
					
						
							|  |  |  | 	margin-right: var(--checkbox-margin); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	transform: translateY(calc(2 * var(--item-padding))); | 
					
						
							| 
									
										
										
										
											2023-10-08 17:42:44 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-09 01:32:46 +03:00
										 |  |  | 	/* NOTE: this appears to be needed for the em sizes above to work correctly */ | 
					
						
							|  |  |  | 	font-size: 1em; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | .editor .outline [tabindex].todo>span>input[type=checkbox]:first-child { | 
					
						
							|  |  |  | 	margin-left: calc( | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | 		-1 * var(--checkbox-size) | 
					
						
							|  |  |  | 		- var(--checkbox-margin)); | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | /* correct the left click zone... */ | 
					
						
							|  |  |  | .editor .outline [tabindex].todo>span:before { | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | 	margin-left: calc( | 
					
						
							|  |  |  | 		-1 * var(--checkbox-size) | 
					
						
							|  |  |  | 		- var(--checkbox-margin)); | 
					
						
							| 
									
										
										
										
											2023-10-08 17:42:44 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-11 01:57:21 +03:00
										 |  |  | /* code... */ | 
					
						
							|  |  |  | .editor .outline [tabindex]>span code { | 
					
						
							|  |  |  | 	padding: 0.1em 0.3em; | 
					
						
							|  |  |  | 	font-family: monospace; | 
					
						
							|  |  |  | 	background: rgba(0,0,0,0.07); | 
					
						
							|  |  |  | 	border-radius: 0.2em; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | /********************************************************* Testing ***/ | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | .editor.show-click-zones .outline [tabindex]>span:before, | 
					
						
							|  |  |  | .editor.show-click-zones .outline [tabindex]>span:after { | 
					
						
							|  |  |  | 	background: rgba(0,0,0,0.03); | 
					
						
							| 
									
										
										
										
											2023-10-10 23:18:50 +03:00
										 |  |  | 	border: solid 1px silver; | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | } | 
					
						
							|  |  |  | .editor.show-click-zones .outline [tabindex]:hover>span:before, | 
					
						
							|  |  |  | .editor.show-click-zones .outline [tabindex]:hover>span:after { | 
					
						
							|  |  |  | 	background: rgba(0,0,0,0.1); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | /*********************************************************************/ |