blob: e5f12aeca479492b21422d0100c7558149a7f7ae [file] [log] [blame]
Sean Condon50855cf2018-12-23 15:37:42 +00001/*
2 * Copyright 2018-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/*
19 ONOS GUI -- Topology View (forces link svg) -- CSS file
20 */
21/* --- Topo Links --- */
22line {
23 stroke: #888888;
24 stroke-width: 2px;
25}
26
27.link {
28 opacity: .9;
29}
30
31.link.selected {
32 stroke: #009fdb;
33}
34.link.enhanced {
35 stroke: #009fdb;
36 stroke-width: 4px;
37 cursor: pointer;
38}
39
40.link.inactive {
41 opacity: .5;
42 stroke-dasharray: 4 2;
43}
44/* TODO: Review for not-permitted links */
45.link.not-permitted {
46 stroke: rgb(255,0,0);
47 stroke-dasharray: 8 4;
48}
49
50.link.secondary {
51 stroke: rgba(0,153,51,0.5);
52}
53
54.link.secondary.port-traffic-green {
55 stroke: rgb(0,153,51);
56}
57
58.link.secondary.port-traffic-yellow {
59 stroke: rgb(128,145,27);
60}
61
62.link.secondary.port-traffic-orange {
63 stroke: rgb(255, 137, 3);
64}
65
66.link.secondary.port-traffic-red {
67 stroke: rgb(183, 30, 21);
68}
69
70/* Port traffic color visualization for Kbps, Mbps, and Gbps */
71
72.link.secondary.port-traffic-Kbps {
73 stroke: rgb(0,153,51);
74}
75
76.link.secondary.port-traffic-Mbps {
77 stroke: rgb(128,145,27);
78}
79
80.link.secondary.port-traffic-Gbps {
81 stroke: rgb(255, 137, 3);
82}
83
84.link.secondary.port-traffic-Gbps-choked {
85 stroke: rgb(183, 30, 21);
86}
87
88.link.animated {
Sean Condon4e55c802019-12-03 22:13:34 +000089 stroke-dasharray: 8;
Sean Condon50855cf2018-12-23 15:37:42 +000090 animation: ants 5s infinite linear;
91 /* below line could be added via Javascript, based on path, if we cared
92 * enough about the direction of ant-flow
93 */
94 /*animation-direction: reverse;*/
95}
96@keyframes ants {
97 from {
98 stroke-dashoffset: 0;
99 }
100 to {
101 stroke-dashoffset: 400;
102 }
103}
104
105.link.primary {
106 stroke-width: 4px;
107 stroke: #ffA300;
108}
109
110.link.secondary.optical {
111 stroke-width: 4px;
112 stroke: rgba(128,64,255,0.5);
113}
114
115.link.primary.optical {
116 stroke-width: 6px;
117 stroke: #74f;
118}
119
120/* Link Labels */
121.linkLabel rect {
122 stroke: none;
123 fill: #ffffff;
124}
125
126.linkLabel text {
127 fill: #444;
128 text-anchor: middle;
129}
130
131
132/* Port Labels */
133.portLabel rect {
134 stroke: #a3a596;
135 fill: #ffffff;
136}
137
138.portLabel {
139 fill: #444;
140 alignment-baseline: middle;
141 dominant-baseline: middle;
142}
143
144/* Number of Links Labels */
145
146
147#ov-topo2 text.numLinkText {
148 fill: #444;
149}