blob: dd523c344398530c881ec6a9e68363f9ef7d25ef [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
24.node-image {
25 width: 3.0rem;
26 height: 3.0rem;
27}
28
29.node-name {
30 font-size: 1rem;
31 line-height: 1.72;
32}
33
34.node-title {
35 font-size: 0.75rem;
36 line-height: 1.35;
37}
38
39.node-connections {
40 font-size: 0.75rem;
41 line-height: 1.35;
42}
43
44.node-card.active {
45 background: var(--blue-50);
46 border: 1px solid var(--blue-500);
47 box-shadow: var(--shadow-md);
48 border-radius: 0.5rem;
49 padding: 0.75rem;
50 width: 18rem;
Rucha Mahabal506ecb42021-06-20 12:42:06 +053051
52 .btn-edit-node {
53 display: flex;
54 background: var(--blue-100);
55 color: var(--blue-500);
56 padding: .25rem .5rem;
57 font-size: .75rem;
58 justify-content: center;
59 box-shadow: var(--shadow-sm);
Rucha Mahabald363f9d2021-06-30 02:29:16 +053060 margin-left: auto;
Rucha Mahabal506ecb42021-06-20 12:42:06 +053061 }
62
63 .edit-chart-node {
64 display: block;
Rucha Mahabal781d1bf2021-07-02 18:15:18 +053065 margin-right: 0.25rem;
Rucha Mahabal506ecb42021-06-20 12:42:06 +053066 }
67
68 .node-edit-icon {
69 display: block;
70 }
71
Rucha Mahabal506ecb42021-06-20 12:42:06 +053072 .node-edit-icon > .icon{
73 stroke: var(--blue-500);
74 }
75
76 .node-name {
77 align-items: center;
78 justify-content: space-between;
79 margin-bottom: 2px;
Rucha Mahabald363f9d2021-06-30 02:29:16 +053080 width: 12.2rem;
Rucha Mahabal506ecb42021-06-20 12:42:06 +053081 }
82}
83
84.node-card.active-path {
85 background: var(--blue-100);
86 border: 1px solid var(--blue-300);
87 box-shadow: var(--shadow-sm);
88 border-radius: 0.5rem;
89 padding: 0.75rem;
90 width: 15rem;
91 height: 3.0rem;
92
93 .btn-edit-node {
94 display: none !important;
95 }
96
97 .edit-chart-node {
98 display: none;
99 }
100
101 .node-edit-icon {
102 display: none;
103 }
104
105 .node-info {
106 display: none;
107 }
108
109 .node-title {
110 display: none;
111 }
112
113 .node-connections {
114 display: none;
115 }
116
117 .node-name {
118 font-size: 0.85rem;
119 line-height: 1.35;
120 }
121
122 .node-image {
123 width: 1.5rem;
124 height: 1.5rem;
125 }
126
127 .node-meta {
128 align-items: baseline;
129 }
130}
131
132.node-card.collapsed {
133 background: white;
134 stroke: 1px solid var(--gray-200);
135 box-shadow: var(--shadow-sm);
136 border-radius: 0.5rem;
137 padding: 0.75rem;
138 width: 15rem;
139 height: 3.0rem;
140
141 .btn-edit-node {
142 display: none !important;
143 }
144
145 .edit-chart-node {
146 display: none;
147 }
148
149 .node-edit-icon {
150 display: none;
151 }
152
153 .node-info {
154 display: none;
155 }
156
157 .node-title {
158 display: none;
159 }
160
161 .node-connections {
162 display: none;
163 }
164
165 .node-name {
166 font-size: 0.85rem;
167 line-height: 1.35;
168 }
169
170 .node-image {
171 width: 1.5rem;
172 height: 1.5rem;
173 }
174
175 .node-meta {
176 align-items: baseline;
177 }
178}
179
180// horizontal hierarchy tree view
181.hierarchy {
182 display: flex;
183 padding-top: 30px;
184}
185
186.hierarchy li {
187 list-style-type: none;
188}
189
190.child-node {
191 margin: 0px 0px 16px 0px;
192}
193
194.level {
195 margin-right: 8px;
Rucha Mahabal4e7cda62021-06-30 01:46:10 +0530196 align-items: flex-start;
Rucha Mahabal506ecb42021-06-20 12:42:06 +0530197}
198
199#arrows {
200 position: absolute;
Rucha Mahabalfb9b6282021-06-29 17:48:44 +0530201 overflow: visible;
Rucha Mahabal506ecb42021-06-20 12:42:06 +0530202}
203
204.active-connector {
205 stroke: var(--blue-500);
206}
207
208.collapsed-connector {
209 stroke: var(--blue-300);
210}
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530211
212// mobile
213
214.hierarchy-mobile {
215 display: flex;
216 flex-direction: column;
217 align-items: center;
Rucha Mahabal25c5cff2021-06-29 15:06:09 +0530218 padding-top: 10px;
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530219 padding-left: 0px;
220}
221
222.hierarchy-mobile li {
223 list-style-type: none;
224 display: flex;
225 flex-direction: column;
226 align-items: flex-end;
227}
228
229.mobile-node {
230 margin-left: 0;
231}
232
233.mobile-node.active-path {
234 width: 12.25rem;
235}
236
237.active-child {
238 width: 15.5rem;
239}
240
241.mobile-node .node-connections {
242 max-width: 80px;
243}
244
245.hierarchy-mobile .node-children {
246 margin-top: 16px;
247}
248
Rucha Mahabal31a0f362021-07-07 12:05:50 +0530249.root-level .node-card {
250 margin: 0 0 16px;
251}
252
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530253// node group
254
255.collapsed-level {
256 margin-bottom: 16px;
Rucha Mahabal25c5cff2021-06-29 15:06:09 +0530257 width: 18rem;
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530258}
259
260.node-group {
261 background: white;
262 border: 1px solid var(--gray-300);
263 box-shadow: var(--shadow-sm);
264 border-radius: 0.5rem;
265 padding: 0.75rem;
Rucha Mahabal5046cb02021-06-29 11:12:47 +0530266 width: 18rem;
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530267 height: 3rem;
268 overflow: hidden;
Rucha Mahabal5046cb02021-06-29 11:12:47 +0530269 align-items: center;
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530270}
271
272.node-group .avatar-group {
273 margin-left: 0px;
274}
275
276.node-group .avatar-extra-count {
277 background-color: var(--blue-100);
278 color: var(--blue-500);
279}
280
281.node-group .avatar-frame {
282 width: 1.5rem;
283 height: 1.5rem;
Rucha Mahabal5046cb02021-06-29 11:12:47 +0530284}
285
286.node-group.collapsed {
287 width: 5rem;
288 margin-left: 12px;
Rucha Mahabal25c5cff2021-06-29 15:06:09 +0530289}
290
291.sibling-group {
292 display: flex;
293 flex-direction: column;
294 align-items: center;
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530295}