Bri Prebilic Cole | 7c92a3d | 2015-01-09 16:50:03 -0800 | [diff] [blame] | 1 | /* |
| 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 Cole | aa0f088 | 2015-02-04 15:27:55 -0800 | [diff] [blame] | 18 | ONOS GUI -- Device View -- CSS file |
Bri Prebilic Cole | 7c92a3d | 2015-01-09 16:50:03 -0800 | [diff] [blame] | 19 | */ |
| 20 | |
Bri Prebilic Cole | 3d4d01c | 2015-04-30 13:48:36 -0700 | [diff] [blame] | 21 | #ov-device h2 { |
| 22 | display: inline-block; |
| 23 | } |
| 24 | |
| 25 | #ov-device div.ctrl-btns { |
Simon Hunt | 20856ec | 2015-11-16 15:58:14 -0800 | [diff] [blame] | 26 | } |
| 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 Cole | 3d4d01c | 2015-04-30 13:48:36 -0700 | [diff] [blame] | 40 | } |
| 41 | |
Bri Prebilic Cole | 0feedc0 | 2015-04-09 14:17:37 -0700 | [diff] [blame] | 42 | /* More in generic panel.css */ |
| 43 | |
| 44 | #device-details-panel.floatpanel { |
| 45 | -moz-border-radius: 0; |
| 46 | border-radius: 0; |
Bri Prebilic Cole | 9dcaea5 | 2015-07-21 14:39:48 -0700 | [diff] [blame] | 47 | z-index: 0; |
Bri Prebilic Cole | 0feedc0 | 2015-04-09 14:17:37 -0700 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | .light #device-details-panel.floatpanel { |
Bri Prebilic Cole | b699a16 | 2015-04-13 12:01:39 -0700 | [diff] [blame] | 51 | background-color: rgb(229, 234, 237); |
Bri Prebilic Cole | 0feedc0 | 2015-04-09 14:17:37 -0700 | [diff] [blame] | 52 | } |
| 53 | .dark #device-details-panel.floatpanel { |
Bri Prebilic Cole | b699a16 | 2015-04-13 12:01:39 -0700 | [diff] [blame] | 54 | background-color: #3A4042; |
Bri Prebilic Cole | 0feedc0 | 2015-04-09 14:17:37 -0700 | [diff] [blame] | 55 | } |
| 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 Cole | b699a16 | 2015-04-13 12:01:39 -0700 | [diff] [blame] | 65 | cursor: pointer; |
Bri Prebilic Cole | 0feedc0 | 2015-04-09 14:17:37 -0700 | [diff] [blame] | 66 | } |
Bri Prebilic Cole | ab582b8 | 2015-04-14 15:08:22 -0700 | [diff] [blame] | 67 | .light .close-btn svg.embeddedIcon .icon.plus .glyph { |
Bri Prebilic Cole | b699a16 | 2015-04-13 12:01:39 -0700 | [diff] [blame] | 68 | fill: #aaa; |
| 69 | } |
Bri Prebilic Cole | ab582b8 | 2015-04-14 15:08:22 -0700 | [diff] [blame] | 70 | .dark .close-btn svg.embeddedIcon .icon.plus .glyph { |
Bri Prebilic Cole | 0feedc0 | 2015-04-09 14:17:37 -0700 | [diff] [blame] | 71 | fill: #ccc; |
| 72 | } |
| 73 | |
Bri Prebilic Cole | b699a16 | 2015-04-13 12:01:39 -0700 | [diff] [blame] | 74 | #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 Cole | 0feedc0 | 2015-04-09 14:17:37 -0700 | [diff] [blame] | 86 | #device-details-panel h2 { |
Bri Prebilic Cole | b699a16 | 2015-04-13 12:01:39 -0700 | [diff] [blame] | 87 | display: inline-block; |
Bri Prebilic Cole | 0feedc0 | 2015-04-09 14:17:37 -0700 | [diff] [blame] | 88 | margin: 8px 0; |
| 89 | } |
| 90 | |
Simon Hunt | d766c31 | 2015-10-06 11:46:32 -0700 | [diff] [blame] | 91 | #device-details-panel .editable { |
| 92 | cursor: pointer; |
| 93 | border-bottom: 1px dashed darkgreen; |
| 94 | } |
| 95 | |
Simon Hunt | d557925 | 2015-10-06 15:09:14 -0700 | [diff] [blame] | 96 | #device-details-panel h2 input { |
| 97 | font-size: 1.0em; |
| 98 | } |
| 99 | |
Bri Prebilic Cole | 8f07f0d | 2015-04-23 13:28:43 -0700 | [diff] [blame] | 100 | #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 Cole | 0feedc0 | 2015-04-09 14:17:37 -0700 | [diff] [blame] | 108 | #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 Cole | 8f07f0d | 2015-04-23 13:28:43 -0700 | [diff] [blame] | 115 | #device-details-panel .actionBtns div { |
Bri Prebilic Cole | ac829e4 | 2015-05-05 13:42:06 -0700 | [diff] [blame] | 116 | padding: 12px 6px; |
Bri Prebilic Cole | 8f07f0d | 2015-04-23 13:28:43 -0700 | [diff] [blame] | 117 | } |
Bri Prebilic Cole | ac829e4 | 2015-05-05 13:42:06 -0700 | [diff] [blame] | 118 | |
Bri Prebilic Cole | 8f07f0d | 2015-04-23 13:28:43 -0700 | [diff] [blame] | 119 | #device-details-panel .top hr { |
| 120 | width: 95%; |
| 121 | margin: 0 auto; |
Bri Prebilic Cole | 0feedc0 | 2015-04-09 14:17:37 -0700 | [diff] [blame] | 122 | } |
| 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 Cole | b699a16 | 2015-04-13 12:01:39 -0700 | [diff] [blame] | 141 | background-color: #CCC; |
Bri Prebilic Cole | 0feedc0 | 2015-04-09 14:17:37 -0700 | [diff] [blame] | 142 | /* default text color */ |
| 143 | } |
| 144 | .dark #device-details-panel .bottom th { |
Bri Prebilic Cole | b699a16 | 2015-04-13 12:01:39 -0700 | [diff] [blame] | 145 | background-color: #131313; |
Bri Prebilic Cole | 0feedc0 | 2015-04-09 14:17:37 -0700 | [diff] [blame] | 146 | 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 Vachuska | 0fa583c | 2015-03-30 23:07:41 -0700 | [diff] [blame] | 163 | } |
Bri Prebilic Cole | b699a16 | 2015-04-13 12:01:39 -0700 | [diff] [blame] | 164 | .dark #device-details-panel .bottom tr:nth-child(even) { |
| 165 | background-color: #555; |
| 166 | } |