Skip to content

Commit 768afa8

Browse files
committed
Move sample specific css out of angular-patternfly less (so it won't ship with it).
1 parent deb7437 commit 768afa8

File tree

2 files changed

+58
-53
lines changed

2 files changed

+58
-53
lines changed

src/charts/charts.less

Lines changed: 2 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ pf-topology {
192192
user-select: none;
193193
}
194194

195-
196195
.container-topology pf-topology {
197196
height: 500px;
198197
position: relative;
@@ -227,8 +226,9 @@ pf-topology {
227226
cursor: pointer;
228227
}
229228

229+
230230
.container-topology label.checkbox-inline {
231-
font-size:14px;
231+
font-size: 14px;
232232
}
233233

234234
.pf-topology-svg g {
@@ -247,25 +247,6 @@ pf-topology {
247247
opacity: .6;
248248
}
249249

250-
.pf-topology-svg g.Pod text {
251-
font-family: FontAwesome;
252-
font-size: 16px;
253-
fill: #1186C1;
254-
}
255-
256-
.pf-topology-svg g.Node text {
257-
fill: #636363;
258-
}
259-
260-
.pf-topology-svg g.Service text {
261-
fill: #ff7f0e;
262-
}
263-
264-
.pf-topology-svg g.ReplicationController text {
265-
fill: #9467bd;
266-
font-size: 20px;
267-
}
268-
269250
.pf-topology-svg g circle {
270251
stroke: #aaa;
271252
fill: #fff;
@@ -285,11 +266,6 @@ pf-topology {
285266
stroke-width: 1;
286267
}
287268

288-
.pf-topology-svg line.ReplicationControllerPod {
289-
stroke-linecap: round;
290-
stroke-dasharray: 5, 2;
291-
}
292-
293269
.pf-topology-svg g text.attached-label {
294270
display: none;
295271
}
@@ -324,33 +300,7 @@ pf-topology {
324300
stroke: #bbb;
325301
}
326302

327-
.pf-topology-svg line.ContainerServiceContainerGroup, .pf-topology-svg line.ContainerReplicatorContainerGroup, .pf-topology-svg line.ContainerServiceContainerRoute,
328-
.pf-topology-svg line.ContainerGroupContainerService, .pf-topology-svg line.ContainerGroupContainerReplicator {
329-
stroke-linecap: round;
330-
stroke-dasharray: 5.5;
331-
}
332-
333303
.pf-topology-svg g text.glyph {
334304
font-size: 20px;
335305
fill: #1186C1;
336306
}
337-
338-
.pf-topology-svg g.Container text.glyph {
339-
font-size: 18px;
340-
}
341-
342-
.pf-topology-svg g.ContainerGroup text.glyph {
343-
font-size: 18px;
344-
}
345-
346-
.pf-topology-svg g.Vm text.glyph, .pf-topology-svg g.Host text.glyph {
347-
fill: #636363;
348-
}
349-
350-
.pf-topology-svg g.ContainerNode text.glyph {
351-
font-size: 18px;
352-
}
353-
354-
.pf-topology-svg g.ContainerManager text.glyph {
355-
font-size: 18px;
356-
}

src/charts/topology/examples/topology-view.js

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @restrict E
55
*
66
* @description
7-
* Component for rendering a topology chart. Individual nodes and relationships can be represented with this view.
7+
* Component for rendering a topology chart. Individual nodes and relationships can be represented with this view. CSS is especially important for rendering the noes and lines. The example inline contains specific examples that can be used to change the icon size and the line type of the relationships.
88
*
99
* In addition; searching, filtering and label visibility is also supported.<br/>
1010
*
@@ -250,5 +250,60 @@
250250
}
251251
});
252252
</file>
253+
<file name="topology.css">
254+
255+
.pf-topology-svg g.Pod text {
256+
font-family: FontAwesome;
257+
font-size: 16px;
258+
fill: #1186C1;
259+
}
260+
261+
.pf-topology-svg g.Node text {
262+
fill: #636363;
263+
}
264+
265+
.pf-topology-svg g.Service text {
266+
fill: #ff7f0e;
267+
}
268+
269+
.pf-topology-svg g.ReplicationController text {
270+
fill: #9467bd;
271+
font-size: 20px;
272+
}
273+
274+
.pf-topology-svg line.ReplicationControllerPod {
275+
stroke-linecap: round;
276+
stroke-dasharray: 5, 2;
277+
}
278+
279+
280+
.pf-topology-svg line.ContainerServiceContainerGroup, .pf-topology-svg line.ContainerReplicatorContainerGroup, .pf-topology-svg line.ContainerServiceContainerRoute,
281+
.pf-topology-svg line.ContainerGroupContainerService, .pf-topology-svg line.ContainerGroupContainerReplicator {
282+
stroke-linecap: round;
283+
stroke-dasharray: 5.5;
284+
}
285+
286+
287+
.pf-topology-svg g.Container text.glyph {
288+
font-size: 18px;
289+
}
290+
291+
.pf-topology-svg g.ContainerGroup text.glyph {
292+
font-size: 18px;
293+
}
294+
295+
.pf-topology-svg g.Vm text.glyph, .pf-topology-svg g.Host text.glyph {
296+
fill: #636363;
297+
}
298+
299+
.pf-topology-svg g.ContainerNode text.glyph {
300+
font-size: 18px;
301+
}
302+
303+
.pf-topology-svg g.ContainerManager text.glyph {
304+
font-size: 18px;
305+
}
306+
</file>
307+
253308
</example>
254309
*/

0 commit comments

Comments
 (0)