Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016-present Open Networking Laboratory |
| 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 | |
| 34 | /* -- TEMPORARY CSS (to be deleted) -- */ |
| 35 | #topo2tmp div { |
| 36 | padding: 8px 24px; |
| 37 | margin: 8px; |
| 38 | background-color: #ddddff; |
| 39 | } |
| 40 | #topo2tmp div div { |
| 41 | padding: 4px 10px; |
| 42 | } |
| 43 | |
| 44 | #topo2tmp h4 { |
| 45 | margin: 0 |
| 46 | } |
| 47 | #topo2tmp p { |
| 48 | margin: 0 |
| 49 | } |
| 50 | #topo2tmp .nav-me:hover { |
| 51 | background-color: #bbbbdd; |
| 52 | } |
| 53 | #topo2tmp .nav-me { |
| 54 | font-weight: bold; |
| 55 | text-decoration: underline; |
| 56 | cursor: pointer; |
| 57 | } |
Steven Burrows | af3159d | 2016-08-25 14:54:30 +0100 | [diff] [blame] | 58 | |
| 59 | #breadcrumbs { |
Steven Burrows | d8e6c33 | 2016-09-27 10:40:53 -0700 | [diff] [blame] | 60 | font-size: 13px; |
| 61 | background: #f5f5f5; |
| 62 | border-bottom: 1px solid #c7c7c0; |
Steven Burrows | af3159d | 2016-08-25 14:54:30 +0100 | [diff] [blame] | 63 | position: absolute; |
Steven Burrows | d8e6c33 | 2016-09-27 10:40:53 -0700 | [diff] [blame] | 64 | padding: 10px 20px; |
| 65 | left: 0; |
| 66 | top: 48px; |
Steven Burrows | af3159d | 2016-08-25 14:54:30 +0100 | [diff] [blame] | 67 | width: 100%; |
| 68 | } |
| 69 | |
| 70 | #breadcrumbs .breadcrumb { |
| 71 | display: inline-block; |
Steven Burrows | d8e6c33 | 2016-09-27 10:40:53 -0700 | [diff] [blame] | 72 | margin-right: 5px; |
| 73 | } |
| 74 | |
| 75 | #breadcrumbs .breadcrumb a { |
| 76 | cursor: pointer; |
| 77 | } |
| 78 | |
| 79 | #breadcrumbs .breadcrumb:after { |
| 80 | content: 'ยป'; |
| 81 | pointer-events: none; |
| 82 | color: #353535; |
| 83 | line-height: 20px; |
| 84 | margin-left: 5px; |
| 85 | } |
| 86 | |
Steven Burrows | 2d4aab7 | 2016-09-27 11:24:58 -0700 | [diff] [blame] | 87 | #breadcrumbs .breadcrumb:last-child a { |
| 88 | pointer-events: none; |
| 89 | font-weight: 600; |
| 90 | color: #757575; |
| 91 | } |
| 92 | |
Steven Burrows | d8e6c33 | 2016-09-27 10:40:53 -0700 | [diff] [blame] | 93 | #breadcrumbs .breadcrumb:last-child:after { |
| 94 | display: none; |
Steven Burrows | af3159d | 2016-08-25 14:54:30 +0100 | [diff] [blame] | 95 | } |
| 96 | |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 97 | #topo2-p-instance.floatpanel { |
Steven Burrows | af3159d | 2016-08-25 14:54:30 +0100 | [diff] [blame] | 98 | top: 104px; |
| 99 | } |
Steven Burrows | dfa52b0 | 2016-09-02 13:50:43 +0100 | [diff] [blame] | 100 | |
Steven Burrows | 8ea5dea | 2016-12-27 13:28:41 +0000 | [diff] [blame] | 101 | .breadcrumb--hidden #topo2-p-instance.floatpanel { |
| 102 | top: 64px; |
| 103 | } |
Steven Burrows | dfa52b0 | 2016-09-02 13:50:43 +0100 | [diff] [blame] | 104 | |
| 105 | /* -- Base Device Styles -- */ |
| 106 | #ov-topo2 svg .node { |
| 107 | cursor: pointer; |
| 108 | fill-rule: evenodd; |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 109 | } |
Steven Burrows | 1c5c861 | 2016-10-05 13:45:13 -0500 | [diff] [blame] | 110 | |
| 111 | /* --- Topo Summary Panel --- */ |
| 112 | |
| 113 | #topo2-p-summary { |
| 114 | padding: 16px; |
| 115 | } |
| 116 | |
| 117 | |
| 118 | /* --- Topo Detail Panel --- */ |
| 119 | |
| 120 | #topo2-p-detail { |
| 121 | padding: 16px; |
| 122 | top: 370px; |
| 123 | } |
| 124 | html[data-platform='iPad'] #topo2-p-detail { |
| 125 | top: 386px; |
| 126 | } |
| 127 | |
| 128 | #topo2-p-detail .actionBtns .actionBtn { |
| 129 | display: inline-block; |
| 130 | } |
| 131 | #topo2-p-detail .actionBtns .actionBtn svg { |
| 132 | width: 28px; |
| 133 | height: 28px; |
| 134 | } |
| 135 | |
Simon Hunt | 95f4b42 | 2017-03-03 13:49:05 -0800 | [diff] [blame^] | 136 | |
| 137 | /* --- general topo2-panel styling --- */ |
| 138 | |
| 139 | .topo2-p div.header { |
| 140 | margin-bottom: 10px; |
| 141 | } |
| 142 | |
| 143 | .topo2-p div.header div.icon { |
| 144 | vertical-align: middle; |
| 145 | display: inline-block; |
| 146 | } |
| 147 | .topo2-p div.body { |
| 148 | overflow-y: scroll; |
| 149 | } |
| 150 | |
| 151 | .topo2-p div.body::-webkit-scrollbar { |
| 152 | display: none; |
| 153 | } |
| 154 | |
| 155 | .topo2-p svg { |
| 156 | display: inline-block; |
| 157 | width: 26px; |
| 158 | height: 26px; |
| 159 | } |
| 160 | |
| 161 | |
| 162 | .topo2-p h2 { |
| 163 | padding: 0 0 0 10px; |
| 164 | margin: 0; |
| 165 | font-weight: lighter; |
| 166 | word-wrap: break-word; |
| 167 | display: inline-block; |
| 168 | vertical-align: middle; |
| 169 | } |
| 170 | |
| 171 | .topo2-p h3 { |
| 172 | padding: 0 4px; |
| 173 | margin: 0; |
| 174 | word-wrap: break-word; |
| 175 | top: 20px; |
| 176 | left: 50px; |
| 177 | } |
| 178 | |
| 179 | .topo2-p p, |
| 180 | .topo2-p table { |
| 181 | padding: 0; |
| 182 | margin: 0; |
| 183 | width: 100%; |
| 184 | } |
| 185 | |
| 186 | .topo2-p td { |
| 187 | word-wrap: break-word; |
| 188 | } |
| 189 | .topo2-p td.label { |
| 190 | font-weight: bold; |
| 191 | padding: 0 10px 0 0; |
| 192 | } |
| 193 | .topo2-p td.value { |
| 194 | padding: 0; |
| 195 | } |
| 196 | |
| 197 | #topo2-p-summary td.label { |
| 198 | width: 50%; |
| 199 | } |
| 200 | |
| 201 | #topo2-p-detail div.actionBtns { |
| 202 | padding-top: 6px; |
| 203 | } |
| 204 | |
| 205 | .topo2-p hr { |
| 206 | height: 1px; |
| 207 | border: 0; |
| 208 | margin: 4px -3px; |
| 209 | } |