blob: 8d8a582b1653fe6c9bdf487c9f53620de9adcf3a [file] [log] [blame]
Bri Prebilic Cole7c92a3d2015-01-09 16:50:03 -08001/*
2 * Copyright 2015 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/*
Bri Prebilic Coleaa0f0882015-02-04 15:27:55 -080018 ONOS GUI -- Device View -- CSS file
Bri Prebilic Cole7c92a3d2015-01-09 16:50:03 -080019 */
20
Bri Prebilic Cole3d4d01c2015-04-30 13:48:36 -070021#ov-device h2 {
22 display: inline-block;
23}
24
25#ov-device div.ctrl-btns {
Simon Hunt20856ec2015-11-16 15:58:14 -080026}
27
28.light #ov-device .current-view use {
29 fill: white;
30}
31.dark #ov-device .current-view use {
32 fill: #304860;
33}
34
35.light #ov-device .current-view rect {
36 fill: deepskyblue;
37}
38.dark #ov-device .current-view rect {
39 fill: #eee;
Bri Prebilic Cole3d4d01c2015-04-30 13:48:36 -070040}
41
Bri Prebilic Cole0feedc02015-04-09 14:17:37 -070042/* More in generic panel.css */
43
44#device-details-panel.floatpanel {
45 -moz-border-radius: 0;
46 border-radius: 0;
Bri Prebilic Cole9dcaea52015-07-21 14:39:48 -070047 z-index: 0;
Bri Prebilic Cole0feedc02015-04-09 14:17:37 -070048}
49
50.light #device-details-panel.floatpanel {
Bri Prebilic Coleb699a162015-04-13 12:01:39 -070051 background-color: rgb(229, 234, 237);
Bri Prebilic Cole0feedc02015-04-09 14:17:37 -070052}
53.dark #device-details-panel.floatpanel {
Bri Prebilic Coleb699a162015-04-13 12:01:39 -070054 background-color: #3A4042;
Bri Prebilic Cole0feedc02015-04-09 14:17:37 -070055}
56
57#device-details-panel .container {
58 padding: 0 12px;
59}
60
61#device-details-panel .close-btn {
62 position: absolute;
63 right: 10px;
64 top: 0;
Bri Prebilic Coleb699a162015-04-13 12:01:39 -070065 cursor: pointer;
Bri Prebilic Cole0feedc02015-04-09 14:17:37 -070066}
Bri Prebilic Coleab582b82015-04-14 15:08:22 -070067.light .close-btn svg.embeddedIcon .icon.plus .glyph {
Bri Prebilic Coleb699a162015-04-13 12:01:39 -070068 fill: #aaa;
69}
Bri Prebilic Coleab582b82015-04-14 15:08:22 -070070.dark .close-btn svg.embeddedIcon .icon.plus .glyph {
Bri Prebilic Cole0feedc02015-04-09 14:17:37 -070071 fill: #ccc;
72}
73
Bri Prebilic Coleb699a162015-04-13 12:01:39 -070074#device-details-panel .dev-icon {
75 display: inline-block;
76 padding: 0 6px 0 0;
77 vertical-align: middle;
78}
79.light .dev-icon svg.embeddedIcon .glyph {
80 fill: rgb(0, 172, 229);
81}
82.dark .dev-icon svg.embeddedIcon .glyph {
83 fill: #486D91;
84}
85
Bri Prebilic Cole0feedc02015-04-09 14:17:37 -070086#device-details-panel h2 {
Bri Prebilic Coleb699a162015-04-13 12:01:39 -070087 display: inline-block;
Bri Prebilic Cole0feedc02015-04-09 14:17:37 -070088 margin: 8px 0;
89}
90
Simon Huntd766c312015-10-06 11:46:32 -070091#device-details-panel .editable {
92 cursor: pointer;
93 border-bottom: 1px dashed darkgreen;
94}
95
Simon Huntd5579252015-10-06 15:09:14 -070096#device-details-panel h2 input {
97 font-size: 1.0em;
98}
99
Bri Prebilic Cole8f07f0d2015-04-23 13:28:43 -0700100#device-details-panel .top div.left {
101 float: left;
102 padding: 0 18px 0 0;
103}
104#device-details-panel .top div.right {
105 display: inline-block;
106}
107
Bri Prebilic Cole0feedc02015-04-09 14:17:37 -0700108#device-details-panel td.label {
109 font-style: italic;
110 padding-right: 12px;
111 /* works for both light and dark themes ... */
112 color: #777;
113}
114
Bri Prebilic Cole8f07f0d2015-04-23 13:28:43 -0700115#device-details-panel .actionBtns div {
Bri Prebilic Coleac829e42015-05-05 13:42:06 -0700116 padding: 12px 6px;
Bri Prebilic Cole8f07f0d2015-04-23 13:28:43 -0700117}
Bri Prebilic Coleac829e42015-05-05 13:42:06 -0700118
Bri Prebilic Cole8f07f0d2015-04-23 13:28:43 -0700119#device-details-panel .top hr {
120 width: 95%;
121 margin: 0 auto;
Bri Prebilic Cole0feedc02015-04-09 14:17:37 -0700122}
123
124.light #device-details-panel hr {
125 opacity: .5;
126 border-color: #FFF;
127}
128.dark #device-details-panel hr {
129 border-color: #666;
130}
131
132#device-details-panel .bottom table {
133 border-spacing: 0;
134}
135
136#device-details-panel .bottom th {
137 letter-spacing: 0.02em;
138}
139
140.light #device-details-panel .bottom th {
Bri Prebilic Coleb699a162015-04-13 12:01:39 -0700141 background-color: #CCC;
Bri Prebilic Cole0feedc02015-04-09 14:17:37 -0700142 /* default text color */
143}
144.dark #device-details-panel .bottom th {
Bri Prebilic Coleb699a162015-04-13 12:01:39 -0700145 background-color: #131313;
Bri Prebilic Cole0feedc02015-04-09 14:17:37 -0700146 color: #ccc;
147}
148
149#device-details-panel .bottom th,
150#device-details-panel .bottom td {
151 padding: 6px 12px;
152 text-align: center;
153}
154
155.light #device-details-panel .bottom tr:nth-child(odd) {
156 background-color: #f9f9f9;
157}
158.light #device-details-panel .bottom tr:nth-child(even) {
159 background-color: #EBEDF2;
160}
161.dark #device-details-panel .bottom tr:nth-child(odd) {
162 background-color: #333;
Thomas Vachuska0fa583c2015-03-30 23:07:41 -0700163}
Bri Prebilic Coleb699a162015-04-13 12:01:39 -0700164.dark #device-details-panel .bottom tr:nth-child(even) {
165 background-color: #555;
166}