blob: 5d773a19214281c29468231f2084c30bb83a21c9 [file] [log] [blame]
Matteo Scandolo8cf33a32017-11-14 15:52:29 -08001/*
2 * Copyright 2017-present Open Networking Foundation
3
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7
8 * http://www.apache.org/licenses/LICENSE-2.0
9
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17
18@import './../../../style/vars.scss';
19@import '../../../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/variables';
20
21$svg-size: 600px;
22
23xos-service-graph {
24 display: block;
25 // background: $color-accent;
26
27 .graph-container {
28 position: relative;
29
30 .loader-container {
31 position: absolute;
32 left: 0;
33 top: 0;
34 height: $svg-size;
35 width: 100%;
36 }
37 }
38
39 svg {
40 height: $svg-size;
41 width: 100%;
42 background-color: $panel-filled-bg;
43 border-radius: 3px;
44 }
45
46 .close-btn {
47 display: none;
48 }
49
50 .fullscreen {
51 svg {
52 z-index: 1040;
53 width: 100%;
54 height: 100%;
55 position: fixed;
56 top: 0;
57 left: 0;
58 background-color: $background-color;
59 transition: all .5s;
60 }
61
62 .close-btn {
63 cursor: pointer;
64 display: block;
65 position: fixed;
66 top: 10px;
67 right: 10px;
68 z-index: 1041;
69 }
70 }
71
72 .node-group {
73
74 .node {
75 cursor: pointer;
Matteo Scandolo1888b2a2018-01-08 16:49:06 -080076 fill: $background-color;
Matteo Scandolo8cf33a32017-11-14 15:52:29 -080077 }
78
79 .node.service {
80 > rect {
81 stroke: $color-accent;
Matteo Scandolo8cf33a32017-11-14 15:52:29 -080082 }
83 > .icon {
84 fill: $color-accent;
85 }
86 }
87
88 .node.serviceinstance {
89 > rect {
Matteo Scandolo1888b2a2018-01-08 16:49:06 -080090 stroke: $serviceinstances-fg;
Matteo Scandolo8cf33a32017-11-14 15:52:29 -080091 }
92 > .icon {
Matteo Scandolo1888b2a2018-01-08 16:49:06 -080093 fill: $serviceinstances-fg;
94 }
95 }
96
97 .node.instance {
98 > rect {
99 stroke: $instances-fg;
100 }
101 > .icon {
102 fill: $instances-fg;
103 }
104 }
105
106 .node.network {
107 > rect {
108 stroke: $networks-fg;
109 }
110 > .icon {
111 fill: $networks-fg;
Matteo Scandolo8cf33a32017-11-14 15:52:29 -0800112 }
113 }
114
115 .node {
116 >.label {
117 >text {
118 fill: #fff;
119 }
120 >rect {
121 fill: $background-color;
122 stroke: #fff;
123 }
124 }
125 }
126 }
127
128 .link-group {
129 line {
130 stroke: $color-accent;
131 }
132
133 line.ownership {
Matteo Scandolo1888b2a2018-01-08 16:49:06 -0800134 stroke: $serviceinstances-fg;
Matteo Scandolo8cf33a32017-11-14 15:52:29 -0800135 stroke-dasharray: 5;
136 }
137
138 line.serviceinstancelink {
Matteo Scandolo1888b2a2018-01-08 16:49:06 -0800139 stroke: $serviceinstances-fg;
140 }
141
142 line.instance_ownership {
143 stroke: $instances-fg;
144 stroke-dasharray: 5;
145 }
146
147 line.port {
148 stroke: $networks-fg;
Matteo Scandolo8cf33a32017-11-14 15:52:29 -0800149 }
150 }
151 .arrow-marker {
152 stroke: $color-accent;
153 fill: $color-accent;
154 }
155}