Simon Hunt | ef31fb2 | 2014-12-19 13:16:44 -0800 | [diff] [blame] | 1 | /* |
Simon Hunt | 8ead3a2 | 2015-01-06 11:00:15 -0800 | [diff] [blame] | 2 | * Copyright 2014,2015 Open Networking Laboratory |
Simon Hunt | ef31fb2 | 2014-12-19 13:16:44 -0800 | [diff] [blame] | 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 | ONOS GUI -- Topology View -- CSS file |
Simon Hunt | ef31fb2 | 2014-12-19 13:16:44 -0800 | [diff] [blame] | 19 | */ |
| 20 | |
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 21 | /* --- Topo Map --- */ |
| 22 | |
Simon Hunt | 5ee36e0 | 2015-01-15 10:33:20 -0800 | [diff] [blame] | 23 | .light #ov-topo svg { |
Simon Hunt | 426bd86 | 2015-01-14 16:48:41 -0800 | [diff] [blame] | 24 | background-color: #fff; |
Simon Hunt | 0541fb8 | 2015-01-14 18:59:57 -0800 | [diff] [blame] | 25 | /* For Debugging the placement of the SVG layer... */ |
| 26 | /*border: 1px solid red;*/ |
Simon Hunt | 6cc5369 | 2015-01-07 11:33:45 -0800 | [diff] [blame] | 27 | } |
Simon Hunt | 5ee36e0 | 2015-01-15 10:33:20 -0800 | [diff] [blame] | 28 | .dark #ov-topo svg { |
| 29 | background-color: #2b2b2b; |
| 30 | } |
Simon Hunt | 426bd86 | 2015-01-14 16:48:41 -0800 | [diff] [blame] | 31 | |
| 32 | #ov-topo svg #topo-map { |
| 33 | stroke-width: 2px; |
Simon Hunt | 426bd86 | 2015-01-14 16:48:41 -0800 | [diff] [blame] | 34 | fill: transparent; |
Simon Hunt | 5ee36e0 | 2015-01-15 10:33:20 -0800 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | .light #ov-topo svg #topo-map { |
Simon Hunt | 584122a | 2015-01-21 15:32:40 -0800 | [diff] [blame] | 38 | /*stroke: #eee;*/ |
| 39 | stroke: #88b; |
Simon Hunt | 5ee36e0 | 2015-01-15 10:33:20 -0800 | [diff] [blame] | 40 | } |
| 41 | .dark #ov-topo svg #topo-map { |
| 42 | stroke: #444; |
| 43 | } |
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 44 | |
| 45 | |
Simon Hunt | 4b66859 | 2015-01-29 17:33:53 -0800 | [diff] [blame] | 46 | /* --- Topo Summary Panel --- */ |
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 47 | |
| 48 | #topo-p-summary { |
| 49 | /* Base css from panel.css */ |
| 50 | |
| 51 | } |
| 52 | |
| 53 | #topo-p-summary svg { |
| 54 | display: inline-block; |
| 55 | width: 42px; |
| 56 | height: 42px; |
| 57 | } |
| 58 | |
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 59 | #topo-p-summary h2 { |
| 60 | position: absolute; |
| 61 | margin: 0 4px; |
| 62 | top: 20px; |
| 63 | left: 50px; |
| 64 | } |
| 65 | .light #topo-p-summary h2 { |
| 66 | color: black; |
| 67 | } |
| 68 | .dark #topo-p-summary h2 { |
| 69 | color: #ddd; |
| 70 | } |
| 71 | |
| 72 | #topo-p-summary h3 { |
| 73 | margin: 0 4px; |
| 74 | top: 20px; |
| 75 | left: 50px; |
| 76 | } |
| 77 | .light #topo-p-summary h3 { |
| 78 | color: black; |
| 79 | } |
| 80 | .dark #topo-p-summary h3 { |
| 81 | color: #ddd; |
| 82 | } |
| 83 | |
| 84 | #topo-p-summary p, table { |
| 85 | margin: 4px 4px; |
| 86 | } |
| 87 | |
| 88 | #topo-p-summary td.label { |
| 89 | font-style: italic; |
| 90 | padding-right: 12px; |
| 91 | /* works for both light and dark themes ... */ |
| 92 | color: #777; |
| 93 | } |
| 94 | |
| 95 | #topo-p-summary td.value { |
| 96 | } |
| 97 | |
| 98 | #topo-p-summary hr { |
| 99 | height: 1px; |
| 100 | border: 0; |
| 101 | } |
| 102 | .light #topo-p-summary hr { |
| 103 | background-color: #ccc; |
| 104 | color: #ccc; |
| 105 | } |
| 106 | .dark #topo-p-summary hr { |
| 107 | background-color: #888; |
| 108 | color: #888; |
| 109 | } |
Simon Hunt | 4b66859 | 2015-01-29 17:33:53 -0800 | [diff] [blame] | 110 | |
| 111 | |
| 112 | /* --- Topo Detail Panel --- */ |
| 113 | |
| 114 | /* TODO: add CSS rules */ |
| 115 | |
| 116 | |
| 117 | /* --- Topo Instance Panel --- */ |
| 118 | |
| 119 | #topo-p-instance { |
| 120 | height: 100px; |
| 121 | } |
| 122 | |
| 123 | #topo-p-instance div.onosInst { |
| 124 | display: inline-block; |
| 125 | width: 170px; |
| 126 | height: 85px; |
| 127 | cursor: pointer; |
| 128 | } |
| 129 | |
| 130 | #topo-p-instance svg rect { |
| 131 | fill: #ccc; |
| 132 | stroke: #aaa; |
| 133 | stroke-width: 3.5; |
| 134 | } |
| 135 | #topo-p-instance .online svg rect { |
| 136 | opacity: 1; |
| 137 | fill: #9cf; |
| 138 | stroke: #555; |
| 139 | } |
| 140 | |
| 141 | #topo-p-instance svg .glyph { |
| 142 | fill: #888; |
| 143 | fill-rule: evenodd; |
| 144 | } |
| 145 | #topo-p-instance .online svg .glyph { |
| 146 | fill: #000; |
| 147 | } |
| 148 | |
| 149 | #topo-p-instance svg .badgeIcon { |
| 150 | fill: #777; |
| 151 | fill-rule: evenodd; |
| 152 | } |
| 153 | |
| 154 | #topo-p-instance .online svg .badgeIcon { |
| 155 | fill: #fff; |
| 156 | } |
| 157 | |
| 158 | #topo-p-instance svg text { |
| 159 | text-anchor: middle; |
| 160 | fill: #777; |
| 161 | } |
| 162 | #topo-p-instance .online svg text { |
| 163 | fill: #eee; |
| 164 | } |
| 165 | |
| 166 | #topo-p-instance svg text.instTitle { |
| 167 | font-size: 11pt; |
| 168 | font-weight: bold; |
| 169 | } |
| 170 | #topo-p-instance svg text.instLabel { |
| 171 | font-size: 9pt; |
| 172 | font-style: italic; |
| 173 | } |
| 174 | |
| 175 | #topo-p-instance .onosInst.mastership { |
| 176 | opacity: 0.3; |
| 177 | } |
| 178 | #topo-p-instance .onosInst.mastership.affinity { |
| 179 | opacity: 1.0; |
| 180 | } |
| 181 | #topo-p-instance .onosInst.mastership.affinity svg rect { |
| 182 | /* TODO: add blue glow */ |
| 183 | /*filter: url(#blue-glow);*/ |
| 184 | } |