Skip to content

Commit 22eb250

Browse files
Merge pull request #395 from dgutride/create-topology-graph
Create topology graph component
2 parents d3f873c + bab4849 commit 22eb250

File tree

4 files changed

+1312
-0
lines changed

4 files changed

+1312
-0
lines changed

src/charts/charts.less

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,121 @@ pf-c3-chart {
186186
.camelcase {
187187
text-transform: capitalize;
188188
}
189+
190+
pf-topology {
191+
display: block;
192+
user-select: none;
193+
}
194+
195+
.container-topology pf-topology {
196+
height: 500px;
197+
position: relative;
198+
}
199+
.container-topology .canvas {
200+
position: absolute;
201+
}
202+
203+
.container-topology .popup {
204+
position: absolute;
205+
left: 0;
206+
top: 0;
207+
background-color: #fff;
208+
width: 180px;
209+
border: 1px #ccc solid;
210+
border-radius: 6px;
211+
box-shadow: #333 2px 2px 4px;
212+
padding: 6px;
213+
font-size: 14px;
214+
}
215+
216+
.container-topology .popup h5 {
217+
font-weight: bold;
218+
}
219+
220+
.container-topology .popup p {
221+
margin: 0 0 4px;
222+
}
223+
224+
.container-topology .popup p:hover {
225+
color : #0099cc;
226+
cursor: pointer;
227+
}
228+
229+
230+
.container-topology label.checkbox-inline {
231+
font-size: 14px;
232+
}
233+
234+
.pf-topology-svg g {
235+
font-family: PatternFlyIcons-webfont;
236+
font-size: 18px;
237+
text-anchor: middle;
238+
cursor: pointer;
239+
}
240+
241+
.pf-topology-svg g text {
242+
stroke: none;
243+
stroke-width: 0px;
244+
}
245+
246+
.pf-topology-svg g.weak use {
247+
opacity: .6;
248+
}
249+
250+
.pf-topology-svg g circle {
251+
stroke: #aaa;
252+
fill: #fff;
253+
}
254+
255+
.pf-topology-svg g.fixed use {
256+
stroke-width: 2px;
257+
}
258+
259+
.pf-topology-svg g.selected use,
260+
.pf-topology-svg g.selected circle {
261+
stroke-width: 4px;
262+
}
263+
264+
.pf-topology-svg line {
265+
stroke: #aaa;
266+
stroke-width: 1;
267+
}
268+
269+
.pf-topology-svg g text.attached-label {
270+
display: none;
271+
}
272+
273+
.pf-topology-svg g text.attached-label.visible {
274+
font-size: 12px;
275+
fill: black;
276+
display: block;
277+
}
278+
279+
.pf-topology-svg g.selected {
280+
stroke-width: 4px;
281+
}
282+
283+
.pf-topology-svg g circle {
284+
stroke-width: 2px;
285+
}
286+
287+
.pf-topology-svg g circle.success {
288+
stroke: #3F9C35;
289+
}
290+
291+
.pf-topology-svg g circle.error {
292+
stroke: #CC0000;
293+
}
294+
295+
.pf-topology-svg g circle.warning {
296+
stroke: #EC7A08;
297+
}
298+
299+
.pf-topology-svg g circle.unknown {
300+
stroke: #bbb;
301+
}
302+
303+
.pf-topology-svg g text.glyph {
304+
font-size: 20px;
305+
fill: #1186C1;
306+
}

0 commit comments

Comments
 (0)