Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 1 | /* |
Thomas Vachuska | 781d18b | 2014-10-27 10:31:25 -0700 | [diff] [blame] | 2 | * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | * or more contributor license agreements. See the NOTICE file |
| 4 | * distributed with this work for additional information |
| 5 | * regarding copyright ownership. The ASF licenses this file |
| 6 | * to you under the Apache License, Version 2.0 (the |
| 7 | * "License"); you may not use this file except in compliance |
| 8 | * with the License. You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, |
| 13 | * software distributed under the License is distributed on an |
| 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | * KIND, either express or implied. See the License for the |
| 16 | * specific language governing permissions and limitations |
| 17 | * under the License. |
| 18 | */ |
| 19 | |
| 20 | /* |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 21 | ONOS CSS file |
| 22 | |
| 23 | @author Simon Hunt |
| 24 | */ |
| 25 | |
| 26 | body, html { |
| 27 | height: 100%; |
| 28 | } |
| 29 | |
| 30 | /* |
| 31 | * Classes |
| 32 | */ |
| 33 | |
| 34 | span.title { |
Simon Hunt | 19cb098 | 2014-10-23 16:44:49 -0700 | [diff] [blame] | 35 | color: #37b; |
| 36 | font-size: 14pt; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 37 | font-style: italic; |
Simon Hunt | 19cb098 | 2014-10-23 16:44:49 -0700 | [diff] [blame] | 38 | vertical-align: 10px; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | span.radio { |
| 42 | color: darkslateblue; |
Simon Hunt | 19cb098 | 2014-10-23 16:44:49 -0700 | [diff] [blame] | 43 | font-size: 10pt; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 44 | } |
| 45 | |
| 46 | span.right { |
| 47 | float: right; |
| 48 | } |
| 49 | |
| 50 | /* |
Simon Hunt | 5cd0e8f | 2014-10-27 16:18:40 -0700 | [diff] [blame] | 51 | * Radio Buttons |
| 52 | */ |
| 53 | |
| 54 | span.radio { |
| 55 | margin: 4px 0; |
| 56 | border: 1px dotted #222; |
| 57 | padding: 1px 6px; |
| 58 | color: #eee; |
| 59 | cursor: pointer; |
| 60 | } |
| 61 | |
| 62 | span.radio.active { |
| 63 | background-color: #bbb; |
| 64 | border: 1px solid #eee; |
| 65 | padding: 1px 6px; |
| 66 | color: #666; |
| 67 | font-weight: bold; |
| 68 | } |
| 69 | |
| 70 | /* |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 71 | * === DEBUGGING ====== |
| 72 | */ |
| 73 | svg { |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 74 | /*border: 1px dashed red;*/ |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 75 | } |
| 76 | |
| 77 | |
| 78 | /* |
| 79 | * Network Graph elements ====================================== |
| 80 | */ |
| 81 | |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 82 | svg .link { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 83 | fill: none; |
| 84 | stroke: #666; |
Simon Hunt | d35961b | 2014-10-28 08:49:48 -0700 | [diff] [blame] | 85 | stroke-width: 2.0px; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 86 | opacity: .7; |
| 87 | /*marker-end: url(#end);*/ |
| 88 | |
| 89 | transition: opacity 250ms; |
| 90 | -webkit-transition: opacity 250ms; |
| 91 | -moz-transition: opacity 250ms; |
| 92 | } |
| 93 | |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 94 | svg .node rect { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 95 | stroke-width: 1.5px; |
| 96 | |
| 97 | transition: opacity 250ms; |
| 98 | -webkit-transition: opacity 250ms; |
| 99 | -moz-transition: opacity 250ms; |
| 100 | } |
| 101 | |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 102 | svg .node.device.roadm rect { |
| 103 | fill: #229; |
| 104 | } |
Simon Hunt | 5cd0e8f | 2014-10-27 16:18:40 -0700 | [diff] [blame] | 105 | |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 106 | svg .node.device.switch rect { |
| 107 | fill: #55f; |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 108 | } |
| 109 | |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 110 | svg .node.host rect { |
| 111 | fill: #787; |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 112 | } |
| 113 | |
| 114 | svg .node text { |
| 115 | fill: white; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 116 | font: 10px sans-serif; |
| 117 | pointer-events: none; |
| 118 | } |
| 119 | |
Simon Hunt | 5cd0e8f | 2014-10-27 16:18:40 -0700 | [diff] [blame] | 120 | /* for debugging */ |
| 121 | svg .node circle.debug { |
| 122 | fill: white; |
| 123 | stroke: red; |
| 124 | } |
| 125 | svg .node rect.debug { |
| 126 | fill: yellow; |
| 127 | stroke: red; |
| 128 | opacity: 0.35; |
| 129 | } |
| 130 | |
| 131 | |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 132 | svg .node.selected rect { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 133 | filter: url(#blue-glow); |
| 134 | } |
| 135 | |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 136 | svg .link.inactive, |
| 137 | svg .node.inactive rect, |
Simon Hunt | 1c5f8b6 | 2014-10-22 14:43:01 -0700 | [diff] [blame] | 138 | svg .node.inactive text, |
| 139 | svg .node.inactive image { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 140 | opacity: .2; |
| 141 | } |
| 142 | |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 143 | svg .node.inactive.selected rect, |
Simon Hunt | 1c5f8b6 | 2014-10-22 14:43:01 -0700 | [diff] [blame] | 144 | svg .node.inactive.selected text, |
| 145 | svg .node.inactive.selected image { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 146 | opacity: .6; |
| 147 | } |
| 148 | |
Simon Hunt | 5cd0e8f | 2014-10-27 16:18:40 -0700 | [diff] [blame] | 149 | /* |
| 150 | * === currently unused =============================================== |
| 151 | */ |
| 152 | |
| 153 | svg marker#end { |
| 154 | fill: #666; |
| 155 | stroke: #666; |
| 156 | stroke-width: 1.5px; |
| 157 | } |
| 158 | |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 159 | svg .legend { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 160 | position: fixed; |
| 161 | } |
| 162 | |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 163 | svg .legend .category rect { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 164 | stroke-width: 1px; |
| 165 | } |
| 166 | |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 167 | svg .legend .category text { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 168 | fill: #000; |
| 169 | font: 10px sans-serif; |
| 170 | pointer-events: none; |
| 171 | } |
| 172 | |
| 173 | /* |
| 174 | * ============================================================= |
| 175 | */ |
| 176 | |
| 177 | /* |
| 178 | * Specific structural elements |
| 179 | */ |
| 180 | |
| 181 | #frame { |
| 182 | width: 100%; |
| 183 | height: 100%; |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 184 | background-color: #fff; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 185 | } |
| 186 | |
| 187 | #mast { |
Simon Hunt | 19cb098 | 2014-10-23 16:44:49 -0700 | [diff] [blame] | 188 | height: 36px; |
| 189 | padding: 4px; |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 190 | background-color: #ccc; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 191 | vertical-align: baseline; |
| 192 | } |
| 193 | |