Debian Codegraph @

frontend/css/tree-table.css

raw
1 /* Collapsible trees
2 *
3 * some of the shared styles are in `journal-table.css`.
4 *
5 * The styles for .tree-table are not used in Fava anymore but are again provided
6 * for extensions for the near future.
7 */
8
9 .tree-table-new p {
10 margin-top: -1px;
11 }
12
13 .tree-table-new p > span {
14 margin-right: -1px;
15 border: 1px solid var(--table-border);
16 }
17
18 .tree-table-new .num {
19 /** Space for about 14 characters, so a number like 1234512345.123 fits. */
20 width: 9em;
21 }
22
23 .tree-table-new .other {
24 /** Space for about 18 (four more) characters, so an amount like 1234512345.123 USD fits. */
25 width: 12em;
26 }
27
28 .tree-table.fullwidth {
29 display: block;
30 max-width: 100%;
31 overflow-x: auto;
32 }
33
34 .tree-table p {
35 margin-top: -1px;
36 }
37
38 .tree-table p > span {
39 margin-right: -1px;
40 border: 1px solid var(--table-border);
41 }
42
43 .tree-table .account-cell {
44 display: flex;
45 flex: 1;
46 align-items: center;
47 min-width: 14em;
48 max-width: 30em;
49 }
50
51 .tree-table .account-cell.depth-1 {
52 min-width: 13em;
53 max-width: 29em;
54 margin-left: 1em;
55 }
56
57 .tree-table .account-cell.depth-2 {
58 min-width: 12em;
59 max-width: 28em;
60 margin-left: 2em;
61 }
62
63 .tree-table .account-cell.depth-3 {
64 min-width: 11em;
65 max-width: 27em;
66 margin-left: 3em;
67 }
68
69 .tree-table .account-cell.depth-4 {
70 min-width: 10em;
71 max-width: 26em;
72 margin-left: 4em;
73 }
74
75 .tree-table .account-cell.depth-5 {
76 min-width: 9em;
77 max-width: 25em;
78 margin-left: 5em;
79 }
80
81 .tree-table .account-cell.depth-6 {
82 min-width: 8em;
83 max-width: 24em;
84 margin-left: 6em;
85 }
86
87 .tree-table .account-cell.depth-7 {
88 min-width: 7em;
89 max-width: 23em;
90 margin-left: 7em;
91 }
92
93 .tree-table .account-cell.depth-8 {
94 min-width: 6em;
95 max-width: 22em;
96 margin-left: 8em;
97 }
98
99 .tree-table .account-cell.depth-9 {
100 min-width: 5em;
101 max-width: 21em;
102 margin-left: 9em;
103 }
104
105 .tree-table .account-cell a {
106 margin-left: 1em;
107 }
108
109 .tree-table .has-children {
110 cursor: pointer;
111 }
112
113 .tree-table .has-children::before {
114 margin: 0 -10px 0 0;
115 content: "";
116 border-top: 5px solid var(--treetable-expander);
117 border-right: 5px solid transparent;
118 border-left: 5px solid transparent;
119 }
120
121 .tree-table .num {
122 width: 10em;
123 }
124
125 .tree-table .num a {
126 display: block;
127 color: inherit;
128 }
129
130 .tree-table .other {
131 width: 13em;
132 }
133
134 .tree-table .other a {
135 display: block;
136 color: inherit;
137 }
138
139 .tree-table .balance-children {
140 display: block;
141 opacity: 0.7;
142 }
143
144 .tree-table .has-balance .balance {
145 display: block;
146 }
147
148 .tree-table .has-balance .balance-children {
149 display: none;
150 }
151
152 .tree-table .toggled ol {
153 display: none;
154 }
155
156 .tree-table .toggled .balance {
157 display: none;
158 }
159
160 .tree-table .toggled .balance-children {
161 display: block;
162 color: var(--text-color);
163 }
164
165 .tree-table .toggled .has-children::before {
166 transform: rotate(270deg);
167 }
168
169 .tree-table .expand-all {
170 margin-left: 15px;
171 font-weight: normal;
172 color: inherit;
173 opacity: 0.5;
174 }
175
176 .tree-table .diff {
177 margin-right: 3px;
178 font-size: 0.9em;
179 color: var(--budget-zero);
180 white-space: nowrap;
181 }
182
183 .tree-table .diff.negative {
184 color: var(--budget-negative);
185 }
186
187 .tree-table .diff.positive {
188 color: var(--budget-positive);
189 }
190
191 /* For two or more operating currencies, set a slightly smaller size. */
192 .two-currencies {
193 font-size: 0.9em;
194 }
195
196 .two-currencies .num {
197 width: 8em;
198 }
199
200 .two-currencies .other {
201 width: 11em;
202 }