blob: 81c14d56b47ac0567a96fe1c31682a7bd4e00682 [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 Burrowsaf3159d2016-08-25 14:54:30 +010035
36#breadcrumbs {
Steven Burrowsd8e6c332016-09-27 10:40:53 -070037 font-size: 13px;
Steven Burrowsaf3159d2016-08-25 14:54:30 +010038 position: absolute;
Steven Burrowsd8e6c332016-09-27 10:40:53 -070039 padding: 10px 20px;
40 left: 0;
41 top: 48px;
Steven Burrowsaf3159d2016-08-25 14:54:30 +010042 width: 100%;
43}
44
45#breadcrumbs .breadcrumb {
46 display: inline-block;
Steven Burrowsd8e6c332016-09-27 10:40:53 -070047 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 Burrowsd8e6c332016-09-27 10:40:53 -070057 line-height: 20px;
58 margin-left: 5px;
59}
60
Steven Burrows2d4aab72016-09-27 11:24:58 -070061#breadcrumbs .breadcrumb:last-child a {
62 pointer-events: none;
63 font-weight: 600;
Steven Burrows2d4aab72016-09-27 11:24:58 -070064}
65
Steven Burrowsd8e6c332016-09-27 10:40:53 -070066#breadcrumbs .breadcrumb:last-child:after {
67 display: none;
Steven Burrowsaf3159d2016-08-25 14:54:30 +010068}
69
Steven Burrows7a9d04e2016-09-26 17:05:37 -070070#topo2-p-instance.floatpanel {
Steven Burrowsaf3159d2016-08-25 14:54:30 +010071 top: 104px;
72}
Steven Burrowsdfa52b02016-09-02 13:50:43 +010073
Steven Burrows8ea5dea2016-12-27 13:28:41 +000074.breadcrumb--hidden #topo2-p-instance.floatpanel {
75 top: 64px;
76}
Steven Burrowsdfa52b02016-09-02 13:50:43 +010077
78/* -- Base Device Styles -- */
79#ov-topo2 svg .node {
80 cursor: pointer;
81 fill-rule: evenodd;
Steven Burrows7a9d04e2016-09-26 17:05:37 -070082}
Steven Burrows1c5c8612016-10-05 13:45:13 -050083
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}
97html[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 Hunt95f4b422017-03-03 13:49:05 -0800109
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 Burrowsc8468932017-03-17 16:13:41 +0000183
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}