| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-23 14:37:14 +03:00
										 |  |  | 	--outline-padding: 7rem; | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	--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;*/ | 
					
						
							| 
									
										
										
										
											2023-10-26 01:02:27 +03:00
										 |  |  | 	text-size-adjust: 180%; | 
					
						
							| 
									
										
										
										
											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-13 22:14:36 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-25 15:04:41 +03:00
										 |  |  | /* header */ | 
					
						
							| 
									
										
										
										
											2023-10-23 22:55:23 +03:00
										 |  |  | .editor .header { | 
					
						
							| 
									
										
										
										
											2023-10-25 15:18:30 +03:00
										 |  |  | 	margin: 1em var(--outline-padding); | 
					
						
							|  |  |  | 	padding-bottom: 1.2em; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	border-bottom: solid 1px rgba(0,0,0,0.15); | 
					
						
							| 
									
										
										
										
											2023-10-23 22:55:23 +03:00
										 |  |  | } | 
					
						
							|  |  |  | .editor .header:empty { | 
					
						
							|  |  |  | 	display: none; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-25 15:04:41 +03:00
										 |  |  | .editor .header .path-item { | 
					
						
							|  |  |  | 	color: gray; | 
					
						
							|  |  |  | 	cursor: pointer; | 
					
						
							|  |  |  | 	/* XXX needs more work... */ | 
					
						
							| 
									
										
										
										
											2023-10-23 22:55:23 +03:00
										 |  |  | 	max-width: 10rem; | 
					
						
							|  |  |  | 	text-overflow: ellipsis; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-25 15:04:41 +03:00
										 |  |  | .editor .header .path-item:hover { | 
					
						
							|  |  |  | 	text-decoration: underline; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .header .path-item:first-child { | 
					
						
							|  |  |  | 	padding-left: 3em; | 
					
						
							|  |  |  | 	margin-left: -2em; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-23 22:55:23 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-13 22:14:36 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-25 15:18:30 +03:00
										 |  |  | .editor .outline { | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | 	position: relative; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	padding: 1em var(--outline-padding); | 
					
						
							|  |  |  | 	padding-bottom: 1.2em; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* virtual empty block... */ | 
					
						
							|  |  |  | .editor .outline:empty:after { | 
					
						
							|  |  |  | 	content: "Empty"; | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | 	font-style: italic; | 
					
						
							|  |  |  | 	color: rgba(0,0,0,0.2); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .outline:empty:hover:after { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block { | 
					
						
							| 
									
										
										
										
											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-23 20:46:44 +03:00
										 |  |  | .editor.block-offsets .outline .block { | 
					
						
							|  |  |  | 	border-left: solid 1px silver; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-25 17:37:02 +03:00
										 |  |  | .editor .outline .block .block, | 
					
						
							| 
									
										
										
										
											2023-10-26 17:08:08 +03:00
										 |  |  | .editor.crop .outline .block[cropped] .block, | 
					
						
							| 
									
										
										
										
											2023-10-25 17:37:02 +03:00
										 |  |  | .editor.crop .outline .block[cropped] .block[cropped] { | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 	margin-left: var(--item-indent); | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block>.text { | 
					
						
							| 
									
										
										
										
											2023-10-19 02:36:08 +03:00
										 |  |  | 	--v-margin: 0; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | 	display: block; | 
					
						
							| 
									
										
										
										
											2023-10-03 16:32:29 +03:00
										 |  |  | 	width: 100%; | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | 	/* XXX this is a tiny bit off and using .code'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-10-19 02:36:08 +03:00
										 |  |  | 	margin: var(--v-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... */ | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | /*.editor .outline .block>.code:focus+.view,*/ | 
					
						
							|  |  |  | .editor .outline .block>.code:not(:focus) { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	position: absolute; | 
					
						
							|  |  |  | 	opacity: 0; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | /* hide .view content but show before/after -- keep bulets and touch zones... */ | 
					
						
							|  |  |  | .editor .outline .block>.code:focus+.view { | 
					
						
							| 
									
										
										
										
											2023-10-12 03:24:34 +03:00
										 |  |  | 	position: absolute; | 
					
						
							|  |  |  | 	top: 0; | 
					
						
							|  |  |  | 	visibility: hidden; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block>.code:focus+.view:before, | 
					
						
							|  |  |  | .editor .outline .block>.code:focus+.view:after { | 
					
						
							| 
									
										
										
										
											2023-10-12 03:24:34 +03:00
										 |  |  | 	visibility: visible; | 
					
						
							| 
									
										
										
										
											2023-10-19 02:36:08 +03:00
										 |  |  | 	margin-top: calc(-1 * var(--v-margin)); | 
					
						
							|  |  |  | 	margin-bottom: calc(-1 * var(--v-margin)); | 
					
						
							| 
									
										
										
										
											2023-10-12 03:24:34 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | /* click through the .view text to the .code */ | 
					
						
							|  |  |  | .editor .outline .block>.view { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	position: relative; | 
					
						
							|  |  |  | 	pointer-events: none; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | /* block hover... */ | 
					
						
							| 
									
										
										
										
											2023-10-13 22:14:36 +03:00
										 |  |  | .editor .outline:empty:hover:after, | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block:hover>.view { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	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-12 19:45:12 +03:00
										 |  |  | .editor .outline .block>.view:blank { | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 	content: " "; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block>.code { | 
					
						
							| 
									
										
										
										
											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 */ | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block>.view a, | 
					
						
							| 
									
										
										
										
											2023-10-13 22:14:36 +03:00
										 |  |  | .editor .outline .block>.view pre, | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block>.view input { | 
					
						
							| 
									
										
										
										
											2023-10-10 23:18:50 +03:00
										 |  |  | 	pointer-events: auto; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | /* focus... */ | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | editor .outline .block:focus { | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | 	/*outline: solid 0.2em silver;*/ | 
					
						
							|  |  |  | 	outline: none; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block:focus>.text { | 
					
						
							| 
									
										
										
										
											2023-10-13 22:14:36 +03:00
										 |  |  | 	background: rgba(0,0,0,0.07); | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block.focused:not(:focus)>.text { | 
					
						
							| 
									
										
										
										
											2023-10-11 03:29:20 +03:00
										 |  |  | 	background: rgba(0,0,0,0.01); | 
					
						
							| 
									
										
										
										
											2023-10-13 05:10:17 +03:00
										 |  |  | 	border-bottom: solid 2px rgba(0,0,0,0.03); | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-13 05:10:17 +03:00
										 |  |  | /* collapsed block... */ | 
					
						
							|  |  |  | .editor .outline .block[collapsed] { | 
					
						
							| 
									
										
										
										
											2023-09-29 02:47:07 +03:00
										 |  |  | 	border-bottom: solid 1px silver; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-13 05:10:17 +03:00
										 |  |  | /* hide children... */ | 
					
						
							|  |  |  | .editor .outline .block[collapsed]>.children { | 
					
						
							|  |  |  | 	display: none; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | /* click/tap zones for expand button... */ | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block>.view:before, | 
					
						
							|  |  |  | .editor .outline .block>.view:after { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	--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; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-23 04:44:30 +03:00
										 |  |  | 	cursor: pointer; | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	background: transparent; | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-19 02:36:08 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | /* left indicator */ | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block>.view:before { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	justify-content: right; | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 	left: calc(-1 * var(--size)); | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-22 11:37:10 +03:00
										 |  |  | /* left indicator bullet */ | 
					
						
							|  |  |  | /* XXX not sure about this yet... */ | 
					
						
							|  |  |  | .editor .outline .block>.view:before { | 
					
						
							|  |  |  | 	content: "●"; | 
					
						
							|  |  |  | 	color: rgba(0,0,0,0.07); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .outline .block>.view:empty:before { | 
					
						
							|  |  |  | 	content: ""; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | /* right indicator (collapse/expand) */ | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block>.view:after { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	color: silver; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block:has(.block)>.view:after { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	content: "○"; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block[collapsed]>.view:after { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	content: "●"; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-27 14:47:56 +03:00
										 |  |  | /* select... */ | 
					
						
							| 
									
										
										
										
											2023-09-30 17:27:28 +03:00
										 |  |  | /* XXX are we selecting subtrees or blocks??? */ | 
					
						
							| 
									
										
										
										
											2023-10-27 14:47:56 +03:00
										 |  |  | .editor .outline [selected]>.text { | 
					
						
							| 
									
										
										
										
											2023-09-30 17:27:28 +03:00
										 |  |  | 	background: silver; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-25 15:04:41 +03:00
										 |  |  | /* crop... */  | 
					
						
							| 
									
										
										
										
											2023-10-25 17:37:02 +03:00
										 |  |  | /* NOTE: also see rules for: .editor .outline .block .block  | 
					
						
							|  |  |  | *	...can we avoid this?? (XXX) */ | 
					
						
							| 
									
										
										
										
											2023-10-25 15:04:41 +03:00
										 |  |  | .editor.crop .outline .block:not([cropped]) { | 
					
						
							|  |  |  | 	padding: 0; | 
					
						
							|  |  |  | 	border: none; | 
					
						
							|  |  |  | 	background: none; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor.crop .outline .block:not([cropped])>.text { | 
					
						
							|  |  |  | 	display: none; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-26 17:08:08 +03:00
										 |  |  | .editor.crop .outline .block, | 
					
						
							| 
									
										
										
										
											2023-10-25 15:04:41 +03:00
										 |  |  | .editor.crop .outline .block[cropped] { | 
					
						
							|  |  |  | 	margin-left: 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor.crop .outline .block[cropped] .text { | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-26 17:08:08 +03:00
										 |  |  | /* toolbar... */ | 
					
						
							| 
									
										
										
										
											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-12 23:35:14 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | /*------------------------------------------------------ Headings ---*/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 03:48:46 +03:00
										 |  |  | .editor .outline .heading-1, | 
					
						
							|  |  |  | .editor .outline .heading-2, | 
					
						
							|  |  |  | .editor .outline .heading-3, | 
					
						
							|  |  |  | .editor .outline .heading-4, | 
					
						
							|  |  |  | .editor .outline .heading-5, | 
					
						
							|  |  |  | .editor .outline .heading-6 { | 
					
						
							|  |  |  | 	margin-top: 1rem; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .heading-1>.text, | 
					
						
							|  |  |  | .editor .outline .heading-2>.text, | 
					
						
							|  |  |  | .editor .outline .heading-3>.text, | 
					
						
							|  |  |  | .editor .outline .heading-4>.text, | 
					
						
							|  |  |  | .editor .outline .heading-5>.text, | 
					
						
							|  |  |  | .editor .outline .heading-6>.text { | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | 	font-weight: bold; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .heading-1>.text, | 
					
						
							|  |  |  | .editor .outline .heading-2>.text, | 
					
						
							|  |  |  | .editor .outline .heading-3>.text { | 
					
						
							| 
									
										
										
										
											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-12 19:45:12 +03:00
										 |  |  | .editor .outline .heading-1>.text { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	--font-size: 2.5em; | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .heading-2>.text { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	--font-size: 1.9em; | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .heading-3>.text { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	--font-size: 1.5em; | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .heading-4>.text { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	--font-size: 1.3em; | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .heading-5>.text { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	--font-size: 1.1em; | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .heading-6>.text { | 
					
						
							| 
									
										
										
										
											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-12 23:35:14 +03:00
										 |  |  | /*--------------------------------------------------------- Quote ---*/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .quote>.text { | 
					
						
							| 
									
										
										
										
											2023-10-11 03:29:20 +03:00
										 |  |  | 	--indent: 1rem; | 
					
						
							| 
									
										
										
										
											2023-10-19 02:36:08 +03:00
										 |  |  | 	--v-margin: 0.7rem; | 
					
						
							| 
									
										
										
										
											2023-10-11 07:38:25 +03:00
										 |  |  | 	--item-padding-ratio: 0.7; | 
					
						
							| 
									
										
										
										
											2023-10-11 03:29:20 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	/* 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-12 23:35:14 +03:00
										 |  |  | /*---------------------------------------------------------- List ---*/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .list-item>.view:before, | 
					
						
							| 
									
										
										
										
											2023-10-19 03:09:14 +03:00
										 |  |  | .editor .outline .list>.children>.block>.view:before { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	content: "◼"; | 
					
						
							|  |  |  | 	color: gray; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline  | 
					
						
							|  |  |  | 		.list>.children | 
					
						
							| 
									
										
										
										
											2023-10-19 03:09:14 +03:00
										 |  |  | 		>.list>.children>.block>.view:before { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	content: "●"; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline  | 
					
						
							|  |  |  | 		.list>.children | 
					
						
							|  |  |  | 		>.list>.children | 
					
						
							| 
									
										
										
										
											2023-10-19 03:09:14 +03:00
										 |  |  | 		>.list>.children>.block>.view:before { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	content: "○"; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline  | 
					
						
							|  |  |  | 		.list>.children | 
					
						
							|  |  |  | 		>.list>.children | 
					
						
							|  |  |  | 		>.list>.children | 
					
						
							| 
									
										
										
										
											2023-10-19 03:09:14 +03:00
										 |  |  | 		>.list>.children>.block>.view:before { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	content: "▪"; | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-19 03:09:14 +03:00
										 |  |  | /* hide bullets on empty nodes unless they are edited... */ | 
					
						
							|  |  |  | .editor .outline .list>.children>.block>.code:not(:focus)+.view:empty:before { | 
					
						
							|  |  |  | 	content: ""; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | /* hide bullets on empty nodes... *//* | 
					
						
							|  |  |  | .editor .outline .list>.children>.block>.view:empty:before { | 
					
						
							|  |  |  | 	content: ""; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | */ | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 03:24:34 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 23:35:14 +03:00
										 |  |  | /*------------------------------------------------ Numbered lists ---*/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-26 23:37:59 +03:00
										 |  |  | .editor .outline .numbered-list>.children { | 
					
						
							|  |  |  | 	counter-reset: numbered-list; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .numbered-list>.children>.block>.view:not(:empty):before { | 
					
						
							| 
									
										
										
										
											2023-10-12 03:24:34 +03:00
										 |  |  | 	counter-increment: numbered-list;  | 
					
						
							|  |  |  | 	content: counter(numbered-list) "."; | 
					
						
							|  |  |  | 	color: gray; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline  | 
					
						
							|  |  |  | 		.numbered-list>.children | 
					
						
							|  |  |  | 		>.numbered-list>.children>.block>.view:not(:empty):before { | 
					
						
							|  |  |  | 	counter-increment: numbered-list;  | 
					
						
							|  |  |  | 	content: counter(numbered-list, lower-alpha) "."; | 
					
						
							|  |  |  | 	color: gray; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .outline  | 
					
						
							|  |  |  | 		.numbered-list>.children | 
					
						
							|  |  |  | 		>.numbered-list>.children | 
					
						
							|  |  |  | 		>.numbered-list>.children>.block>.view:not(:empty):before { | 
					
						
							|  |  |  | 	counter-increment: numbered-list;  | 
					
						
							|  |  |  | 	content: counter(numbered-list, lower-roman) "."; | 
					
						
							|  |  |  | 	color: gray; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .outline  | 
					
						
							|  |  |  | 		.numbered-list>.children | 
					
						
							|  |  |  | 		>.numbered-list>.children | 
					
						
							|  |  |  | 		>.numbered-list>.children | 
					
						
							|  |  |  | 		>.numbered-list>.children>.block>.view:not(:empty):before { | 
					
						
							|  |  |  | 	counter-increment: numbered-list;  | 
					
						
							|  |  |  | 	content: counters(numbered-list, ".") "."; | 
					
						
							|  |  |  | 	color: gray; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 03:24:34 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-26 21:46:14 +03:00
										 |  |  | /*------------------------------------------------------ hr block ---*/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .editor .outline .list>.children>.block.hr>.view:before { | 
					
						
							|  |  |  | 	content: ""; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .outline .numbered-list>.children>.block.hr>.view:before { | 
					
						
							|  |  |  | 	content: ""; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 23:35:14 +03:00
										 |  |  | /*--------------------------------------------------------- Notes ---*/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | .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... */ | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .NOTE>.view:empty { | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | 	display: none; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 22:13:38 +03:00
										 |  |  | .editor .outline .NOTE:focus>.view:empty { | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .outline .NOTE>.view:empty ~ .children { | 
					
						
							|  |  |  | 	margin-left: -1rem; | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .NOTE>.view:before { | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | 	content: "" !important; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | /* correct the right click zone... */ | 
					
						
							| 
									
										
										
										
											2023-10-11 12:28:17 +03:00
										 |  |  | /* XXX need to account for nesting... (???) */ | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block.NOTE>.view:after, | 
					
						
							|  |  |  | .editor .outline .block.NOTE .block>.view:after { | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | 	margin-right: calc(-1 * var(--padding-h)); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-14 15:46:42 +03:00
										 |  |  | /*---------------------------------------------------------- Done ---*/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .editor .outline .block.DONE>.view { | 
					
						
							|  |  |  | 	text-decoration: line-through; | 
					
						
							|  |  |  | 	opacity: 0.5; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 23:35:14 +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-12 19:45:12 +03:00
										 |  |  | .editor .outline .XXX>.view { | 
					
						
							| 
									
										
										
										
											2023-10-08 17:42:44 +03:00
										 |  |  | 	background: yellow; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 23:35:14 +03:00
										 |  |  | /*------------------------------------------------------ Comments ---*/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-09 01:32:46 +03:00
										 |  |  | .editor.hide-comments .outline .comment { | 
					
						
							|  |  |  | 	display: none; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .comment>.view { | 
					
						
							| 
									
										
										
										
											2023-10-08 17:42:44 +03:00
										 |  |  | 	color: silver; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-09 01:32:46 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 23:35:14 +03:00
										 |  |  | /*---------------------------------------------------- Checkboxes ---*/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block.todo>.view { | 
					
						
							| 
									
										
										
										
											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
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block.check>.view input[type=checkbox], | 
					
						
							|  |  |  | .editor .outline .block.todo>.view input[type=checkbox] { | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 	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-18 18:40:04 +03:00
										 |  |  | .editor .outline .block.check.focused>.view input[type=checkbox].selected, | 
					
						
							|  |  |  | .editor .outline .block.todo.focused>.view input[type=checkbox].selected { | 
					
						
							|  |  |  | 	outline: solid 0.2em silver; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .editor .outline .block.check:focus>.view input[type=checkbox].selected, | 
					
						
							|  |  |  | .editor .outline .block.todo:focus>.view input[type=checkbox].selected { | 
					
						
							|  |  |  | 	outline: solid 0.2em gray; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block.todo>.view input[type=checkbox]:first-child { | 
					
						
							| 
									
										
										
										
											2023-10-09 18:44:56 +03:00
										 |  |  | 	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... */ | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block.todo>.view: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-14 02:42:29 +03:00
										 |  |  | /* status... */ | 
					
						
							|  |  |  | .editor .outline .block>.view .completion[completion]:before { | 
					
						
							|  |  |  | 	content: "(" attr(completion) ")"; | 
					
						
							|  |  |  | 	color: gray; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-08 02:36:29 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 23:35:14 +03:00
										 |  |  | /*---------------------------------------------------------- Code ---*/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 22:56:12 +03:00
										 |  |  | .editor .outline .block>.view pre, | 
					
						
							| 
									
										
										
										
											2023-10-13 05:10:17 +03:00
										 |  |  | .editor .outline .block>.view>code, | 
					
						
							|  |  |  | .editor .outline .block>.view :not(pre)>code { | 
					
						
							| 
									
										
										
										
											2023-10-11 01:57:21 +03:00
										 |  |  | 	padding: 0.1em 0.3em; | 
					
						
							|  |  |  | 	font-family: monospace; | 
					
						
							|  |  |  | 	background: rgba(0,0,0,0.07); | 
					
						
							|  |  |  | 	border-radius: 0.2em; | 
					
						
							| 
									
										
										
										
											2023-10-13 22:14:36 +03:00
										 |  |  | 	outline: none; | 
					
						
							| 
									
										
										
										
											2023-10-11 01:57:21 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-13 05:10:17 +03:00
										 |  |  | .editor .outline .block>.view pre>code { | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | 	padding: 0.6em 0.6em; | 
					
						
							|  |  |  | 	padding-bottom: 0.8em; | 
					
						
							| 
									
										
										
										
											2023-10-13 22:14:36 +03:00
										 |  |  | 	outline: none; | 
					
						
							| 
									
										
										
										
											2023-10-12 22:56:12 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 23:35:14 +03:00
										 |  |  | /*-------------------------------------------------------- Tables ---*/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block>.view>table { | 
					
						
							| 
									
										
										
										
											2023-10-12 03:24:34 +03:00
										 |  |  | 	width: 100%; | 
					
						
							|  |  |  | 	border-collapse: collapse; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block>.view>table tr:nth-child(odd) { | 
					
						
							| 
									
										
										
										
											2023-10-12 03:24:34 +03:00
										 |  |  | 	background: rgba(0,0,0,0.03); | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block>.view>table tr:first-child { | 
					
						
							| 
									
										
										
										
											2023-10-12 03:24:34 +03:00
										 |  |  | 	font-weight: bold; | 
					
						
							|  |  |  | 	border-bottom: solid 0.1rem silver; | 
					
						
							|  |  |  | 	background: transparent; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor .outline .block>.view>table td { | 
					
						
							| 
									
										
										
										
											2023-10-12 03:24:34 +03:00
										 |  |  | 	height: calc(1em + var(--item-padding) * 2); | 
					
						
							|  |  |  | 	padding: 0 1em; | 
					
						
							|  |  |  | 	/*text-align: center;*/ | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | /********************************************************* Testing ***/ | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor.show-click-zones .outline .block>.view:before, | 
					
						
							|  |  |  | .editor.show-click-zones .outline .block>.view:after { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	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
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | .editor.show-click-zones .outline .block:hover>.view:before, | 
					
						
							|  |  |  | .editor.show-click-zones .outline .block:hover>.view:after { | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 	background: rgba(0,0,0,0.1); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | /*********************************************************************/ |