[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang-tools-extra / pseudo / tool / HTMLForest.css
blob674cd59f0e76b3530e6cfe8af504d413018ea5ee
1 body {
2 position: absolute;
3 top: 0;
4 bottom: 0;
5 right: 0;
6 left: 0;
8 display: flex;
9 align-items: stretch;
10 margin: 0;
11 font-family: sans-serif;
12 white-space: nowrap;
13 height: 100%;
15 body > * {
16 overflow-y: auto; /* Scroll sections independently*/
17 margin: 0;
20 #code {
21 font-size: 18px;
22 line-height: 36px;
23 flex-grow: 1;
24 padding-right: 10em; /* Leave space for #info */
26 #code span {
27 padding: 9px 0; /* No "gaps" between lines due to line-height */
29 .node.ambiguous::before, .ancestors.ambiguous::after, .tree-node.ambiguous > header::after {
30 content: /*the thinking man's emoji*/'\01F914';
33 #info {
34 position: fixed;
35 right: 2em;
36 top: 1em;
37 width: 25em;
38 border: 1px solid black;
39 min-height: 20em;
40 background-color: whiteSmoke;
41 overflow-x: clip;
42 box-shadow: 3px 3px 5px rgba(0,0,0,0.2);
44 #info header {
45 background-color: black;
46 color: white;
47 font-size: larger;
48 padding: 0.5em;
50 #info.ambiguous header { background-color: #803; }
51 #info.sequence header { background-color: darkBlue; }
52 #info.terminal header { background-color: darkGreen; }
53 #info.opaque header { background-color: orangeRed; }
54 #i_kind {
55 float: right;
56 font-size: small;
58 #info section {
59 padding: 0.5em;
60 border-top: 1px solid lightGray;
61 overflow-x: auto;
63 #i_ancestors { font-size: small; }
65 #tree {
66 flex-grow: 0;
67 min-width: 20em;
68 margin-right: 1em;
69 border-right: 1px solid darkGray;
70 background-color: azure;
71 font-size: small;
72 overflow-x: auto;
73 resize: horizontal;
75 #tree ul {
76 margin: 0;
77 display: inline-block;
78 padding-left: 6px;
79 border-left: 1px solid rgba(0,0,0,0.2);
80 list-style: none;
82 #tree > ul { border-left: none; }
83 .tree-node.selected > header .name { font-weight: bold; }
84 .tree-node.terminal .name { font-family: monospace; }
85 .tree-node.ambiguous > header .name { color: #803; font-weight: bold; }
86 .tree-node.sequence > header .name { color: darkBlue; }
87 .tree-node.terminal > header .name { color: darkGreen; }
88 .tree-node.opaque > header .name { color: orangeRed; }
90 .selected { outline: 1px dashed black; }
91 .abbrev { opacity: 50%; }
92 .abbrev::after { content: '~'; }
93 .opaque { background-color: bisque; }