|
| 1 | +.App code { |
| 2 | + white-space: pre; font-family: monospace; line-height: 1em; |
| 3 | +} |
| 4 | + |
| 5 | +/* TreeDoc */ |
| 6 | + |
| 7 | +.TreeDoc .doc-level { |
| 8 | + margin-left: 20px; |
| 9 | +} |
| 10 | + |
| 11 | +.TreeDoc { |
| 12 | + width: 1600px; |
| 13 | +} |
| 14 | + |
| 15 | +.TreeDoc .doc-level { |
| 16 | + outline: 1px dotted lightgrey; |
| 17 | +} |
| 18 | + |
| 19 | +.TreeDoc .doc-level:hover { |
| 20 | + outline: 1px solid grey; |
| 21 | +} |
| 22 | + |
| 23 | +.TreeDoc .doc-level:hover > .highlight { |
| 24 | + background-color: hsl(120, 61%, 80%); |
| 25 | +} |
| 26 | + |
| 27 | +.TreeDoc .doc-break { |
| 28 | + background: hsl(0, 60%, 90%); |
| 29 | +} |
| 30 | + |
| 31 | +/** these are breaks being referenced by a conditional indent when you hover over it */ |
| 32 | +.TreeDoc .doc-break.referenced { |
| 33 | + background: hsl(60, 100%, 78%); |
| 34 | +} |
| 35 | + |
| 36 | +.TreeDoc .banner { |
| 37 | + background-color: rgba(138, 155, 168, 0.15); |
| 38 | +} |
| 39 | + |
| 40 | +/* Collapse empty level banner */ |
| 41 | +.TreeDoc .banner:empty { |
| 42 | + display: none; |
| 43 | +} |
| 44 | + |
| 45 | +/* DecisionTree */ |
| 46 | + |
| 47 | +.TreeAndDoc { |
| 48 | + display: flex; |
| 49 | + flex-direction: row; |
| 50 | + width: 100%; |
| 51 | + height: 1000px; |
| 52 | + max-height: 1000px; |
| 53 | +} |
| 54 | + |
| 55 | +.TreeAndDoc > * { |
| 56 | + flex-grow: 1; |
| 57 | + flex-basis: 50%; |
| 58 | + /** necessary to prevent overflow */ |
| 59 | + max-width: 50%; |
| 60 | +} |
| 61 | + |
| 62 | +.TreeAndDoc .DecisionTree { |
| 63 | + margin: 10px 0; |
| 64 | + overflow: scroll; |
| 65 | +} |
| 66 | + |
| 67 | +/** |
| 68 | + * Since the Treebeard tree has a different background, we want to make sure it always takes up the space or else |
| 69 | + * it looks ugly. |
| 70 | + */ |
| 71 | +.TreeAndDoc .DecisionTree > ul { |
| 72 | + min-height: 100%; |
| 73 | +} |
| 74 | + |
| 75 | +.TreeAndDoc .InlineDocs { |
| 76 | + display: flex; |
| 77 | + flex-direction: column; |
| 78 | + overflow: scroll; |
| 79 | +} |
| 80 | + |
| 81 | +.TreeAndDoc .InlineDocs .InlineDoc { |
| 82 | + flex-grow: 1; |
| 83 | + flex-basis: auto; |
| 84 | +} |
| 85 | + |
| 86 | +.HighlightInlineDoc { |
| 87 | + flex-grow: 0; |
| 88 | + flex-shrink: 1; |
| 89 | +} |
| 90 | + |
| 91 | +/* InlineDoc */ |
| 92 | + |
| 93 | +.InlineDoc .doc-level.referenced { |
| 94 | + border-radius: 2px; |
| 95 | + background-color: hsla(56, 100%, 51%, 0.4); |
| 96 | +} |
| 97 | + |
| 98 | +/** Inside a referenced level, highlight direct children very specifically. */ |
| 99 | +.InlineDoc .doc-level.referenced > .highlight { |
| 100 | + background-color: hsl(120, 61%, 80%); |
| 101 | +} |
| 102 | + |
| 103 | +/** Inside a referenced level, highlight nested inner levels with progressively more red to indicate depth. */ |
| 104 | +.InlineDoc .doc-level.referenced .doc-level { |
| 105 | + background: hsla(0, 40%, 50%, 0.15); |
| 106 | + /*outline: 2px solid hsla(0, 40%, 0%, 0.3);*/ |
| 107 | +} |
| 108 | + |
| 109 | +/* Ops */ |
| 110 | + |
| 111 | +.Ops span.token:hover { |
| 112 | + outline: 1px solid black; |
| 113 | +} |
| 114 | + |
| 115 | +.Ops span.token:hover span.tokenBody { |
| 116 | + text-decoration: underline; |
| 117 | +} |
| 118 | + |
| 119 | +.Ops span.open-op, .Ops span.close-op, .Ops span.break { |
| 120 | + position: relative; |
| 121 | + width: 3px; |
| 122 | + height: 1em; |
| 123 | + display: inline-block; |
| 124 | + margin: 0 1px; |
| 125 | +} |
| 126 | + |
| 127 | +.Ops span.open-op { |
| 128 | + background: green; |
| 129 | +} |
| 130 | + |
| 131 | +.Ops span.close-op { |
| 132 | + background: red; |
| 133 | +} |
| 134 | + |
| 135 | +.Ops span.break.FillMode-UNIFIED { |
| 136 | + background: #777; |
| 137 | +} |
| 138 | + |
| 139 | +.Ops span.break.FillMode-INDEPENDENT { |
| 140 | + background: #333; |
| 141 | +} |
| 142 | + |
| 143 | +.Ops span.break.FillMode-FORCED { |
| 144 | + background: #000; |
| 145 | + width: 5px; |
| 146 | +} |
| 147 | + |
| 148 | +.Ops span.break.conditional { |
| 149 | + height: 0.4em; |
| 150 | + width: 0.4em; |
| 151 | + vertical-align: middle; |
| 152 | +} |
0 commit comments