blob: a54bf6f332ee8234b76f141623a197c6e571f6ad [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
249// node group
250
251.collapsed-level {
252 margin-bottom: 16px;
Rucha Mahabal25c5cff2021-06-29 15:06:09 +0530253 width: 18rem;
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530254}
255
256.node-group {
257 background: white;
258 border: 1px solid var(--gray-300);
259 box-shadow: var(--shadow-sm);
260 border-radius: 0.5rem;
261 padding: 0.75rem;
Rucha Mahabal5046cb02021-06-29 11:12:47 +0530262 width: 18rem;
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530263 height: 3rem;
264 overflow: hidden;
Rucha Mahabal5046cb02021-06-29 11:12:47 +0530265 align-items: center;
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530266}
267
268.node-group .avatar-group {
269 margin-left: 0px;
270}
271
272.node-group .avatar-extra-count {
273 background-color: var(--blue-100);
274 color: var(--blue-500);
275}
276
277.node-group .avatar-frame {
278 width: 1.5rem;
279 height: 1.5rem;
Rucha Mahabal5046cb02021-06-29 11:12:47 +0530280}
281
282.node-group.collapsed {
283 width: 5rem;
284 margin-left: 12px;
Rucha Mahabal25c5cff2021-06-29 15:06:09 +0530285}
286
287.sibling-group {
288 display: flex;
289 flex-direction: column;
290 align-items: center;
Rucha Mahabal8a33a032021-06-21 21:55:50 +0530291}