| 
									
										
										
										
											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-11-01 19:07:37 +03:00
										 |  |  | :host, | 
					
						
							| 
									
										
										
										
											2023-10-11 03:29:20 +03:00
										 |  |  | .editor { | 
					
						
							|  |  |  | 	--item-padding: calc(1em * var(--item-padding-ratio)); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*********************************************************************/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-01 19:07:37 +03:00
										 |  |  | :host, | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | .editor { | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | 	position: relative; | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-27 03:20:05 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-27 02:26:41 +03:00
										 |  |  | 	/* loading indicator */ | 
					
						
							|  |  |  | 	&.loading { | 
					
						
							| 
									
										
										
										
											2023-11-27 03:20:05 +03:00
										 |  |  | 		.outline { | 
					
						
							|  |  |  | 			pointer-events: none; | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		.outline>.block { | 
					
						
							|  |  |  | 			opacity: 0.2; | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		/* XXX STUB... */ | 
					
						
							|  |  |  | 		.outline:before { | 
					
						
							|  |  |  | 			content: "Loading..."; | 
					
						
							|  |  |  | 			display: block; | 
					
						
							|  |  |  | 			position: absolute; | 
					
						
							|  |  |  | 			top: 1em; | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		.outline:empty:before { | 
					
						
							|  |  |  | 			position: relative; | 
					
						
							|  |  |  | 			top: 0; | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		/* override empty indicator */ | 
					
						
							|  |  |  | 		.outline:after { | 
					
						
							|  |  |  | 			content: "" !important; | 
					
						
							|  |  |  | 		} | 
					
						
							| 
									
										
										
										
											2023-11-27 02:26:41 +03:00
										 |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-27 03:20:05 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-27 02:26:41 +03:00
										 |  |  | 	/* editor code */ | 
					
						
							| 
									
										
										
										
											2023-11-27 00:31:56 +03:00
										 |  |  | 	&>.code { | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | 		display: none; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/* header */ | 
					
						
							|  |  |  | 	.header { | 
					
						
							|  |  |  | 		margin: 1em var(--outline-padding); | 
					
						
							|  |  |  | 		padding-bottom: 1.2em; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		border-bottom: solid 1px rgba(0,0,0,0.15); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		&:empty { | 
					
						
							|  |  |  | 			display: none; | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		.path-item { | 
					
						
							|  |  |  | 			color: gray; | 
					
						
							|  |  |  | 			cursor: pointer; | 
					
						
							|  |  |  | 			/* XXX needs more work... */ | 
					
						
							|  |  |  | 			max-width: 10rem; | 
					
						
							|  |  |  | 			text-overflow: ellipsis; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			&:hover { | 
					
						
							|  |  |  | 				text-decoration: underline; | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			&:first-child { | 
					
						
							|  |  |  | 				padding-left: 3em; | 
					
						
							|  |  |  | 				margin-left: -2em; | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	.outline { | 
					
						
							|  |  |  | 		display: block; | 
					
						
							|  |  |  | 		position: relative; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		padding: 1em var(--outline-padding); | 
					
						
							|  |  |  | 		padding-bottom: 1.2em; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		/* virtual empty block... */ | 
					
						
							|  |  |  | 		&:empty:after { | 
					
						
							|  |  |  | 			content: "Empty"; | 
					
						
							|  |  |  | 			display: block; | 
					
						
							|  |  |  | 			font-style: italic; | 
					
						
							|  |  |  | 			color: rgba(0,0,0,0.2); | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		&:empty:hover:after { | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		.block .block { | 
					
						
							|  |  |  | 			margin-left: var(--item-indent); | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		.block { | 
					
						
							|  |  |  | 			position: relative; | 
					
						
							|  |  |  | 			outline: none; | 
					
						
							|  |  |  | 			border: none; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			/* focus... */ | 
					
						
							|  |  |  | 			&:focus { | 
					
						
							|  |  |  | 				/*outline: solid 0.2em silver;*/ | 
					
						
							|  |  |  | 				outline: none; | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			&:focus>.text { | 
					
						
							|  |  |  | 				background: rgba(0,0,0,0.07); | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			&.focused:not(:focus)>.text { | 
					
						
							|  |  |  | 				background: rgba(0,0,0,0.01); | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			/* collapsed block... */ | 
					
						
							|  |  |  | 			&[collapsed] { | 
					
						
							|  |  |  | 				border-bottom: solid 1px silver; | 
					
						
							|  |  |  | 				&>.children { | 
					
						
							|  |  |  | 					display: none; | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			/* select... */ | 
					
						
							|  |  |  | 			/* XXX are we selecting subtrees or blocks??? */ | 
					
						
							|  |  |  | 			&[selected]>.text { | 
					
						
							|  |  |  | 				background: silver; | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			&>.text { | 
					
						
							|  |  |  | 				--v-margin: 0; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 				display: block; | 
					
						
							|  |  |  | 				width: 100%; | 
					
						
							|  |  |  | 				/* XXX this is a tiny bit off and using .code's height here is off too... */ | 
					
						
							|  |  |  | 				min-height: calc(1em + var(--item-padding) * 2); | 
					
						
							|  |  |  | 				padding-top: var(--item-padding); | 
					
						
							|  |  |  | 				padding-bottom: var(--item-padding); | 
					
						
							|  |  |  | 				padding-left: 0; | 
					
						
							|  |  |  | 				padding-right: 0; | 
					
						
							|  |  |  | 				margin: var(--v-margin) 0; | 
					
						
							|  |  |  | 				box-sizing: border-box; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 				font-family: sans-serif; | 
					
						
							|  |  |  | 				font-size: var(--font-size); | 
					
						
							|  |  |  | 				white-space: pre-wrap; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 				outline: none; | 
					
						
							|  |  |  | 				border: none; | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			&>.code { | 
					
						
							|  |  |  | 				position: absolute; | 
					
						
							|  |  |  | 				top: 0; | 
					
						
							| 
									
										
										
										
											2023-11-23 22:50:39 +03:00
										 |  |  | 				height: 100%; | 
					
						
							|  |  |  | 				/*height: calc(2 * var(--item-padding) + 1em);*/ | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | 				overflow: hidden; | 
					
						
							|  |  |  | 				resize: none; | 
					
						
							| 
									
										
										
										
											2023-11-02 22:36:08 +03:00
										 |  |  | 				opacity: 0; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | 				/* show/hide node's view/code... */ | 
					
						
							| 
									
										
										
										
											2023-11-02 22:36:08 +03:00
										 |  |  | 				&:focus { | 
					
						
							|  |  |  | 					position: relative; | 
					
						
							|  |  |  | 					opacity: 1; | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | 				} | 
					
						
							|  |  |  | 				/* hide .view content but show before/after -- keep bulets and touch zones... */ | 
					
						
							|  |  |  | 				&:focus+.view { | 
					
						
							| 
									
										
										
										
											2023-11-02 22:36:08 +03:00
										 |  |  | 					position: absolute; | 
					
						
							|  |  |  | 					top: 0; | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | 					visibility: hidden; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 					&:before, | 
					
						
							|  |  |  | 					&:after { | 
					
						
							|  |  |  | 						visibility: visible; | 
					
						
							|  |  |  | 						margin-top: calc(-1 * var(--v-margin)); | 
					
						
							|  |  |  | 						margin-bottom: calc(-1 * var(--v-margin)); | 
					
						
							|  |  |  | 					} | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			/* click through the .view text to the .code */ | 
					
						
							| 
									
										
										
										
											2023-11-02 22:36:08 +03:00
										 |  |  | 			/* NOTE: .view visibility is handled in .code above... */ | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | 			&>.view { | 
					
						
							|  |  |  | 				position: relative; | 
					
						
							|  |  |  | 				pointer-events: none; | 
					
						
							| 
									
										
										
										
											2023-11-04 15:22:32 +03:00
										 |  |  | 				user-select: none; | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 				/* clickable things in view */ | 
					
						
							|  |  |  | 				& a, | 
					
						
							|  |  |  | 				& pre, | 
					
						
							|  |  |  | 				& input { | 
					
						
							|  |  |  | 					pointer-events: auto; | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 				/* click/tap zones for expand button... */ | 
					
						
							|  |  |  | 				&:before, | 
					
						
							|  |  |  | 				&:after { | 
					
						
							|  |  |  | 					--size: 3rem; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 					content: ""; | 
					
						
							|  |  |  | 					position: absolute; | 
					
						
							|  |  |  | 					display: flex; | 
					
						
							|  |  |  | 					top: 0; | 
					
						
							|  |  |  | 					right: calc(-1 * var(--size)); | 
					
						
							|  |  |  | 					width: var(--size); | 
					
						
							|  |  |  | 					height: 100%; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 					align-items: top; | 
					
						
							|  |  |  | 					justify-content: center; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 					box-sizing: border-box; | 
					
						
							|  |  |  | 					border-left: solid 0.5em transparent; | 
					
						
							|  |  |  | 					border-right: solid 0.5em transparent; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 					/* 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; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 					cursor: pointer; | 
					
						
							|  |  |  | 					background: transparent; | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				/* left indicator */ | 
					
						
							|  |  |  | 				&:before { | 
					
						
							|  |  |  | 					justify-content: right; | 
					
						
							|  |  |  | 					left: calc(-1 * var(--size)); | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			/* indicators... */ | 
					
						
							|  |  |  | 			/* left indicator bullet */ | 
					
						
							|  |  |  | 			/* XXX not sure about this yet... */ | 
					
						
							|  |  |  | 			&>.view:before { | 
					
						
							|  |  |  | 				content: "●"; | 
					
						
							|  |  |  | 				color: rgba(0,0,0,0.07); | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			&>.view:empty:before { | 
					
						
							|  |  |  | 				content: ""; | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			/* right indicator (collapse/expand) */ | 
					
						
							|  |  |  | 			&>.view:after { | 
					
						
							|  |  |  | 				color: silver; | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			&:has(.block)>.view:after { | 
					
						
							|  |  |  | 				content: "○"; | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			&[collapsed]>.view:after { | 
					
						
							|  |  |  | 				content: "●"; | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		/* block hover... */ | 
					
						
							|  |  |  | 		&:empty:hover:after, | 
					
						
							|  |  |  | 		.block:not(.focused):hover>.view { | 
					
						
							|  |  |  | 			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%); | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/*  | 
					
						
							|  |  |  | 	* NOTE: the organization after this point does not feel right/clean,  | 
					
						
							|  |  |  | 	* 		not sure how to do this better...  | 
					
						
							|  |  |  | 	*/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/* crop... */  | 
					
						
							|  |  |  | 	&.crop .outline .block { | 
					
						
							|  |  |  | 		&[cropped] .block, | 
					
						
							|  |  |  | 		&[cropped] .block[cropped] { | 
					
						
							|  |  |  | 			margin-left: var(--item-indent); | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		&:not([cropped]) { | 
					
						
							|  |  |  | 			padding: 0; | 
					
						
							|  |  |  | 			border: none; | 
					
						
							|  |  |  | 			background: none; | 
					
						
							| 
									
										
										
										
											2023-11-02 18:31:32 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-02 22:54:55 +03:00
										 |  |  | 			.text { | 
					
						
							| 
									
										
										
										
											2023-11-02 18:31:32 +03:00
										 |  |  | 				display: none; | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | 		} | 
					
						
							|  |  |  | 		&, | 
					
						
							|  |  |  | 		&[cropped] { | 
					
						
							|  |  |  | 			margin-left: 0; | 
					
						
							| 
									
										
										
										
											2023-11-02 22:54:55 +03:00
										 |  |  | 		} | 
					
						
							|  |  |  | 		/* XXX nesting this in &[cropped] for some reaon breaks things... */ | 
					
						
							|  |  |  | 		&[cropped] .text { | 
					
						
							|  |  |  | 			display: block; | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/* toolbar... */ | 
					
						
							|  |  |  | 	.toolbar { | 
					
						
							|  |  |  | 		display: inline-block; | 
					
						
							|  |  |  | 		position: absolute;  | 
					
						
							|  |  |  | 		top: 1em; | 
					
						
							|  |  |  | 		right: 1em; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		button { | 
					
						
							|  |  |  | 			--margin: 0.1em; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			display: block; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			width: calc(var(--button-size) + var(--margin) * 2); | 
					
						
							|  |  |  | 			height: var(--button-size); | 
					
						
							|  |  |  | 			margin: var(--margin); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			font-size: var(--button-size); | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	&.block-offsets .outline .block { | 
					
						
							|  |  |  | 		border-left: solid 1px silver; | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-09-30 17:27:28 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-03 16:12:19 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-25 15:04:41 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-04 21:54:34 +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-11-01 19:07:37 +03:00
										 |  |  | :host .outline, | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | .editor .outline { | 
					
						
							|  |  |  | 	.heading-1, | 
					
						
							|  |  |  | 	.heading-2, | 
					
						
							|  |  |  | 	.heading-3, | 
					
						
							|  |  |  | 	.heading-4, | 
					
						
							|  |  |  | 	.heading-5, | 
					
						
							|  |  |  | 	.heading-6 { | 
					
						
							|  |  |  | 		margin-top: 1rem; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		&>.text { | 
					
						
							|  |  |  | 			font-weight: bold; | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	.heading-1>.text, | 
					
						
							|  |  |  | 	.heading-2>.text, | 
					
						
							|  |  |  | 	.heading-3>.text { | 
					
						
							|  |  |  | 		border-bottom: solid 1px rgba(0,0,0,0.1); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	.heading-1>.text { | 
					
						
							|  |  |  | 		--font-size: 2.5em; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	.heading-2>.text { | 
					
						
							|  |  |  | 		--font-size: 1.9em; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	.heading-3>.text { | 
					
						
							|  |  |  | 		--font-size: 1.5em; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	.heading-4>.text { | 
					
						
							|  |  |  | 		--font-size: 1.3em; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	.heading-5>.text { | 
					
						
							|  |  |  | 		--font-size: 1.1em; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	.heading-6>.text { | 
					
						
							|  |  |  | 		--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-11-01 19:07:37 +03:00
										 |  |  | :host .outline .quote>.text, | 
					
						
							| 
									
										
										
										
											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-11-01 19:07:37 +03:00
										 |  |  | :host .outline, | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | .editor .outline { | 
					
						
							|  |  |  | 	.list-item>.view:before, | 
					
						
							|  |  |  | 	.list>.children { | 
					
						
							|  |  |  | 		&>.block>.view:before { | 
					
						
							|  |  |  | 			content: "◼"; | 
					
						
							|  |  |  | 			color: gray; | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		&>.list>.children { | 
					
						
							|  |  |  | 			&>.block>.view:before { | 
					
						
							|  |  |  | 				content: "●"; | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			&>.list>.children { | 
					
						
							|  |  |  | 				&>.block>.view:before { | 
					
						
							|  |  |  | 					content: "○"; | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				&>.list>.children { | 
					
						
							|  |  |  | 					&>.block>.view:before { | 
					
						
							|  |  |  | 						content: "▪"; | 
					
						
							|  |  |  | 					} | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		/* hide bullets on empty nodes unless they are edited... */ | 
					
						
							|  |  |  | 		&>.block>.code:not(:focus)+.view:empty:before { | 
					
						
							|  |  |  | 			content: "" !important; | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		/* hide bullets on empty nodes... *//* | 
					
						
							|  |  |  | 		&>.block>.view:empty:before { | 
					
						
							|  |  |  | 			content: ""; | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		*/ | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-10-19 03:09:14 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											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-11-01 19:07:37 +03:00
										 |  |  | :host .outline .numbered-list>.children, | 
					
						
							| 
									
										
										
										
											2023-10-26 23:37:59 +03:00
										 |  |  | .editor .outline .numbered-list>.children { | 
					
						
							|  |  |  | 	counter-reset: numbered-list; | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	&>.block>.view:not(:empty):before { | 
					
						
							|  |  |  | 		counter-increment: numbered-list;  | 
					
						
							|  |  |  | 		content: counter(numbered-list) "."; | 
					
						
							|  |  |  | 		color: gray; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	&>.numbered-list>.children { | 
					
						
							|  |  |  | 		&>.block>.view:not(:empty):before { | 
					
						
							|  |  |  | 			counter-increment: numbered-list;  | 
					
						
							|  |  |  | 			content: counter(numbered-list, lower-alpha) "."; | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		&>.numbered-list>.children { | 
					
						
							|  |  |  | 			&>.block>.view:not(:empty):before { | 
					
						
							|  |  |  | 				counter-increment: numbered-list;  | 
					
						
							|  |  |  | 				content: counter(numbered-list, lower-roman) "."; | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			&>.numbered-list>.children { | 
					
						
							|  |  |  | 				&>.block>.view:not(:empty):before { | 
					
						
							|  |  |  | 					counter-increment: numbered-list;  | 
					
						
							|  |  |  | 					content: counters(numbered-list, ".") "."; | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-10-12 19:45:12 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-10-12 03:24:34 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-26 21:46:14 +03:00
										 |  |  | /*------------------------------------------------------ hr block ---*/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-01 19:07:37 +03:00
										 |  |  | :host .outline, | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | .editor .outline { | 
					
						
							|  |  |  | 	.list>.children>.block.hr>.view:before { | 
					
						
							|  |  |  | 		content: ""; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	.numbered-list>.children>.block.hr>.view:before { | 
					
						
							|  |  |  | 		content: ""; | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-10-26 21:46:14 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 23:35:14 +03:00
										 |  |  | /*--------------------------------------------------------- Notes ---*/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-01 19:07:37 +03:00
										 |  |  | :host .outline .NOTE, | 
					
						
							| 
									
										
										
										
											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); | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	/* XXX this prevents it from being accesible via click/tap... */ | 
					
						
							|  |  |  | 	&>.view:empty { | 
					
						
							|  |  |  | 		display: none; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	&:focus>.view:empty { | 
					
						
							|  |  |  | 		display: block; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	&>.view:empty ~ .children { | 
					
						
							|  |  |  | 		margin-left: -1rem; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	&>.view:before { | 
					
						
							|  |  |  | 		content: "" !important; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	/* correct the right click zone... */ | 
					
						
							|  |  |  | 	/* XXX need to account for nesting... (???) */ | 
					
						
							|  |  |  | 	&.block>.view:after, | 
					
						
							|  |  |  | 	&.block .block>.view:after { | 
					
						
							|  |  |  | 		margin-right: calc(-1 * var(--padding-h)); | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-30 18:06:13 +03:00
										 |  |  | /*-------------------------------------------------------- Status ---*/ | 
					
						
							| 
									
										
										
										
											2023-10-14 15:46:42 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-01 19:07:37 +03:00
										 |  |  | :host .outline .block, | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | .editor .outline .block { | 
					
						
							|  |  |  | 	&.DONE>.view { | 
					
						
							|  |  |  | 		text-decoration: line-through; | 
					
						
							|  |  |  | 		opacity: 0.5; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	&.REJECT>.view { | 
					
						
							|  |  |  | 		text-decoration: line-through; | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-10-30 18:06:13 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-14 15:46:42 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 23:35:14 +03:00
										 |  |  | /*--------------------------------------------------- Highlightes ---*/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-01 19:07:37 +03:00
										 |  |  | :host .outline, | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | .editor .outline { | 
					
						
							|  |  |  | 	.highlight { | 
					
						
							|  |  |  | 		font-weight: bold; | 
					
						
							|  |  |  | 		background: yellow; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	.XXX>.view { | 
					
						
							|  |  |  | 		background: yellow; | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-10-08 17:42:44 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											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-11-01 19:07:37 +03:00
										 |  |  | :host.hide-comments .outline .comment, | 
					
						
							| 
									
										
										
										
											2023-10-09 01:32:46 +03:00
										 |  |  | .editor.hide-comments .outline .comment { | 
					
						
							|  |  |  | 	display: none; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-11-01 19:07:37 +03:00
										 |  |  | :host .outline .comment>.view, | 
					
						
							| 
									
										
										
										
											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-11-01 19:07:37 +03:00
										 |  |  | :host .outline .block, | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | .editor .outline .block { | 
					
						
							|  |  |  | 	&.todo>.view { | 
					
						
							|  |  |  | 		width: calc( | 
					
						
							|  |  |  | 			100%  | 
					
						
							|  |  |  | 			- var(--checkbox-size) | 
					
						
							|  |  |  | 			- var(--checkbox-margin)); | 
					
						
							|  |  |  | 		margin-left: calc( | 
					
						
							|  |  |  | 			var(--checkbox-size) | 
					
						
							|  |  |  | 			+ var(--checkbox-margin)); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	&.check>.view input[type=checkbox], | 
					
						
							|  |  |  | 	&.todo>.view 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))); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		/* NOTE: this appears to be needed for the em sizes above to work correctly */ | 
					
						
							|  |  |  | 		font-size: 1em; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	&.check.focused>.view input[type=checkbox].selected, | 
					
						
							|  |  |  | 	&.todo.focused>.view input[type=checkbox].selected { | 
					
						
							|  |  |  | 		outline: solid 0.2em silver; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	&.check:focus>.view input[type=checkbox].selected, | 
					
						
							|  |  |  | 	&.todo:focus>.view input[type=checkbox].selected { | 
					
						
							|  |  |  | 		outline: solid 0.2em gray; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	&.todo>.view input[type=checkbox]:first-child { | 
					
						
							|  |  |  | 		margin-left: calc( | 
					
						
							|  |  |  | 			-1 * var(--checkbox-size) | 
					
						
							|  |  |  | 			- var(--checkbox-margin)); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	/* correct the left click zone... */ | 
					
						
							|  |  |  | 	&.todo>.view:before { | 
					
						
							|  |  |  | 		margin-left: calc( | 
					
						
							|  |  |  | 			-1 * var(--checkbox-size) | 
					
						
							|  |  |  | 			- var(--checkbox-margin)); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	/* status... */ | 
					
						
							|  |  |  | 	&>.view .completion[completion]:before { | 
					
						
							|  |  |  | 		content: "(" attr(completion) ")"; | 
					
						
							|  |  |  | 		color: gray; | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-10-14 02:42:29 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											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-11-01 19:07:37 +03:00
										 |  |  | :host .outline .block>.view, | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | .editor .outline .block>.view { | 
					
						
							|  |  |  | 	/* XXX for some reason if we omit & where not needed, colors will not apply... */ | 
					
						
							|  |  |  | 	& pre, | 
					
						
							|  |  |  | 	&>code, | 
					
						
							|  |  |  | 	& :not(pre)>code { | 
					
						
							|  |  |  | 		font-family: monospace; | 
					
						
							|  |  |  | 		background: rgba(0,0,0,0.07); | 
					
						
							|  |  |  | 		border-radius: 0.2em; | 
					
						
							|  |  |  | 		outline: none; | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-11-04 00:38:13 +03:00
										 |  |  | 	& :not(pre)>code { | 
					
						
							|  |  |  | 		padding: 0.1em 0.3em; | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | 	& pre>code { | 
					
						
							| 
									
										
										
										
											2023-11-04 00:38:13 +03:00
										 |  |  | 		--padding: 0.6em; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | 		display: block; | 
					
						
							| 
									
										
										
										
											2023-11-04 00:38:13 +03:00
										 |  |  | 		min-width: calc(100% - var(--padding) * 2); | 
					
						
							| 
									
										
										
										
											2023-11-03 17:27:15 +03:00
										 |  |  | 		width: fit-content; | 
					
						
							| 
									
										
										
										
											2023-11-04 00:38:13 +03:00
										 |  |  | 		padding: var(--padding) var(--padding); | 
					
						
							|  |  |  | 		padding-bottom: calc(var(--padding) + 0.2em); | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | 		outline: none; | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-11-03 17:27:15 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	/* scrollbar... */ | 
					
						
							|  |  |  | 	& pre { | 
					
						
							| 
									
										
										
										
											2023-11-04 00:38:13 +03:00
										 |  |  | 		margin: 0.8em 0em; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-03 17:27:15 +03:00
										 |  |  | 		overflow-x: visible; | 
					
						
							|  |  |  | 		overflow-y: auto; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		scrollbar-width: thin; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	& pre::-webkit-scrollbar { | 
					
						
							|  |  |  | 		--size: 0.5rem; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		width: var(--size); | 
					
						
							|  |  |  | 		height: var(--size); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		/* XXX due to a bug in chrome this does change the scrollbar curosr... */ | 
					
						
							|  |  |  | 		cursor: pointer; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	& pre::-webkit-scrollbar-track { | 
					
						
							|  |  |  | 		background: transparent; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	& pre::-webkit-scrollbar-thumb { | 
					
						
							|  |  |  | 		background: silver; | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											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-11-01 19:07:37 +03:00
										 |  |  | :host .outline .block>.view>table, | 
					
						
							| 
									
										
										
										
											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-11-01 16:41:01 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	/* XXX for some reason if we omit & where not needed, colors will not apply... */ | 
					
						
							|  |  |  | 	& tr:nth-child(odd) { | 
					
						
							|  |  |  | 		background: rgba(0,0,0,0.03); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	& tr:first-child { | 
					
						
							|  |  |  | 		font-weight: bold; | 
					
						
							|  |  |  | 		border-bottom: solid 0.1rem silver; | 
					
						
							|  |  |  | 		background: transparent; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	& td { | 
					
						
							|  |  |  | 		height: calc(1em + var(--item-padding) * 2); | 
					
						
							|  |  |  | 		padding: 0 1em; | 
					
						
							|  |  |  | 		/*text-align: center;*/ | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-10-12 03:24:34 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-08 04:03:49 +03:00
										 |  |  | /* XXX EXPERIMENTAL...  | 
					
						
							|  |  |  | *	- need to handle nested blocks somehow... | 
					
						
							|  |  |  | */ | 
					
						
							|  |  |  | .editor .outline .block.table-2 { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	&>.view { | 
					
						
							|  |  |  | 		font-size: small; | 
					
						
							|  |  |  | 		color: rgba(0,0,0,0.4); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	&.focused { | 
					
						
							|  |  |  | 		background: rgba(0,0,0,0.05); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	&:focus { | 
					
						
							|  |  |  | 		background: rgba(0,0,0,0.07); | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-11-11 23:57:30 +03:00
										 |  |  | 	&>.code:focus { | 
					
						
							|  |  |  | 		position: absolute; | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-11-08 04:03:49 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	&>.children { | 
					
						
							|  |  |  | 		display: table !important; | 
					
						
							|  |  |  | 		width: 100%; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		&>.block { | 
					
						
							|  |  |  | 			display: table-row; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			&:first-child>.view td { | 
					
						
							|  |  |  | 				font-weight: bold; | 
					
						
							|  |  |  | 				border-bottom: solid 0.1rem silver; | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			&:nth-child(even) { | 
					
						
							|  |  |  | 				background: rgba(0,0,0,0.03); | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			&:not(:first-child) { | 
					
						
							|  |  |  | 				&>.view td { | 
					
						
							|  |  |  | 					font-weight: normal !important; | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			&.focused { | 
					
						
							|  |  |  | 				background: rgba(0,0,0,0.03); | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			&:focus { | 
					
						
							|  |  |  | 				background: rgba(0,0,0,0.07); | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2023-11-11 23:57:30 +03:00
										 |  |  | 			&>.code:focus { | 
					
						
							|  |  |  | 				column-span: all; | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2023-11-08 04:03:49 +03:00
										 |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	.block>.children, | 
					
						
							|  |  |  | 	.view, | 
					
						
							|  |  |  | 	table, | 
					
						
							|  |  |  | 	tbody, | 
					
						
							|  |  |  | 	tr { | 
					
						
							|  |  |  | 		display: contents !important; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | /********************************************************* Testing ***/ | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-01 19:07:37 +03:00
										 |  |  | :host.show-click-zones .outline .block, | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | .editor.show-click-zones .outline .block { | 
					
						
							|  |  |  | 	&>.view { | 
					
						
							|  |  |  | 		&:before, | 
					
						
							|  |  |  | 		&:before, | 
					
						
							|  |  |  | 		&:after { | 
					
						
							|  |  |  | 			background: rgba(0,0,0,0.03); | 
					
						
							|  |  |  | 			border: solid 1px silver; | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	&:hover>.view { | 
					
						
							|  |  |  | 		&:before, | 
					
						
							|  |  |  | 		&:after { | 
					
						
							|  |  |  | 			background: rgba(0,0,0,0.1); | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-10-10 20:34:05 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-11 07:16:18 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-08 04:03:49 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-01 16:41:01 +03:00
										 |  |  | /********************************************************************** | 
					
						
							|  |  |  | * vim:set ts=4 sw=4 : */ |