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