blob: b4ffd809df4c4aa9f881d05d40646d243d1c429f [file] [log] [blame]
Simon Huntd5b96732016-07-08 13:22:27 -07001/*
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 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
88/* -- Base Device Styles -- */
89#ov-topo2 svg .node {
90 cursor: pointer;
91 fill-rule: evenodd;
Steven Burrows7a9d04e2016-09-26 17:05:37 -070092}
Steven Burrows1c5c8612016-10-05 13:45:13 -050093
94/* --- Topo Summary Panel --- */
95
96#topo2-p-summary {
97 padding: 16px;
98}
99
100
101/* --- Topo Detail Panel --- */
102
103#topo2-p-detail {
104 padding: 16px;
105 top: 370px;
106}
107html[data-platform='iPad'] #topo2-p-detail {
108 top: 386px;
109}
110
111#topo2-p-detail .actionBtns .actionBtn {
112 display: inline-block;
113}
114#topo2-p-detail .actionBtns .actionBtn svg {
115 width: 28px;
116 height: 28px;
117}
118
Simon Hunt95f4b422017-03-03 13:49:05 -0800119
120/* --- general topo2-panel styling --- */
121
122.topo2-p div.header {
123 margin-bottom: 10px;
124}
125
126.topo2-p div.header div.icon {
127 vertical-align: middle;
128 display: inline-block;
129}
130.topo2-p div.body {
131 overflow-y: scroll;
132}
133
134.topo2-p div.body::-webkit-scrollbar {
135 display: none;
136}
137
138.topo2-p svg {
139 display: inline-block;
140 width: 26px;
141 height: 26px;
142}
143
144
145.topo2-p h2 {
146 padding: 0 0 0 10px;
147 margin: 0;
148 font-weight: lighter;
149 word-wrap: break-word;
150 display: inline-block;
151 vertical-align: middle;
152}
153
154.topo2-p h3 {
155 padding: 0 4px;
156 margin: 0;
157 word-wrap: break-word;
158 top: 20px;
159 left: 50px;
160}
161
162.topo2-p p,
163.topo2-p table {
164 padding: 0;
165 margin: 0;
166 width: 100%;
167}
168
169.topo2-p td {
170 word-wrap: break-word;
171}
172.topo2-p td.label {
173 font-weight: bold;
174 padding: 0 10px 0 0;
175}
176.topo2-p td.value {
177 padding: 0;
178}
179
180#topo2-p-summary td.label {
181 width: 50%;
182}
183
184#topo2-p-detail div.actionBtns {
185 padding-top: 6px;
186}
187
188.topo2-p hr {
189 height: 1px;
190 border: 0;
191 margin: 4px -3px;
192}
Steven Burrowsc8468932017-03-17 16:13:41 +0000193
194/* --- Toolbar --- */
195
196#toolbar-topo2-toolbar {
197 padding: 6px;
198}
199
200#toolbar-topo2-toolbar .tbar-row.right {
201 width: 100%;
202}
203
204#toolbar-topo2-toolbar .tbar-row-text {
205 height: 21px;
206 text-align: right;
207 padding: 8px 60px 0 0;
208 font-style: italic;
209}