blob: bdb3d6a19583fc45ac177fca3bd5b2752a363d81 [file] [log] [blame]
Simon Huntd5b96732016-07-08 13:22:27 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Simon Huntd5b96732016-07-08 13:22:27 -07003 *
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 Burrows8ea5dea2016-12-27 13:28:41 +000022#mast {
23 position: relative;
24 z-index: 1000;
25}
26
Simon Huntd5b96732016-07-08 13:22:27 -070027/* --- 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 Hunt98189192016-07-29 19:02:27 -070033
Simon Hunt98189192016-07-29 19:02:27 -070034
Steven Burrows6501de92017-04-12 15:10:34 -070035/* --- "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 Burrowsaf3159d2016-08-25 14:54:30 +010045
46#breadcrumbs {
Steven Burrowsd8e6c332016-09-27 10:40:53 -070047 font-size: 13px;
Steven Burrowsaf3159d2016-08-25 14:54:30 +010048 position: absolute;
Steven Burrowsd8e6c332016-09-27 10:40:53 -070049 padding: 10px 20px;
50 left: 0;
51 top: 48px;
Steven Burrowsaf3159d2016-08-25 14:54:30 +010052 width: 100%;
53}
54
55#breadcrumbs .breadcrumb {
56 display: inline-block;
Steven Burrowsd8e6c332016-09-27 10:40:53 -070057 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 Burrowsd8e6c332016-09-27 10:40:53 -070067 line-height: 20px;
68 margin-left: 5px;
69}
70
Steven Burrows2d4aab72016-09-27 11:24:58 -070071#breadcrumbs .breadcrumb:last-child a {
72 pointer-events: none;
73 font-weight: 600;
Steven Burrows2d4aab72016-09-27 11:24:58 -070074}
75
Steven Burrowsd8e6c332016-09-27 10:40:53 -070076#breadcrumbs .breadcrumb:last-child:after {
77 display: none;
Steven Burrowsaf3159d2016-08-25 14:54:30 +010078}
79
Steven Burrows7a9d04e2016-09-26 17:05:37 -070080#topo2-p-instance.floatpanel {
Steven Burrowsaf3159d2016-08-25 14:54:30 +010081 top: 104px;
82}
Steven Burrowsdfa52b02016-09-02 13:50:43 +010083
Steven Burrows8ea5dea2016-12-27 13:28:41 +000084.breadcrumb--hidden #topo2-p-instance.floatpanel {
85 top: 64px;
86}
Steven Burrowsdfa52b02016-09-02 13:50:43 +010087
Steven Burrows64047212017-11-01 15:45:36 +000088#topo2-p-instance .instTitle {
89 font-size: 11pt;
90 font-weight: bold;
91 font-variant: small-caps;
92 text-transform: uppercase;
93}
94
Steven Burrowsdfa52b02016-09-02 13:50:43 +010095/* -- Base Device Styles -- */
96#ov-topo2 svg .node {
97 cursor: pointer;
98 fill-rule: evenodd;
Steven Burrows7a9d04e2016-09-26 17:05:37 -070099}
Steven Burrows1c5c8612016-10-05 13:45:13 -0500100
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}
114html[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 Hunt95f4b422017-03-03 13:49:05 -0800126
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 Burrowsc8468932017-03-17 16:13:41 +0000200
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}