blob: 57d5e8414ae729253b65453529a1305e5cdf1dcc [file] [log] [blame]
Rucha Mahabal506ecb42021-06-20 12:42:06 +05301.node-card {
2 background: white;
3 stroke: 1px solid var(--gray-200);
4 box-shadow: var(--shadow-base);
5 border-radius: 0.5rem;
6 padding: 0.75rem;
7 margin-left: 3rem;
8 width: 18rem;
Rucha Mahabal8a33a032021-06-21 21:55:50 +05309 overflow: hidden;
Rucha Mahabal506ecb42021-06-20 12:42:06 +053010
11 .btn-edit-node {
12 display: none;
13 }
14
15 .edit-chart-node {
16 display: none;
17 }
18
19 .node-edit-icon {
20 display: none;
21 }
22}
23
Rucha Mahabal78f50a92021-07-25 20:28:01 +053024.node-card.exported {
25 box-shadow: none
26}
27
Rucha Mahabal506ecb42021-06-20 12:42:06 +053028.node-image {
29 width: 3.0rem;
30 height: 3.0rem;
31}
32
33.node-name {
34 font-size: 1rem;
35 line-height: 1.72;
36}
37
38.node-title {
39 font-size: 0.75rem;
40 line-height: 1.35;
41}
42
Rucha Mahabal5f0edca2021-07-25 20:39:51 +053043.node-info {
44 width: 12.7rem;
45}
46
Rucha Mahabal506ecb42021-06-20 12:42:06 +053047.node-connections {
48 font-size: 0.75rem;
49 line-height: 1.35;
50}
51
52.node-card.active {
53 background: var(--blue-50);
54 border: 1px solid var(--blue-500);
55 box-shadow: var(--shadow-md);
56 border-radius: 0.5rem;
57 padding: 0.75rem;
58 width: 18rem;
Rucha Mahabal506ecb42021-06-20 12:42:06 +053059
60 .btn-edit-node {
61 display: flex;
62 background: var(--blue-100);
63 color: var(--blue-500);
64 padding: .25rem .5rem;
65 font-size: .75rem;
66 justify-content: center;
67 box-shadow: var(--shadow-sm);
Rucha Mahabald363f9d2021-06-30 02:29:16 +053068 margin-left: auto;
Rucha Mahabal506ecb42021-06-20 12:42:06 +053069 }
70
71 .edit-chart-node {
72 display: block;
Rucha Mahabal781d1bf2021-07-02 18:15:18 +053073 margin-right: 0.25rem;
Rucha Mahabal506ecb42021-06-20 12:42:06 +053074 }
75
76 .node-edit-icon {
77 display: block;
78 }
79
Rucha Mahabal506ecb42021-06-20 12:42:06 +053080 .node-edit-icon > .icon{
81 stroke: var(--blue-500);
82 }
83
84 .node-name {
85 align-items: center;
86 justify-content: space-between;
87 margin-bottom: 2px;
Rucha Mahabald363f9d2021-06-30 02:29:16 +053088 width: 12.2rem;
Rucha Mahabal506ecb42021-06-20 12:42:06 +053089 }
90}
91
92.node-card.active-path {
93 background: var(--blue-100);
94 border: 1px solid var(--blue-300);
95 box-shadow: var(--shadow-sm);
96 border-radius: 0.5rem;
97 padding: 0.75rem;
98 width: 15rem;
99 height: 3.0rem;
100
101 .btn-edit-node {
102 display: none !important;
103 }
104
105 .edit-chart-node {
106 display: none;
107 }
108
109 .node-edit-icon {
110 display: none;
111 }
112
113 .node-info {
114 display: none;
115 }
116
117 .node-title {
118 display: none;
119 }
120
121 .node-connections {
122 display: none;
123 }
124
125 .node-name {
126 font-size: 0.85rem;
127 line-height: 1.35;
128 }
129
130 .node-image {
131 width: 1.5rem;
132 height: 1.5rem;
133 }
134
135 .node-meta {
136 align-items: baseline;
137 }
138}
139
140.node-card.collapsed {
141 background: white;
142 stroke: 1px solid var(--gray-200);
143 box-shadow: var(--shadow-sm);
144 border-radius: 0.5rem;
145 padding: 0.75rem;
146 width: 15rem;
147 height: 3.0rem;
148
149 .btn-edit-node {
150 display: none !important;
151 }
152
153 .edit-chart-node {
154 display: none;
155 }
156
157 .node-edit-icon {
158 display: none;
159 }
160
161 .node-info {
162 display: none;
163 }
164
165 .node-title {
166 display: none;
167 }
168
169 .node-connections {
170 display: none;
171 }
172
173 .node-name {
174 font-size: 0.85rem;
175 line-height: 1.35;
176 }
177
178 .node-image {
179 width: 1.5rem;
180 height: 1.5rem;
181 }
182
183 .node-meta {
184 align-items: baseline;
185 }
186}
187
188// horizontal hierarchy tree view
Rucha Mahabal78f50a92021-07-25 20:28:01 +0530189#hierarchy-chart-wrapper {
190 padding-top: 30px;
Rucha Mahabal15cb2482021-08-10 23:44:08 +0530191
192 #arrows {
193 margin-top: -80px;
194 }
Rucha Mahabal78f50a92021-07-25 20:28:01 +0530195}
196
Rucha Mahabal506ecb42021-06-20 12:42:06 +0530197.hierarchy {
198 display: flex;
Rucha Mahabal506ecb42021-06-20 12:42:06 +0530199}
200
201.hierarchy li {
202 list-style-type: none;
203}
204
205.child-node {
206 margin: 0px 0px 16px 0px;
207}
208
Suraj Shetty15149162021-08-12 21:12:52 +0530209.hierarchy, .hierarchy-mobile {
210 .level {
211 margin-right: 8px;
212 align-items: flex-start;
213 flex-direction: column;
214 }
Rucha Mahabal506ecb42021-06-20 12:42:06 +0530215}
216
217#arrows {
218 position: absolute;
Rucha Mahabalfb9b6282021-06-29 17:48:44 +0530219 overflow: visible;
Rucha Mahabal506ecb42021-06-20 12:42:06 +0530220}
221
222.active-connector {
223 stroke: var(--blue-500);
224}
225
226.collapsed-connector {
227 stroke: var(--blue-300);
228}
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530229
230// mobile
231
232.hierarchy-mobile {
233 display: flex;
234 flex-direction: column;
235 align-items: center;
Rucha Mahabal25c5cff2021-06-29 15:06:09 +0530236 padding-top: 10px;
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530237 padding-left: 0px;
238}
239
240.hierarchy-mobile li {
241 list-style-type: none;
242 display: flex;
243 flex-direction: column;
244 align-items: flex-end;
245}
246
247.mobile-node {
248 margin-left: 0;
249}
250
251.mobile-node.active-path {
252 width: 12.25rem;
253}
254
255.active-child {
256 width: 15.5rem;
257}
258
259.mobile-node .node-connections {
260 max-width: 80px;
261}
262
263.hierarchy-mobile .node-children {
264 margin-top: 16px;
265}
266
Rucha Mahabal31a0f362021-07-07 12:05:50 +0530267.root-level .node-card {
268 margin: 0 0 16px;
269}
270
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530271// node group
272
273.collapsed-level {
274 margin-bottom: 16px;
Rucha Mahabal25c5cff2021-06-29 15:06:09 +0530275 width: 18rem;
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530276}
277
278.node-group {
279 background: white;
280 border: 1px solid var(--gray-300);
281 box-shadow: var(--shadow-sm);
282 border-radius: 0.5rem;
283 padding: 0.75rem;
Rucha Mahabal5046cb02021-06-29 11:12:47 +0530284 width: 18rem;
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530285 height: 3rem;
286 overflow: hidden;
Rucha Mahabal5046cb02021-06-29 11:12:47 +0530287 align-items: center;
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530288}
289
290.node-group .avatar-group {
291 margin-left: 0px;
292}
293
294.node-group .avatar-extra-count {
295 background-color: var(--blue-100);
296 color: var(--blue-500);
297}
298
299.node-group .avatar-frame {
300 width: 1.5rem;
301 height: 1.5rem;
Rucha Mahabal5046cb02021-06-29 11:12:47 +0530302}
303
304.node-group.collapsed {
305 width: 5rem;
306 margin-left: 12px;
Rucha Mahabal25c5cff2021-06-29 15:06:09 +0530307}
308
309.sibling-group {
310 display: flex;
311 flex-direction: column;
312 align-items: center;
Ankush Menat4551d7d2021-08-19 13:41:10 +0530313}