blob: 12be44a9a31847419a633868898c1a2cbf18aabb [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
34/* -- TEMPORARY CSS (to be deleted) -- */
35#topo2tmp div {
36 padding: 8px 24px;
37 margin: 8px;
38 background-color: #ddddff;
39}
40#topo2tmp div div {
41 padding: 4px 10px;
42}
43
44#topo2tmp h4 {
45 margin: 0
46}
47#topo2tmp p {
48 margin: 0
49}
50#topo2tmp .nav-me:hover {
51 background-color: #bbbbdd;
52}
53#topo2tmp .nav-me {
54 font-weight: bold;
55 text-decoration: underline;
56 cursor: pointer;
57}
Steven Burrowsaf3159d2016-08-25 14:54:30 +010058
59#breadcrumbs {
Steven Burrowsd8e6c332016-09-27 10:40:53 -070060 font-size: 13px;
61 background: #f5f5f5;
62 border-bottom: 1px solid #c7c7c0;
Steven Burrowsaf3159d2016-08-25 14:54:30 +010063 position: absolute;
Steven Burrowsd8e6c332016-09-27 10:40:53 -070064 padding: 10px 20px;
65 left: 0;
66 top: 48px;
Steven Burrowsaf3159d2016-08-25 14:54:30 +010067 width: 100%;
68}
69
70#breadcrumbs .breadcrumb {
71 display: inline-block;
Steven Burrowsd8e6c332016-09-27 10:40:53 -070072 margin-right: 5px;
73}
74
75#breadcrumbs .breadcrumb a {
76 cursor: pointer;
77}
78
79#breadcrumbs .breadcrumb:after {
80 content: 'ยป';
81 pointer-events: none;
82 color: #353535;
83 line-height: 20px;
84 margin-left: 5px;
85}
86
Steven Burrows2d4aab72016-09-27 11:24:58 -070087#breadcrumbs .breadcrumb:last-child a {
88 pointer-events: none;
89 font-weight: 600;
90 color: #757575;
91}
92
Steven Burrowsd8e6c332016-09-27 10:40:53 -070093#breadcrumbs .breadcrumb:last-child:after {
94 display: none;
Steven Burrowsaf3159d2016-08-25 14:54:30 +010095}
96
Steven Burrows7a9d04e2016-09-26 17:05:37 -070097#topo2-p-instance.floatpanel {
Steven Burrowsaf3159d2016-08-25 14:54:30 +010098 top: 104px;
99}
Steven Burrowsdfa52b02016-09-02 13:50:43 +0100100
Steven Burrows8ea5dea2016-12-27 13:28:41 +0000101.breadcrumb--hidden #topo2-p-instance.floatpanel {
102 top: 64px;
103}
Steven Burrowsdfa52b02016-09-02 13:50:43 +0100104
105/* -- Base Device Styles -- */
106#ov-topo2 svg .node {
107 cursor: pointer;
108 fill-rule: evenodd;
Steven Burrows7a9d04e2016-09-26 17:05:37 -0700109}
Steven Burrows1c5c8612016-10-05 13:45:13 -0500110
111/* --- Topo Summary Panel --- */
112
113#topo2-p-summary {
114 padding: 16px;
115}
116
117
118/* --- Topo Detail Panel --- */
119
120#topo2-p-detail {
121 padding: 16px;
122 top: 370px;
123}
124html[data-platform='iPad'] #topo2-p-detail {
125 top: 386px;
126}
127
128#topo2-p-detail .actionBtns .actionBtn {
129 display: inline-block;
130}
131#topo2-p-detail .actionBtns .actionBtn svg {
132 width: 28px;
133 height: 28px;
134}
135
Simon Hunt95f4b422017-03-03 13:49:05 -0800136
137/* --- general topo2-panel styling --- */
138
139.topo2-p div.header {
140 margin-bottom: 10px;
141}
142
143.topo2-p div.header div.icon {
144 vertical-align: middle;
145 display: inline-block;
146}
147.topo2-p div.body {
148 overflow-y: scroll;
149}
150
151.topo2-p div.body::-webkit-scrollbar {
152 display: none;
153}
154
155.topo2-p svg {
156 display: inline-block;
157 width: 26px;
158 height: 26px;
159}
160
161
162.topo2-p h2 {
163 padding: 0 0 0 10px;
164 margin: 0;
165 font-weight: lighter;
166 word-wrap: break-word;
167 display: inline-block;
168 vertical-align: middle;
169}
170
171.topo2-p h3 {
172 padding: 0 4px;
173 margin: 0;
174 word-wrap: break-word;
175 top: 20px;
176 left: 50px;
177}
178
179.topo2-p p,
180.topo2-p table {
181 padding: 0;
182 margin: 0;
183 width: 100%;
184}
185
186.topo2-p td {
187 word-wrap: break-word;
188}
189.topo2-p td.label {
190 font-weight: bold;
191 padding: 0 10px 0 0;
192}
193.topo2-p td.value {
194 padding: 0;
195}
196
197#topo2-p-summary td.label {
198 width: 50%;
199}
200
201#topo2-p-detail div.actionBtns {
202 padding-top: 6px;
203}
204
205.topo2-p hr {
206 height: 1px;
207 border: 0;
208 margin: 4px -3px;
209}