Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Foundation |
Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [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 | /* |
| 19 | ONOS GUI -- Topology View (layout) -- CSS file |
| 20 | */ |
| 21 | |
Steven Burrows | 8ea5dea | 2016-12-27 13:28:41 +0000 | [diff] [blame] | 22 | #mast { |
| 23 | position: relative; |
| 24 | z-index: 1000; |
| 25 | } |
| 26 | |
Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 27 | /* --- Base SVG Layer --- */ |
| 28 | |
| 29 | #ov-topo2 svg { |
| 30 | /* prevents the little cut/copy/paste square that would appear on iPad */ |
| 31 | -webkit-user-select: none; |
| 32 | } |
Simon Hunt | 9818919 | 2016-07-29 19:02:27 -0700 | [diff] [blame] | 33 | |
Simon Hunt | 9818919 | 2016-07-29 19:02:27 -0700 | [diff] [blame] | 34 | |
Steven Burrows | 6501de9 | 2017-04-12 15:10:34 -0700 | [diff] [blame] | 35 | /* --- "No Devices" Layer --- */ |
| 36 | |
| 37 | #ov-topo2 svg #topo2-noDevsLayer { |
| 38 | visibility: hidden; |
| 39 | } |
| 40 | |
| 41 | #ov-topo2 svg #topo2-noDevsLayer text { |
| 42 | font-size: 60pt; |
| 43 | font-style: italic; |
| 44 | } |
Steven Burrows | af3159d | 2016-08-25 14:54:30 +0100 | [diff] [blame] | 45 | |
| 46 | #breadcrumbs { |
Steven Burrows | d8e6c33 | 2016-09-27 10:40:53 -0700 | [diff] [blame] | 47 | font-size: 13px; |
Steven Burrows | af3159d | 2016-08-25 14:54:30 +0100 | [diff] [blame] | 48 | position: absolute; |
Steven Burrows | d8e6c33 | 2016-09-27 10:40:53 -0700 | [diff] [blame] | 49 | padding: 10px 20px; |
| 50 | left: 0; |
| 51 | top: 48px; |
Steven Burrows | af3159d | 2016-08-25 14:54:30 +0100 | [diff] [blame] | 52 | width: 100%; |
| 53 | } |
| 54 | |
| 55 | #breadcrumbs .breadcrumb { |
| 56 | display: inline-block; |
Steven Burrows | d8e6c33 | 2016-09-27 10:40:53 -0700 | [diff] [blame] | 57 | margin-right: 5px; |
| 58 | } |
| 59 | |
| 60 | #breadcrumbs .breadcrumb a { |
| 61 | cursor: pointer; |
| 62 | } |
| 63 | |
| 64 | #breadcrumbs .breadcrumb:after { |
| 65 | content: 'ยป'; |
| 66 | pointer-events: none; |
Steven Burrows | d8e6c33 | 2016-09-27 10:40:53 -0700 | [diff] [blame] | 67 | line-height: 20px; |
| 68 | margin-left: 5px; |
| 69 | } |
| 70 | |
Steven Burrows | 2d4aab7 | 2016-09-27 11:24:58 -0700 | [diff] [blame] | 71 | #breadcrumbs .breadcrumb:last-child a { |
| 72 | pointer-events: none; |
| 73 | font-weight: 600; |
Steven Burrows | 2d4aab7 | 2016-09-27 11:24:58 -0700 | [diff] [blame] | 74 | } |
| 75 | |
Steven Burrows | d8e6c33 | 2016-09-27 10:40:53 -0700 | [diff] [blame] | 76 | #breadcrumbs .breadcrumb:last-child:after { |
| 77 | display: none; |
Steven Burrows | af3159d | 2016-08-25 14:54:30 +0100 | [diff] [blame] | 78 | } |
| 79 | |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 80 | #topo2-p-instance.floatpanel { |
Steven Burrows | af3159d | 2016-08-25 14:54:30 +0100 | [diff] [blame] | 81 | top: 104px; |
| 82 | } |
Steven Burrows | dfa52b0 | 2016-09-02 13:50:43 +0100 | [diff] [blame] | 83 | |
Steven Burrows | 8ea5dea | 2016-12-27 13:28:41 +0000 | [diff] [blame] | 84 | .breadcrumb--hidden #topo2-p-instance.floatpanel { |
| 85 | top: 64px; |
| 86 | } |
Steven Burrows | dfa52b0 | 2016-09-02 13:50:43 +0100 | [diff] [blame] | 87 | |
Steven Burrows | 6404721 | 2017-11-01 15:45:36 +0000 | [diff] [blame] | 88 | #topo2-p-instance .instTitle { |
| 89 | font-size: 11pt; |
| 90 | font-weight: bold; |
| 91 | font-variant: small-caps; |
| 92 | text-transform: uppercase; |
| 93 | } |
| 94 | |
Steven Burrows | dfa52b0 | 2016-09-02 13:50:43 +0100 | [diff] [blame] | 95 | /* -- Base Device Styles -- */ |
| 96 | #ov-topo2 svg .node { |
| 97 | cursor: pointer; |
| 98 | fill-rule: evenodd; |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 99 | } |
Steven Burrows | 1c5c861 | 2016-10-05 13:45:13 -0500 | [diff] [blame] | 100 | |
| 101 | /* --- Topo Summary Panel --- */ |
| 102 | |
| 103 | #topo2-p-summary { |
| 104 | padding: 16px; |
| 105 | } |
| 106 | |
| 107 | |
| 108 | /* --- Topo Detail Panel --- */ |
| 109 | |
| 110 | #topo2-p-detail { |
| 111 | padding: 16px; |
| 112 | top: 370px; |
| 113 | } |
| 114 | html[data-platform='iPad'] #topo2-p-detail { |
| 115 | top: 386px; |
| 116 | } |
| 117 | |
| 118 | #topo2-p-detail .actionBtns .actionBtn { |
| 119 | display: inline-block; |
| 120 | } |
| 121 | #topo2-p-detail .actionBtns .actionBtn svg { |
| 122 | width: 28px; |
| 123 | height: 28px; |
| 124 | } |
| 125 | |
Simon Hunt | 95f4b42 | 2017-03-03 13:49:05 -0800 | [diff] [blame] | 126 | |
| 127 | /* --- general topo2-panel styling --- */ |
| 128 | |
| 129 | .topo2-p div.header { |
| 130 | margin-bottom: 10px; |
| 131 | } |
| 132 | |
| 133 | .topo2-p div.header div.icon { |
| 134 | vertical-align: middle; |
| 135 | display: inline-block; |
| 136 | } |
| 137 | .topo2-p div.body { |
| 138 | overflow-y: scroll; |
| 139 | } |
| 140 | |
| 141 | .topo2-p div.body::-webkit-scrollbar { |
| 142 | display: none; |
| 143 | } |
| 144 | |
| 145 | .topo2-p svg { |
| 146 | display: inline-block; |
| 147 | width: 26px; |
| 148 | height: 26px; |
| 149 | } |
| 150 | |
| 151 | |
| 152 | .topo2-p h2 { |
| 153 | padding: 0 0 0 10px; |
| 154 | margin: 0; |
| 155 | font-weight: lighter; |
| 156 | word-wrap: break-word; |
| 157 | display: inline-block; |
| 158 | vertical-align: middle; |
| 159 | } |
| 160 | |
| 161 | .topo2-p h3 { |
| 162 | padding: 0 4px; |
| 163 | margin: 0; |
| 164 | word-wrap: break-word; |
| 165 | top: 20px; |
| 166 | left: 50px; |
| 167 | } |
| 168 | |
| 169 | .topo2-p p, |
| 170 | .topo2-p table { |
| 171 | padding: 0; |
| 172 | margin: 0; |
| 173 | width: 100%; |
| 174 | } |
| 175 | |
| 176 | .topo2-p td { |
| 177 | word-wrap: break-word; |
| 178 | } |
| 179 | .topo2-p td.label { |
| 180 | font-weight: bold; |
| 181 | padding: 0 10px 0 0; |
| 182 | } |
| 183 | .topo2-p td.value { |
| 184 | padding: 0; |
| 185 | } |
| 186 | |
| 187 | #topo2-p-summary td.label { |
| 188 | width: 50%; |
| 189 | } |
| 190 | |
| 191 | #topo2-p-detail div.actionBtns { |
| 192 | padding-top: 6px; |
| 193 | } |
| 194 | |
| 195 | .topo2-p hr { |
| 196 | height: 1px; |
| 197 | border: 0; |
| 198 | margin: 4px -3px; |
| 199 | } |
Steven Burrows | c846893 | 2017-03-17 16:13:41 +0000 | [diff] [blame] | 200 | |
| 201 | /* --- Toolbar --- */ |
| 202 | |
| 203 | #toolbar-topo2-toolbar { |
| 204 | padding: 6px; |
| 205 | } |
| 206 | |
| 207 | #toolbar-topo2-toolbar .tbar-row.right { |
| 208 | width: 100%; |
| 209 | } |
| 210 | |
| 211 | #toolbar-topo2-toolbar .tbar-row-text { |
| 212 | height: 21px; |
| 213 | text-align: right; |
| 214 | padding: 8px 60px 0 0; |
| 215 | font-style: italic; |
| 216 | } |