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 | |
| 22 | /* --- Base SVG Layer --- */ |
| 23 | |
| 24 | #ov-topo2 svg { |
| 25 | /* prevents the little cut/copy/paste square that would appear on iPad */ |
| 26 | -webkit-user-select: none; |
| 27 | } |
Simon Hunt | 9818919 | 2016-07-29 19:02:27 -0700 | [diff] [blame] | 28 | |
| 29 | /* -- TEMPORARY CSS (to be deleted) -- */ |
| 30 | #topo2tmp div { |
| 31 | padding: 8px 24px; |
| 32 | margin: 8px; |
| 33 | background-color: #ddddff; |
| 34 | } |
| 35 | #topo2tmp div div { |
| 36 | padding: 4px 10px; |
| 37 | } |
| 38 | |
| 39 | #topo2tmp h4 { |
| 40 | margin: 0 |
| 41 | } |
| 42 | #topo2tmp p { |
| 43 | margin: 0 |
| 44 | } |
| 45 | #topo2tmp .nav-me:hover { |
| 46 | background-color: #bbbbdd; |
| 47 | } |
| 48 | #topo2tmp .nav-me { |
| 49 | font-weight: bold; |
| 50 | text-decoration: underline; |
| 51 | cursor: pointer; |
| 52 | } |
Steven Burrows | af3159d | 2016-08-25 14:54:30 +0100 | [diff] [blame] | 53 | |
| 54 | #breadcrumbs { |
Steven Burrows | d8e6c33 | 2016-09-27 10:40:53 -0700 | [diff] [blame] | 55 | font-size: 13px; |
| 56 | background: #f5f5f5; |
| 57 | border-bottom: 1px solid #c7c7c0; |
Steven Burrows | af3159d | 2016-08-25 14:54:30 +0100 | [diff] [blame] | 58 | position: absolute; |
Steven Burrows | d8e6c33 | 2016-09-27 10:40:53 -0700 | [diff] [blame] | 59 | padding: 10px 20px; |
| 60 | left: 0; |
| 61 | top: 48px; |
Steven Burrows | af3159d | 2016-08-25 14:54:30 +0100 | [diff] [blame] | 62 | width: 100%; |
| 63 | } |
| 64 | |
| 65 | #breadcrumbs .breadcrumb { |
| 66 | display: inline-block; |
Steven Burrows | d8e6c33 | 2016-09-27 10:40:53 -0700 | [diff] [blame] | 67 | margin-right: 5px; |
| 68 | } |
| 69 | |
| 70 | #breadcrumbs .breadcrumb a { |
| 71 | cursor: pointer; |
| 72 | } |
| 73 | |
| 74 | #breadcrumbs .breadcrumb:after { |
| 75 | content: 'ยป'; |
| 76 | pointer-events: none; |
| 77 | color: #353535; |
| 78 | line-height: 20px; |
| 79 | margin-left: 5px; |
| 80 | } |
| 81 | |
Steven Burrows | 2d4aab7 | 2016-09-27 11:24:58 -0700 | [diff] [blame] | 82 | #breadcrumbs .breadcrumb:last-child a { |
| 83 | pointer-events: none; |
| 84 | font-weight: 600; |
| 85 | color: #757575; |
| 86 | } |
| 87 | |
Steven Burrows | d8e6c33 | 2016-09-27 10:40:53 -0700 | [diff] [blame] | 88 | #breadcrumbs .breadcrumb:last-child:after { |
| 89 | display: none; |
Steven Burrows | af3159d | 2016-08-25 14:54:30 +0100 | [diff] [blame] | 90 | } |
| 91 | |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 92 | #topo2-p-instance.floatpanel { |
Steven Burrows | af3159d | 2016-08-25 14:54:30 +0100 | [diff] [blame] | 93 | top: 104px; |
| 94 | } |
Steven Burrows | dfa52b0 | 2016-09-02 13:50:43 +0100 | [diff] [blame] | 95 | |
| 96 | |
| 97 | /* -- Base Device Styles -- */ |
| 98 | #ov-topo2 svg .node { |
| 99 | cursor: pointer; |
| 100 | fill-rule: evenodd; |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 101 | } |
Steven Burrows | 1c5c861 | 2016-10-05 13:45:13 -0500 | [diff] [blame] | 102 | |
| 103 | /* --- Topo Summary Panel --- */ |
| 104 | |
| 105 | #topo2-p-summary { |
| 106 | padding: 16px; |
| 107 | } |
| 108 | |
| 109 | |
| 110 | /* --- Topo Detail Panel --- */ |
| 111 | |
| 112 | #topo2-p-detail { |
| 113 | padding: 16px; |
| 114 | top: 370px; |
| 115 | } |
| 116 | html[data-platform='iPad'] #topo2-p-detail { |
| 117 | top: 386px; |
| 118 | } |
| 119 | |
| 120 | #topo2-p-detail .actionBtns .actionBtn { |
| 121 | display: inline-block; |
| 122 | } |
| 123 | #topo2-p-detail .actionBtns .actionBtn svg { |
| 124 | width: 28px; |
| 125 | height: 28px; |
| 126 | } |
| 127 | |